HomeAI & Machine LearningGaussian Mixture Models: EM Density Contours (2D)

Gaussian Mixture Models: EM Density Contours in 2D

A flat 2D contour-map view of Expectation-Maximization fitting a Gaussian Mixture Model: a colour-banded density field, soft-assigned points and covariance ellipses redrawn every EM step, with log-likelihood tracked to convergence.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-machine-learning ↗ Open standalone

This is the flat, native-2D counterpart of the 3D Gaussian Mixture Model simulator. It runs the same Expectation-Maximization algorithm — every component owns a full 2D covariance ellipse, not just a centroid, and every point carries a soft probability of belonging to each one — but visualises the resulting mixture density as a colour-banded contour map drawn straight onto the canvas, the way a topographic map encodes elevation without ever tilting the view. Log-likelihood, its step-to-step change, and the mean responsibility entropy are read out numerically so you can watch the algorithm provably climb toward a local optimum and settle.

⚙ Under the hood

A flat 2D contour-map view of Expectation-Maximization fitting a Gaussian Mixture Model: a colour-banded density field, soft-assigned points and covariance ellipses redrawn every EM step, with log-likelihood tracked to convergence.

machine learningclusteringgaussian mixtureexpectation maximizationunsupervised learningstatistics2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)