When would you choose min-max normalization over z-score standardization before running KNN?

Quick Overview

Asks when min-max normalization is a better choice than z-score standardization before running k-nearest neighbors. Tests how feature bounds and outliers change each feature's weight in the distance, how one-hot features fit in, and what alternatives to both scalers exist.

When would you choose min-max normalization over z-score standardization before running KNN?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you choose min-max normalization over z-score standardization before running KNN? ```hint Watch the denominator Ask what a single extreme value does to the denominator of each scaler, and what that does to the distance contribution of every other point on that feature. ``` ### What a Strong Answer Covers - The feature properties that should drive the choice between the two scalers, with concrete examples - How each scaler reacts to an outlier, and what that does to the feature's weight in the distance - How binary or one-hot features fit into each scheme - Alternatives to both scalers, and how to choose among the options in practice ### Follow-up Questions - How does a rare one-hot category behave after z-score standardization in a KNN distance? - What would you do with a heavily right-skewed feature such as income before running KNN? - How should the pipeline treat test values that fall outside the training range? - If some features matter more than others, how would you weight them in the distance?

Overview: Asks when min-max normalization is a better choice than z-score standardization before running k-nearest neighbors. Tests how feature bounds and outliers change each feature's weight in the distance, how one-hot features fit in, and what alternatives to both scalers exist.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When would you choose min-max normalization over z-score standardization before running KNN?

What a Strong Answer Covers Guidance

  • The feature properties that should drive the choice between the two scalers, with concrete examples
  • How each scaler reacts to an outlier, and what that does to the feature's weight in the distance
  • How binary or one-hot features fit into each scheme
  • Alternatives to both scalers, and how to choose among the options in practice

Follow-up Questions Guidance

  • How does a rare one-hot category behave after z-score standardization in a KNN distance?
  • What would you do with a heavily right-skewed feature such as income before running KNN?
  • How should the pipeline treat test values that fall outside the training range?
  • If some features matter more than others, how would you weight them in the distance?