Theory 1

Bayes’ Theorem

For any events A and B:

P[B|A]=P[B]P[A|B]P[A]

Note: Bayes’ Theorem is sometimes called Bayes’ Rule.

Bayes’ Theorem - Derivation

Start with the observation that AB=BA, in other words event “A AND B” equals event “B AND A”.

Apply the multiplication rule to each product:

P[AB]=P[A]P[B|A]P[BA]=P[B]P[A|B]

Equate them and rearrange:

P[AB]=P[BA]P[A]P[B|A]=P[B]P[A|B]P[B|A]=P[B]P[A|B]P[A]

The main application of Bayes’ Theorem is to calculate P[A|B] when it is easy to calculate P[B|A] from the problem setup. Often this occurs in multi-stage experiments where event A describes outcomes of an intermediate stage.

Note: These lecture notes use alphabetical order A, B as a mnemonic for temporal or logical order, i.e. that A comes first in time, or that A is the prior conditional from which it is easy to calculate B.