Bayes' Theorem
Also known as: Bayes' rule · Inverse probability
Bayes' theorem is how you update a belief when new evidence arrives. Start with a prior — how likely a hypothesis was before — multiply by how well the hypothesis predicts the new data (the likelihood), and renormalize. The counterintuitive punchline: even a very accurate test for a rare condition mostly returns false positives, because the tiny prior overwhelms the likelihood. It flips 'probability of data given hypothesis' into the thing you actually want: 'probability of hypothesis given data.'
As the prior slides from rare to common, the posterior probability given a positive test updates through Bayes' rule.
Equivalent forms
One line of algebra turns forward probabilities into inference — the engine behind spam filters, medical diagnosis, and modern data analysis.
Where it holds
Dimensional analysis
Bayes' essay was published posthumously in 1763 by his friend Richard Price. Laplace independently rediscovered and generalized it, using it to estimate the mass of Saturn and the ratio of male to female births. It languished for a century as 'inverse probability' before becoming central to modern statistics and machine learning.
- Spam filtering and medical diagnosis
- Bayesian parameter estimation in physics (e.g. LIGO, cosmology)
- Machine-learning classifiers and Kalman filters
- P(A||A) — confusing them is the 'prosecutor's fallacy'
- A positive result on a 99%-accurate test for a rare disease is usually a false positive
- The prior is not optional — 'no prior' quietly assumes a uniform one
What if…
The posterior is driven entirely by the likelihood ratio — evidence speaks loudest when you start maximally uncertain.
Yesterday's posterior becomes today's prior; repeated Bayesian updating converges toward the truth as data accumulate.
Rare-disease test
- prevalence:
- 1%
- sensitivity:
- 99%
- false positive:
- 5%
- — most positives are false