# Bayes' Theorem

## Theorem

Let $\Pr$ be a probability measure on a probability space $\struct {\Omega, \Sigma, \Pr}$.

Let $\map \Pr {A \mid B}$ denote the conditional probability of $A$ given $B$.

Let $\map \Pr A > 0$ and $\map \Pr B > 0$.

Then:

- $\map \Pr {B \mid A} = \dfrac {\map \Pr {A \mid B} \, \map \Pr B} {\map \Pr A}$

### General Result

There are other more or less complicated ways of saying very much the same thing, all of which can be derived from the basic version with the help of other fairly elementary results.

For example:

Let $\set {B_1, B_2, \ldots}$ be a partition of the event space $\Sigma$.

Then, for any $B_i$ in the partition:

- $\map \Pr {B_i \mid A} = \dfrac {\map \Pr {A \mid B_i} \, \map \Pr {B_i} } {\map \Pr A} = \dfrac {\map \Pr {A \mid B_i} \, \map \Pr {B_i} } {\sum_j \map \Pr {A \mid B_j} \map \Pr {B_j} }$

where $\displaystyle \sum_j$ denotes the sum over $j$.

## Proof

From the definition of conditional probabilities, we have:

- $\map \Pr {A \mid B} = \dfrac {\map \Pr {A \cap B} } {\map \Pr B}$

- $\map \Pr {B \mid A} = \dfrac {\map \Pr {A \cap B} } {\map \Pr A}$

After some algebra:

- $\map \Pr {A \mid B} \, \map \Pr B = \map \Pr {A \cap B} = \map \Pr {B \mid A} \, \map \Pr A$

Dividing both sides by $\map \Pr A$ (we are told that it is non-zero), the result follows:

- $\map \Pr {B \mid A} = \dfrac {\map \Pr {A \mid B} \, \map \Pr B} {\map \Pr A}$

$\blacksquare$

## Also known as

This result is also known as **Bayes' Formula**.

The formula:

- $\map \Pr {A \mid B} \, \map \Pr B = \map \Pr {A \cap B} = \map \Pr {B \mid A} \, \map \Pr A$

is sometimes called the **product rule for probabilities**.

## Source of Name

This entry was named for Thomas Bayes.

## Sources

- 1986: Geoffrey Grimmett and Dominic Welsh:
*Probability: An Introduction*... (previous) ... (next): $\S 1.6$: Exercise $18$ - 1991: Roger B. Myerson:
*Game Theory*... (previous) ... (next): $1.2$ Basic Concepts of Decision Theory