Data cleaning for consistency vs feature scaling and normalization for a model: how do you tell them apart?

Quick Overview

Asks how cleaning and standardizing values for consistency differs from feature scaling and normalization done for a model. Tests where each step belongs in a data pipeline, which algorithms need scaling, how to avoid leakage when fitting scaling parameters, and how to classify borderline steps such as imputation.

Data cleaning for consistency vs feature scaling and normalization for a model: how do you tell them apart?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How do you distinguish cleaning or standardizing values for consistency from feature scaling and normalization done for a model? ```hint Think about who reads the data Consider the different people and systems that read the same table, and which of them each kind of change is for. ``` ```hint Ask what the transform learns Check whether a transformation's parameters come from a fixed rule or from statistics of the data, and what that implies for a train/test split. ``` ### What a Strong Answer Covers - The purpose of each kind of transformation and the problem each one fixes, with concrete examples - The overlap in vocabulary ("standardize", "normalize") and how to keep the meanings apart - Which algorithms need scaling and which do not - Where each step lives in a pipeline, how scaling parameters are fit without leakage, and how borderline steps such as imputation or outlier handling are classified ### Follow-up Questions - Where does imputing missing values with the median belong, and why? - A few rows have age 999. Is fixing them cleaning or a modeling step? What about capping incomes at the 99th percentile? - Why does z-scoring not fix a skewed feature, and what would? - How do you make sure serving applies exactly the scaling used in training?

Overview: Asks how cleaning and standardizing values for consistency differs from feature scaling and normalization done for a model. Tests where each step belongs in a data pipeline, which algorithms need scaling, how to avoid leakage when fitting scaling parameters, and how to classify borderline steps such as imputation.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

How do you distinguish cleaning or standardizing values for consistency from feature scaling and normalization done for a model?

What a Strong Answer Covers Guidance

  • The purpose of each kind of transformation and the problem each one fixes, with concrete examples
  • The overlap in vocabulary ("standardize", "normalize") and how to keep the meanings apart
  • Which algorithms need scaling and which do not
  • Where each step lives in a pipeline, how scaling parameters are fit without leakage, and how borderline steps such as imputation or outlier handling are classified

Follow-up Questions Guidance

  • Where does imputing missing values with the median belong, and why?
  • A few rows have age 999. Is fixing them cleaning or a modeling step? What about capping incomes at the 99th percentile?
  • Why does z-scoring not fix a skewed feature, and what would?
  • How do you make sure serving applies exactly the scaling used in training?