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 and points, and what does one DIANA split give on the 1-D points (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 points can be cut into two non-empty parts in 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
- The plain-words comparison comes first: see `agnes-vs-diana-hierarchical`. Here we do the counting and the mechanics.
- Counting: each of points goes to one of two sides, giving assignments. Remove the two where one side is empty, and divide by 2 because swapping the sides gives the same split: . For this is ; for it is ; for it is over . By comparison, the first agglomerative step only looks at pairs, which is for .
- So exact search is impractical and DIANA is greedy. Step 1: for each point compute its average dissimilarity to the other four points. For these are . The largest is for the point , so the splinter group starts as .
- 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 : to it is , and to it is . The difference , so moves to the splinter group, giving .
- Step 3: repeat with splinter and remainder . For : to it is and to it is , a negative difference, so it stays. The points and stay too. No point moves, so the split is final: .
- DIANA then picks the cluster with the largest diameter (here with diameter 2, against 1 for ) and splits it the same way. Each pass costs roughly quadratic work in the cluster size, instead of candidates, but the greedy split is not guaranteed to be the best one.
Common mistakes
- Forgetting to divide by 2 and quoting splits. A split is the same as .
- Starting the splinter group with the point furthest from the centroid or choosing at random. In DIANA it is the point with the largest average dissimilarity to all the others.
- Thinking the greedy result is the optimal split. It is a heuristic and is never revisited once made.
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 . What is a whitening matrix so that has identity covariance? What is for , and how do you check that equals the Mahalanobis distance of ?
Next in Unsupervised learning: t-SNE maps points to by minimising , where in the original space and in the embedding. (a) What happens to the embedding if is very large, or very small? (b) How is chosen in practice?