Day 87 — Realised volatility, and the estimator that uses the intraday path

Sunday, 1 November 2026 · Week 13 of 52 · Time series · Study day · 60 min

The squared daily return is a one-observation estimate of a daily variance, and using the intraday path instead is the single largest accuracy improvement available in volatility forecasting.

What you should be able to do tonight

  • Say why realised variance from 5-minute returns is a far better estimate of daily variance than the squared daily return, in terms of estimator variance.
  • Name the two biases that appear as the sampling frequency increases, and say which direction each pushes the estimate.

Tasks 60 min

20 min Read the Optiver realized volatility competition’s data description and evaluation metric. It is the cleanest public statement of the problem, and the dataset is order-book data you will use again in phase 9.

30 min Build the estimator and its signature plot: compute realised variance at sampling intervals from 30 seconds to 30 minutes on whatever intraday data you have, and plot the average estimate against sampling frequency. The rise at high frequency is microstructure noise, and the flat region is where practitioners sample.

10 min Add realised_variance() to qlib/vol.py with the sampling interval as a required argument, and a docstring naming the two biases.

Resources

Deliverable

qlib/vol.py with a realised variance estimator, plus the volatility signature plot across sampling frequencies.

Checkpoint

Why does realised variance rise as you sample more finely than 5 minutes, and what would you do about it?

Prepare for tomorrow

Ten minutes tonight so Day 88, Monday, 2 November 2026 starts clean. This is what the evening email sends you.

Set up a regression of tomorrow’s realised variance on today’s, the past week’s average, and the past month’s average.

Note the three coefficients.

That regression has a name, and you will meet it tomorrow.