Why must you scale features before applying any distance-based outlier method?

Quick Overview

Asks why features must be scaled before running a distance-based outlier detector such as k-NN, LOF or a one-class SVM. Tests whether you can explain how feature ranges distort distances, pick a scaler that the outliers do not skew, and say which methods need no scaling.

Why must you scale features before applying any distance-based outlier method?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Why must you scale features before applying any distance-based outlier method? ```hint Write out the distance Take two records whose features are measured in very different units and write out their Euclidean distance term by term. Which term decides the total? ``` ### What a Strong Answer Covers - How unequal feature ranges let one feature dominate the distance and decide which points look anomalous. - Which outlier methods depend on raw distances and which do not. - How to choose a scaler, and why the outliers themselves can distort the scaling. - Fitting the scaler once on training data and applying the same transform to new data. ### Follow-up Questions - After standardizing, every feature carries equal weight. When is that the wrong choice, and what would you do instead? - How does Mahalanobis distance differ from Euclidean distance on standardized features? - How would you handle a mix of numeric and one-hot categorical features in LOF? - Why does Isolation Forest not need scaling, and is it unaffected by every transformation of a feature?

Overview: Asks why features must be scaled before running a distance-based outlier detector such as k-NN, LOF or a one-class SVM. Tests whether you can explain how feature ranges distort distances, pick a scaler that the outliers do not skew, and say which methods need no scaling.

Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

Why must you scale features before applying any distance-based outlier method?

What a Strong Answer Covers Guidance

  • How unequal feature ranges let one feature dominate the distance and decide which points look anomalous.
  • Which outlier methods depend on raw distances and which do not.
  • How to choose a scaler, and why the outliers themselves can distort the scaling.
  • Fitting the scaler once on training data and applying the same transform to new data.

Follow-up Questions Guidance

  • After standardizing, every feature carries equal weight. When is that the wrong choice, and what would you do instead?
  • How does Mahalanobis distance differ from Euclidean distance on standardized features?
  • How would you handle a mix of numeric and one-hot categorical features in LOF?
  • Why does Isolation Forest not need scaling, and is it unaffected by every transformation of a feature?