A target distribution on three states is . A Metropolis sampler proposes one of the two other states with probability each, and accepts with probability . What is the transition matrix, and how do you check that is stationary and that detailed balance holds?
Probabilistic models, MCMC
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can build the Metropolis transition matrix, including the rejection mass on the diagonal, and verify stationarity.
Key idea
For , , and . Detailed balance implies .
Steps
- The proposal is symmetric: for .
- Row 1 (from state 1): and . So .
- Row 2: and . So .
- Row 3: and (both moves go uphill, so they are always accepted). So .
- Detailed balance for : and . For : . For : .
- Summing detailed balance over gives , so . For instance, the first component is .
- The chain is irreducible and aperiodic (some ), so it converges to from any start.
Common mistakes
- Leaving the diagonal at 0. Rejected proposals give a self-loop with the remaining mass.
- Applying the acceptance rule with inverted.
- Checking only for one entry and not the full vector or detailed balance.
How long your answer should be
Half a page, with the matrix.
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: A GP with kernel and noise variance is trained on and . What are the predictive mean and variance at ?
Next in Probabilistic models: For a bivariate Gaussian with zero means, unit variances and correlation , derive the Gibbs conditionals. Show that the sequence of values from a Gibbs sampler is an AR(1) process with coefficient . How many Gibbs steps per effectively independent sample are needed for ?