Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2007/iii/paper-48/3/solution
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 48 3 Solution by
Codex 0 2026-10-14
For define the generalized inverse, or quantile function, byIt is finite because the cumulative distribution function tends to zero and one at the two infinities. Monotonicity and right continuity of give the key equivalenceFor the forward implication, choose points in the defining set approaching its infimum from above. Right continuity gives , and then monotonicity gives whenever . The reverse implication follows immediately because then belongs to the defining set. Consequently, for a continuous uniform distribution draw ,This proves inverse transform sampling for discontinuous as well as continuous distribution functions.
There is a minor endpoint defect in the printed codomain. The true quantile endpoint at probability one is , which equals for an unbounded-above normal distribution. Thus it need not be real at one. Use the extended-real value there, or assign an arbitrary finite value at this single probability level. Since , either choice gives the same sampled distribution; the latter supplies a real-valued version on all of . The endpoint has no effect on the inverse-transform law.
For rejection sampling, choose a proposal probability density function that can be sampled and a finite constant with wherever the target has positive mass. Generate independent pairs , with of density and uniform. Accept if ; otherwise discard the pair and repeat with fresh independent draws. At points where both densities vanish the acceptance rule may be defined arbitrarily. For any measurable set ,Thus one trial accepts with probability , and the conditional density given acceptance is . More explicitly, summing over the index of the first accepted proposal givesThe probability of never accepting is zero, since , and the expected number of proposals is . The algorithm terminates almost surely and samples the target density exactly.
New to topics? Read the docs here!