Numerical analysis Monte Carlo and quasi-Monte Carlo methods Proposition
Hamiltonian Monte Carlo
Builds on Markov chain Monte CarloProbability density functionMultivariate normal distributionGradientStationary distributionDetailed balanceHamiltonian systemSymplectic integratorInvolutionMetropolis–Hastings algorithm
Statement
Let be continuously differentiable with , and let be the probability density . Let for . Fix a step size and a number of steps . The leapfrog step is where is the gradient of , and is leapfrog steps. One Hamiltonian Monte Carlo step from is as follows.
- Draw from the standard normal distribution on .
- Compute .
- With probability move to ; otherwise stay at .
Then is a stationary distribution of this Markov transition: if has density , the new state also has density .
Remarks
The proof works on the joint density proportional to on , whose -marginal is and whose -marginal is standard normal. Let ; then is an involution, since each leapfrog step is reversed by flipping the momentum, and preserves volume, since each of the three substeps is a shear. A Metropolis step with a deterministic, volume-preserving, involutive proposal and acceptance probability satisfies detailed balance for , and . Resampling in step 1 also leaves invariant, so the composition does, and hence its -marginal is invariant. The leapfrog map is a symplectic integrator for the Hamiltonian system , . The exact flow would keep constant and always accept, and the accept step corrects the discretisation error. Example: for on , the target is standard normal, and with small the trajectories follow circles in the plane, so the chain moves far in each step. Invariance alone does not give convergence. For this , if is half a period of the exact flow, the chain nearly alternates between and . For this reason or is often randomised in practice. More generally may be drawn from a normal law with a positive definite mass matrix , with in and .
Going deeper
For a student
HMC is a Markov chain Monte Carlo method that uses the gradient of the log-density to make long, directed moves. It is a special case of the Metropolis–Hastings algorithm on the extended space of positions and momenta. The two properties of the leapfrog map that make the acceptance rule simple are reversibility and volume preservation; energy conservation is only needed for a high acceptance rate. Compared with random-walk proposals, HMC scales much better with dimension for smooth targets, which is why it is the default sampler in several statistics packages. Choosing and is the main practical difficulty, and adaptive schemes such as the no-U-turn sampler address it.
Reading path
To understand this page from the ground up, read these 17 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Detailed balance concept
- Euclidean space object
- Function concept
- Hamiltonian system concept
- Involution concept
- Markov chain Monte Carlo concept
- Metropolis–Hastings algorithm concept
- Multivariate normal distribution concept
- Probability density function concept
- Stationary distribution concept
- Symplectic integrator concept
- Total derivative concept
- Function of several variables concept
- Differentiable function of several variables concept
- Partial derivative concept
- Gradient concept
- Hamiltonian Monte Carlo statement
Further reading
About this page
| Tag | 4AHBMJYCX1 |
|---|---|
| URI | m2://4AHBMJYCX1 |
| Kind | statement, proposition |
| Writing | W0 stub |
| MSC | 65C05, 65C40, 60J22 |
| Status | This copy of the site has no build data. Run m2 status 4AHBMJYCX1. |
| About | Markov chain Monte Carlo |
| Uses | Markov chain Monte Carlo, Probability density function, Multivariate normal distribution, Gradient, Stationary distribution, Detailed balance, Hamiltonian system, Symplectic integrator, Involution, Metropolis–Hastings algorithm |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.