Bayes' theorem Created 2026-09-24 Updated 2026-10-14
For a finite measurable partition with positive probabilities, and an event of positive probability,Its beauty is that a model predicting observations from a hidden state can also describe uncertainty about the state after an observation. Each numerator is a joint probability; the denominator, supplied by the law of total probability, makes the answers sum to one. This is a direct consequence of conditional probability, rather than an extra axiom.
Select the coin from law of total probability once, then toss that same coin repeatedly, with conditionally independent tosses given its identity. Let denote the -head coin, initially of prior probability . After one head , its posterior probability isThe likelihood of a head is larger under , but remains less likely than the other coin because its prior probability was smaller. A large likelihood for an observation does not itself imply a large posterior probability for the hypothesis.
After an ordered sequence containing heads and tails, its likelihood ratio between the two coins is . Bayes' theorem therefore gives posterior oddsEach head multiplies the odds by and each tail by . Three heads give posterior probability , still below one half; four give , above one half. The finite-model update and the distinction between prior probability, likelihood and posterior probability are set out in MIT 18.05, Reading 11: Bayesian Updating with Discrete Priors.
Updating uncertainty about one selected coin after repeated observations
. Details. The hidden selection also creates dependence. Each toss has marginal head probability , but two heads have joint probability , greater than . Their indicator covariance is . Seeing a head makes the head-favoring coin more likely, so it also raises the chance of a future head. This is covariance induced by a shared latent variable, despite conditional independence of the tosses given the coin.
Historically, Thomas Bayes's essay on an unknown success probability appeared in 1763 after his death, communicated by Richard Price. Its opening problem asks how observed successes and failures constrain that unknown probability; Price's introductory letter explains the connection to reasoning from experience. That is a more substantial inference problem than simply rearranging today's elementary identity. [ref]
https://www.gtfp.cs.rhul.ac.uk/pulskamp/Bayes/bayesessay-rjp.pdf. Bayes, An Essay towards solving a Problem in the Doctrine of Chances, 1763; original text transcribed, introductory letter and statement of the problem
Odds under at-least-one-positive selection 2026-10-14
For studies conditionally independent given the truth of one relationship, the event that at least one is positive has probability under the alternative and under the null. Its Bayes factor therefore gives the displayed posterior odds. For interior error probabilities these tend back to the prior odds . If power exceeds size, the Bayes factor decreases to one: the quotient of geometric sums is a weighted average of decreasing powers .
This result concerns the coarsened selection event. Full observed results instead multiply their individual Bayes factors, and concordant evidence can accumulate without this bound. It is a useful example of information discarded by publication bias.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 44 1 b Solution Created 2026-10-03 Updated 2026-10-14
The positive result's posterior odds of true to false areThus being more likely true requires . The question's weak inequality is necessary; equality gives a tie rather than a strict preference.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 44 1 d Solution Created 2026-10-03 Updated 2026-10-14
For these two simple hypotheses the Bayes factor is the ratio of their normal probability densities:Therefore , and the posterior odds are .
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 44 1 h Solution 2026-10-14
For , both event probabilities tend to one, so the posterior odds tend to . If , the event's Bayes factor decreases toward one. To see monotonicity, put and writeThe last quotient is a weighted average of the decreasing values , with weights . Adding the next, smaller value decreases the average.
Thus the selection rule becomes less informative as more teams try: eventually a positive study is almost certain even under the null. This explains the hotter-field interpretation in Ioannidis's model. It describes evidence retained by this particular selection event, rather than proving that every individual study becomes less reliable or that the full accumulated evidence gets weaker.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 44 1 i Solution 2026-10-14
Consistent independent replications should strengthen confidence; contradictory results can weaken it. The change depends on the actual evidence. If of studies are positive and all labels are available, the posterior odds areFor the normal model, retaining the full independent statistics instead givesEach study multiplies the existing odds by its own Bayes factor. Reading a complete synthesis is therefore different from learning only that somebody obtained a positive result. Publication bias, dependence between studies and changes in study design must be accounted for before applying the independent-product formula.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 36 4 a Solution Created 2026-10-03 Updated 2026-10-14
Compute the Bayesian model evidence for each model by integrating its sampling density against its parameter prior:The posterior odds are the prior odds multiplied by the Bayes factor:The parameter priors used for evidence must be normalized; arbitrary normalization constants in model-specific improper priors would make this comparison undefined.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 36 4 c Solution Created 2026-10-03 Updated 2026-10-14
Integrating the positive component's normal distribution prior gives its prior predictive distribution:The negative component gives . Let and denote those centred normal densities. The point-null mixture prior assigns component odds , so the posterior odds of the positive component areIts posterior probability is . Evidence depends on , so large effects of either sign favour the positive component. This is the marginal distribution before observing , not the posterior predictive law for a second observation conditional on it.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 4 27I Solution Created 2026-09-24 Updated 2026-10-14
Write for the two simple hypotheses, with prior probabilities and densities . Under zero-one loss, the posterior expected losses of choosing and are respectively the posterior probabilities of and . A Bayes decision rule therefore chooses ifchooses for the reverse inequality, and may randomize at equality. With positive priors this is a likelihood-ratio test with cutoff .
For a test , its prior risk is . Choose and boundary randomization so that the likelihood-ratio test has size , and choose priors with ratio . Equivalence of normal and extensive analyses makes the pointwise posterior minimizer minimize this prior risk over all randomized tests. Thus for any ,This proves the Neyman-Pearson lemma: a likelihood-ratio test of size has greatest power among tests of size at most . Such a cutoff and randomization come from a quantile of the likelihood ratio under ; always reject where . Endpoint cutoffs are handled directly or by their limiting rules.
For the remaining assertions use the usual common-support formulation with positive densities. A family has a monotone likelihood ratio in if for every , is a nondecreasing function . A monotone test here is an upper-cutoff test , , including constant tests. It does not mean an arbitrary smoothly increasing randomized rejection function.
Put . For a finite cutoff, choose between the values of below and above , with when the boundary has positive probability. On , and ; on , both are nonpositive. At a boundary with positive mass . ThereforeWhen there is probability on both sides, finite positive monotone ratios below the cutoff bound those above it away from zero, so can be positive and finite. A boundary with positive mass instead supplies the positive finite value . If the cutoff yields a constant test on the support, positivity on the common support proves strict propagation directly: a test identically zero cannot have greater power, and for a test identically one any positive-probability nonrejection by the competitor remains positive-probability at the larger parameter. Hence implies .
Let , taking when this set is empty. Below there is no positive difference. Above a finite there is a smaller parameter with positive difference, which propagates upward; the same reasoning applies when . ThusNo assertion at itself is needed.
For the final request fix any cutoff and prior density . Set and . The posterior odds are . If , thenEvery bracket is nonnegative by monotone likelihood ratio. Equal statistics make the bracket zero, so the ratio depends only on . Dividing where the posterior is defined proves the posterior odds are nondecreasing in , with extended values allowed when one posterior mass is zero. This proves that posterior odds are monotone under a monotone likelihood ratio without restricting the prior's shape.
The common positive-support condition is material to the printed strict inequality. Under the broader definition permitting zero densities, take a two-parameter family on with and . Its likelihood ratio is nondecreasing. The cutoff test rejecting has greater power than the test rejecting only at parameter zero, but both have power one at parameter one. Thus the strict assertion needs the usual positivity convention; it is false without it.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 36 1 b Solution Created 2026-10-03 Updated 2026-10-14
Use the orientation that favours the null hypothesis:For a composite model the denominator is its Bayesian model evidence, obtained by integrating the likelihood against the model's prior distribution. This Bayes factor exceeds one when the observed data have greater marginal probability under . By Bayes' theorem,Thus the posterior odds equal the prior odds multiplied by the Bayes factor. The reciprocal orientation instead gives .
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 36 1 h Solution Created 2026-10-03 Updated 2026-10-14
No. A Bayes factor favouring the alternative means , but the posterior odds are . They are less than one only if . For example, prior odds of on the null hypothesis, combined with a Bayes factor of in favour of the alternative, still give posterior odds of on the null hypothesis. An unusual claim can require substantial evidence to overcome low initial plausibility.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 36 2 h Solution Created 2026-10-03 Updated 2026-10-14
The posterior probability answers a natural directional question: how likely is this area's risk to exceed the reference risk? It accounts for uncertainty rather than declaring an increase from the point estimate alone. However, it does not distinguish a negligible increase from a clinically important one, and it combines prior beliefs with evidence from the data. With an informative prior distribution, a large probability may already have been present before observation, or a genuinely surprising count may be strongly moderated by the prior.
To measure the evidence supplied by the observations, compare posterior and prior odds. If under the chosen proper prior distribution, the Bayes factor for increased versus nonincreased risk isThis follows from the posterior odds identity when the two models use the original prior conditioned respectively on and . For the specified prior, is the upper tail at one of ; centering its mean at one does not make this tail probability exactly . To address seriousness itself, choose a substantive excess and report the posterior probability of , together with an interval for the size of the excess. An evidence ratio and a meaningful risk threshold answer different, complementary questions.
Prior odds 2026-10-14
For two exhaustive mutually exclusive models of positive prior probability, prior odds compare their probabilities before observing the data. They must be distinguished from the parameter prior distributions within those models. A Bayes factor multiplies these prior odds to produce posterior odds.
