Lesson 2 of 4 · Open
Mean and median
Two ways to describe a list of numbers with a single number.
Five people work at a small company. Per hour they earn 12, 13, 14, 15, and 96 euros. The 96 euros go to the owner. What does someone typically earn there? There are two common answers to this question, and here they are far apart: 30 euros and 14 euros.
The mean: splitting everything evenly
The first answer is the mean, usually called the average in everyday life. You add up all the values. Then you divide the result, the sum, by how many values there are. The question behind it: how much would each person get if all the money were split evenly among everyone? Every value counts here, even a 0.
Example
The mean of the five wages
The wages are 12, 13, 14, 15, and 96 euros. How much would each person get if everyone got the same?
euros per hour
- Add up: 12 + 13 + 14 + 15 + 96 = 150
- Count the values: there are 5.
- Divide: 150 : 5 = 30
- The mean is 30 euros.
The median: the value in the middle
The second answer is the median. It takes hardly any calculating, but it does take sorting: write down all the values from smallest to largest and take the value that sits exactly in the middle. Then there are equally many values to its left and to its right. The wages are already sorted: 12, 13, 14, 15, 96. The median is 14 euros.
Do not skip the sorting. In an unordered list, some value or other sits in the middle, and it tells you nothing. A safe way to find the middle: cross off one value on the left and one on the right, in turns, until only one is left.
Example
Five commutes
Five people take 35, 12, 50, 18, and 27 minutes to get to work. In this order, the 50 sits in the middle. It is not the median, because the list is not sorted yet.
- Sort: 12, 18, 27, 35, 50
- Cross off the outer values: 12 and 50
- Cross off the outer values again: 18 and 35
- The 27 is left. The median is 27 minutes.
An even count: two values in the middle
With five or seven values, exactly one is left in the middle. With an even count, such as four or six values, two are left. Then the median lies exactly between these two: you add them and divide by 2. The result does not have to be a value from the list, and it can be a decimal. The same is true of the mean.
Example
Four plants
Four plants are 18, 7, 11, and 30 cm tall. What is the median?
- Sort: 7, 11, 18, 30
- Two values sit in the middle: 11 and 18
- Add them: 11 + 18 = 29
- Divide by 2: 29 : 2 = 14.5
- The median is 14.5 cm.
- For comparison, the mean: (18 + 7 + 11 + 30) : 4 = 66 : 4 = 16.5 cm
What an outlier does
Why are 30 euros and 14 euros so far apart? The reason is the 96. A value that lies far away from all the others is called an outlier. Here it makes the sum larger and so pulls the mean toward itself. The median only pays attention to which value sits in the middle. How far out the largest value lies makes no difference to it. The table shows this with three lists in which only the highest wage changes.
euros per hour
| Wages in euros | Mean | Median |
|---|---|---|
| 12, 13, 14, 15, 16 | 14 | 14 |
| 12, 13, 14, 15, 96 | 30 | 14 |
| 12, 13, 14, 15, 960 | 202.8 | 14 |
When all the values are close together, the mean and the median are almost the same, and both describe the list well. When there are outliers, as there often are with incomes, prices or wait times, the median usually captures the typical value better. An outlier can also be especially small. Then it pulls the mean down.
Typical mistake
Taking the mean for what a typical person earns. At the company that would be 30 euros. This cannot be right: nobody there earns 30 euros, and four out of five are far below it, at 15 euros at most. The mean only tells you how much each person would get if everything were split evenly.
Remember
Tasks
Task 1 · Input
Five packages are in transit for 2, 3, 4, 10, and 16 days. What is the mean?
Task 2 · Input
The temperature is measured at noon for seven days, in °C. What is the median?
Task 3 · Sorting
Five wait times in minutes. The longest was not 12 but 62. What changes because of that?
6 cards left
Go deeper
Task 4 · Input · optional
Over six days, Mia bikes 7, 21, 0, 9, 1, and 25 km. What is the mean per day?
Task 5 · Choice · optional
In which list are the mean and the median far apart?
Task 6 · Several right · optional