Why is Euclidean distance over one-hot encoded categories problematic for k-means?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why running k-means with Euclidean distance on one-hot encoded categorical features gives poor clusters. Tests understanding of distances between one-hot vectors, what averaged centroids mean, weighting against numeric features, and alternatives such as k-modes and Gower distance.