s over the clusters. Because of the
connection between Euclidean distance and multivariate normal models
with a fixed covariance, soft <span class="math inline">\(K\)</span>-means can be expressed (and coded in
Stan) as a multivariate normal mixture model.</p>
<p>In the full generative model, each data point <span class="math inline">\(n\)</span> in <span class="math inline">\(1{:}N\)</span> is assigned
a cluster <span class="math inline">\(z_n \in 1{:}K\)</span> with symmetric uniform probability,</p>
<p><