s="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/reference-manual/mcmc.html">view current version</a>.
</div>
<div id="hmc.chapter" class="section level1" number="15">
<h1><span class="header-section-number">15</span> MCMC Sampling</h1>
<p>This chapter presents the two Markov chain Monte Carlo (MCMC)
algorithms used in Stan, the Hamiltonian Monte Carlo (HMC) algorithm
and its adaptive variant the no-U-turn sampler (NUTS), al