Day 92 — The Kalman filter in one sentence, then in one dimension
Friday, 6 November 2026 · Week 14 of 52 · Time series · Study day · 60 min
It is the most useful estimator in this half of the course and it is usually taught matrices first, which is backwards; the recursive weighted average is the idea and the algebra is bookkeeping.
What you should be able to do tonight
- State what the filter does in one sentence containing no matrices, and say what the gain is a ratio of.
- Implement a scalar Kalman filter from scratch and show it reduces to a known estimator when the process noise is zero.
Tasks 60 min
35 min Work through chapters 4 and 5 of Kalman and Bayesian Filters in Python, the one-dimensional filter and the multivariate Gaussian chapters, running the notebooks rather than reading them.
25 min Write your own twenty-line scalar filter with no library, and check two limits: with zero process noise it converges to the running mean, and with zero measurement noise it tracks the observation exactly. Those two checks are the whole intuition.
Resources
Deliverable
notebooks/day-092-kalman-scalar.ipynb with a hand-written scalar filter and both limiting cases demonstrated.
Checkpoint
What is the Kalman filter doing, in one sentence with no matrices, and what two quantities does the gain balance?
Prepare for tomorrow
Ten minutes tonight so Day 93, Saturday, 7 November 2026 starts clean. This is what the evening email sends you.
Write your pairs hedge ratio problem in state space form on paper: what is the state, what is the observation, and what are the two noise variances.
Note that you have two unknown variances and no obvious way to set them. That is tomorrow’s problem.
Read the statsmodels statespace overview page.