Show that a single-site Gibbs update is a Metropolis–Hastings move that is always accepted, and that it leaves the target p(x) invariant. Why does a fixed-order sweep not give a reversible chain, and can you give an example where Gibbs sampling fails to converge?

Probabilistic models, MCMC
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can verify the MH ratio equals 1 for a conditional proposal, and understand invariance, reversibility and irreducibility separately.

Key idea

With proposal q(x′∣x)=p(xi′∣x−i) and the same x−i, the MH ratio is exactly 1. Each conditional update satisfies detailed balance with p, so any composition of them preserves p.

Steps

  1. Update coordinate i: propose x′ with x−i′=x−i and xi′∼p(xi′∣x−i). So q(x′∣x)=p(xi′∣x−i) and q(x∣x′)=p(xi∣x−i).
  2. MH ratio: p(x′) q(x∣x′)p(x) q(x′∣x)=p(xi′∣x−i) p(x−i) p(xi∣x−i)p(xi∣x−i) p(x−i) p(xi′∣x−i)=1. So the acceptance probability is min⁡(1,1)=1.
  3. Detailed balance: for the kernel Ti(x→x′)=p(xi′∣x−i), we have p(x) Ti(x→x′)=p(x−i) p(xi∣x−i) p(xi′∣x−i), which is symmetric in xi,xi′. So p(x)Ti(x→x′)=p(x′)Ti(x′→x), and summing over x gives pTi=p.
  4. A sweep T=T1T2⋯Td preserves p, because each factor does. But its reverse is Td⋯T1, not T itself, so the sweep is generally not reversible. A random-scan Gibbs sampler (pick i at random) is a mixture of reversible kernels and is reversible. A symmetric sweep T1⋯TdTd−1⋯T1 is also reversible.
  5. Invariance is not enough. We also need irreducibility and aperiodicity. Example: p uniform on the two points (0,0) and (1,1). From (0,0) the conditional of x1 given x2=0 puts all mass on 0, so the chain never leaves. It has the right invariant distribution but is not irreducible.
  6. The same issue appears (slowly) when variables are strongly correlated, as in the bivariate Gaussian with ρ→1.

Common mistakes

How long your answer should be

A page. About 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: Why does the plain HMM forward algorithm underflow for long sequences, and how does the scaled forward algorithm fix it? How can you illustrate this using the HMM with π=(0.5,0.5), A=(0.70.30.40.6), P(a∣1)=0.9, P(a∣2)=0.2, P(b∣1)=0.1, P(b∣2)=0.8 and observations (a,b)?
Next in Probabilistic models: Show that Bayesian linear regression with features ϕ(x) and weight prior w∼N(0,Σp) is a Gaussian process, and that its predictive mean and variance equal the GP formulas with k(x,x′)=ϕ(x)⊤Σpϕ(x′). What does this imply for the RBF kernel?