Two chains, each with post-burn-in draws of a scalar, give and . Compute the Gelman–Rubin and say what it indicates. Why is 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 , and know its limits.
Key idea
, where is the mean within-chain variance, is the between-chain variance, and .
Steps
- Chain means: and . Grand mean: .
- Within-chain variances (with in the denominator): chain 1 has , and chain 2 also has . So .
- Between-chain: .
- Pooled estimate: .
- . This is far above the usual threshold of about 1.01–1.1, so the chains have not converged: they are exploring different regions.
- Meaning: is an estimate of the target variance that includes the starting-point spread. If chains agree, is small and .
- Limits: compares chains, so if all chains are stuck in the same mode of a multimodal target, or all start close to each other, while a mode is missing. Use over-dispersed starts, many chains, trace plots and the effective sample size.
Common mistakes
- Using instead of in the sample variance, which changes .
- Forgetting the factor in , which makes appear too close to 1.
- Treating as a guarantee. It only detects disagreement between chains.
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 . A mean-field approximation is fitted by minimising . 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 for i.i.d. data points and parameters. How does this lead to the BIC, and when does it break down?