Mathematics · Ch 9 — Probability
Bayes' Theorem
Bayes' Theorem
Bayes' theorem (also called Bayes' law or Bayes' rule) is a direct extension of conditional probability that lets us go 'in reverse' - from knowing an outcome occurred, back to the probability that a particular underlying cause produced it. It is especially useful for computing such posterior probabilities.
Theorem. If are mutually exclusive and exhaustive events with for each , and is any event (a subset of the union of the ) with , then
Proof. Because the are exhaustive, can be written as , and because the are mutually exclusive, so are the pieces . Property 10 (additivity over mutually exclusive events) then gives - this is the law of total probability, used repeatedly to compute in every worked example below. By the multiplication theorem, each term is , so . Meanwhile ; substituting the sum for in the denominator gives the theorem.
Three kinds of probability appear in the formula: the are prior probabilities, known before the experiment; the are likelihood probabilities, telling us how likely is under each possible cause ; and the are posterior probabilities, obtained only after the experiment (after is observed). …
What this figure shows. A diagram showing three mutually exclusive, exhaustive causes E1, E2, E3 each feeding into event A, illustrating how A splits into the disjoint pieces A intersect E1, A intersect E2, A intersect E3 that the proof sums over. …
Worked out. A ball is moved from a first bag to a second bag without noting its colour, then a ball is drawn from the second bag; the law of total probability gives the probability the drawn ball is blue. …
Worked out. Given the chances of three candidates becoming manager and their conditional probabilities of introducing a bonus scheme, finds the posterior probability that X is the manager given the bonus was introduced. …
Worked out. Given the market share of three car-rental agencies and their repair rates, finds the posterior probability a repaired car came from a specific agency. …