Siilats Robots
K-means lessons

Expectation-Maximization in Excel: Part 3

Expectation-Maximization in Excel: Part 3. Screen-share lesson by Keith Siilats from the Gaussian models and expectation-maximization series. The walkthrough discusses mean.

Watch the original lessonExpectation-maximization workbookK-means workbook

Screen times follow the original lesson. Edited YouTube versions may run shorter.

At 1:37 in the original

Choose starting centers

Start with two actual points as provisional cluster centers. This gives a simple baseline for judging sensitivity to initialization.

Screen recording at 1:37
Screen at 1:37
At 4:20 in the original

Compute distances

Subtract the center coordinates, square the two differences, add them, and take the square root. The nearest center is unchanged if you omit the square root.

Screen recording at 4:20
Screen at 4:20
At 7:22 in the original

Label each observation

Add an assignment column and compare the two distances. A hard label gives one cluster the whole point, unlike the fractional responsibilities used by a Gaussian mixture.

Screen recording at 7:22
Screen at 7:22