Siilats Robots
K-means lessons

Expectation-Maximization in Excel: Part 4

Expectation-Maximization in Excel: Part 4. 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

Recalculate a center from its members

Divide SUMIF by COUNTIF for each assigned cluster and coordinate. Handle an empty cluster before dividing.

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

Fill down the update

Copy the assignment and distance formulas with fixed parameter references and row-relative observations. Test a few rows before recalculating the whole worksheet.

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

Compare successive estimates

Change the parameter values and see whether assignments or centers move. Inspect large movements before treating a run as converged.

Screen recording at 7:22
Screen at 7:22