Gaussian Mixture Models
The Gaussian Mixture Model (GMM) is a probabilistic model that represents the distribution of data as a weighted combination of multivariate Gaussian components:
where is a vector, such that each is a prior on the -th cluster center (i.e., ). Given a data point , we can use total probability to compute the marginal , and Bayes’ rule to compute the probability that belongs to the -th cluster:
These posterior probabilities represent the soft assignments of data points to clusters, meaning that each point is assigned a probability of being in each cluster.Because there is no closed-form solution for the log-likelihood , the Expectation-Minimization (EM) algorithm provides an iterative way to optimize this likelihood. To begin, initialize by making guesses about the distributions . Then:
- E-Step: Compute the soft-assignments (probabilities) of each point being in cluster , , and the expected log-likelihood objective function,
Q(\pi, { \mu_{k}, \Sigma_{k}}{k=1}^{K})&= \mathbb{E}{Z}[\ln p(X,Z \mid \theta)]\
&=\sum_{n=1}^{N}\sum_{k=1}^{K}\gamma_{nk}(\ln \pi_{k} + \ln\mathcal{N}(x_{n} \mid \mu_{k}, \Sigma_{k})).
\end{align*}$$
- M-Step: Find the new parameters of :