GARCH(1,1)
A model where volatility reacts to each day's return and drifts back to a long-run level. Big moves raise tomorrow's volatility, so calm and stormy periods cluster.
01The formula
- the variance expected for tomorrow
- a small constant that anchors the long-run level
- reaction: how much today's squared return moves tomorrow's variance
- memory: how much of today's variance carries over
- persistence: how slowly a volatility shock fades
- the long-run variance the process reverts to
02See it move
03Where it is used
- Risk managerForecasts volatility for value-at-risk over the next days and weeks, letting it revert to the long-run level.
- Options deskCompares the volatility path GARCH forecasts with implied volatilities across expiries.
- Quant researcherFits GARCH to returns to measure how persistent volatility shocks are in each market.
04Why traders use it
Volatility clustering is one of the most reliable facts about markets. GARCH captures it with three numbers, and it says how quickly a spike should calm down, which EWMA cannot.
05Worked example
With α = 0.08, α + β = 0.970 and a long-run volatility of 20.0%, a shock to volatility halves in 22.8 days. Starting from 45%, the expected volatility in 21 days is 35.5%. The highlighted simulated path ended the year at 18.4%.
06How it is built
- Take expectations of the recursion: , because .
- Set for the long run: .
- Subtract it: . The gap decays geometrically.
- So a shock halves in days. EWMA is the special case , , which never reverts.
07The common mistake
Fitting GARCH and ignoring how close α + β is to 1. Values like 0.99 mean shocks last for months, and the long-run level becomes very uncertain; small changes in the fit can move it a lot.
08In Python and LaTeX
import numpy as np alpha, pers, sL, s0 = 0.08, 0.97, 0.20, 0.45 omega = sL**2 / 252 * (1 - pers) print(round(np.sqrt(252 * omega / (1 - pers)), 4)) # 0.2 long-run vol print(round(np.sqrt(sL**2 + pers**21 * (s0**2 - sL**2)), 4)) # 0.3546 expected vol in 21 days
\sigma_{t+1}^2 = \omega + \alpha\,r_t^2 + \beta\,\sigma_t^2, \qquad \sigma_L^2 = \frac{\omega}{1 - \alpha - \beta}09Where it fits
Rather not code the maths yourself? Describe your trading idea and let AI build the bot.
Build a bot with AgenKitThe worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.