Meaning and mechanism
Given k centers, each point is assigned to the nearest cluster. Subsequently, the average of the points within each cluster is used as the new center.
Allocating to nearby centers and renewing the average—these are oriented in a way that do not increase the same squared objective function. It is possible to arrive at different results depending on the initial center.
Relationships and conditions
SSE is the sum of the squares of the distances between each point and its assigned center. A halt in SSE reduction during standard iterations, and the finding of a global optimum among all possible clusters, are distinct concepts.
Euclidean distance and average are well-suited for spherical cluster analysis, and this also affects the results. The choice of k, and the method used to handle outliers and sparse clusters, are important.
What to observe in the simulation
Assignment and mean updates never increase squared error.
Euclidean distances and seeded points are used. Empty clusters keep their centers. A local minimum is not a ground-truth class.
Key relationships and symbols
μⱼ = mean(xᵢ ∈ Cⱼ) · SSE = Σ‖xᵢ − μⱼ‖²
| Symbol | Meaning | Unit |
|---|---|---|
| k | Specified number of clusters | items |
| μⱼ | Mean center of cluster j | Feature coordinates |
| SSE | Sum of squared distances within clusters | Squared feature units |
Worked example
How is each center updated?
Mean of assigned points · Assignment and mean updates never increase squared error.
Common misconceptions
- The military code numbers do not inherently guarantee that they possess a pre-existing, correct name or meaning.
