Data, Metadata & Bias

IntermediateAbout 12 minData & binary, Impact & ethics

Data can answer big questions — but only if it's tidy, and only if it came from the right people.

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 dataSome of its metadata
A photoDate and time, GPS location, camera model, file size
A songTitle, artist, length, year
A messageSender, 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.

Try it yourself

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?

Check your understanding

5 quick questions. Pick one answer for each — you'll see why straight away.

  1. A photo file stores the date it was taken and the GPS location. That information is…

  2. A survey has the answers "NYC", "New York" and "new york city". Before counting, you should…

  3. To find students' favorite sport, someone only asks the basketball team. What's the problem?

  4. A school notices that students who use the library more get higher grades. Can it say the library causes higher grades?

  5. Why might a program trained on old hiring data make unfair choices?