GARCH VaR

The GARCH VaR is the conditional VaR of the next period: it scales a quantile with the volatility that a GARCH-family model forecasts from the latest returns.

The formula for the GARCH VaR is as follows:

\[\text{GARCH VaR} = \text{Mu} + \text{Volatility}_{t+1} \cdot \text{InverseF}(\alpha)\]

Where Mu is the constant mean and \(\text{Volatility}_{t + 1}\) the one-step volatility forecast of a GARCH-family model fitted by maximum likelihood, InverseF the quantile function of its standardized innovations (normal, Student-t or skewed) and alpha the tail probability (0.05 for the 95% confidence level). Volatility clusters: a turbulent day tends to follow a turbulent day. The GARCH VaR builds that in, so it responds to the latest volatility where the other methods weigh every return of the period equally: it rises quickly in a turbulent market and falls back as the market calms. That makes it the VaR of tomorrow given today, rather than the VaR of an average day of the period.

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: GARCH-based VaR, volatility-adjusted VaR.

In the Finance Toolkit this is get_value_at_risk with method="garch", 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="garch", period="yearly", within_period=True)

Which returns:

References

  • Paper McNeil, A.J. and Frey, R. (2000). “Estimation of Tail-Related Risk Measures for Heteroscedastic Financial Time Series: An Extreme Value Approach.” Journal of Empirical Finance, 7(3-4), 271-300.
  • Library Referenced against arch’s GARCH (GARCH VaR)
  • Library Shares similar logic as rugarch (R)’s ugarchroll (GARCH VaR)
Share