Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 5 b Solution Created 2026-10-03 Updated 2026-10-06
The support condition for importance sampling is missing from the printed assertion. Assume , , and for -almost every . For a proposal , rejection has conditional probability . Its unconditional probability is , so the conditional density of a rejected draw isThus the rejected-draw weight is precisely , andConditionally on any positive rejection count among independent proposals, the rejected locations have this iid conditional density. Henceis an unbiased estimator conditionally on , and therefore also conditionally on the event . This is importance sampling from the rejected-proposal distribution.
The nonstrict assumption alone does not suffice: the rejected distribution may completely miss part of the target support. For example, let be uniform on , , , and . All rejected proposals lie in , where , so the displayed estimator is always , whereas . This remains a counterexample after conditioning on . A strict envelope, such as choosing larger than the essential supremum of , repairs the missing support condition. Near-equality can still give high-variance weights, even when it remains an unbiased estimator.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 5 b Solution Created 2026-10-03 Updated 2026-10-06
Let and . With conditional independence of the binary observations given the latent function, defineThe prior distribution is specified on the precision , not on . Its Jacobian determinant givesand the marginal posterior density is proportional to . Working instead with precision or logarithmic coordinates is possible, provided all corresponding Jacobian determinants are included.
Choose an importance sampling density covering the support of , draw independently from it, and use the nonnegative unbiased likelihood estimatorEach summand integrates to , proving unbiasedness. A simple always-valid choice is the latent Gaussian prior distribution, , when the covariance matrix is nonsingular. Then the estimator is just the average of the bounded values . For duplicate inputs, sample only the distinct latent values and multiply all likelihood contributions at each common input. A Gaussian approximation to the latent posterior distribution, or its mixture with the Gaussian prior distribution, can reduce relative variance while keeping complete support. Its approximation does not replace the exact weights.
The pseudo-marginal Metropolis–Hastings algorithm stores both the current and its estimator randomness ; write their sampling law as . Propose , independently generate , compute , and accept the pair withHere denotes the proposal probability density function from to . On rejection retain both the old parameter and the old likelihood estimate. Initialize with a positive estimate. One must not independently refresh the denominator after rejection.
Correctness follows from the extended posterior densityThe pair proposal is . Its Metropolis–Hastings acceptance probability simplifies to the displayed ratio, since the auxiliary densities cancel. Hence detailed balance holds for . Integrating over gives by unbiasedness, so the parameter marginal distribution is exactly the intended posterior distribution for any fixed positive . This is exactness of the stationary target, not independent exact samples or a guarantee of rapid convergence. Large relative variance of the likelihood estimates can produce long holding times, so marginalizing does not by itself guarantee an improvement in mixing time.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 b Solution 2026-10-03
Treat the simulated pairs as samples from the prior . The numerator and denominator of the posterior mean are then ordinary Monte Carlo estimators, sowhere the normalized importance sampling weights areThe common Gaussian normalizing constant cancels.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 4 28K a Solution Created 2026-09-24 Updated 2026-10-03
Assume that wherever on the part of the space relevant to . The importance sampling algorithm draws independent and identically distributed random variables from , forms the weightsand returnsA change of measure givesHence the estimator is unbiased whenever the expectation exists, and, if , the strong law of large numbers gives almost surely.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 4 a Solution Created 2026-09-24 Updated 2026-09-25
One simple algorithm is importance sampling from the prior. Draw independently from and assign weight . Thenestimates the Bayesian model evidence, and the normalized weights represent the posterior. A weighted histogram or kernel density estimation of the estimates the marginal ; discarding performs the marginalization.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 4 e Solution Created 2026-09-24 Updated 2026-09-25
Compute the joint evidence by one-dimensional numerical integration,Equivalently, the individual outputs giveQuadrature or one-dimensional importance sampling evaluates this integral without entering the space.
Rejected-proposal distribution 2026-10-06
Support condition for importance sampling 2026-10-06
An importance sampling proposal must be positive wherever the target-weighted integrand can contribute. The usual sufficient condition is that the target probability is absolutely continuous with respect to . Otherwise multiplying observed draws by cannot recover a missing part of the integral. A strict rejection envelope supplies this condition for the rejected-proposal distribution.
Unbiased likelihood estimator 2026-10-06
An unbiased likelihood estimator has expectation equal to the likelihood function at each parameter. A pseudo-marginal algorithm requires this estimator to be nonnegative. Importance sampling provides for independent random variables , provided the proposal covers the target support. Relative variance affects the mixing time even though unbiasedness guarantees the correct marginal target.