Bayes' theorem is just updating beliefs with evidence
A 99%-accurate test sounds iron-clad until you realize that, for rare diseases, a positive result is probably wrong — and Bayes explains exactly why.
A hospital screens its general population for a rare disease that affects one person in every thousand. The test is 99% accurate. A patient gets a positive result. What is the probability they actually have the disease?
Most people say something around 99%. The real answer is roughly 9%.
That gap — between the answer that feels right and the answer that is right — is where Bayes’ theorem lives.
Belief before evidence
Every inference problem starts with a prior: what you believe before you see the evidence. In the hospital scenario, the prior is the disease’s prevalence in the population — one in a thousand, or 0.001.
The prior is not a guess. It is structured information. It encodes everything you knew before the test result arrived. Ignoring it is the mistake. Specifically, it is the base-rate fallacy: treating the test’s accuracy as if the prior were 50-50, as if you had no idea whether the disease was common or vanishingly rare.
Accuracy numbers live on the test. Base rates live in the world. Bayes forces you to multiply them together.
The machinery
Bayes’ theorem in words: the probability of a hypothesis given evidence equals the probability of the evidence given the hypothesis, times the prior probability of the hypothesis, divided by the total probability of seeing that evidence at all.
In a notation that avoids symbols: posterior equals likelihood times prior, normalized.
The normalization step is the part people skip. It forces you to account for all the ways the evidence could have appeared — not just the true-positive path, but also the false-positive path. A test that is 99% accurate still misfires 1% of the time. When a disease is rare, that 1% error rate fires against a very large population of healthy people, and their false positives swamp the true positives from the tiny sick population.
Walking the numbers
Imagine exactly 1000 people. One has the disease. Nine hundred and ninety-nine do not.
The test has 99% sensitivity (it correctly identifies sick people as positive) and 99% specificity (it correctly identifies healthy people as negative).
From the one sick person: the test returns positive with 99% probability, so expect 0.99 true positives. Call it 1.
From the 999 healthy people: the test returns positive with 1% probability (the false-positive rate is 1 minus specificity). So expect 0.01 times 999, which is roughly 10 false positives.
Total positive results: about 11. True positives among them: 1. So the probability that a positive result indicates actual disease is 1 divided by 11, which is roughly 9%.
The test is not broken. It is working exactly as designed. The problem is not the test — it is the prior. When a disease is rare, even a small false-positive rate generates far more false alarms than the true signal.
Among ~11 positive results from 1 000 screened people, 10 are false alarms. The test is accurate; the disease is just rare.
Why this feels wrong
Human intuition anchors on the test’s accuracy. 99% sounds nearly certain. The mind does not naturally adjust for how rare the event is. This is not stupidity — it is a systematic bias, documented across doctors, lawyers, judges, and data scientists with statistics degrees.
The base-rate fallacy: treating the likelihood (how well the test performs) as if it were the posterior (the actual probability you care about), without weighting by the prior. It is the cognitive equivalent of forgetting to normalize.
The problem is especially sharp in rare-event detection: fraud, terrorism flags, rare genetic mutations, rare cyberattack signatures. Every high-stakes screening system built without explicit Bayesian reasoning will produce this exact failure mode. The practitioners who designed the test report accuracy metrics. The operators who deploy it face posterior probabilities. These are different quantities.
The posterior is not the end
Bayes’ theorem does not just produce a single answer. It produces a new prior for the next round of evidence.
A patient who tests positive on the initial screen enters a new regime. Their prior is no longer 0.001 — it is roughly 0.09. Now run a second, independent confirmatory test. With a 9% prior instead of 0.1%, the same 99%-accurate test returns a positive result that now carries roughly a 91% posterior probability of true disease. The posterior from round one becomes the prior for round two.
This is the deep idea: Bayes is not a one-shot formula. It is a belief revision protocol. You are not computing a final truth — you are managing a state of knowledge that updates every time new evidence arrives.
Sequential Bayesian updating is exactly what happens informally when a good clinician orders a follow-up test, or when a detective eliminates suspects one clue at a time. The protocol formalizes what careful thinkers were already doing intuitively. The formula just makes the reasoning auditable.
The symmetry that makes it a theorem
The reason Bayes’ theorem works is not mathematical mysticism. It follows directly from the definition of conditional probability.
The probability of A given B equals the probability of both A and B occurring divided by the probability of B alone. The probability of B given A equals the same joint probability divided by the probability of A alone. Divide one equation by the other and you get Bayes: likelihood times prior, divided by the marginal.
What makes it interesting is the direction. You often know how likely evidence is given a hypothesis — test manufacturers measure sensitivity and specificity in controlled trials. You rarely know directly how likely a hypothesis is given evidence — that is what you want to infer. Bayes lets you flip the direction of the conditional, using the base rate as the currency of exchange.
Where this breaks down
Bayes requires a prior. If the prior is wrong — if the disease prevalence in your particular subpopulation differs from the general figure — the posterior is wrong, proportionally. A genetic test applied to a family with documented history has a very different effective prior than the same test applied to a random screening.
This is not a flaw to dismiss Bayesian reasoning. It is an invitation to be explicit about assumptions. Frequentist methods also embed assumptions; they just hide them in study designs and p-value thresholds. The Bayesian framework at least surfaces the prior so you can argue about it.
The other failure mode is assuming independence. The confirmatory test must be genuinely independent of the first. If two tests share the same mechanism or error modes, their results are correlated, and treating them as independent will dramatically overstate your confidence.
What it actually means to understand this
Most statistics education teaches Bayes as a formula to plug numbers into. That is the wrong frame. The formula is trivial; the insight is durable.
The insight: accuracy and trustworthiness are different properties. A measurement can be highly accurate and still be mostly noise in a low-base-rate regime. Every claim, every signal, every model output lives against a prior. Ignoring the prior produces confident conclusions that are almost always wrong.
The medical test is the canonical example because the numbers are clean and the stakes are legible. But the same logic governs: a classifier flagging fraud in a 0.01% fraud rate population; a content moderation model marking spam in a 0.1% spam-rate inbox; an anomaly detector triggering on a once-a-year event type. Any system that produces positives without accounting for how rare the positive class is will be overwhelmed by false alarms.
Good practitioners do not memorize the formula. They build the habit of asking: what is the base rate? Before evaluating any accuracy claim, before trusting any model, before acting on any alert. The formula will always be there when needed. The habit is what changes how you see inference.
That is what Bayes is actually teaching. Not arithmetic — epistemology.