Lecture: Lecture 11 - Clustering
The problem
Clustering groups objects without being given the correct class labels. A retailer might provide customer spending and shopping frequency, but not labels such as “budget” or “premium.” The algorithm discovers groups from similarity. A domain expert then decides whether those groups are useful.
Classification is different. It learns from known labels and predicts a class for a new record. Clustering discovers the groups themselves.
Main forms
Partitional clustering assigns every object to one of a set of non-overlapping groups. Hierarchical clustering creates nested groups in a tree, so a dendrogram can be cut at different levels. Fuzzy clustering gives each object a membership weight in every group, such as 0.7 budget and 0.3 premium.
What can “similar group” mean?
- Well-separated: every point is closer to its own group than to another group.
- Center-based: points are close to a centroid or medoid.
- Contiguous: points are connected through nearby neighbours.
- Density-based: dense regions are separated by sparse regions.
- Conceptual: objects share a meaningful property, such as a document topic.
The chosen interpretation should match the question. Circular customer segments suit a centre-based method; irregular geographic hotspots suit a density-based method.
Common confusion
A cluster is a discovered pattern, not automatically a real category or cause. If customers form a group, the algorithm has found similar behaviour. It has not proved why they behave similarly.
Retrieval questions
Why is clustering unsupervised? The input records do not contain a target class that the algorithm is told to reproduce.
When can fuzzy membership help? When an object plausibly belongs partly to several overlapping groups.
Why can the number of clusters be ambiguous? Different numbers of groups can reveal different useful levels of detail.