CalcWorldHub
Probability · CalcWorldHub

Bayes’ Theorem with Three Hypotheses

With three exhaustive hypotheses, multiply each prior by the likelihood of the same evidence under that hypothesis, then normalize the weights. Priors 0.20, 0.50, 0.30 and likelihoods 0.80, 0.40, 0.10 produce posterior probabilities about 41.03%, 51.28%, and 7.69%.

Open calculator
Three hypothesis cards contribute distinct prior-likelihood weights to one evidence total.

Share this article

Three prior-likelihood products are normalized by their shared sum to produce posterior probabilities.
Pair entries by hypothesis before normalization.

Set up three competing hypotheses

The page accepts three prior probabilities and three evidence likelihoods in matching order. Hypotheses H₁, H₂, and H₃ must be mutually exclusive and collectively exhaustive. The prior list should sum to one; each likelihood P(E|Hᵢ) is the chance of the same evidence under that hypothesis.

Enter decimals between zero and one, separated by commas. The calculator requires exactly three values in each list and accepts a prior sum within 0.001 of one to accommodate limited rounding. The entries must stay paired: the first prior multiplies the first likelihood, and so on.

Weight and normalize each hypothesis

For each i, form wᵢ = P(Hᵢ)P(E|Hᵢ). The total evidence probability is D = w₁+w₂+w₃. The posterior is P(Hᵢ|E)=wᵢ/D. This is Bayes’ rule with the total-probability denominator written as a sum over the three possible causes of E.

Using priors 0.20, 0.50, 0.30 with likelihoods 0.80, 0.40, 0.10 gives weights 0.16, 0.20, and 0.03. Their sum is 0.39; dividing each weight by 0.39 gives approximately 0.4103, 0.5128, and 0.0769. The posterior values sum to one before display rounding.

Worked examples

Evidence favors the first two hypotheses

Inputs: Priors = 0.20, 0.50, 0.30; likelihoods = 0.80, 0.40, 0.10

Calculation: Weights = 0.16, 0.20, 0.03; D = 0.39; divide each weight by D

Posterior ≈ 0.410256, 0.512821, 0.076923, or 41.03%, 51.28%, 7.69%.

Evidence shifts weight toward the third hypothesis

Inputs: Priors = 0.40, 0.35, 0.25; likelihoods = 0.10, 0.50, 0.80

Calculation: Weights = 0.04, 0.175, 0.20; D = 0.415; normalize each weight

Posterior ≈ 0.096386, 0.421687, 0.481928, or 9.64%, 42.17%, 48.19%.

Three prior-weighted evidence bars are scaled by their total to form three posterior shares.
The evidence denominator is the sum of all three weights.

Read the normalized result

A hypothesis can have the largest posterior because it began with a larger prior, had a stronger likelihood for E, or both. Compare the weighted terms as well as the final percentages. If one likelihood is zero, that hypothesis receives zero posterior under this model unless all weights are zero, in which case the evidence denominator vanishes.

The calculator displays three posterior percentages to four decimal places, the evidence probability to seven decimal places, and a sum-to-100% note. Because each value is rounded independently, the displayed percentages may add to 99.99% or 100.01% rather than exactly 100%. Use the unrounded weights for later calculations and treat the formatted output as a readable summary.

Check the model assumptions

The hypotheses must cover the relevant possibilities. If an important fourth explanation is missing, normalization forces its probability into the three listed hypotheses and can make all posteriors misleading. The likelihoods also need to refer to one consistent evidence definition; combining values from different tests or time windows changes the model.

Priors may be rounded, but do not exploit the 0.001 tolerance to enter a materially unnormalized set. The page checks the sum but cannot determine whether the prior values are justified. If likelihood estimates are uncertain or dependent on earlier evidence, use a suitable Bayesian model and update sequentially with the correct conditional probabilities.

A prior list summing to one only proves arithmetic normalization, not that the alternatives cover reality. If a material fourth hypothesis was omitted, the three likelihood weights are normalized as though that possibility did not exist. Revisit the hypothesis set when new explanations appear instead of forcing them into the closest existing category.

Document the update for review

A reproducible update records the hypothesis definitions, evidence, prior source, likelihood source, and calculation date. Test the result by multiplying each prior-likelihood pair and verifying that the posterior is that weight divided by the total. If the evidence favors one hypothesis, its likelihood should generally be relatively large, but a strong likelihood alone need not dominate a much smaller prior.

Try alternative plausible priors or likelihoods when the inputs are estimates. For the same three hypotheses, changing only a likelihood may shift posterior weight among all three because the denominator changes too. The calculator is a normalization tool; it does not score evidence, assess source quality, or establish that the hypotheses are complete.

Sources and further reading

Share this article

Browse all articles · Calculator: Bayes theorem with three hypotheses calculator