How do sentinel missing values like -999, 'N/A' or 0 show up in a distribution, and why are they dangerous?

Quick Overview

Asks how placeholder codes such as -999, 'N/A' or a zero that stands for missing show up when you explore a column's distribution, and why they cause harm. Tests data-quality instincts in exploratory analysis: spotting disguised missing data and reasoning about its effect on statistics, models and missingness rates.

How do sentinel missing values like -999, 'N/A' or 0 show up in a distribution, and why are they dangerous?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

How might disguised or sentinel missing values (like `-999`, `'N/A'`, or `0`-as-missing) reveal themselves in a distribution, and why are they dangerous? ```hint Where to look Picture what one repeated placeholder value does to a histogram, to `describe()` and to `value_counts()`. Then think about what a mean or a model does with that value if nobody removes it. ``` ### What a Strong Answer Covers - The signatures of a sentinel in plots and summary statistics: isolated spikes, out-of-range min or max, odd categories. - How sentinels bias aggregates such as the mean and variance, and that the bias can go in either direction. - What a model learns when a sentinel is treated as a real value. - How sentinels hide the true missingness rate. - How to clean them, and why the meaning of each code should be confirmed first. ### Follow-up Questions - How would you tell a zero that means "missing" from a zero that is a real measurement? - A survey uses `-1` for "refused" and `-2` for "not applicable". How would you encode these before modeling? - How would you screen hundreds of columns for sentinel values without inspecting each one by hand?

Overview: Asks how placeholder codes such as -999, 'N/A' or a zero that stands for missing show up when you explore a column's distribution, and why they cause harm. Tests data-quality instincts in exploratory analysis: spotting disguised missing data and reasoning about its effect on statistics, models and missingness rates.

PracHub logo
General
Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

How might disguised or sentinel missing values (like -999, 'N/A', or 0-as-missing) reveal themselves in a distribution, and why are they dangerous?

What a Strong Answer Covers Guidance

  • The signatures of a sentinel in plots and summary statistics: isolated spikes, out-of-range min or max, odd categories.
  • How sentinels bias aggregates such as the mean and variance, and that the bias can go in either direction.
  • What a model learns when a sentinel is treated as a real value.
  • How sentinels hide the true missingness rate.
  • How to clean them, and why the meaning of each code should be confirmed first.

Follow-up Questions Guidance

  • How would you tell a zero that means "missing" from a zero that is a real measurement?
  • A survey uses -1 for "refused" and -2 for "not applicable". How would you encode these before modeling?
  • How would you screen hundreds of columns for sentinel values without inspecting each one by hand?