s="math inline">\(\theta^{(1)}, \theta^{(2)},\ldots\)</span> where each variable is conditionally independent
of all other variables given the value of the previous value. Thus if
<span class="math inline">\(\theta = \theta^{(1)}, \theta^{(2)},\ldots, \theta^{(N)}\)</span>, then</p>
<p><span class="math display">\[
p(\theta) = p(\theta^{(1)}) \prod_{n=2}^N p(\theta^{(n)}|\theta^{(n-1)}).
\]</span></p>
<p>Stan uses Hamiltonian Monte Carlo to generate a next state in a manner
described in the <a href="hmc-cha