Why is it valid to use squared Euclidean distance instead of true Euclidean distance when ranking neighbors?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why ranking neighbors by squared Euclidean distance gives the same result as ranking by true Euclidean distance in k-nearest neighbors. Tests your grasp of monotonic transformations, the vectorized distance formula, and the cases where the two distances cannot be swapped.