Skip to the workspace
Pebellslearn by building
Exploring and Explaining Data  ›  Lesson

Missing Values Have Reasons

Exploratory Data Analysis 14 minValues go missing at random, because of something recorded, or because of the missing value itself, and comparing rows with and without the value shows whether dropping or filling blanks would bias the result.

ai data scientist / Missing Values Have Reasons

Explore each scene at your own pace.

01 · The rule

The rule

Missing Values Have Reasons

Pantry asks customers to rate every delivery, but 40% of orders have no rating. The dashboard simply ignores the blanks and shows an average of 4.45 stars. Before anyone celebrates, ask a simple question: who skips the rating? If the customers who stay silent are different from the ones who answer, 4.45 describes the talkers, not the customers.

The rule

Before filling or dropping blanks, ask why they are blank.

Blanks arise in roughly three ways, and each calls for a different response:

  • Unrelated to anything: a logging outage lost the ratings for three days. The gaps are a random slice of orders, so dropping them costs data but adds no bias.
  • Explained by something you recorded: an old app version never shows the rating prompt. The blanks depend on app_version, which you have, so you can compare like with like within each version.
  • Caused by the missing value itself: customers who had a bad delivery close the app without rating. Now the blanks hide exactly the low scores, and both dropping them and filling them with the average will overstate satisfaction.

You usually cannot prove which case you are in, but you can gather strong clues.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.