What is a "missing indicator flag," and when might it be beneficial to add one when handling missing data?

Quick Overview

Asks what a missing indicator flag is and when it is worth adding one alongside imputation of missing data. Tests understanding of missingness mechanisms such as MCAR, MAR and MNAR, the order of the flag and fill steps, and the cost of extra feature columns.

What is a "missing indicator flag," and when might it be beneficial to add one when handling missing data?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

You are preparing a tabular dataset for a model, and several features have missing values that you plan to impute. What is a "missing indicator flag," and when might it be beneficial to add one when handling missing data? ```hint Think about what imputation hides After a blank is filled with the median, can the model still tell which rows were blank? Ask whether that fact could be related to the target. ``` ### What a Strong Answer Covers - A definition of the flag and where it is computed relative to the imputation step - The missingness mechanisms under which the flag adds signal, with a concrete example - The costs: extra columns, and little value when values are missing completely at random - How to build the flag and the fill value consistently across training and serving data ### Follow-up Questions - How would you check whether missingness in a column carries information about the target? - Some gradient boosting libraries handle missing values natively. Is the flag still useful there? - A column is missing in 95% of rows. Would you keep the column, keep only the flag, or drop both? - What goes wrong if the missing rate of a flagged column in production differs from the rate in training?

Overview: Asks what a missing indicator flag is and when it is worth adding one alongside imputation of missing data. Tests understanding of missingness mechanisms such as MCAR, MAR and MNAR, the order of the flag and fill steps, and the cost of extra feature columns.

Nov 24, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

You are preparing a tabular dataset for a model, and several features have missing values that you plan to impute.

What is a "missing indicator flag," and when might it be beneficial to add one when handling missing data?

What a Strong Answer Covers Guidance

  • A definition of the flag and where it is computed relative to the imputation step
  • The missingness mechanisms under which the flag adds signal, with a concrete example
  • The costs: extra columns, and little value when values are missing completely at random
  • How to build the flag and the fill value consistently across training and serving data

Follow-up Questions Guidance

  • How would you check whether missingness in a column carries information about the target?
  • Some gradient boosting libraries handle missing values natively. Is the flag still useful there?
  • A column is missing in 95% of rows. Would you keep the column, keep only the flag, or drop both?
  • What goes wrong if the missing rate of a flagged column in production differs from the rate in training?