"vectorized-maq-model" class="section level3">
<h3 class="unnumbered" number="">Vectorized MA(Q) Model</h3>
<p>A general <span class="math inline">\(\mbox{MA}(Q)\)</span> model with a vectorized sampling probability
may be defined as follows.</p>
<pre><code>data {
  int&lt;lower=0&gt; Q;       // num previous noise terms
  int&lt;lower=3&gt; T;       // num observations
  vector[T] y;          // observation at time t
}
parameters {
  real mu;              // mean
  real&lt;lower=0&gt; sigma;  // error scal