Conditional Probability and Bayes' Rule
Intuition
Knowing something changes the odds. Among two-dice rolls, is 5/36, but if you are told the first die shows 6, only the 6 outcomes starting with 6 remain and one of them totals 8: the probability becomes 1/6. Conditioning means shrinking the sample space to the outcomes consistent with what you know.
Precise explanation
Bayes' rule reverses a conditional:
For a medical test: is the prior (how common the disease is), the sensitivity, the false-positive rate, and the posterior. For a negative result use and .
Sequential updating: after one result, the posterior becomes the prior for the next (assuming results are independent given the true state).
Worked example
Prior 1%, sensitivity 90%, false-positive rate 5%: , so . A positive test raises the probability from 1% to only about 15% because healthy people vastly outnumber sick ones — the base-rate effect.
Common mistakes
- Confusing (90%) with (15%).
- Forgetting the false positives in the denominator.
- Dividing by .
Why this matters
Naive Bayes text classification (NL-14) is Bayes' rule applied to words, and reasoning about precision versus recall (ML-06) is reasoning about base rates.
References
- OpenIntro Statistics — OpenIntro (
S011) - Think Stats (3rd edition) — Allen B. Downey (
S010)