        <div class="page-inner">

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

<div>
This is an old version, <a href="https://mc-stan.org/docs/stan-users-guide/time-series.html#moving-average-models">view current version</a>.
</div>
<div id="moving-average-models" class="section level2">
<h2><span class="header-section-number">2.3</span> Moving Average Models</h2>
<p>A moving average model uses previous errors as predictors for future
outcomes. For a moving average model of order <span class="math in