Bayes’ Theorem describes the probability of an event, given the probability of a prior.

Namely,

Within State Estimation, we can create a simple example to generate a probability space for a robot at a time period (without looking at other time periods).

Given a robot in a 4-room maze with rooms with probabilities (the prior).

We can find the probability that the robot is in a room trivially, with the form:

Given a sensor with accuracy, such that there is a chance of being in an adjacent room, and given a sensor measurement of the robot being in , we have .

In reality, we will only have sensor measurements. So given the sensor measurement , using Bayes’ Theorem, we can find the probability that the robot is actually in as:

As a note here, we don’t have , but this can be determined from the Law of Total Probability, as such:

Hence, if we calculate all of the expectations, we find that .