Why is Ward linkage only valid with Euclidean distance?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why Ward linkage in hierarchical clustering requires Euclidean distance. Tests the sum-of-squares merge cost, the role of centroids and the variance decomposition, how the Lance-Williams update behaves with other metrics, and what to use when the data calls for cosine or Manhattan distance.