← Back to Blog

Kalman filter

engineering > control

2026-07-042 min read

#engineering #control #systems #kalman #gaussian-elimination

Before learning Kalman filter, it's essential to understand Bayes' theorem, as the Kalman filter is fundamentally based on it.

Bayes' Theorem

The Bayes' Theorem is an approach to statistical inference, where it is used to invert the probability of observations given a model configuration.

Statement of theorem

Bayes' theorem is stated mathmatically as the following equation:

P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}

where AA and BB are events and P(B)0P(B) \neq 0.

Proof

For events (Discrete)

P(AB)=P(AB)P(B), if P(B)0P(A|B) = \frac{P(A \cap B)}{P(B)},\ \text{if} \ P(B) \neq 0

where P(AB)P(A \cap B) is the probability of both AA and BB being true. Similarly,

P(BA)=P(AB)P(A), if P(A)0P(B|A) = \frac{P(A \cap B)}{P(A)},\ \text{if} \ P(A) \neq 0

Solving for P(AB)P(A \cap B) and substituting into the above expression for P(AB)P(A\|B)

Bayes' Filter

What is Kalman filter?

The Kalman Filter assumes a linear system with Gaussian noise.

State Transition Model

xk=Fxk1+wkx_k = Fx_{k-1} + w_k