Evidence adds up on the log-odds scale
The odds form of Bayes' theorem, from the earlier lesson, says posterior odds equal prior odds times the likelihood ratio. Its real power appears when evidence arrives in several pieces . If the pieces are conditionally independent given and given , the likelihoods factor and
Taking logs turns the product into a sum:
Each observation contributes a fixed amount of evidence, measured for example in bits (). A head when comparing a double-headed coin to a fair one has : exactly one bit. A prior of one in a million is about bits, so it takes about 20 heads to reach even odds.
Three consequences:
- Sequential equals batch. Updating on and then using that posterior as the prior for gives the same answer as updating on both at once. Yesterday's posterior is today's prior.
- Order does not matter, since multiplication commutes.
- One impossible observation is decisive. If , the posterior of is regardless of everything else. Conversely, a hypothesis given prior probability can never recover, so do not assign to anything you are not certain is impossible.
More than two hypotheses
With hypotheses , work with unnormalised weights:
Multiply each prior by its likelihood, keep the ratios, and normalise only at the end. To predict the next observation, average the hypotheses' predictions with posterior weights (the posterior predictive):
Worked example
which die am I rolling?
A friend picks one of three fair dice at random: a 4-sided, a 6-sided and a 12-sided die. They roll it three times and report 3, then 2, then 5. Track the posterior after each roll, and find the probability the next roll is a 6.
Show solutionHide solution
The likelihood of any particular face is , or , provided the face exists on that die. Start with weights for (d4, d6, d12).
Roll 3. Multiply by , i.e. by . Posterior .
Roll 2. Multiply by again: weights , posterior . Small numbers keep favouring the small die.
Roll 5. Impossible on the d4, so its weight drops to . The d6 and d12 weights multiply by , giving . Posterior: d6 with probability , d12 with .
Batch check. Over all three rolls the likelihoods are , and , in ratio . Same answer, as it must be.
Prediction. A 6 is possible on the d6 and d12:
Note that the rolls are independent given the die but not unconditionally: each roll changes what you expect from the next. This is conditional independence at work.
Knowledge check
A hypothesis starts at prior odds . Three conditionally independent signals arrive with likelihood ratios , and . What is the posterior probability of the hypothesis?
Independent and dependent evidence
The product rule needs conditional independence under each hypothesis. Two common failures:
- Double counting. The same rumour reaching you through two brokers is one piece of evidence, not two. Given the truth, the second report is almost certain once you have heard the first, so its incremental likelihood ratio is close to .
- Shared error mechanisms. A retest that fails for the same reason as the first test cannot independently confirm it.
The general rule replaces each with the incremental ratio given everything seen so far:
This is always correct; independence is just the special case where the conditioning on earlier evidence drops out.
Worked example
a positive test, then a positive retest
A condition has prevalence . A test detects it of the time and gives a false positive in of healthy people. A patient tests positive twice.
(a) Find the posterior if the two results are conditionally independent given health status.
(b) Now suppose the false positives have a cause: of healthy people carry a cross-reacting antibody and always test positive, while the other test positive with probability per test, independently. The per-test false-positive rate is still . Find the posterior after two positives.
Show solutionHide solution
Prior odds are . One positive has , giving odds and probability .
(a) Independent retest. Multiply by again: odds , probability . Two positives are convincing.
(b) Shared cause. For a sick patient, as before. For a healthy patient,
not . The two-test likelihood ratio is instead of , so the posterior odds are and the probability is about .
Incrementally: after one positive, a healthy patient is very likely an antibody carrier, so , while . The retest's incremental ratio is only about . The second test barely moves the needle: confirmation needs a test that fails for different reasons.
Knowledge check
When is it valid to update on two pieces of evidence by multiplying the prior odds by each one's separate likelihood ratio?
From finitely many hypotheses to an unknown bias
If a coin's heads probability could be anything in with a uniform prior, the same recipe applies with an integral in place of a sum. After heads in flips the posterior density is proportional to , a Beta distribution, and the posterior predictive probability of a head is
Laplace's rule of succession. It behaves the way the discrete examples do: evidence accumulates, the prior's pull (the "+1" and "+2") fades as grows, and the next flip is predicted by averaging over what the coin might be.
Knowledge check
A coin's heads probability is unknown, with a uniform prior on [0, 1]. It lands heads three times out of three. What is the probability the next flip is heads?
Approaching an updating question out loud
- List the hypotheses and priors, including the boring one ("it is just a fair coin").
- Write each likelihood for the observed data, watching for impossible observations.
- Check conditional independence; if it fails, use incremental likelihoods.
- Update in odds for two hypotheses, unnormalised weights for several, then normalise.
- Answer the question asked: a posterior probability, or a prediction averaged over the posterior.
Key takeaways
- With conditionally independent evidence, log posterior odds = log prior odds + the sum of log likelihood ratios; order and batching do not matter.
- For several hypotheses, multiply prior by likelihood, normalise last, and predict with the posterior-weighted average.
- Dependent evidence needs incremental likelihood ratios; correlated errors can shrink a retest's value from a factor of about 20 to about 1.2.
- Base rates are never erased, only outweighed; a zero likelihood or a zero prior is final.
- Under a uniform prior on a coin's bias, .
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).