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
Unrolled, it is a weighted average of past squared returns with weights , which halve every days. RiskMetrics used 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 , yesterday's volatility estimate was 1% daily. Today's return is . What is the new estimate?
Show solutionHide solution
Work in variance, not volatility: .
The volatility is . 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)
- is the reaction to news: how much one squared return moves tomorrow's variance.
- is the persistence: how slowly a shock to variance dies out. Daily equity fits typically give around 0.05–0.10 and around 0.95–0.99.
- Long-run variance. Take expectations, using in the stationary state: , so
EWMA is the special case , , (persistence exactly 1, "IGARCH"), which is why it has no .
Multi-step forecasts
Rewrite the model as deviations from : . Since , each further step multiplies the expected deviation by :
The half-life of a volatility shock is . The variance of the cumulative return over days (returns being uncorrelated) is the sum of the daily forecasts:
This gives a term structure of volatility: when current volatility is above , 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
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 , , . Today's conditional variance is (2% daily) and today's return is . 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 solutionHide solution
Long run. Persistence , so : daily volatility , annualised .
Tomorrow. , i.e. .
Ten days ahead. , i.e. . The deviation from the long run decays only 2% a day.
Ten-day volatility. , so . Compare: (no mean reversion, the EWMA answer) and (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. days.
Kurtosis. , 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 . 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; in particular is poorly determined. Variance targeting fixes with set to the sample variance, leaving two parameters.
- Persistence near 1. Estimates of 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 () 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 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 () or MSE on variances, rather than errors in volatility.
- Timing. uses information up to only. Sizing a position at the close of day with a variance that includes day 's return is fine; using day 's is look-ahead.
Knowledge check
A GARCH(1,1) has , , . What is its long-run daily volatility?
Knowledge check
For a GARCH(1,1) with , 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 (, half-life about 11 days) reacts fast but has no long-run level: flat forecasts at every horizon.
- GARCH(1,1): persistence , long-run variance , -step forecast , shock half-life .
- 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).