How do you identify missing values, and what do missingness patterns suggest about data collection and bias?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
How do you identify missing values in a dataset, what patterns of missingness might you look for, and what could these patterns suggest about the data collection process or potential biases?
```hint Not every gap is a null
Before counting anything, think about the ways a missing value can be recorded so that it does not show up as one.
```
```hint Compare the two groups
For a column with gaps, compare the rows where it is missing with the rows where it is present: other columns, time, source. Then ask what that comparison can and cannot tell you.
```
### What a Strong Answer Covers
- How to count and visualize missingness by column, by row and over time, including disguised nulls
- The MCAR, MAR and MNAR mechanisms, with an example of each
- How to check which mechanism is plausible, and the limit of what the observed data can show
- What specific patterns suggest about the pipeline, the collection process or bias
- How the mechanism affects the way the gaps should be handled
### Follow-up Questions
- How do you tell a field that does not apply to a row from a value that was lost?
- When does adding a missing-indicator feature help a model, and when can it leak the target?
- If you suspect income is missing more often for high earners, what would you do before modeling?
- A column's null rate jumps from 2% to 30% on one date. How do you investigate?
Overview: Asks how to find missing values in a dataset, which patterns of missingness to look for, and what those patterns reveal about data collection and bias. Tests disguised nulls, the MCAR, MAR and MNAR mechanisms, and how far observed data can support each one.