AdvancedAbout 22 min
Gaussian Mixtures & Expectation-Maximization
Read the full article on Substack
6 min read.
k-means hands every point to one centroid and returns only centres. A Gaussian mixture recovers each cluster's shape, orientation and weight too, assigns points softly, and — because it is probabilistic — lets BIC pick the cluster count for you. A real EM loop runs in the page.
EM converged in 19 iterations. Fitted weights 0.40, 0.40, 0.20; true weights 0.40, 0.40, 0.20. Lowest BIC at k = 3.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Expectation-Maximization
Sequence
Order one EM iteration for a Gaussian mixture.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
5 pieces left to place
Quiz
20 questionsQuestion 1 of 20
Score: 0
Compared with k-means, a Gaussian mixture model additionally recovers each cluster's:
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.