4.13 Bayes' theoremIB Maths: Analysis and Approaches HL: Revision notes
Section 1
What problem does Bayes' theorem solve?
Often we know how likely an observation is given a cause, such as , but we want the reverse: how likely the cause is given the observation, . Bayes' theorem turns one conditional probability round into the other.
The starting probability of the cause, before the evidence, is the prior. The updated probability, after the evidence, is the posterior.
Treating and as the same. A test that detects 95% of cases does not mean a positive result is 95% certain.
Section 2
Bayes' theorem for two events
From the formula booklet: The numerator is the probability of the route through that produces . The denominator is , found by the law of total probability: add the probability of every route that produces .
Example: 2% have a condition ; , . Then and .
Think of a tree: the first set of branches is the cause, the second is the evidence. Multiply along branches, add the branches that end in the evidence, then divide.
Section 3
Bayes' theorem for three events
If , , are mutually exclusive and together cover every outcome (a partition), then Example: machines A, B, C make 50%, 30%, 20% of bolts with defect rates 2%, 3%, 5%. , so . Machine C makes only 20% of the bolts but accounts for about 34% of the defective ones.
Leaving out one of the three routes in the denominator. Every route that leads to the evidence must be included.
Section 4
Working with unknowns and complements
Some questions give and ask you to find a missing conditional probability first. Write the law of total probability as an equation: if , , and , then , so .
For the evidence not happening, use the complementary branches: and , so .
Check your answers are sensible: every posterior must lie between 0 and 1, and the posteriors for a partition must add up to 1.
Section 5
Interpreting the answer in context
Bayes' theorem explains why screening a population for a rare condition gives many false positives: although the test is accurate, most people tested do not have the condition, so their false positives outnumber the true positives. With 2% prevalence, only about 16% of positives actually have the condition.
A second, independent piece of evidence updates the probability again. Multiply along a path through all the evidence: for a scam filter, , up from after one check. IB questions often ask you to comment: say what the number means for the person or the system.
Must know
- Bayes' theorem reverses a conditional probability: from to .
- Numerator: the one route through the cause of interest. Denominator: , the sum of all routes.
- Up to three events in a partition: , , .
- Use the law of total probability to find unknown probabilities first.
- Interpret the result: rare causes give low posteriors even with accurate tests.
That's the notes covered.
Carry on to the next subtopic.