Log inStart free
LESSON 4.29 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Gaussian mixtures and EM

Watch Gaussians share out 40 unlabeled points, one E-step and M-step at a time.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.29 · MIXTURE BAY40 POINTS · 0 LABELS · K = 2
01
Stage 1 of 6 · Unlabeled points
40 points have no labels. A Gaussian mixture will explain them with K = 2 Gaussians.
Explain it simply

Each dot is one point with two numbers: how far across and how far up. Nobody has told the computer which group a dot is in. You can see a ring, two blobs and a few lone dots, but the computer only sees 40 dots. The 2 dashed cards wait for the Gaussians it must find.

A scatter plot of 40 unlabeled points. They form a ring around a dense blob, a long looser blob and 6 lone points. 2 empty cards stand for the Gaussians to find.

pointGaussian: weight, mean, ellipseshare, densitylog-likelihood, BIC, lone pointnot known yet
points024681002468x₁x₂Aπ ?μ ? Σ ?Bπ ?μ ? Σ ?Gaussianspoints024681002468x₁x₂Aπ ?μ ? Σ ?Bπ ?μ ? Σ ?Gaussians
Toy: the 40 points of 4.C3 (a ring, two blobs, 6 lone) · EM stops at a gain < 0.001 per point
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
{x1,…,x40}⊂R2,labels= ?\{\sy{x}{data}{x_1}, \dots, \sy{x}{data}{x_{40}}\} \subset \mathbb{R}^2,\quad \text{labels} = \ ?
x28=(4.4, 7.6)\sy{x}{data}{x_{28}} = (4.4,\ 7.6)

There are 40 points with 2 numbers each and no labels.

Common mix-ups

MYTHEM always finds the best mixture.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With K = 2, where do the two Gaussians go?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.