Two chains, each with n=4 post-burn-in draws of a scalar, give (1,2,3,2) and (3,4,5,4). Compute the Gelman–Rubin R^ and say what it indicates. Why is R^≈1 still not a proof of convergence?

Probabilistic models, MCMC
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can compute within- and between-chain variance and interpret R^, and know its limits.

Key idea

R^=V^/W, where W is the mean within-chain variance, B=nm−1∑j(xˉj−xˉ)2 is the between-chain variance, and V^=n−1nW+Bn.

Steps

  1. Chain means: xˉ1=2 and xˉ2=4. Grand mean: 3.
  2. Within-chain variances (with n−1=3 in the denominator): chain 1 has (1+0+1+0)/3=2/3, and chain 2 also has 2/3. So W=2/3.
  3. Between-chain: B=42−1[(2−3)2+(4−3)2]=4⋅2=8.
  4. Pooled estimate: V^=34⋅23+84=0.5+2=2.5.
  5. R^=2.5/(2/3)=3.75=1.94. This is far above the usual threshold of about 1.01–1.1, so the chains have not converged: they are exploring different regions.
  6. Meaning: V^ is an estimate of the target variance that includes the starting-point spread. If chains agree, B is small and R^→1.
  7. Limits: R^ compares chains, so if all chains are stuck in the same mode of a multimodal target, or all start close to each other, R^≈1 while a mode is missing. Use over-dispersed starts, many chains, trace plots and the effective sample size.

Common mistakes

How long your answer should be

Half a page, with the table of means and variances.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: The target is a bivariate Gaussian with zero mean, unit variances and correlation ρ=0.9. A mean-field approximation q(z1,z2)=q1(z1)q2(z2) is fitted by minimising KL(q ∥ p). What are the factor variances, and why are they much smaller than the true marginal variances?
Next in Probabilistic models: Use the Laplace approximation to the posterior to approximate the log evidence ln⁡p(D) for N i.i.d. data points and M parameters. How does this lead to the BIC, and when does it break down?