Bayes' theorem calculates a conditional probability in the reverse direction: it finds the probability of a cause or group after observing new evidence. In IB Mathematics: Analysis and Approaches HL, it is part of AHL 4.13 Bayes' theorem and covers a maximum of three events.
Bayes' theorem is
This works because Bayes' theorem reweights the prior probability using how strongly the observed evidence supports each possible cause. The denominator ensures that the updated probabilities are measured against every route that could have produced the evidence.
The denominator often comes from the total probability of observing . If and (A') partition the sample space, then
| Quantity | Meaning |
|---|---|
| Prior probability of | |
| Probability of the evidence when occurs | |
Suppose of a population has a condition. A test gives a positive result for of people with the condition and falsely gives a positive result for of people without it. Let represent having the condition and represent a positive result.
First calculate the probability of a positive result:
Then apply Bayes' theorem:
A frequency interpretation gives the same result. Out of people, about have the condition, and test positive. Of the remaining , about test positive falsely. Thus, of positive results are true positives.
A common misconception is that . These probabilities are generally unequal. Confusing them ignores the base rate, , which can make the posterior much smaller than the test accuracy.
In an IB AA HL response, define the events, show the total-probability denominator, substitute into Bayes' theorem, and give the final probability exactly or to three significant figures. A tree diagram may also provide an efficient route.
