Recursive Bayes Filter
The probabilistic foundation: belief, prediction, and correction.
The Recursive Bayes Filter provides a framework for recursive state estimation. It estimates the state of a system given observations and controls :
Definition of the belief
The belief is the posterior distribution of the current state given all observations and control inputs :
To update the belief based on new measurements and controls we apply Bayes' rule.
Mathematical derivation
Using Bayes' rule, we expand the belief in Eq. (1) as:
where:
- is a constant independent of the current state . It is the normalizer (also called the evidence) for the new observation , ensuring the posterior integrates to 1.
- is the prior — our predicted belief about the current state before incorporating the latest measurement. It comes from the motion model.
- is the likelihood, given by the observation model.
Continuing from Eq. (2), we introduce the Markov assumption:
The current measurement is conditionally independent of past measurements and control inputs given the current state .
This simplifies to:
So:
Applying the law of total probability to Eq. (3):
We now apply two additional Markov assumptions:
- State transition assumption: The current state depends only on the previous state and the latest control input.
- Control independence assumption: The state at time does not depend on the future control .
With these, the belief simplifies to:
The last factor is exactly the previous belief — and that's the recursion:
Prediction and correction
The Recursive Bayes Filter can be viewed as a two-step recursive process.
Prediction step (motion model)
Estimate the new belief from the previous belief and the control input:
- Prediction based on control commands (motion).
- is the predicted belief before incorporating sensor measurements.
Correction step (observation model)
Incorporate the latest sensor measurement to refine the prediction:
- Adjusts the prediction using actual sensor data.
The animation shows the full cycle on a 1-D state: a Gaussian prior is pushed forward by the motion model (covariance grows, mean shifts), the measurement likelihood arrives, and the correction step fuses them into a sharper posterior. The Kalman gain controls how strongly the measurement pulls the estimate — large when the prediction is uncertain, small when the measurement is noisy.
Summary
- The Bayes filter is a general probabilistic framework for recursive state estimation. Two essential steps:
- Prediction — estimate the current state from a motion model and previous state.
- Correction — refine the prediction using the latest sensor observations.
- The Bayes filter itself does not specify how to compute the integrals or which distributions to use.
- Practical realizations of the Bayes filter include:
- Kalman Filter (KF) — linear systems with Gaussian noise.
- Extended Kalman Filter (EKF) — nonlinear systems using local linear approximations.
- Particle Filter (PF) — nonlinear systems with non-Gaussian / multimodal beliefs.
Each filter is a specific solution tailored to the system dynamics, sensor models, and noise properties.
Reading material
On the Bayes filter
- Thrun, Burgard, Fox. Probabilistic Robotics, Chapter 2.