Skip to content
ReEnvision
← Unit 2: Data: what AI learns from

What is data?

Data is recorded information. This lesson shows the forms it takes and how everyday life produces it.

Lesson 2.1 45 minNo coding required

Objectives

By the end of this lesson, you will be able to:

  • Define data and give examples in several forms
  • Distinguish features from labels
  • Describe where the data behind AI systems comes from

Key terms

Data
Recorded information, such as numbers, words, images, sounds or clicks.
Dataset
A collection of data gathered for a purpose.
Feature
One piece of information about an example, such as a fruit's color or weight.
Label
The answer attached to an example, such as "apple" or "spam."

Reading

Data is recorded information

Data is anything that has been written down, measured or captured so it can be used later. A class attendance sheet is data. So is a photo, a voice message, a list of prices, and the record of which videos you watched to the end.

Computers store all of it as numbers. A photo is a grid of numbers describing the color of each tiny dot. A sound is a long list of numbers describing air pressure over time. Text is a sequence of numbers standing for characters or pieces of words. Because everything becomes numbers, the same mathematical tools can learn from all of it.

Features and labels

Picture a table. Each row is one example: one fruit, one email, one house. Each column is a feature, a single fact about that example: color, weight, number of words, number of bedrooms.

Often there is one special column: the label, the answer we want a model to learn to give. For fruit, the label might be the type of fruit. For email, spam or not spam. For houses, the sale price.

A model's job is to learn the link between the features and the label, so that when it sees the features of a new example it can supply the label itself.

Where data comes from

Data has to come from somewhere, and that somewhere is usually people. It is typed into forms, captured by sensors and cameras, gathered from public web pages, and produced as a side effect of using apps: every search, tap and purchase leaves a record.

This matters for two reasons. First, people's data is personal, and they deserve a say in how it is used; we cover privacy in Unit 5. Second, data only describes what was recorded. Communities that are online less, or whose languages are written down less, leave less data behind, and AI systems end up knowing less about them.

Try it · Interactive lab

Feature or label?

In each dataset, is the item a feature (a fact about the example) or the label (the answer to learn)?

Card 1 of 6Score 0

House prices dataset: the number of bedrooms

Group activity 20 min

Build a class dataset

You will need

  • A large sheet of paper or whiteboard drawn as a table
  • Markers
  1. 1

    Choose a harmless question to predict, such as "Does this person prefer mornings or evenings?" That preference is the label.

  2. 2

    As a group, choose four features you think might relate to it: hours of sleep, has a pet, walks or rides to school, favorite season.

  3. 3

    Each learner adds one row to the table. Anyone may skip a column they would rather not answer; leave it blank.

  4. 4

    Look at the finished table. Which features seem related to the label? Which seem unrelated? Keep the table for the next lessons.

Discuss

  1. Q1

    Some people left cells blank. How might missing data affect what we can learn from the table?

  2. Q2

    We chose which features to record. What might we have missed by not asking other questions?

  3. Q3

    How much data do you think you produced yesterday without meaning to?

Write your answer to one of the questions. Saved only on this device.

Quick check

Choose an answer to see whether you were right, and why.

  1. 1In a dataset of houses used to predict sale price, what is the label?

  2. 2How does a computer store a photo?

  3. 3Why might an AI system know less about some communities than others?

Key takeaways

  • Data is recorded information, stored as numbers.
  • Features describe an example; the label is the answer to learn.
  • Data comes from people, and what was not recorded cannot be learned.