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:
| Person | Transport | Distance in km | Time in min |
|---|---|---|---|
| Person 1 | bike | 4 | 15 |
| Person 2 | train | 12 | 35 |
| Person 3 | car | 18 | 25 |
| Person 4 | on foot | 1 | 12 |
| Person 5 | bus | 6 | 20 |
| Person 6 | bike | 7 | 25 |
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.
| Item | Color | In stock | Price in euros |
|---|---|---|---|
| helmet | black | 8 | 49 |
| lock | gray | 14 | 25 |
| bell | silver | 22 | 9 |
| light | black | 5 | 30 |
Example
Reading the stock list
You can find what is a record, a variable, and a value in this table in four steps.
- Records: four, one per item.
- Variables: color, in stock, and price in euros. The first column names the item.
- One value: for the lock, the variable in stock has the value 14.
- 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
Tasks
Task 1 · Pairs
A data table about apartments. What is what?
Task 2 · Fill in
A shipping company keeps a data table of its packages. Fill in the words.
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?
Go deeper
Task 4 · Sorting · optional
What is in these cells? Sort each cell.
6 cards left
Task 5 · Choice · optional
The column commute holds: 3 km, 800 m, 2 km. What is the problem?
Task 6 · Choice · optional