Quant techniques · volatility forecasting

Volatility clusters: forecasting it with GARCH(1,1)

Daily returns are almost impossible to predict. Their size is not. A 3% day is usually followed by more large days, and quiet weeks come in runs. GARCH(1,1) is the standard model for this: tomorrow’s variance is a blend of a long-run level, today’s squared return and today’s variance. Three parameters, and you get clustering, fat tails and a forecast for any horizon.

1rt=σtzt,σt+12=ω+α rt2+β σt2r_t = \sigma_t z_t,\qquad \sigma_{t+1}^2 = \omega + \alpha\,r_t^2 + \beta\,\sigma_t^2 z is i.i.d. N(0,1). α: how much today’s shock moves tomorrow’s variance. β: how much of today’s variance carries over.
2V=ω1−α−βV = \dfrac{\omega}{1 - \alpha - \beta} The long-run variance, which exists when α + β < 1. Typical equity fits: α ≈ 0.05–0.10, β ≈ 0.88–0.94.
3Et[σt+h2]=V+(α+β)h−1 (σt+12−V)E_t[\sigma_{t+h}^2] = V + (\alpha + \beta)^{h-1}\,(\sigma_{t+1}^2 - V) Forecasts decay geometrically to V at rate α + β, the persistence.
4half-life=ln⁡0.5ln⁡(α+β)\text{half-life} = \dfrac{\ln 0.5}{\ln(\alpha + \beta)} How long until half of a vol shock has worn off. Persistence 0.98 gives 34 trading days.
The model

Tomorrow’s variance is a weighted average

Substitute ω=(1−α−β)V\omega = (1 - \alpha - \beta)V into step 1:

σt+12=(1−α−β) V+α rt2+β σt2\sigma_{t+1}^2 = (1 - \alpha - \beta)\,V + \alpha\,r_t^2 + \beta\,\sigma_t^2

Tomorrow’s variance is a weighted average of three things: the long-run variance V, today’s squared return (the newest, noisiest evidence), and today’s variance estimate (which summarises everything before). The weights add to 1.

Unroll the recursion and σt+12\sigma_{t+1}^2 becomes a long-run constant plus an exponentially weighted average of all past squared returns, with weights α, αβ, αβ2,…\alpha,\ \alpha\beta,\ \alpha\beta^2, \dots. EWMA volatility, RiskMetrics’ σt+12=λσt2+(1−λ)rt2\sigma_{t+1}^2 = \lambda\sigma_t^2 + (1 - \lambda)r_t^2 with λ = 0.94, is the special case ω = 0, α = 0.06, β = 0.94. Since α + β = 1 there, it has no long-run level, and its forecast for every future day is just today’s estimate.

α (reaction)β (persistence of variance)

1,000 simulated days: returns and σt

Forecast of vol h days ahead (annualised)

daily returnconditional vol ±2σt / forecast from a calm or a stressed daylong-run vol 16%
–persistence α + β
–half-life of a vol shock (days)
–kurtosis of returns (normal = 3), this sample
–autocorrelation of r², lag 1

Push β towards 0.97 with α at 0.02 and the clusters become long, slow swells. Raise α to 0.2 with β at 0.75 and volatility becomes spiky: it jumps after every big move and fades fast. Either way, the forecast on the right decays to the 16% long-run level, faster when α + β is smaller.

What it explains

Fat tails from normal shocks

Each ztz_t is normal, but rtr_t is not. Returns are a mixture of normals with different variances: calm days drawn from a narrow normal, stressed days from a wide one. Mixtures have fatter tails than any single normal. For GARCH(1,1) with normal shocks, the kurtosis is

κ=3 (1−(α+β)2)1−(α+β)2−2α2\kappa = \frac{3\,\big(1 - (\alpha+\beta)^2\big)}{1 - (\alpha+\beta)^2 - 2\alpha^2}

With α = 0.08, β = 0.90 that’s 4.43, against 3 for a normal. A simulation of 2 million days gave 4.44. Real daily equity returns have kurtosis well above that, which is why practitioners often use t-distributed shocks as well.

Volatility clustering shows up as autocorrelation in squared returns, even though returns themselves are uncorrelated. For GARCH(1,1), corr(rt2,rt−k2)\mathrm{corr}(r_t^2, r_{t-k}^2) starts at

ρ1=α (1−αβ−β2)1−2αβ−β2\rho_1 = \frac{\alpha\,(1 - \alpha\beta - \beta^2)}{1 - 2\alpha\beta - \beta^2}

and then decays by a factor α + β per lag. With α = 0.08 and β = 0.90 that’s 0.205 at lag 1, still 0.14 at lag 20.

Forecasting

Vol forecasts for any horizon

Take expectations of step 1 one day further out: since Et[rt+12]=σt+12E_t[r_{t+1}^2] = \sigma_{t+1}^2,

Et[σt+22]−V=(α+β) (σt+12−V)E_t[\sigma_{t+2}^2] - V = (\alpha + \beta)\,(\sigma_{t+1}^2 - V)

and repeating gives step 3. The deviation from the long-run level shrinks by a factor α + β each day. That gives GARCH its most useful output, a term structure of volatility. The expected variance over the next h days is the sum of the daily forecasts:

∑k=1hEt[σt+k2]=hV+(σt+12−V) 1−(α+β)h1−(α+β)\sum_{k=1}^h E_t[\sigma_{t+k}^2] = hV + (\sigma_{t+1}^2 - V)\,\frac{1 - (\alpha+\beta)^h}{1 - (\alpha+\beta)}

Example: long-run vol 1% a day (15.9% annualised), current vol 2% a day, persistence 0.98. The average variance over the next 21 trading days is 3.47×10−43.47 \times 10^{-4}, an annualised vol of about 29.6%: well below the 31.7% you’d get by assuming today’s vol lasts the whole month. That’s why short-dated implied vols spike much more than long-dated ones in a selloff.

import numpy as np
from scipy.optimize import minimize

def garch_fit(r):
    """Fit GARCH(1,1) with normal shocks by maximum likelihood. r: demeaned daily returns."""
    r = np.asarray(r)
    def nll(params):
        omega, alpha, beta = params
        if omega <= 0 or alpha < 0 or beta < 0 or alpha + beta >= 1:
            return 1e10
        h = np.empty_like(r)
        h[0] = r.var()
        for t in range(1, len(r)):
            h[t] = omega + alpha * r[t - 1]**2 + beta * h[t - 1]
        return 0.5 * np.sum(np.log(h) + r**2 / h)
    v = r.var()
    res = minimize(nll, x0=[v * 0.05, 0.05, 0.9], method="Nelder-Mead")
    omega, alpha, beta = res.x
    return dict(omega=omega, alpha=alpha, beta=beta,
                long_run_vol=np.sqrt(omega / (1 - alpha - beta) * 252),
                half_life=np.log(0.5) / np.log(alpha + beta))

# The `arch` package (arch_model(r, vol="GARCH", p=1, q=1)) does this with standard errors.

Extensions you'll hear about

  • GJR-GARCH / EGARCH: negative returns raise volatility more than positive ones of the same size (the leverage effect). GJR adds γ rt2 1{rt<0}\gamma\,r_t^2\,\mathbf 1\{r_t \lt 0\}.
  • Student-t shocks: fatter tails than GARCH alone produces.
  • Realised GARCH / HAR: use intraday realised variance instead of squared daily returns, which are a very noisy measure of variance.
  • Multivariate (DCC): GARCH for each asset’s vol plus a dynamic correlation matrix.

Where people slip in interviews

  • Thinking GARCH predicts returns. It predicts their variance. The sign of tomorrow’s return is still a coin flip.
  • α + β ≥ 1. Then there’s no long-run variance and forecasts don’t mean-revert (EWMA is exactly this case).
  • Scaling vol by √h. That assumes constant vol. With GARCH, multi-day variance is the sum of the daily forecasts, which mean-revert.
  • Mixing up α and β. α multiplies the latest squared return (reaction); β multiplies the previous variance (memory).
  • Calling the kurtosis a model failure. Fat tails in the returns are produced by the model even with normal shocks.
Practice

Try these before you open the answer

Warm-upω = 0.000005, α = 0.1, β = 0.85. What is the long-run daily vol, annualised?
Show answer
V=0.0000050.05=0.0001,V=1% a day≈15.9% a yearV = \frac{0.000005}{0.05} = 0.0001, \qquad \sqrt V = 1\% \text{ a day} \approx 15.9\% \text{ a year}
Half-lifeSame model: α + β = 0.95. What is the half-life of a volatility shock?
Show answer
ln⁡0.5ln⁡0.95≈13.5 trading days\frac{\ln 0.5}{\ln 0.95} \approx 13.5 \text{ trading days}
Updateω = 0.000002, α = 0.08, β = 0.9. Today's variance is 0.0002 and today's return is −3%. What is tomorrow's vol?
Show answer
σt+12=0.000002+0.08(0.0009)+0.9(0.0002)=0.000254,σt+1≈1.59%\sigma_{t+1}^2 = 0.000002 + 0.08(0.0009) + 0.9(0.0002) = 0.000254, \qquad \sigma_{t+1} \approx 1.59\%
EWMAWrite EWMA with λ = 0.94 as a GARCH(1,1). What is its long-run variance and its 10-day-ahead forecast?
Show answer

ω = 0, α = 0.06, β = 0.94. With α + β = 1 there’s no long-run variance (ω/0 is undefined). Every future day’s forecast equals tomorrow’s: Et[σt+102]=σt+12E_t[\sigma_{t+10}^2] = \sigma_{t+1}^2.

Term structureLong-run vol 1% a day, current 2%, persistence 0.98. Compare the √h-scaled one-month vol with the GARCH forecast.
Show answer

√h scaling: 2%×252≈31.7%2\% \times \sqrt{252} \approx 31.7\% annualised. GARCH: average variance over 21 days ≈3.47×10−4\approx 3.47 \times 10^{-4}, so 3.47×10−4×252≈29.6%\sqrt{3.47 \times 10^{-4} \times 252} \approx 29.6\%. GARCH expects some of the shock to fade within the month.

KurtosisWhy does a GARCH model with normal shocks produce fat-tailed returns?
Show answer

Each day’s return is normal given that day’s σ, but σ varies. Unconditionally, returns are a scale mixture of normals: many small-variance days and some large-variance days. By Jensen, E[σ4]>E[σ2]2E[\sigma^4] > E[\sigma^2]^2, so E[r4]/E[r2]2=3 E[σ4]/E[σ2]2>3E[r^4]/E[r^2]^2 = 3\,E[\sigma^4]/E[\sigma^2]^2 > 3.

The kurtosis, autocorrelation and half-life were checked on 2 million simulated days. The figure simulates 1,000 days in your browser with the same random shocks until you press the button.