Learning objectives
- Explain the ideas behind clustering with k-means.
- Apply the ideas to the example and identify how you would check the result.
Concepts
K-means alternates between assigning each point to the nearest centroid and moving centroids to the mean of their assigned points. Scale features with very different units and compare multiple initializations.
Practical example
Group synthetic customer activity using monthly transaction count and total amount after scaling both features.
Try the exercise
- Define the task. Group synthetic customer activity using monthly transaction count and total amount after scaling both features.
- Identify the key idea. K-means alternates between assigning each point to the nearest centroid and moving centroids to the mean of their assigned points.
- Check your decision. Describe an alternative and how you would compare its results.