Introduction to Kalman Filters

A quantity you cannot observe directly evolves over time, and you receive noisy measurements of it. The Kalman filter is the optimal way to track it, and it does so recursively: only the current estimate is carried forward, never the full history.

The model

The state equation
xt=Axt1+wt,wtN(0,Q)x_t = Ax_{t-1} + w_t, \qquad w_t \sim \mathcal{N}(0, Q)

A hidden state evolving under noise, which the filter estimates from noisy observations of it.

zt=Hxt+vt,vtN(0,R)z_t = Hx_t + v_t, \qquad v_t \sim \mathcal{N}(0, R)

A hidden state evolving with process noise QQ, and observations corrupted by measurement noise RR.

Predict, then update

Predict: apply the dynamics to get a prior for the current state. Uncertainty grows, since time has passed and the process is noisy.

Update: combine that prediction with the new observation. Uncertainty shrinks, since information has arrived.

The rest of this lesson is for subscribers

Unlock every lesson in Advanced Topics in Probability and Statistics, and every other premium course.

Subscribe to continue

Test your knowledge

Questions are only available to subscribers.

Keep reading Advanced Topics in Probability and Statistics

35 lessons in this course, and every other premium course, on one subscription.

  • Every lesson in every course, with the worked examples and interactive simulators
  • Graded questions on every lesson, with explanations for the wrong answers as well as the right one
  • The trainers, timed assessments and brainteaser library that go with them