Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 4 28L c Solution Created 2026-09-24 Updated 2026-09-25
Sincethe first full conditional isHolding fixed and comparing powers and exponential rates givesThe assumed parity of makes a positive integer.
Initialize arbitrarily. At iteration , putDraw independent uniform variables and setBy sampling an integer-shape gamma distribution, this has the required law. Next draw independently and setThese are exactly the two full-conditional updates of the normal mean-precision Gibbs sampler. After discarding burn-in, the pairs are approximate samples from the posterior by Markov chain Monte Carlo.