Vanilla Kalman Filter
BS-free introduction to the math of Kalman filter
Last updated
Was this helpful?
BS-free introduction to the math of Kalman filter
Last updated
Was this helpful?
Time evolution
Observation or measurement
Expand the recursion, we have Feynman-Kac formula or path integral
Thus, we assume
Use the recursion again,
We must have
Therefore,
The covariances
where
Therefore,
Are they consistent? To show that
Given the posterior, the prior covariance for next step
Thus, the forecasted covariance the composed of measurement noise and evolution noise
Forecast state mean using posterior as prior
If assume , then the state is characterized by , i.e.
Given observations up to , what is the distribution of state ?
If there is one more observation , what is the distribution of state ?
If we assume the priors, transition probabilities and emission probabilities are all normal, then the posterior of state is also normal.
Maximize __ on both sides, the LHS __ , the RHS
where is the Kalman gain.
Given the prior covariance, minimize the posterior MSE
But previously we got .
Thus,
Compute Kalman gain
Make a measurement and a prediction using forecast state __ __
Compute posterior mean using new observation
Compute posterior covariance