Day 85 — EWMA is a one-parameter volatility model that is hard to beat
Friday, 30 October 2026 · Week 13 of 52 · Time series · Study day · 60 min
Before the GARCH family it is worth knowing that the simplest possible recursive estimator captures most of the forecastable variation, because it sets the bar the rest of the week has to clear.
What you should be able to do tonight
- State the EWMA recursion and say what the decay parameter corresponds to in terms of effective sample size.
- Report the out-of-sample forecast accuracy of EWMA against a rolling window at three horizons.
Tasks 60 min
35 min Implement both estimators in qlib/vol.py: a rolling standard deviation and an EWMA with an explicit halflife. Then compare their one-day-ahead forecasts against realised absolute returns using mean squared error and the QLIKE loss, over a long out-of-sample period.
25 min Tune the decay honestly, out of sample: fit the halflife on the first half of the sample and evaluate on the second, then report what the in-sample optimal halflife would have been. The gap between the two is the size of the overfitting you avoided.
Resources
Deliverable
qlib/vol.py with rolling and EWMA estimators, and an out-of-sample forecast comparison at three horizons under two loss functions.
Checkpoint
An EWMA with a 20-day halflife has what effective sample size, and how does it respond to a single 5 percent day compared to a 20-day rolling window?
Prepare for tomorrow
Ten minutes tonight so Day 86, Saturday, 31 October 2026 starts clean. This is what the evening email sends you.
Read the arch documentation quickstart for fitting a GARCH(1,1), and fit one to SPY returns.
Note the two estimated coefficients and their sum.
Write down what you think the sum being close to 1 means. Tomorrow checks it.