Curated · Hierarchical Clustering (Top-down & Bottom-up)

MCQ · 2 marks · Problem ML-CLUS-0017

Agglomerative hierarchical clustering is applied to the one-dimensional data set \(\{0,\ 2,\ 7,\ 15,\ 18,\ 28\}\), with the absolute difference as the distance between points. Each dendrogram is cut so as to give exactly two clusters. The two clusters obtained with single linkage and with complete linkage are, respectively,
  1. A
    single: \(\{0,2,7\}\), \(\{15,18,28\}\);\quad complete: \(\{0,2,7,15,18\}\), \(\{28\}\)
  2. B
    single: \(\{0,2,7,15,18\}\), \(\{28\}\);\quad complete: \(\{0,2,7\}\), \(\{15,18,28\}\)
  3. C
    single: \(\{0,2,7\}\), \(\{15,18,28\}\);\quad complete: \(\{0,2,7\}\), \(\{15,18,28\}\)
  4. D
    single: \(\{0,2,7,15,18\}\), \(\{28\}\);\quad complete: \(\{0,2,7,15,18\}\), \(\{28\}\)

Solve it on GATE DA practice →More Unsupervised Learning — Clustering problems

Show the worked solution\[\boxed{d_{\text{single}}(A,B)=\min_{a\in A,\,b\in B}|a-b|,\qquad d_{\text{complete}}(A,B)=\max_{a\in A,\,b\in B}|a-b|}\]Single linkage. In one dimension it merges across the smallest remaining gaps between neighbours. The gaps are \(2,5,8,3,10\), so the merges happen at heights \(2\ (\{0,2\}),\ 3\ (\{15,18\}),\ 5\ (\{0,2,7\}),\ 8\ (\{0,2,7,15,18\}),\ 10\). Cutting at two clusters gives \(\{0,2,7,15,18\}\) and \(\{28\}\). This is the chaining effect: \(28\) is the only point that is far from its nearest neighbour.Complete linkage. Merge \(\{0,2\}\) at \(2\), then \(\{15,18\}\) at \(3\). Next, \(d(\{0,2\},\{7\})=7\) is smaller than \(d(\{15,18\},\{28\})=13\) and \(d(\{7\},\{15,18\})=11\), so \(\{0,2,7\}\) forms at \(7\). Then \(d(\{15,18\},\{28\})=13<d(\{0,2,7\},\{15,18\})=18\), so \(\{15,18,28\}\) forms at \(13\). The final merge is at \(28\). Cutting at two clusters gives \(\{0,2,7\}\) and \(\{15,18,28\}\).Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com