Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/iii/paper-47/5/a/solution

For the Metropolis–Hastings algorithm, start at a state with positive target density, propose from , and generate an independent uniform draw. Accept the proposal with probability
On rejection retain , including repeated states in the chain; removing repeats would generally change its stationary law. The accepted-flow density satisfies
which is symmetric in its two states. This proves detailed balance and hence invariance of the target distribution, including the holding probabilities on the diagonal. Unknown common normalization constants cancel in the ratio. Invariance alone does not establish convergence from arbitrary initial states. Choosing proposals that yield a positive Harris recurrent Markov chain with aperiodicity supplies the usual convergence guarantee, and the resulting sample is dependent. Use burn-in and account for autocorrelation when assessing Monte Carlo precision.

New to topics? Read the docs here!