K-means

How K-means works:

  1. randomly assign cluster membership to each data point
  2. Update:
    1. Find the cluster centroids
    2. reassign the cluster memberships based on proximity to nearest centroid
    3. repeat until convergance

\(k\):

the data — colors = current clusters, ✚ = the k means, dashes = “nearest mean” cells