Why can exact divisive (top-down) clustering not simply try every possible split of a cluster, and how does DIANA's splinter-group heuristic get around this? How many splits exist for m=5 and m=20 points, and what does one DIANA split give on the 1-D points 0,1,2,9,10 (absolute difference as dissimilarity)?

Unsupervised learning, Hierarchical clustering
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can count the top-down search space, explain why a greedy heuristic is needed, and carry out one splinter split by hand.

Key idea

A cluster of m points can be cut into two non-empty parts in 2m−1−1 ways, which is exponential. DIANA instead grows a small "splinter group" greedily: it starts with the point that is on average furthest from the rest, then moves points across while they are closer (on average) to the splinter group than to the remainder.

Steps

  1. The plain-words comparison comes first: see `agnes-vs-diana-hierarchical`. Here we do the counting and the mechanics.
  2. Counting: each of m points goes to one of two sides, giving 2m assignments. Remove the two where one side is empty, and divide by 2 because swapping the sides gives the same split: (2m−2)/2=2m−1−1. For m=5 this is 15; for m=20 it is 524,287; for m=30 it is over 5×108. By comparison, the first agglomerative step only looks at n(n−1)/2 pairs, which is 499,500 for n=1000.
  3. So exact search is impractical and DIANA is greedy. Step 1: for each point compute its average dissimilarity to the other four points. For 0,1,2,9,10 these are 5.5, 4.75, 4.5, 6.25, 7. The largest is for the point 10, so the splinter group starts as {10}.
  4. Step 2: for each point in the remainder compare (its average dissimilarity to the other remainder points) with (its average dissimilarity to the splinter group). For 9: to {0,1,2} it is (9+8+7)/3=8, and to {10} it is 1. The difference 8−1=7>0, so 9 moves to the splinter group, giving {9,10}.
  5. Step 3: repeat with splinter {9,10} and remainder {0,1,2}. For 2: to {0,1} it is (2+1)/2=1.5 and to {9,10} it is (7+8)/2=7.5, a negative difference, so it stays. The points 1 and 0 stay too. No point moves, so the split is final: {0,1,2} ∣ {9,10}.
  6. DIANA then picks the cluster with the largest diameter (here {0,1,2} with diameter 2, against 1 for {9,10}) and splits it the same way. Each pass costs roughly quadratic work in the cluster size, instead of 2m−1−1 candidates, but the greedy split is not guaranteed to be the best one.

Common mistakes

How long your answer should be

About half a page, 3–5 minutes.

Read this

Previous in Unsupervised learning: Centred 2-D data has covariance Σ=(5335). What is a whitening matrix W so that z=Wx has identity covariance? What is z for x=(2,0)⊤, and how do you check that ∥z∥2 equals the Mahalanobis distance of x?
Next in Unsupervised learning: t-SNE maps points xi∈R50 to yi∈R2 by minimising ∑iKL(Pi∥Qi), where pj∣i∝exp⁡(−∥xi−xj∥2/2σ2) in the original space and qj∣i∝(1+∥yi−yj∥2)−1 in the embedding. (a) What happens to the embedding if σ is very large, or very small? (b) How is σ chosen in practice?