k-means Clustering Visualizer

Expectation Maximization-style Hard Clustering

Drag the X markers to move initial centroids.

Objective Function: Minimize the Within-Cluster Sum of Squares (WCSS): $$ J = \sum_{j=1}^k \sum_{x_i \in S_j} \|x_i - \mu_j\|^2 $$
Iteration: 0
Current WCSS: -