Skip to main content
Scientific Principles

Bayes's Rule

Bayes's Rule is a mathematical formula for updating the probability of a hypothesis based on new evidence. It underlies many areas of reasoning, from science to everyday predictions.

THE IDEA

Bayes’s Rule is a fundamental principle in probability theory that describes how to update the probability of a hypothesis based on new evidence. It is named after Reverend Thomas Bayes (1701–1761), whose essay on the subject was published posthumously, and later formalized by Pierre-Simon Laplace. The rule states:

( P(h|d) = \frac{P(d|h) \times P(h)}{P(d)} )

where ( P(h) ) is the prior probability of hypothesis ( h ), ( P(d|h) ) is the likelihood of observing data ( d ) given ( h ), and ( P(d) ) is the marginal probability of ( d ) (the sum over all hypotheses of ( P(d|h)P(h) )). This formula provides a coherent way to incorporate new evidence into existing beliefs.

Applications and related prediction rules depend on their assumptions:

  • Laplace’s Law: A specific case for binary events, where the probability of success after ( w ) wins and ( n ) attempts is ( \frac{w+1}{n+2} ). This assumes a uniform prior. For example, if you win a lottery on your first try, your estimated probability of winning next time is ( \frac{2}{3} ).
  • Prediction Rules: Depending on the underlying distribution, different prediction rules emerge. For a memoryless waiting-time model (exponential/geometric), the Additive Rule applies: the expected remaining wait stays constant, so expected total duration is elapsed time plus that remaining wait. For power-law distributions, a Multiplicative Rule gives different predictions.
  • Copernican Principle: J. Richard Gott applied this reasoning to predict the remaining lifespan of the Berlin Wall by assuming his observation time was random within the wall’s existence.
  • Real-world examples: The German Tank Problem, where Bayesian inference was used to estimate the number of tanks from serial numbers; the analysis of car accidents vs. plane crash fatalities; and studies on how children’s prior experiences affect their ability to delay gratification (marshmallow test).

When to use it

  • Updating probability of disease given a positive test result.

  • Predicting the remaining duration of a project based on time already spent.

  • Estimating the success rate of a new product from early sales data.

  • Combining prior knowledge with new evidence in legal reasoning.

FROM THEORY TO EVERYDAY LIFE

In practice

01

Predicting the Remaining Lifespan of the Berlin Wall

J. Richard Gott applied a random-observation-time assumption to the Berlin Wall’s observed age. His interval assigned a 50% chance that the wall’s remaining duration would be between 1/3 of its past duration and 3 times its past duration. The prediction depends on that observation-time assumption.

02

Blackjack and the Additive Rule

If blackjack hands are modeled as independent trials with an unchanged chance of blackjack, the wait to the next blackjack is memoryless. Under the assumptions behind the cited estimate, the expected remaining wait is about 20.7 hands, regardless of how many unsuccessful hands have already been played.

03

Lottery Prediction with Laplace's Law

If you enter a lottery you know nothing about and win on your first try, Laplace's Law suggests your probability of winning next time is (1+1)/(1+2)=2/3. This assumes a uniform prior, but if you have prior experience with similar lotteries, you can adjust the estimate accordingly.

✳

A MOMENT TO REFLECT

Put it to work.

  1. How might Bayes's Rule help you update your belief about a friend's reliability after they cancel plans three times in a row?

  2. Think of a time when you made a prediction about a future event. How could Bayes's Rule have formalized your thinking?

  3. How does the choice of prior distribution affect the posterior in Bayes's Rule? Provide an example where a strong prior might lead to a different conclusion.

Connected ideas

Another lens can bring the same problem into focus.

Often confused with

References

  1. Human Knowledge: Its Scope and Limits — Bertrand Russell (1948)
  2. The Theory That Would Not Die — Sharon Bertsch McGrayne (2011)
  3. Theory of Probability — Harold Jeffreys (1939)
  4. Optimal Predictions in Everyday Cognition — Thomas L. Griffiths and Joshua B. Tenenbaum (2006)

CONTINUE THE CONVERSATION

Source texts

  • Algorithms to Live By The Computer Science of Human Decisions (Brian Christian, Tom Griffiths)
← More scientific principles