Gaussian Mixture Models and Expectation-Maximization › Summary

Michael BrenndoerferOctober 29, 20262 min read
Machine Learning from ScratchAll chapters
Part 9 of 15Unsupervised Learning
Chapter 66Gaussian Mixture Models and Expectation-Maximization › Summary
Reading section 9 of 10 · Summary · 2 minSection 9 of 10 · 2 min

Section 9 of 10 · 2 min read

Gaussian Mixture Models and Expectation-Maximization › SummarySection view · Sections in this chapter9 / 10 ↓
Reading tools Definitions, links & notes

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Notes & comments

A Gaussian mixture model describes data as a weighted sum of Gaussian densities and treats the component membership of each observation as a latent variable. The model is fitted by maximizing a likelihood that contains the log of a sum, which has no closed-form solution, so we use Expectation-Maximization: compute the posterior probability of each component for each observation (the E-step), then re-estimate the means, covariances, and weights as if those posterior probabilities were fractional counts (the M-step). The updates are weighted versions of the ordinary maximum likelihood estimators, with responsibilities standing in for the unknown indicators, and exact bound-increasing EM updates cannot decrease the objective because the E-step makes the lower bound tight. Our practical diagonal-addition safeguard requires a separate decrease check.

The soft assignments are the point of the exercise. Where k-means commits, the mixture reports a probability, and that probability carries information about ambiguity that a hard boundary discards. The same posterior drives the covariance updates, which is what allows each component to take on its own orientation and aspect ratio, and the resulting density can be evaluated, sampled, and compared across models.

For exact EM the likelihood guarantee is nondecrease, not global optimality or parameter convergence. The likelihood is non-concave, so initialization and restarts determine the answer, and unrestricted mixtures with K≥2K\ge2 have an unbounded sample likelihood, so a covariance constraint or regularization is needed to prevent collapse. Components are terms in a density, not discovered truths about the world, and the number of components is a model selection decision to be made with penalized criteria rather than training likelihood. For continuous data with roughly elliptical components, a Gaussian mixture gives us a probability density and model-based soft assignments alongside a hard partition.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy