><span class="header-section-number">14.1.3</span> Stan Functions</h3>
<!-- real; multinomial_lpmf; (int[] y | vector theta); -->
<p></p>
<p><code>real</code> <strong><code>multinomial_lpmf</code></strong><code>(int[] y | vector theta)</code><br>
The log multinomial probability mass function with outcome array <code>y</code>
of size <span class="math inline">\(K\)</span> given the <span class="math inline">\(K\)</span>-simplex distribution parameter theta and
(implicit) total count <code>N = sum(y)</code></