Lesson 3 of 4 · Open

Data in tables

How loose notes turn into a table you can read.

After a survey on the team, six notes lie on the table. One says: bike, 4 km, 15 min. The next: train, takes about 35 minutes, 12 km. Everyone wrote it down differently, in a different order. How many come by bike? Who has the longest commute? To see that, you have to read each note one by one.

A data table brings order. In it the answers stand one below the other, and each detail has its fixed place. Here are the six notes as a data table:

PersonTransportDistance in kmTime in min
Person 1bike415
Person 2train1235
Person 3car1825
Person 4on foot112
Person 5bus620
Person 6bike725

Each row belongs to one person. Everything recorded about one case is called a record. A case can be a person, an item in a warehouse, or a single measurement. This table has six records.

Each column belongs to one question of the survey. Whatever was asked about or measured is called a variable. The variables are listed at the top: transport, distance in km, and time in min. The first column only says who it is about, as a number instead of a name.

Where a row and a column cross, there is a cell. It holds a value: what one variable is for one record. For Person 3, the variable distance in km has the value 18.

New terms

data table
a table in which each row is a record and each column is a variable
record
everything recorded about one case: one row of the table
variable
what was asked about or measured: one column of the table
cell
the box where a row and a column cross
value
what one variable is for one record, written in a cell

Quick check

Person 5 comes by bus. What is bus?

Reading in two directions

If you read a row from left to right, you learn everything about one case: Person 2 takes the train, 12 km, for 35 minutes. If you read a column from top to bottom, you compare all cases on one variable: Person 3 has the longest commute, at 18 km.

Data tables are not only for surveys. A bike shop keeps a table of what is in its stockroom. Here a case is not a person, but an item.

ItemColorIn stockPrice in euros
helmetblack849
lockgray1425
bellsilver229
lightblack530

Example

Reading the stock list

You can find what is a record, a variable, and a value in this table in four steps.

  1. Records: four, one per item.
  2. Variables: color, in stock, and price in euros. The first column names the item.
  3. One value: for the lock, the variable in stock has the value 14.
  4. The in stock column from top to bottom: there are more bells than anything else.

One cell, one value

You read columns to count, to compare, and to find the largest value. That only works if each cell holds just one value and all values in a column have the same unit. That is why the unit goes at the top, as in distance in km, and the cells hold only numbers.

Typical mistake

Writing two values in one cell because someone first bikes and then takes the train: bike and train. Then you can no longer count how many come by bike. Does this cell count or not? It is better to ask about the transport for the longest part of the trip. Then exactly one value fits in the cell again.

Remember

In a data table, each record has its own row and each variable its own column. Each cell holds exactly one value.

Tasks

Three tasks complete the lesson. The order does not matter, the text above stays where it is.

Task 1 · Pairs

A data table about apartments. What is what?

Drag every card to its place, or tap it and then the place.

  • the row for apartment 2
  • the column rent in euros
  • the 650 in one cell
  • all the rows and columns

Task 2 · Fill in

A shipping company keeps a data table of its packages. Fill in the words.

Tap a word, it goes into the marked gap.

Each package has its own . The weight in kg has its own . In the cell where the two cross, there is exactly one .

Task 3 · Several right

Top of a table: run, distance in km, time in min, weather. One row: run 3, 5, 31, rain. Which are true?

Several answers are right. Pick all of them.

Go deeper

Three more tasks, optional. They do not count for completing the lesson.

Task 4 · Sorting · optional

What is in these cells? Sort each cell.

Drag every card into its group, or tap the group.

6 cards left

Column height in cm: 172

Task 5 · Choice · optional

The column commute holds: 3 km, 800 m, 2 km. What is the problem?

One answer is right.

Task 6 · Choice · optional

A fitness tracker saves one row each day with steps, sleep, and resting pulse. How many records does a week have?

One answer is right.

Back to the chapter