For the linear-Gaussian model with , and with , how do you derive the Kalman filter predict and update equations from the conditioning rule for Gaussians?
Probabilistic models, Kalman filter
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can derive the Kalman gain from the joint Gaussian of state and observation.
Key idea
After the predict step, . The pair is jointly Gaussian, so conditioning on gives with .
Steps
- Predict. If , then is Gaussian with and .
- Joint of the state and the observation: the mean is . Covariances: , , .
- Use the Gaussian conditioning rule: and .
- Define the Kalman gain . Then and .
- The term is the innovation: the difference between the observation and its prediction.
- Scalar check with : . If then and we trust the data. If then and we trust the prediction.
- The posterior covariance does not depend on the observed , so it can be computed offline.
Common mistakes
- Using instead of in the gain.
- Using the transposed gain, or writing and dropping .
- Forgetting that the predict step increases the uncertainty, by .
How long your answer should be
A page. About 6 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: How does the Baum–Welch algorithm (EM for an HMM) derive its updates for the transition probabilities and emission probabilities ?
Next in Probabilistic models: For a mixture of Bernoulli distributions on binary vectors , with , how do you derive the E-step and M-step updates of EM?