Kalman Filter
- Updated2025-10-28
- 2 minute(s) read
The convergence rate of the Kalman filter is relatively fast, but the implementation is more complex than that of LMS-based algorithms.
The Kalman filter is a linear optimum filter that minimizes the mean of the squared error recursively.
Recall that the equation J(k) = E[e2(k)] defines the cost function. The following procedure lists the steps of the Kalman filter algorithm.
- Initialize the parametric vector using a small positive number ε.
- Initialize the data vector .
- Initialize the k × k matrix P(0).
- For k = 1, update the data vector based on and the current input data u(k) and output data y(k).
- Compute the predicted response by solving the following equation:
- Compute the error e(k) by solving the following equation:
- Update the Kalman gain vector defined by the following equation:QM is the measurement noise and P(k) is a k × k matrix whose initial value is defined by P(0) in step 3.
- Update the parametric vector .
- Update the P(k) matrix. QP is the correlation matrix of the process noise.
- Stop if the error is small enough, else set k = k + 1 and repeat steps 4–10.