Skip to content
LeetQuant
QR05 Time Series and Econometrics

QR05 · Time Series and Econometrics · Lesson 4 of 5

Volatility Clustering and GARCH

The stylised facts of returns, EWMA volatility, GARCH(1,1) persistence and long-run variance, multi-step and term variance forecasts, and the practical caveats of fitting GARCH.

17 min

Objective

Return levels are close to unpredictable; their size is not. This lesson turns that observation into models you can compute by hand: EWMA and GARCH(1,1). You should come away able to update a volatility estimate after a big day, compute a model's long-run volatility and shock half-life, forecast variance over a horizon, and list what goes wrong when you fit one.

Stylised facts of returns

Across equities, FX, rates and commodities, daily returns show:

  • Little autocorrelation in returns, but strong, slowly decaying autocorrelation in squared and absolute returns: volatility clustering.
  • Fat tails: kurtosis well above 3. Returns divided by a good volatility estimate are closer to normal but usually still fat-tailed.
  • Mean-reverting volatility: spikes decay over weeks to months.
  • Leverage effect (equities): falls raise future volatility more than rises of the same size.
  • Aggregational Gaussianity: returns over longer horizons look more normal.

A constant-variance model gets every one of these wrong. A model where today's variance depends on recent squared returns gets the first three right at once.

EWMA

σt2=λ σt−12+(1−λ) rt−12.\sigma_t^2 = \lambda\,\sigma_{t-1}^2 + (1 - \lambda)\,r_{t-1}^2 .

Unrolled, it is a weighted average of past squared returns with weights (1−λ)λk(1-\lambda)\lambda^k, which halve every ln⁡0.5/ln⁡λ\ln 0.5 / \ln\lambda days. RiskMetrics used λ=0.94\lambda = 0.94 for daily data: a half-life of about 11.2 days. One parameter, no fitting, reacts immediately. Its weakness: it has no long-run level. The forecast of variance at every future horizon equals today's estimate, so after a crisis an EWMA predicts crisis volatility indefinitely.

Worked example

an EWMA update after a large move

With λ=0.94\lambda = 0.94, yesterday's volatility estimate was 1% daily. Today's return is −3%-3\%. What is the new estimate?

Show solution

Work in variance, not volatility: σ2=0.94×(0.01)2+0.06×(0.03)2=0.94×10−4+0.54×10−4=1.48×10−4\sigma^2 = 0.94 \times (0.01)^2 + 0.06 \times (0.03)^2 = 0.94 \times 10^{-4} + 0.54 \times 10^{-4} = 1.48 \times 10^{-4}.

The volatility is 1.48×10−4≈1.22%\sqrt{1.48 \times 10^{-4}} \approx 1.22\%. A three-sigma day moved the estimate up by about 22%. The sign of the return is irrelevant, which is why asymmetric extensions exist for equities.

GARCH(1,1)

σt2=ω+α rt−12+β σt−12,ω>0, α,β≥0, α+β<1.\sigma_t^2 = \omega + \alpha\,r_{t-1}^2 + \beta\,\sigma_{t-1}^2, \qquad \omega > 0,\ \alpha, \beta \ge 0,\ \alpha + \beta < 1 .
  • α\alpha is the reaction to news: how much one squared return moves tomorrow's variance.
  • α+β\alpha + \beta is the persistence: how slowly a shock to variance dies out. Daily equity fits typically give α\alpha around 0.05–0.10 and α+β\alpha + \beta around 0.95–0.99.
  • Long-run variance. Take expectations, using E[rt−12]=E[σt−12]=VL\mathbb{E}[r_{t-1}^2] = \mathbb{E}[\sigma_{t-1}^2] = V_L in the stationary state: VL=ω+(α+β)VLV_L = \omega + (\alpha + \beta)V_L, so
VL=ω1−α−β.V_L = \frac{\omega}{1 - \alpha - \beta} .

EWMA is the special case ω=0\omega = 0, α=1−λ\alpha = 1 - \lambda, β=λ\beta = \lambda (persistence exactly 1, "IGARCH"), which is why it has no VLV_L.

Multi-step forecasts

Rewrite the model as deviations from VLV_L: σt+12−VL=α(rt2−VL)+β(σt2−VL)\sigma_{t+1}^2 - V_L = \alpha(r_t^2 - V_L) + \beta(\sigma_t^2 - V_L). Since Et[rt+k2]=Et[σt+k2]\mathbb{E}_t[r_{t+k}^2] = \mathbb{E}_t[\sigma_{t+k}^2], each further step multiplies the expected deviation by α+β\alpha + \beta:

Et[σt+h2]=VL+(α+β)h−1(σt+12−VL).\mathbb{E}_t\big[\sigma_{t+h}^2\big] = V_L + (\alpha + \beta)^{h-1}\big(\sigma_{t+1}^2 - V_L\big) .

The half-life of a volatility shock is ln⁡0.5/ln⁡(α+β)\ln 0.5 / \ln(\alpha + \beta). The variance of the cumulative return over hh days (returns being uncorrelated) is the sum of the daily forecasts:

Var⁡t(∑k=1hrt+k)=h VL+1−(α+β)h1−(α+β)(σt+12−VL).\operatorname{Var}_t\Big(\sum_{k=1}^{h} r_{t+k}\Big) = h\,V_L + \frac{1 - (\alpha+\beta)^h}{1 - (\alpha+\beta)}\big(\sigma_{t+1}^2 - V_L\big) .

This gives a term structure of volatility: when current volatility is above VLV_L, longer-horizon volatility per day is lower, which is exactly the downward-sloping implied-volatility term structure seen after a sell-off.

Tails. With normal innovations, GARCH(1,1) returns are still fat-tailed. Their 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},

finite only if the denominator is positive. Mixing normals with different variances produces excess kurtosis by itself, but usually not enough to match the data, which is why Student-t innovations are common.

Worked example

GARCH forecasts after a shock

A daily GARCH(1,1) has ω=4×10−6\omega = 4 \times 10^{-6}, α=0.10\alpha = 0.10, β=0.88\beta = 0.88. Today's conditional variance is 4×10−44 \times 10^{-4} (2% daily) and today's return is −3%-3\%. Find: the long-run volatility (daily and annual), tomorrow's volatility, the expected daily volatility 10 days ahead, the 10-day volatility, and the half-life of a volatility shock. What is the model's kurtosis?

Show solution

Long run. Persistence α+β=0.98\alpha + \beta = 0.98, so VL=4×10−6/0.02=2×10−4V_L = 4 \times 10^{-6} / 0.02 = 2 \times 10^{-4}: daily volatility 1.414%1.414\%, annualised 1.414%×252≈22.4%1.414\% \times \sqrt{252} \approx 22.4\%.

Tomorrow. σt+12=4×10−6+0.10×9×10−4+0.88×4×10−4=0.04+0.90+3.52=4.46×10−4\sigma_{t+1}^2 = 4 \times 10^{-6} + 0.10 \times 9 \times 10^{-4} + 0.88 \times 4 \times 10^{-4} = 0.04 + 0.90 + 3.52 = 4.46 \times 10^{-4}, i.e. 2.11%2.11\%.

Ten days ahead. E[σt+102]=2×10−4+0.989×2.46×10−4=4.05×10−4\mathbb{E}[\sigma_{t+10}^2] = 2 \times 10^{-4} + 0.98^{9} \times 2.46 \times 10^{-4} = 4.05 \times 10^{-4}, i.e. 2.01%2.01\%. The deviation from the long run decays only 2% a day.

Ten-day volatility. 10×2×10−4+1−0.98100.02×2.46×10−4=4.25×10−310 \times 2 \times 10^{-4} + \frac{1 - 0.98^{10}}{0.02} \times 2.46 \times 10^{-4} = 4.25 \times 10^{-3}, so 4.25×10−3≈6.52%\sqrt{4.25 \times 10^{-3}} \approx 6.52\%. Compare: 10×2.11%=6.68%\sqrt{10} \times 2.11\% = 6.68\% (no mean reversion, the EWMA answer) and 10×1.41%=4.47%\sqrt{10} \times 1.41\% = 4.47\% (constant long-run variance). With persistence this high, 10 days is short, so the answer is close to the "no mean reversion" one.

Half-life. ln⁡0.5/ln⁡0.98≈34\ln 0.5 / \ln 0.98 \approx 34 days.

Kurtosis. 3(1−0.9604)/(1−0.9604−0.02)=3×0.0396/0.0196≈6.13(1 - 0.9604)/(1 - 0.9604 - 0.02) = 3 \times 0.0396 / 0.0196 \approx 6.1, double the normal value even though each day's shock is normal.

The same calculation in code

def garch_path(returns, omega, alpha, beta, var0):
    """Conditional variances sigma2[t] for t = 0..len(returns)."""
    s2 = [var0]
    for r in returns:
        s2.append(omega + alpha * r * r + beta * s2[-1])
    return s2

def forecast(s2_next, omega, alpha, beta, h):
    vl = omega / (1 - alpha - beta)
    p = alpha + beta
    return [vl + p ** (k - 1) * (s2_next - vl) for k in range(1, h + 1)]

omega, alpha, beta = 4e-6, 0.10, 0.88
s2 = garch_path([-0.03], omega, alpha, beta, var0=4e-4)
path = forecast(s2[-1], omega, alpha, beta, 10)
print(f"next-day vol {s2[-1] ** 0.5:.4f}")
print(f"day-10 vol   {path[-1] ** 0.5:.4f}")
print(f"10-day vol   {sum(path) ** 0.5:.4f}")

Output:

next-day vol 0.0211
day-10 vol   0.0201
10-day vol   0.0652

Fitting caveats

  • Estimation. Parameters come from maximising the Gaussian likelihood −12∑t(ln⁡σt2+rt2/σt2)-\tfrac12\sum_t\big(\ln\sigma_t^2 + r_t^2/\sigma_t^2\big). This is consistent even if returns are not normal (quasi-MLE), but needs robust standard errors. Expect to need thousands of daily observations for stable estimates; ω\omega in particular is poorly determined. Variance targeting fixes ω=VL(1−α−β)\omega = V_L(1 - \alpha - \beta) with VLV_L set to the sample variance, leaving two parameters.
  • Persistence near 1. Estimates of α+β\alpha + \beta cluster near 1, and a structural break in the volatility level biases persistence upward: a model forced to explain a permanent shift with one stationary process concludes that shocks barely decay. Fit on sub-periods to check.
  • Asymmetry and tails. For equities use GJR-GARCH (+γ rt−121{rt−1<0}+\gamma\,r_{t-1}^2\mathbf{1}\{r_{t-1}<0\}) or EGARCH, and Student-t innovations.
  • Evaluation. The squared return is an unbiased but very noisy proxy for the true variance, so forecast comparisons on r2r^2 need long samples. Use realised variance from intraday data where possible, and a loss function that is robust to the noisy proxy, such as QLIKE (r2/σ^2−ln⁡(r2/σ^2)−1r^2/\hat\sigma^2 - \ln(r^2/\hat\sigma^2) - 1) or MSE on variances, rather than errors in volatility.
  • Timing. σt2\sigma_t^2 uses information up to t−1t-1 only. Sizing a position at the close of day tt with a variance that includes day tt's return is fine; using day t+1t+1's is look-ahead.

Knowledge check

A GARCH(1,1) has ω=10−6\omega = 10^{-6}, α=0.05\alpha = 0.05, β=0.94\beta = 0.94. What is its long-run daily volatility?

Knowledge check

For a GARCH(1,1) with α+β=0.99\alpha + \beta = 0.99, roughly how long is the half-life of a shock to variance?

Knowledge check

Just after a volatility spike, current volatility is well above its long-run level. How do an EWMA model and a fitted GARCH(1,1) differ in their forecasts of average daily volatility over the next year?

Key takeaways

  • Returns are barely autocorrelated, but squared returns are strongly so; tails are fat and volatility mean-reverts.
  • EWMA (λ=0.94\lambda = 0.94, half-life about 11 days) reacts fast but has no long-run level: flat forecasts at every horizon.
  • GARCH(1,1): persistence α+β\alpha + \beta, long-run variance ω/(1−α−β)\omega/(1 - \alpha - \beta), hh-step forecast VL+(α+β)h−1(σt+12−VL)V_L + (\alpha+\beta)^{h-1}(\sigma_{t+1}^2 - V_L), shock half-life ln⁡0.5/ln⁡(α+β)\ln 0.5/\ln(\alpha+\beta).
  • Horizon variance is the sum of the daily forecasts, giving a volatility term structure.
  • Fitting needs long samples; persistence near 1 may signal a structural break; use asymmetric models and t innovations for equities, and evaluate forecasts against noisy proxies with care.

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).