Gaussian Mixture Model: Expectation-Maximization Clustering (2D)
Interactive 2D Gaussian Mixture Model clustering: soft-assign points to K Gaussian components with the E-step, refit each component's mean and covariance ellipse with the M-step, and watch the log-likelihood climb on a live convergence chart. Pan and zoom the plot, tune the regularization epsilon, and toggle soft vs. hard cluster coloring.
This simulator fits a Gaussian Mixture Model to a 2D point cloud with real Expectation-Maximization, drawn directly on a pannable, zoomable 2D canvas. Each of the K components is rendered as a colored ellipse — the 2σ contour of its own mean and covariance — and every data point's color is a genuine blend of its soft "responsibilities" across all components (or, in hard-assign mode, its single most likely component). Step through E+M iterations one at a time or let it play automatically, regenerate the underlying blobs, reinitialize the components from scratch, tune how many points and clusters are in play, and watch the log-likelihood climb on a live strip chart as the fit converges.
Watch a Gaussian Mixture Model cluster 2D data in real time on a pannable, zoomable canvas: soft-assign points to K Gaussian components with the E-step, then re-fit each component's mean and covariance ellipse with the M-step, iterating until the log-likelihood converges — with a live convergence chart and a tunable regularization epsilon alongside.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install