Hamiltonian Monte Carlo samples the target with by simulating the Hamiltonian with a…
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
Hamiltonian Monte Carlo samples the target p(x)∝e−U(x) with U(x)=(x2−1)2 by simulating the Hamiltonian H(x,p)=21p2+U(x) with a fictitious momentum p of unit mass. Starting from x0=0, p0=1, one velocity-Verlet (leapfrog) step of size δt=0.2 is taken: p1/2x1p1=p0−2δtU′(x0),=x0+δtp1/2,=p1/2−2δtU′(x1), with U′(x)=4x(x2−1).
((a)) Compute x1 and p1.
((b)) Compute ΔH=H(x1,p1)−H(x0,p0).
((c)) Give the Metropolis acceptance probability min(1,e−ΔH) for this proposed move.