Data, Metadata & Bias
Data can answer big questions — but only if it's tidy, and only if it came from the right people.
Swipe or tap Next for the next section
Data About Data
Take a photo on your phone and it saves more than the picture. It also saves when it was taken, where, which phone took it, and how big the file is. That extra information is called metadata: data that describes other data.
| The data | Some of its metadata |
|---|---|
| A photo | Date and time, GPS location, camera model, file size |
| A song | Title, artist, length, year |
| A message | Sender, receiver, time sent |
Metadata is useful — it's how your phone groups photos by place, and how a music app sorts songs by artist. But it can also reveal more than you meant to share. A photo posted online might quietly include exactly where you were standing.
Messy Data
Real data is untidy. People type the same answer in different ways, leave blanks, make typos, or enter things twice. Before you can trust any count or chart, you have to clean the data: fix or remove the mess so that the same answer is always written the same way.
Cleaning data means making it consistent and complete before you analyze it.
20 students answered "What's your favorite lunch?" Here's what they typed:
Bias: Who Did You Ask?
Even perfectly clean data can mislead if it came from the wrong people. If you only ask the basketball team about their favorite sport, basketball will win — but that doesn't tell you about the whole school. This is called a biased sample.
- An online poll only hears from people who are online and choose to answer.
- A survey at 7 a.m. misses everyone who isn't up yet.
- A study of one city may not apply to the whole country.
Bias matters even more when a program learns from data. If the examples it learns from are unfair or one-sided, its decisions will be too. See Bias & the Digital Divide.
A Pattern Isn't a Cause
Data often shows two things rising together: more ice-cream sales and more sunburns, for example. That doesn't mean ice cream causes sunburn — hot weather causes both. When you find a pattern, ask what else could explain it before deciding one thing causes the other.
Good questions to ask any data: Is it clean? Who was included? And does the pattern really mean what it seems to?
5 quick questions. Pick one answer for each — you'll see why straight away.
A photo file stores the date it was taken and the GPS location. That information is…
Metadata is data about data. The photo is the data; the date, location and camera model describe it.
A survey has the answers "NYC", "New York" and "new york city". Before counting, you should…
They're the same answer written three ways. Counting them separately would split one big group into three small ones.
To find students' favorite sport, someone only asks the basketball team. What's the problem?
Who you ask shapes the answer. A biased sample can give a confident, wrong result.
A school notices that students who use the library more get higher grades. Can it say the library causes higher grades?
Students who already study a lot might both use the library more and get better grades. A pattern in data isn't the same as a cause.
Why might a program trained on old hiring data make unfair choices?
A program that learns from data copies the patterns in it — including unfair ones. Biased data in, biased decisions out.