[Paper Review] A Step by Step Mathematical Derivation and Tutorial on Kalman Filters
This paper provides a comprehensive, step-by-step mathematical derivation of the Kalman filter using two distinct theoretical frameworks: orthogonal projection in Hilbert space and Bayesian optimal filtering. It derives the standard prediction and update equations with full analytical rigor, establishing the Kalman filter as the optimal minimum mean-square error estimator under linear-Gaussian assumptions.
We present a step by step mathematical derivation of the Kalman filter using two different approaches. First, we consider the orthogonal projection method by means of vector-space optimization. Second, we derive the Kalman filter using Bayesian optimal filtering. We provide detailed proofs for both methods and each equation is expanded in detail.
Motivation & Objective
- To provide a complete, pedagogical derivation of the Kalman filter using orthogonal projection in Hilbert space of random vectors.
- To re-derive the Kalman filter using Bayesian optimal filtering theory, establishing its equivalence as a MAP estimator.
- To present detailed, step-by-step proofs for each equation in both derivations, ensuring mathematical clarity and completeness.
- To unify two major theoretical interpretations of the Kalman filter—frequentist (minimum variance) and Bayesian (MAP)—within a single framework.
- To serve as a tutorial resource with full derivations for researchers and students seeking deep mathematical understanding of Kalman filtering.
Proposed method
- Uses Hilbert space theory to frame the Kalman filter as a minimum mean-square error estimator via orthogonal projection of random vectors.
- Applies Gauss-Markov estimation theory to derive the optimal linear unbiased estimator under linear-Gaussian assumptions.
- Derives the Kalman filter equations through the Bayesian approach by computing the posterior distribution of the state given measurements.
- Employs the matrix inversion lemma (Woodbury identity) to simplify the expression for the updated error covariance matrix.
- Derives the Kalman gain as the optimal weighting factor that minimizes the posterior error covariance.
- Combines Gaussian likelihood and prior distributions to derive the posterior as a Gaussian, enabling closed-form update equations.
Experimental results
Research questions
- RQ1How can the Kalman filter be rigorously derived from the orthogonal projection principle in Hilbert space?
- RQ2What is the Bayesian interpretation of the Kalman filter, and how does it lead to the same update equations as the frequentist approach?
- RQ3What is the mathematical justification for the Kalman gain matrix in minimizing estimation error variance?
- RQ4How do the prediction and update steps emerge from the joint Gaussian distribution of state and measurement?
- RQ5What role does the matrix inversion lemma play in simplifying the posterior covariance expression?
Key findings
- The Kalman filter is mathematically equivalent to the minimum mean-square error estimator derived via orthogonal projection in Hilbert space.
- The posterior distribution of the state, given the measurements, is Gaussian with mean equal to the updated estimate and covariance equal to the inverse of the sum of prior and measurement precision matrices.
- The Kalman gain matrix is derived as $ K_k = P_{k|k-1}H_k^T(R_k + H_kP_{k|k-1}H_k^T)^{-1} $, which minimizes the posterior error covariance.
- The updated state estimate is given by $ \hat{x}_{k|k} = \hat{x}_{k|k-1} + K_k(z_k - H_k\hat{x}_{k|k-1}) $, representing a correction of the predicted state by the innovation.
- The updated error covariance is $ P_{k|k} = (I - K_kH_k)P_{k|k-1} $, which is always smaller than the prior covariance, confirming error reduction.
- The derivation confirms that the Kalman filter is optimal under the assumptions of linearity and Gaussian noise, minimizing the mean-square estimation error.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.