ge-wrapper" tabindex="-1" role="main">
          <div class="page-inner">

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

<div>
This is an old version, <a href="https://mc-stan.org/docs/reference-manual/execution.html#variational-inference">view current version</a>.
</div>
<div id="variational-inference" class="section level2">
<h2><span class="header-section-number">12.5</span> Variational inference</h2>
<p>Variational inference also runs similar to sampling. It begins by reading the
data and initiali