Hamiltonian Monte Carlo augments the position by an independent momentum and uses the Hamiltonian function
From the current , draw a fresh , apply a fixed number of leapfrog steps to approximate Hamiltonian flow, and obtain . The Metropolis–Hastings acceptance probability is
otherwise retain . Momentum negation may be included to make the proposal explicitly reversible. The leapfrog map is volume preserving and reversible, while the acceptance step corrects its discretization error, leaving invariant after the momentum is discarded.
For a sufficiently regular Itô diffusion with , a density is stationary if and only if it solves the stationary Fokker-Planck equation
with integrable Fokker-Planck probability current and boundary conditions that make its outward flux vanish. Here .
For the displayed parametrization, assume
where , that is symmetric positive semidefinite, and that is antisymmetric. Substituting and the stated into the probability current cancels all terms. The remaining divergence is
because the second derivatives are symmetric in whereas . Thus these conditions, together with the boundary and regularity assumptions, imply stationarity. More generally, the divergence equation above is the exact necessary and sufficient condition; within this construction, and antisymmetric are the standard way to satisfy it.
Invariant distribution of an Itô diffusion, specialized to Underdamped Langevin dynamics, has density
Thus has density proportional to , and conditionally and marginally . The Hamiltonian transport between and preserves this density, while the Ornstein-Uhlenbeck process in momentum has exactly that Gaussian invariant law.
The Euler-Maruyama method with step size and independent is

Articles by others on the same topic (0)

There are currently no matching articles.