Gaussian Mixture Model

Chapter 13 Probability & information

Chapter 13: Probability and Random Variables — GMM (also appears in Ch. 17)

From the book

Chapter 13: Probability and Random Variables. In the chapter mind map this icon labels GMM. The discussion below is excerpted and lightly edited from § Definition: Gaussian Mixture Model (GMM) in Mathematics for AI and Machine Learning. Related material also appears in Chapter 17 (Mixture Scores: Attractors, Saddles, Bimodality).

A Gaussian Mixture Model (GMM) is a mixture distribution where each component is a Gaussian distribution. For a GMM with $K$ components, the PDF is:

where $\pi_k \ge 0$, $\sum_{k=0}^{K-1} \pi_k = 1$, and $\mathcal{N}(x \mid \mu_k, \Sigma_k)$ is the PDF of a multivariate Gaussian with mean $\mu_k$ and covariance matrix $\Sigma_k$.

Conditioning on the component index $z$, with $P(z = k) = \pi_k$, gives the mixture's moments by the laws of total expectation and total variance: $\mathbb{E}[x] = \bar\mu = \sum_k \pi_k\mu_k$ and $\mathrm{Cov}(x) = \sum_k \pi_k\Sigma_k + \sum_k \pi_k(\mu_k - \bar\mu)(\mu_k - \bar\mu)^\top$, the average spread inside the components plus the spread between their centers; two unit-variance components at $\pm 2$ with equal weights give variance $1 + 4 = 5$. Bayes' rule gives the responsibility of component $k$ for a point, $\gamma_k(x) = P(z = k \mid x) = \pi_k\mathcal{N}(x \mid \mu_k, \Sigma_k)/f(x)$. With a shared covariance $\Sigma$ the quadratic terms cancel and $\gamma_k(x) = \mathrm{softmax}_k\big(\mu_k^\top\Sigma^{-1}x - \frac{1}{2}\mu_k^\top\Sigma^{-1}\mu_k + \log\pi_k\big)$, linear logits in $x$: the softmax classifier is the posterior of a Gaussian mixture.

What this drawing shows

What you see. Shows a density made from multiple Gaussian components, representing multimodal probabilistic clustering.

In the mind map. Chapter 13 — GMM. See From the book above for definitions, figures, and worked examples.

Also appears in Ch. 17 (Mixture Scores: Attractors, Saddles, Bimodality).

Where to read next

Open Chapter 13 companion →

Read the full definitions, figures, and worked examples in Chapter 13: Probability and Random Variables — see the mind-map node GMM.

This concept is also referenced in Chapter 17 (Mixture Scores: Attractors, Saddles, Bimodality).

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs