span>, then for
<span class="math inline">\(\theta \in \text{$K$-simplex}\)</span>, <span class="math display">\[ \text{Dirichlet}(\theta|\alpha) =
\frac{\Gamma \! \left( \sum_{k=1}^K \alpha_k \right)}
{\prod_{k=1}^K \Gamma(\alpha_k)} \ \prod_{k=1}^K \theta_k^{\alpha_k -
1} . \]</span></p>
<p><em><strong>Warning:</strong></em> If any of the components of <span class="math inline">\(\theta\)</span> satisfies
<span class="math inline">\(\theta_i = 0\)</span> or <span class="math inline">\(\theta_i = 1\)</span