We have derived all five Kalman Filter equations in matrix notation. Let us put them all together on a single page.
The Kalman Filter operates in a “predict-correct” loop, as shown in the diagram below.
Once initialized, the Kalman Filter predicts the system state at the next step. It also provides the uncertainty of the prediction.
Once the measurement is received, the Kalman Filter updates (or corrects) the prediction and the uncertainty of the current state. As well the Kalman Filter predicts the following states, and so on.
The following diagram provides a complete picture of the Kalman Filter operation.
The following table describes all Kalman Filter Equations.
Equation
Equation Name
Alternative names
Predict
x^n+1,n=Fx^n,n+Gun
State Extrapolation
Predictor Equation Transition Equation Prediction Equation Dynamic Model State Space Model
Pn+1,n=FPn,nFT+Q
Covariance Extrapolation
Predictor Covariance Equation
Update (correction)
x^n,n=x^n,n−1+Kn(zn−Hx^n,n−1)
State Update
Filtering Equation
Pn,n=(I−KnH)Pn,n−1(I−KnH)T+KnRnKnT
Covariance Update
Corrector Equation
Kn=Pn,n−1HT(HPn,n−1HT+Rn)−1
Kalman Gain
Weight Equation
Auxiliary
zn=Hxn
Measurement Equation
Rn=E(vnvnT)
Measurement Covariance
Measurement Error
Qn=E(wnwnT)
Process Noise Covariance
Process Noise Error
Pn,n=E(enenT)=E((xn−x^n,n)(xn−x^n,n)T)
Estimation Covariance
Estimation Error
The following table summarizes notation (including differences found in the literature) and dimensions.