Two coupled spins have unnormalised joint weight with
PHYSICS · Multi-part · Fermi University Physics · Computational Physics · Monte Carlo and lattice simulation of physical systems · Monte Carlo and lattice simulation of physical systems
Error, Chance and the Machine, Ch Markov-chain Monte Carlo
Problem
Two coupled spins s1,s2∈{+1,−1} have unnormalised joint weight w(s1,s2)=eKs1s2 with K=0.4. A Gibbs sampler updates s1 from its conditional distribution given s2, then s2 from its conditional distribution given the new s1.
((a)) Show that P(s1=+1∣s2)=1+e−2Ks21, and evaluate it for s2=+1 and s2=−1.
((b)) Starting from (s1,s2)=(−1,−1), perform one Gibbs sweep. To update a spin, draw a uniform random number u on [0,1) and set the spin to +1 if u<P(+1∣other spin), otherwise to −1. Use u1=0.85 for the update of s1 and, after that update, u2=0.30 for the update of s2. Give the state after the sweep.