The idea
Bayes' theorem is the rule for reversing a conditional probability. You usually know how evidence behaves given a hypothesis — test accuracy, model recall, symptom rates. You want the reverse: how probable is the hypothesis given the evidence. They are not the same thing, and the gap between them is set by the prior:
Read it as: posterior likelihood prior. The denominator is just the total probability of seeing the evidence at all, summed over both worlds.
The equivalent odds form is often faster mental math and chains cleanly:
Each independent piece of evidence multiplies the odds by its likelihood ratio. A signal with LR = 10 is "worth one order of magnitude of odds" no matter what the prior is.
Why interviews love this: the base rate fallacy. When the hypothesis is rare (fraud, disease, churned-whale accounts), even a strong likelihood ratio leaves the posterior small, because the enormous negative class manufactures false positives faster than the tiny positive class produces true ones. Every "the test is 95% accurate, so you are 95% likely sick" claim is this error.
Worked example
Condition prevalence 1%. Test sensitivity 95% (), specificity 90% (so false positive rate 10%). Take 10,000 people:
| Sick (100) | Healthy (9,900) | |
|---|---|---|
| Test positive | 95 | 990 |
| Test negative | 5 | 8,910 |
Positives total , of which only 95 are real:
Same answer via odds: prior odds , likelihood ratio , posterior odds , probability .
The population table is the interview-safe method: pick a round number of people, fill in the four cells, and read the answer off the positive row. It is nearly impossible to get wrong under pressure, unlike formula juggling.
Cheat sheet
- Bayes:
- Odds form: posterior odds = prior odds LR, where . Independent evidence → multiply LRs.
- Under pressure: build the 4-cell population table with 10,000 people; read off precision = TP / (TP + FP).
| Term | Also called | Formula |
|---|---|---|
| Sensitivity | recall, TPR | |
| Specificity | TNR | |
| FPR | fall-out | |
| precision, PPV | what Bayes computes |
Gotchas:
- — the direction of the bar is everything.
- Rare positives → low precision even with excellent sensitivity and specificity. Precision depends on prevalence; sensitivity does not.
- Multiplying likelihood ratios requires evidence conditionally independent given ; correlated signals double-count and inflate the posterior (naive Bayes tolerates this for ranking, not for calibrated probabilities).
- A p-value is , a likelihood-style quantity — turning it into requires a prior, which frequentist testing never supplies.