Probability and EstimationPart 2 of 5Introductory · Updated July 31, 2026

Bayes' Rule and Competing Hypotheses

When several causes explain an observation, the data alone cannot choose between them, as What Is an Inverse Problem? shows. Bayes’ rule combines prior belief with the evidence from an observation and returns a probability for each candidate explanation.

A forward model, inverted

The core idea is to build a model that predicts data from causes, which is usually tractable, and let Bayes’ rule invert it. For a hypothesis HH and observed data DD:

P(H∣D)⏟posterior=P(D∣H)⏞likelihood  P(H)⏞priorP(D)⏟evidence\underbrace{P(H \mid D)}_{\text{posterior}} = \frac{\overbrace{P(D \mid H)}^{\text{likelihood}} \; \overbrace{P(H)}^{\text{prior}}}{\underbrace{P(D)}_{\text{evidence}}}
  • P(H)P(H), the prior: belief in HH before seeing the data.
  • P(D∣H)P(D \mid H), the likelihood: the probability of the observed data if HH were true. This is a forward-model quantity, and the only term that involves the data.
  • P(D)P(D), the evidence: the probability of the data averaged over all hypotheses considered.
  • P(H∣D)P(H \mid D), the posterior: belief in HH after seeing the data.

The evidence normalises, so only relative likelihoods matter

Over a set of hypotheses {H1,…,Hn}\{H_1, \dots, H_n\} the evidence is the sum of the numerators:

P(D)=∑i=1nP(D∣Hi) P(Hi)P(D) = \sum_{i=1}^{n} P(D \mid H_i)\, P(H_i)

It carries no information about any single hypothesis; it only makes the posteriors sum to one. The posterior therefore depends on how the numerators compare with each other, not on their absolute size. A hypothesis with a high likelihood loses to a rival with a higher one, and a hypothesis with a low likelihood wins if every rival is lower. Bayes’ rule ranks explanations against the alternatives supplied; it does not measure how well any of them fits in absolute terms.

Open set — three listed causesmass must sum to 1 across the listed causesRain  0.50Sprinkler  0.30Burst pipe  0.20forced to pick a winnereven when the true causewas never listedClosed set — causes + H∅"none of these" absorbs the leftoverRain  0.30Sprinkler  0.18Burst pipe  0.12None of these  0.40allowed to answer “none of these”m₀ = prior mass on H∅
Figure 1.Why the grass is wet, using the values of the worked example below. Left: three candidate causes (rain, the sprinkler, a burst pipe), with the mass constrained to sum to one across them. When none explains the observation well, the posterior still concentrates on the least poor fit. Right: the same three plus an explicit 'none of these' hypothesis, which absorbs the remaining mass and allows the posterior to indicate that the true cause is not among the candidates.

The hypothesis set must include “none of the above”

Because the posteriors sum to one over the hypotheses supplied, the set must contain the true explanation. If it does not, all the probability is distributed over incorrect answers and the least poor one is reported with a high probability.

This case is common in practice. Suppose the grass is wet and the candidate causes are rain (H1H_1), the sprinkler (H2H_2) and a burst pipe (H3H_3). The true cause may be one nobody listed: a neighbour’s hose, a spilled bucket, heavy dew. A method that considers only the three listed causes cannot be correct in those cases, and the posterior of the best remaining candidate is inflated by the absence of the true one.

The remedy is a hypothesis H∅H_\emptyset, “none of the above”, with non-zero prior mass m0m_0:

P(Hi∣D)=P(D∣Hi) P(Hi)∑jP(D∣Hj) P(Hj)+P(D∣H∅) P(H∅)P(H_i \mid D) = \frac{P(D \mid H_i)\, P(H_i)}{\sum_{j} P(D \mid H_j)\, P(H_j) + P(D \mid H_\emptyset)\, P(H_\emptyset)}

A simple choice of prior places m0m_0 on H∅H_\emptyset and spreads the remaining 1−m01 - m_0 uniformly over the nn candidates.

Worked example: three weak candidates

Take the three causes above with m0=0.1m_0 = 0.1, so each has prior (1−0.1)/3=0.3(1 - 0.1)/3 = 0.3. Suppose only a narrow strip of the lawn is wet, which none of them explains well: rain would have wetted everything, the sprinkler covers a circle, and the pipe runs elsewhere. Their likelihoods are 0.100.10, 0.060.06 and 0.040.04. The “none of these” hypothesis receives likelihood 0.40.4, representing an unlisted cause as a moderate explanation.

P(H1∣D)=0.10×0.3(0.10+0.06+0.04)×0.3+0.4×0.1=0.030.10=0.30P(H_1 \mid D) = \frac{0.10 \times 0.3}{(0.10 + 0.06 + 0.04) \times 0.3 + 0.4 \times 0.1} = \frac{0.03}{0.10} = 0.30

Likewise P(H2∣D)=0.18P(H_2 \mid D) = 0.18, P(H3∣D)=0.12P(H_3 \mid D) = 0.12 and P(H∅∣D)=0.04/0.10=0.40P(H_\emptyset \mid D) = 0.04 / 0.10 = 0.40, the largest of the four. Without H∅H_\emptyset, rain rises to 0.10/0.20=0.500.10/0.20 = 0.50 on the same evidence, and is reported as the leading candidate only because the alternative was removed. Figure 1 shows both cases.

In Figure 2 the “none of these” likelihood is fixed at 0.40.4. Lowering all three candidate likelihoods together shifts the mass to H∅H_\emptyset. Scaling them by a common factor leaves the ratios among H1H_1, H2H_2 and H3H_3 unchanged; only their total against H∅H_\emptyset moves.

Most likely: Rainat 49.0%
Figure 2.Posterior mass across three candidate causes of wet grass (rain, the sprinkler, a burst pipe) and an explicit 'none of these' hypothesis, with illustrative values. The 'none of these' likelihood is fixed at 0.4. Scaling the three candidate likelihoods by a common factor preserves their relative posteriors and changes only how much mass the 'none of these' hypothesis receives.

Assumptions and limitations

  • The posterior is only as good as the likelihood model and the prior; Bayes’ rule propagates their errors without detecting them.
  • Adding H∅H_\emptyset closes the set but does not identify which unobserved cause was responsible. It prevents the method from attributing the observation to an observed but incorrect candidate, and a result of “no match” can be filtered on downstream, whereas a confident wrong attribution cannot.
  • A single observation often leaves the posterior spread across several candidates with similar likelihoods. Later observations carry partly independent evidence, and using one frame’s posterior as the next frame’s prior lets weak evidence accumulate, at the cost that one misleading frame affects all later ones. Managing that over many measurements and targets is probabilistic data association.

Summary

  • The posterior is proportional to likelihood times prior; the evidence only normalises.
  • Posteriors rank hypotheses relative to each other, not against an absolute standard.
  • An explicit no-match hypothesis prevents the mass from concentrating on the least poor of a set of incorrect candidates.

The next tutorial, Monte Carlo simulation, estimates integrals such as the evidence when they have no closed form.

References

  • Bayes, T., & Price, R. (1763). An essay towards solving a problem in the doctrine of chances. Philosophical Transactions of the Royal Society of London, 53, 370–418. doi:10.1098/rstl.1763.0053
  • Jaynes, E. T. (2003). Probability Theory: The Logic of Science. Cambridge University Press. doi:10.1017/CBO9780511790423
  • Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press. doi:10.1201/b16018
  • Pearl, J. (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann. doi:10.1016/C2009-0-27609-4