A Bayes filter forms a discrete belief about an environment for State Estimation using Bayes’ Theorem.
Notably, we have:
When accounting for error or noise, we can represent a state as:
Example
Given a set of observations, , controls, , true positions, and times , we aim to find the likelihood of an event based on a belief and all previous measurements.
Namely,
We can use a recursive formulation of Bayes’ Theorem to calculate this, assuming all sensor measurements are independent.
We have:
N.B. is a normalisation constant.
Operating under the Markovian assumption that a state is solely dependent on the previous state, we can show:
Namely, we have
- , our observation model
- , the transition model
- , the prior
Matrix Representation
We can use a matrix to represent this model:
This is given an observation and state transition .
We can see an example below, assuming two possible states L and R:

Here, we have observed L. Note that the :
(these values are given)
Note our transition model, which states:
And the initial prior:
After the coefficient is determined, this results in a final state vector which shows the probability of being in L or R (see rightmost vector).