Collecting representative data
A model learns patterns only from the examples it sees. Collecting representative data starts with defining who and what a model serves, then checking which people or conditions your sample leaves out—because more data alone does not fix a blind spot.
Start with who and what the model serves.
Think of tasting a pot of soup by skimming only the top layer of broth. You miss the vegetables and spices settled at the bottom, no matter how many spoonfuls you take from the top.
Data collection works in a loosely similar way: before gathering examples, you need to define both who will use the model and what real-world conditions it must handle. It is only an analogy—real datasets often span many overlapping people and environments.
This lesson introduces five ideas in order:
- Target population: the full set of people, items, or situations a model is meant to serve in real use.
- Sample: the subset of examples you actually collect to train or check the model.
- Representative sample: a sample that covers the key groups and conditions in the target population well enough for the model to learn patterns across them.
- Coverage gap: a group or condition that exists in the target population but is missing or too scarce in the sample.
- Sampling bias: a systematic skew in how examples are collected that makes some groups or conditions far more likely to appear in the sample than others.
Imagine an invented city transit team building a voice assistant that answers spoken bus-route and arrival questions. To get started quickly, they collect 1,000 voice clips from office staff in a quiet downtown building—standing in for quiet indoor hall speech—during lunch.
To keep the comparison clear, each clip is assigned to one of four non-overlapping primary recording settings: quiet indoor speech, a dry busy roadside stop, inside a moving bus, or a rainy outdoor stop.
| Recording setting | Initial sample | Status |
|---|---|---|
| Quiet indoor hallQuiet indoor speech (office stand-in for transit lobbies) | 1,000 clips | Covered |
| Busy roadside stopDry outdoor stop beside passing buses and traffic | 0 clips | Missing |
| Inside moving busRiders speaking over engine hum and cabin chatter | 0 clips | Missing |
| Rainy outdoor stopRiders speaking through wind and heavy rain | 0 clips | Missing |
Illustrative counts: here “Covered” means examples of that setting appear in the sample (not a guarantee of production accuracy). The initial 1,000 quiet-office clips leave dry roadside stops, moving buses, and rainy stops completely missing.

Why more data is not always better data.
A common assumption is that more data is always better. In practice, adding more examples from the same narrow source only makes a skewed sample bigger—it does not fix a coverage gap.
Suppose the transit team gathers 9,000 more clips from the exact same quiet office, growing the sample to 10,000 clips. Because of sampling bias—collecting whoever is easiest to reach rather than where riders actually speak—the dataset is ten times larger yet still has zero clips from roadside stops, moving buses, or rainy weather.
10,000 narrow office clips
1,000 → 10,000 clips, all recorded in a quiet office.
Coverage stays at 1 of 4 settings. Three blind spots remain untouched.
1,600 varied clips
1,000 quiet clips + 200 clips in each of the three missing settings.
Far smaller than 10,000, yet all 4 of 4 settings now appear in the sample.
Consider an illustrative health app trained on 50,000 clinic photos taken mostly on light skin tones under bright exam lights. Adding 50,000 more photos from the same bright clinic doubles the dataset size while still leaving darker skin tones and dim home lighting under-represented.

Spot the missing group in a sample.
In the activity below, inspect how a sample compares with the people and conditions the model is meant to serve, then test what happens when a team adds more narrow data versus targeted examples.
In Scenario 1, the team recorded voice clips in quiet halls (800), at busy roadside stops (220), and inside moving buses (180), but only on dry afternoons. Comparing those counts against the four target settings immediately exposes Rainy outdoor stop (0 clips) as the missing case.
- Start on 1. Find the missing group and click the missing setting in Metro Bus Voice Helper.
- Switch to City Bike-Share Demand and School Homework Helper to spot both a completely missing case and a scarce group.
- Switch to 2. Test “more data” and compare Add 9,000 office clips (10,000 total) against Add 600 targeted clips (1,600 total).
- Click Reset lab at any time to start fresh.
Who and what it serves: Riders asking spoken bus questions in quiet indoor halls, at dry busy roadside stops, inside moving buses, and at rainy outdoor stops.
How this sample was collected: Recorded across transit halls, roadside stops, and buses on dry afternoons, skipping rainy days.
Grouping criterion: Primary recording condition (quiet indoor, dry roadside stop, inside a moving bus, or rainy outdoor stop—non-overlapping)
Which group or setting is missing or severely under-represented in this sample?
Select one group above to check whether it is the coverage gap in this sample.
Illustrative lab: all scenarios, counts, and labels above are invented for this exercise rather than real measurements. “Covered” means examples appear in this illustrative sample (not a guarantee of sufficient real-world accuracy), and “Scarce” is a relative label within this example (8 essays versus 320–450 in each other band), not a universal numerical cutoff.
How to spot gaps before you train.
You do not need complex maths to catch obvious coverage gaps before a model is trained. Walk through three practical checks:
- Define who and what the model serves: list the real users, items, and operating conditions—including noisy, unusual, or high-stakes cases.
- Trace how examples were collected: ask who or what was easiest to reach, and who was left out by the collection method.
- Count coverage per group, not just total size: a large row count can hide groups with zero or very few examples.
Notice that a representative sample does not have to match exact real-world percentages in every case. Teams often intentionally collect extra examples of smaller or high-stakes groups so the model sees enough of them to learn useful patterns.
- If a dataset has 100,000 examples, isn’t that big enough to be representative?
No. Total size alone does not guarantee coverage—100,000 examples drawn from one narrow channel or setting can still miss entire groups of users.
- Does representative mean every group must match its exact real-world percentage?
Not necessarily. What matters is having enough examples of each relevant group and condition; teams frequently oversample small or critical groups.
- If our sample covers every group, will the model make zero mistakes?
No. Representative collection reduces blind spots, but models still face messy or missing values (Lesson 5.2), shifting real-world conditions, and prediction errors.
Check your understanding.
Take this with you.
More data is not automatically better data. Start by defining the target population—who and what the model serves—then inspect your sample for coverage gaps and sampling bias. Adding more examples from the same narrow source only repeats the same blind spots; targeted collection helps bring missing groups into the sample.
Ready to continue? Return to Data and Evaluation.