Lecture: Lecture 11 - Clustering

Agglomerative mechanism

Agglomerative clustering starts with one cluster per point. It repeatedly finds the closest pair of clusters, merges them and updates the proximity matrix. The result is a dendrogram. Cutting the dendrogram determines how many groups are displayed.

Linkage does not directly split groups in this process. It controls which merge happens next.

A worked linkage example

Let A={1,2} and B={5,10}. Cross-cluster distances are 4, 9, 3 and 8.

LinkageDefinitionDistance
SingleClosest cross-cluster pair3
CompleteFarthest cross-cluster pair9
AverageMean of all cross-cluster distances6

Single linkage can create a chain. If A is close to B and B is close to C, the combined A+B cluster may be close to C through one boundary point, even when the endpoints are far apart.

Complete linkage has the opposite tendency. It requires even the farthest members to be reasonably close, so it favours compact groups and may keep a long, naturally connected group divided.

Average linkage is a compromise because it uses all cross-cluster distances. Ward’s method chooses the merge that causes the smallest increase in within-cluster squared error, so it has a similar preference for compact, round groups as K-means.

Real-life analogy

Imagine grouping houses along a long road. Single linkage may treat the entire road as one group because neighbouring houses form a chain. Complete linkage may split the road because houses at opposite ends are far apart. The right choice depends on whether connectivity or compactness represents the intended neighbourhood.

Retrieval questions

Does complete linkage split a cluster directly? No. In agglomerative clustering it makes merging decisions. A later dendrogram cut can leave parts separate.

Why can single linkage merge unrelated groups? One close pair can connect two larger groups.

What does a dendrogram cut do? It selects the desired level of nested groups after the merge history has been built.