Cornish-Fisher VaR

The Cornish-Fisher VaR, also called the modified VaR, corrects the Gaussian VaR for the skewness and excess kurtosis of the returns with the Cornish-Fisher expansion of the quantile.

The formula for the Cornish-Fisher VaR starts from the standard normal quantile z at the tail probability alpha (0.05 for the 95% confidence level) and corrects it for the sample skewness S and the sample excess kurtosis K of the returns:

\[z_{\text{cf}} = z + \frac{\left(z^{2} - 1\right) \cdot S}{6} + \frac{\left(z^{3} - 3 \cdot z\right) \cdot K}{24} - \frac{\left(2 \cdot z^{3} - 5 \cdot z\right) \cdot S^{2}}{36}\]

The VaR then takes that corrected quantile in place of z in the Gaussian VaR, with Mean and Std the average and the sample standard deviation of the returns (with n - 1 in the denominator):

\[\text{Cornish-Fisher VaR} = \text{Mean} + z_{\text{cf}} \cdot \text{Std}\]

Negative skewness and fat tails make it worse than the Gaussian VaR; for very skewed or fat-tailed returns the expansion itself becomes unreliable.

The Value at Risk (VaR) is a risk measure: the return that a period only falls below with a small probability alpha, so a 5% VaR of -0.03 means a loss of more than 3% in about one period out of twenty. It is the most widely used measure of downside risk in banking and asset management: risk managers set limits with it and the Basel rules built banks’ market-risk capital on it (their current framework uses the Expected Shortfall), because it sums up the risk of a position in one number in the unit that matters, the loss. The VaR is a return (negative for a loss). The methods differ in how they estimate the tail of the returns, from the plain history to fitted distributions and volatility models.

A VaR says how bad a period gets at the chosen confidence level, not how bad the periods beyond it are, so two assets with the same VaR can have very different tails (see the Conditional Value at Risk for that). Compare assets over the same period and confidence level. Scaling a daily VaR to a longer horizon with the square root of time assumes independent returns, which tends to understate risk when volatility clusters.

Also known as: modified VaR, CF VaR.

In the Finance Toolkit this is get_value_at_risk with method="cornish-fisher", the same function as Value at Risk (VaR).

Example · BTCUSD, ETHUSD, ^GSPC · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_value_at_risk:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["BTCUSD", "ETHUSD", "^GSPC"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.risk.get_value_at_risk(method="cornish-fisher", period="yearly", within_period=True)

Which returns:

References

  • Paper Cornish, E.A. and Fisher, R.A. (1938). “Moments and Cumulants in the Specification of Distributions.” Revue de l’Institut International de Statistique, 5(4), 307-320.
  • Paper Favre, L. and Galeano, J.A. (2002). “Mean-Modified Value-at-Risk Optimization with Hedge Funds.” Journal of Alternative Investments, 5(2), 21-25.
  • Library Shares similar logic as PerformanceAnalytics (R)’s VaR (Historical VaR, Gaussian VaR, Cornish-Fisher VaR)
Share