Time Series, lesson 10
Volatility models
Exponential weighting and the idea behind GARCH.
You know volatility clustering, rolling volatility, and the AR(1) pull back to an average.
Part 1. Weigh recent days more
A rolling window counts each day fully and then drops it. Instead, let every past day count, with a weight that shrinks by a fixed factor λ ("lambda") for each day back. Set λ and score it against the true volatility of the practice stock.
A small λ makes yesterday count for a lot, so the estimate jumps. A λ near 1 spreads the weight over months, so it's smooth and slow. In between, it tracked the truth more closely than any plain window could, and no day ever falls off a cliff.
EWMA volatility
An exponentially weighted moving average of squared returns: σ²ₜ = λσ²ₜ₋₁ + (1 − λ)r²ₜ₋₁, read "today's variance is lambda times yesterday's variance, plus one minus lambda times yesterday's squared return". The day k back gets weight (1 − λ)λᵏ⁻¹.
Example 1.1
One update, with λ = 0.94
- σ yesterday = 1%·r yesterday = −3%
Yesterday's estimate, and a big move yesterday.
- 0.94 × 1²+0.06 × 3²=0.94 + 0.54=1.48
In %²: mostly the old estimate, plus 6% of the new squared move.
- √1.48=1.22%
One −3% day lifts the estimate from 1% to 1.22%.
Your turn
With λ = 0.94, how much weight does yesterday's squared return get, and the one from 10 days ago?
Part 2. Pulled back to normal
Keep going with Pro
You've done the first part. Pro opens the rest of this lesson, and every other one.
- Pulled back to normal
- A worked problem
- The same thing, for real
Time Series overviewSpotted a mistake? Tell us.