Objective Function of K-Means

(Slide: WCSS formula)

K-Means tries to minimize WCSS

🔸 WCSS – Within Cluster Sum of Squares

Meaning:

  • Measure of compactness of clusters
  • Smaller WCSS → better clustering

👉 K-Means works to reduce WCSS in every iteration