Hamiltonian Monte Carlo
Level 4
Coming soon
This lesson is being written. Explore the graph meanwhile.
You will need
- Markov Chain Monte CarloMarkov chain Monte Carlo draws samples from a distribution that is hard to sample directly by running a random walk whose long-run visit frequencies match that distribution.
- Metropolis AlgorithmA random-walk recipe whose long-run visit frequencies match a target distribution: propose a move, always accept uphill moves, and accept downhill ones with the density ratio's chance.
- Hamiltonian MechanicsComing soon
- Verlet IntegrationComing soon
- GradientThe gradient collects a function's partial derivatives into one vector that points in the direction the function increases fastest.
Unlocks
- Langevin DynamicsLangevin dynamics draws samples by repeatedly stepping uphill on a log-density and adding a little noise, so the walk settles into the distribution itself.
- Practical Bayesian Model Evaluation with Leave-One-Out CV and WAICEstimates a Bayesian model's out-of-sample predictive accuracy from one set of posterior draws, using Pareto-smoothed leave-one-out cross-validation with a built-in reliability check, plus WAIC.
- The No-U-Turn Sampler: Adaptively Setting Path Lengths in HMCComing soon
- Slice SamplingSlice sampling draws from a density by adding a random height under the curve and then sampling uniformly from the horizontal slice at that height, with no rejections and little tuning.