Overview
Financial returns show volatility clustering: calm periods and turbulent periods each persist. GARCH models the conditional variance as a function of recent squared shocks and its own past, so a large move today raises tomorrow’s expected volatility, which then decays back to a long-run level.
Extensions add realism: GJR-GARCH and EGARCH let negative shocks raise volatility more than positive ones (the leverage effect), and Student-t errors capture fat tails. Pair GARCH with an ARMA mean model to get ARIMA-GARCH.
How it works
\[r_t=\mu+\varepsilon_t,\qquad \varepsilon_t=\sigma_t z_t,\quad z_t\sim\text{i.i.d.}(0,1)\] \[\sigma_t^2=\omega+\alpha\,\varepsilon_{t-1}^2+\beta\,\sigma_{t-1}^2\]Stationarity needs \(\alpha+\beta<1\); the long-run variance is \(\bar\sigma^2=\omega/(1-\alpha-\beta)\). Multi-step variance forecasts revert geometrically:
\[\mathbb E[\sigma^2_{T+h}]=\bar\sigma^2+(\alpha+\beta)^{h-1}\left(\sigma^2_{T+1}-\bar\sigma^2\right)\]GJR adds \(\gamma\,\varepsilon_{t-1}^2\,\mathbb 1[\varepsilon_{t-1}<0]\) to the variance equation.
When to use it
Use it for
- Value-at-Risk and expected shortfall
- Volatility forecasts for options, position sizing and risk limits
- Any series with clustered, changing variance
Avoid it for
- Forecasting the direction or level of returns
- Very short samples (a few hundred points is a minimum)
Key settings
| Setting | What it controls | Typical value |
|---|---|---|
p, q | ARCH and GARCH lag orders | 1, 1 (rarely more) |
o | Asymmetric (GJR) term | 1 for equities |
dist | Error distribution | 't' or 'skewt' for returns |
Python example
from arch import arch_model from arch.data import sp500 prices = sp500.load()["Adj Close"] returns = 100 * prices.pct_change().dropna() # percent returns help the optimiser # GJR-GARCH(1,1) with Student-t errors: the leverage term (o=1) lets bad news raise volatility more model = arch_model(returns, mean="Constant", vol="GARCH", p=1, o=1, q=1, dist="t") res = model.fit(disp="off", last_obs="2017-12-31") # fit on data up to the end of 2017 print(res.params.round(4)) a, g, b = res.params["alpha[1]"], res.params["gamma[1]"], res.params["beta[1]"] print(f"persistence α + γ/2 + β = {a + g / 2 + b:.3f}") fc = res.forecast(horizon=10, start="2017-12-29", reindex=False) print((fc.variance.iloc[0] ** 0.5).round(3)) # 1- to 10-day-ahead volatility, % per day
Tips & pitfalls
- Scale returns to percent (×100); the optimiser is more stable.
- Persistence α+β (+γ/2 for GJR) close to 1 means shocks fade slowly.
- Evaluate with a proper loss for variance, such as QLIKE, against realised volatility.
References
- Engle, R. F. (1982). Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation. Econometrica, 50(4), 987–1007.
- Bollerslev, T. (1986). Generalized autoregressive conditional heteroskedasticity. Journal of Econometrics, 31(3), 307–327.
- Glosten, L. R., Jagannathan, R., & Runkle, D. E. (1993). On the relation between the expected value and the volatility of the nominal excess return on stocks. Journal of Finance, 48(5), 1779–1801.