Four Metropolis chains sample the posterior of a dimensionless rate

PHYSICS · Multi-part · Fermi University Physics · Scientific Practice & Experimental Methods · Computational Physics · Data analysis and model fitting in the laboratory

Error, Chance and the Machine, Ch Markov-chain Monte Carlo

Problem

Four Metropolis chains sample the posterior of a dimensionless rate θ\theta. They start from θ=0.5\theta = 0.5, 1.51.5, 1.01.0 and 3.03.0, and each keeps n=2000n = 2000 steps after discarding the first 200200. The chain means of θ\theta are 1.021.02, 0.990.99, 1.031.03 and 1.211.21, and every chain has sample variance 0.0400.040. The integrated autocorrelation time of θ\theta, estimated from chains 1 to 3, is τint≈8\tau_{\rm int} \approx 8. ((a)) Compute WW, B/nB/n and R^\hat R from Eq. (11.22). ((b)) For chains that have converged, B/nB/n is about 2τintvar(θ)/n2\tau_{\rm int}\mathrm{var}(\theta)/n. Find what B/nB/n and R^\hat R would be for converged chains here, take var(θ)≈W\mathrm{var}(\theta) \approx W, and compare with part (a). Give a verdict. ((c)) Suppose only chain 3 had been run. Find its blocked error from σ2=2τintW/n\sigma^2 = 2\tau_{\rm int}W/n and say how many such errors separate its mean from that of chain 4. What would the single run have reported? ((d)) Compute R^\hat R from chains 1 to 3 alone. Does the result show that they have converged? What does the comparison with part (a) say about the choice of starts?

Browse the problem library