Apex › Storage & databases

Soft clustering with Gaussians (GMM / EM)

Where k-means makes hard, round assignments, a Gaussian mixture models the data as a blend of bell curves — each cluster a tilted ellipse — with soft membership, fit by Expectation-Maximization (E-step: responsibilities; M-step: refit each Gaussian). EM provably never lowers the log-likelihood — but produce the trap that guarantee hides: remove the covariance floor and a Gaussian collapses onto a single point, its variance racing to 0 and its density (with the likelihood) diverging to +∞ — a degenerate spike that clusters nothing. That singularity is why every real GMM floors the covariance. Node-verified: healthy fit → log-likelihood ~246; collapse → a component’s variance → ~1e-6 → 0.

More in Storage & databases