How does your choice of downstream model influence your missing value imputation strategy?

Quick Overview

Asks how the model that consumes your features should shape the way you fill missing values, comparing tree ensembles, linear models, distance-based methods and neural networks. Tests feature engineering judgment, awareness of leakage, and keeping preprocessing identical between training and serving.

How does your choice of downstream model influence your missing value imputation strategy?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does your choice of downstream model influence your missing value imputation strategy? Some features in your training data have missing values, and you have to decide how to fill them before training. Explain how that decision changes with the model that will consume the features. ```hint What the model does with the number Ask how each model family uses the value you write into a missing cell: as a position in an ordering, as a magnitude multiplied by a weight, or as a coordinate in a distance. ``` ```hint Missingness can carry signal Think about whether the fact that a value was missing should stay visible to the model, and how each model family could see it. ``` ### What a Strong Answer Covers - How tree ensembles handle missing values and why split-based models tolerate fills that other models do not - What a sentinel value does to linear, distance-based and neural models, and what kind of fill they need instead - The role of a missingness indicator and when it adds information - Constraints that hold for every model: fitting the imputer without leakage, identical logic at training and serving time, and the serving cost of heavy imputers ### Follow-up Questions - How would you test whether missingness itself is predictive of the target? - For a logistic regression, how would you choose between median imputation and an iterative imputer such as MICE? - How would you handle a categorical feature with missing values in a neural network? - A feature that was rarely missing in training is missing in 30% of serving requests. What happens to each model type, and how would you catch it?

Overview: Asks how the model that consumes your features should shape the way you fill missing values, comparing tree ensembles, linear models, distance-based methods and neural networks. Tests feature engineering judgment, awareness of leakage, and keeping preprocessing identical between training and serving.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does your choice of downstream model influence your missing value imputation strategy?

Some features in your training data have missing values, and you have to decide how to fill them before training. Explain how that decision changes with the model that will consume the features.

What a Strong Answer Covers Guidance

  • How tree ensembles handle missing values and why split-based models tolerate fills that other models do not
  • What a sentinel value does to linear, distance-based and neural models, and what kind of fill they need instead
  • The role of a missingness indicator and when it adds information
  • Constraints that hold for every model: fitting the imputer without leakage, identical logic at training and serving time, and the serving cost of heavy imputers

Follow-up Questions Guidance

  • How would you test whether missingness itself is predictive of the target?
  • For a logistic regression, how would you choose between median imputation and an iterative imputer such as MICE?
  • How would you handle a categorical feature with missing values in a neural network?
  • A feature that was rarely missing in training is missing in 30% of serving requests. What happens to each model type, and how would you catch it?