Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2009/iii/paper-40/5/c/solution

Use the random-walk proposal specified by its centre and covariance: for the current state draw independently standard normal and set
Its properly normalized density of the proposal distribution is
It is symmetric: . This is a centred-at-the-current-state proposal, rather than an unshifted draw from the density notation in the source. The random-walk Metropolis algorithm consequently needs only the target ratio. Put . Then
An independent uniform decides the move; on rejection both coordinates remain at their previous values. A proposal with lower is always accepted. This construction uses the joint density directly, without needing either conditional distribution. Its continuous positive proposal density supplies communication over the target support, and the holding probability avoids a deterministic periodic transition pattern.

New to topics? Read the docs here!