For observations , K-means clustering seeks nonempty clusters in cluster analysis and centroids minimizingAt fixed centroids, assigning each point to a nearest centroid minimizes its squared Euclidean distance. At fixed assignments, the centroid sum-of-squares identity shows that the sample mean uniquely minimizes each group's contribution. These alternating steps cannot increase .
For finite termination of K-means clustering, more than a lower bound on is needed. Keep an assignment unchanged when nearest centroids tie, and stop when assignments no longer change. Every change then strictly decreases . After updating the centroids, is determined by the partition of a set of indices; there are only finitely many choices for that partition of a set, so no strictly improving partition of a set can recur. Empty clusters in cluster analysis require a convention, such as moving a point from a nonsingleton cluster in cluster analysis to become its own centroid, which cannot increase . With such a consistent convention the algorithm terminates, although it may reach only a local minimum.
Articles by others on the same topic
There are currently no matching articles.