Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 2 9F a Solution Created 2026-09-24 Updated 2026-09-29
The Kolmogorov axioms for a probability measure are nonnegativity, normalization , and countable additivity on pairwise disjoint events. For , conditional probability is defined byBecause the events are pairwise disjoint and their union is , countable additivity gives the law of total probabilityFor any with , the definition of conditional probability and this identity give Bayes theorem:
Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 2 9F b i Solution Created 2026-09-24 Updated 2026-09-29
The prior probabilities of choosing the two urns are equal. Their white-ball probabilities areBy Bayes theorem,
Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 2 9F c Solution Created 2026-09-24 Updated 2026-09-29
Urn has balls, so a draw from it is white with probability . Given that the first ball is white, Bayes theorem gives the posterior probabilityAfter replacement, the second draw is conditionally independent of the first given the urn. HenceConsequently .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 207 1 d Solution 2026-10-03
By Bayes theorem, with respect to Lebesgue measure on ,The omitted constant includes the binomial coefficient and the normalizing constant of the Beta distribution; the uniform prior contributes only the support indicator.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 d Solution 2026-10-03
Conditional independence givesFor each satellite, Bayes theorem gives . ThereforeIf is a kernel density estimator for the simulated marginal masses and estimates the posterior based on satellite , thenThe one-dimensional integrals can be evaluated by numerical integration on a common mass grid.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 350 1 a Solution Created 2026-10-03 Updated 2026-10-05
Let be the probability density function of the unknown and that of the noise, both relative to Lebesgue measure. By independence of random variables, the conditional distribution of the measurement given has density . Thus its likelihood function and the joint density areThe Bayesian model evidence is the marginal data densityBayes theorem gives the posterior density solving this Bayesian inverse problem:This formula applies when . Since by Tonelli theorem, these conditions hold almost everywhere under the marginal data law. Values of a conditional distribution at exceptional data are not determined by the joint law. The posterior mean or a maximum a posteriori estimate can then give a point estimate, while the full posterior density describes the remaining uncertainty.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 350 3 b Solution Created 2026-10-03 Updated 2026-10-05
The notation denotes generalized Gaussian white noise over , not a Gaussian measure supported on : the identity is not a trace-class operator there. For example, realize the observation on a suitable space of tempered distributions. Its Cameron-Martin space of a Gaussian measure is . For deterministic , the stochastic pairing has normal distribution under and is the isonormal Gaussian process indexed by .
Interpret the stated maps between Sobolev spaces as bounded linear operators, as usual. In particular is bounded, so its adjoint operator is bounded on . Hence maps into , which is the property needed here. The stronger smoothing follows by Sobolev duality: boundedness of gives , and therefore . As , the shift belongs to the noise Cameron-Martin space of a Gaussian measure for -almost every .
The white-noise likelihood for a square-integrable shift, obtained from the Cameron-Martin theorem for a Gaussian measure in its white-noise form, isHere is the law of . In an orthonormal basis of , with white-noise coordinates , the pairing under isFor fixed this has mean-square convergence and converges almost surely, since . The stipulated joint measurability allows the likelihood to be used under . One must not replace this expression by a finite , because white noise is not -valued. On the unbounded domain , membership of white noise in a global unweighted negative Sobolev space must not be assumed either; the stochastic pairing avoids that issue.
Let be the actual joint law. The shift formula gives with Radon-Nikodym derivative . DefineFor each fixed admissible , the moment-generating function of a normal distribution givesBy Tonelli theorem, , so for -almost every . The likelihood is finite and strictly positive for -almost every ; Fubini's theorem then gives for -almost every . The marginal observation law is and is an equivalent probability measure to .
The Bayes formula for a dominated observation model therefore definesTo verify that it is the conditional distribution, for measurable sets of unknowns and of data,Thus the posterior distribution is well defined for almost every observation under the actual data law. This is the appropriate almost-everywhere assertion supplied by Bayes theorem; the stated assumptions do not prescribe a canonical posterior at every exceptional generalized datum.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 3I a Solution Created 2026-09-24 Updated 2026-09-29
A cipher has perfect secrecy when the conditional probability of every plaintext given a ciphertext equals its prior probability: whenever . Equivalently, the plaintext and ciphertext are independent random variables.
Fix a ciphertext that can occur. Perfect secrecy requires every possible plaintext to remain possible after observing . For a deterministic decryption rule, two different plaintexts producing require two different keys, so the key space has cardinality at least that of the message space.
In a one-time pad, the message and key belong to the same finite additive group, the key is uniform and independent of the message, and encryption is . For every there is exactly one key , soindependent of . Bayes theorem then gives , proving perfect secrecy.
Past exam of the mathematics course of the University of Cambridge 2021 ia Paper 2 9E a i Solution Created 2026-09-24 Updated 2026-09-25
For , the conditional probability isHenceBecause the form a partition, the law of total probability givesSubstitution proves Bayes theorem in the required form:
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 326 3 1 a Solution 2026-09-29
A Bayesian inverse problem consists of a prior distribution on the unknown , a reference measure on the data space , and a jointly measurable likelihood such that is a probability density function for -almost every . For observed data , Bayes theorem defines the posterior distribution byprovided .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 326 3 3 d Solution 2026-09-29
Every posterior given by Bayes theorem is absolutely continuous with respect to its prior , so it belongs to . If , total-variation well-posedness givesPart c, now using the common dominating measure , yieldsExistence and uniqueness are unchanged. The problem is therefore a well-posed Bayesian inverse problem in Hellinger distance.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 207 6 b Solution 2026-09-28
By Bayes theorem, the frailty distribution among survivors has densityIt is an exponential distribution with rate .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 3 a Solution 2026-09-28
For a fixed observed colour , Bayes theorem givesCompleting the square shows that this is a truncated normal distribution with variance , lower endpoint zero, and untruncated locationHenceConditioning first on and using the law of total expectation yields the dusty colour-magnitude relationAs , the Inverse Mills ratio implies with vanishing derivative, so the asymptotic slope is . As , , so the asymptotic slope is .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 4 a i Solution 2026-09-28
Using Bayes theorem and the fact that the prior is proper,Thus is an unbiased estimator of , and the Harmonic mean estimator of Bayesian model evidence is . The reciprocal is not itself generally unbiased, though it is consistent when the strong law of large numbers applies.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 4 b Solution 2026-09-28
Under , Bayes theorem at the nested value givesSeparability of the prior and equality of the priors implyRearranging proves the Savage-Dickey density ratiowhich is the Bayes factor in favor of the nested model.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 4 iii Solution Created 2026-09-28 Updated 2026-10-03
The graph has no cause of , so is independent of its potential outcomes. By consistency of potential outcomes, the G-formula therefore givesCondition on and use the structural zero from part ii:Consequently the causal risk ratio isApplying Bayes theorem to the second factor giveswhich proves the stated formula. The unmeasured common cause of and does not obstruct this total-effect argument because no mediator effect is being identified.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 221 1 ii Solution 2026-09-28
The directed acyclic graph factorization isThe graph gives and . Therefore Bayes theorem givesConsequentlywhich contains no . This observed equality is a Verma constraint: it is implied by the latent-variable causal graph even though it is not a conditional independence.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 207 3 c iii Solution Created 2026-09-24 Updated 2026-09-25
Bayes theorem turns the categorical distribution prior probabilities and the component multivariate normal densities intoThese probabilities define the label update in the Gibbs sampler.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 4 c Solution Created 2026-09-24 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 219 4 a ii Solution Created 2026-09-24 Updated 2026-10-03
Bayes theorem givesTaking its posterior expectation after subtracting yieldsThus the equality holds for every proper prior and valid likelihood for which the displayed expectations are well-defined.