Change of measure Created 2026-09-24 Updated 2026-09-24
If a measure has density with respect to , thenThis identity is the basis of likelihood ratios and importance sampling.
Minimum-variance importance distribution 2026-10-06
For and , the proposal minimizes the variance of the ordinary unbiased importance sampling estimator. The Cauchy-Schwarz inequality gives , so the minimum variance for independent samples is . The proposal need only cover the nonzero integrand.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 36 4 a Solution Created 2026-10-03 Updated 2026-10-06
Let where , and set it to zero on the g-null set where . The domination assumption makes there and gives . Integrating it also gives . For iid proposals , the importance sampling estimator isCauchy-Schwarz inequality under gives . Direct integration proves unbiasedness, . MoreoverThusThe iid central limit theorem applies to these finite-variance weighted observations:If the variance is zero, this denotes the point mass at zero. This is the bounded-weight importance-sampling moment bound.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 36 4 e Solution Created 2026-10-03 Updated 2026-10-06
At a common proposal budget, the two asymptotic variances areThus prefer the estimator with the smaller proposal-budget variance; the stated assumptions do not give a universal winner. Importance sampling uses every proposal and avoids an empty accepted sample, but those facts alone do not establish variance dominance. The bound from part (a) only says . If , it does imply that importance sampling is at least as efficient asymptotically.
For explicit nonconstant counterexamples in both directions, take and on , and zero outside, with the sharp envelope . For , direct integration gives , andThe accepted-sample mean is better. For the same densities but , the target variance is unchanged, while andImportance sampling is now better. This is the variance reversal under additive shifts of an importance-sampling integrand.
There is a useful distinction about the Rao-Blackwell theorem. The weighted importance estimator is the conditional expectation, given the proposals, of the fixed-denominator rejection estimator . It is not the conditional expectation of the random-denominator mean . Rao-Blackwell variance reduction for the former therefore does not prove a comparison with the latter. This is the Rao-Blackwell identity for a fixed-denominator rejection estimator. The appropriate answer is the proposal-budget variance comparison of importance and rejection sampling, with the empty-output convention specified.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 4 b Solution Created 2026-10-03 Updated 2026-10-06
Choose a proposal probability density function positive wherever is nonzero, up to null sets, and draw independent and identically distributed random variables from . The ordinary importance sampling estimator isThe support condition for importance sampling and absolute integrability give , so this is an unbiased estimator. Its variance, possibly infinite, isLet . If , the Cauchy-Schwarz inequality yieldsEquality holds for proportional to . Thus the minimum-variance importance distribution and the minimum variance areFor a constant-sign integrand this is zero variance. If , the integrand vanishes almost everywhere and the zero estimator already has zero variance. Requiring the proposal to cover all of the target's support, including where , can exclude ; in that stricter class, approaches the same infimum as . This distinguishes coverage of the integral from coverage of every target event.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 4 b Solution Created 2026-10-03 Updated 2026-10-06
Let , and write for the standard normal distribution density. For importance sampling, choose the proposal density , namely the uniform distribution on the target interval. Its importance sampling weight isFor iid uniform draws ,is an unbiased estimator of the target mean, since its expectation integrates . If one chooses not to evaluate , the self-normalized importance sampling alternative has statistical consistency, but generally is not an unbiased estimator.
Alternatively, draw independent random variables with the standard normal distribution, let and , and useConditionally on , the retained draws are iid from the truncated normal distribution, so their average is an unbiased estimator with variance , where is its variance. If the ratio is undefined; one can continue drawing until a prescribed number of retained observations is obtained.
Here importance sampling uses every draw inside the interval, whereas only of the normal proposals are retained. The advantage can also be quantified. Integration using givesFor uniform importance sampling,For the retained-draw ratio with a fixed total proposal budget, its asymptotic variance coefficient is . Thus this importance choice has substantially smaller error for the same proposal count; it also avoids wasting about two thirds of the standard normal distribution draws. This comparison is specific to this well-matched importance sampling proposal; arbitrary proposal choices do not share this guarantee.