The mean, the median, the mode and the range
What this lesson covers
- A variable is an attribute or measurement of the people or objects being studied. A categorical variable classifies objects or individuals into groups.
- The response to a statistical question can be summarised by a measure of central tendency: the mean, the median, or the mode.
- The response to a statistical question can be summarised by the range as a measure of spread. The range for numerical data is the highest value minus the lowest value.
The average shoe size is 5.3
- Nobody in the class wears a 5.3.
- That is not a mistake.
- And "average" turns out to mean three different things.

First, what you are measuring
- A variable is the thing you record about each person.
- Shoe size. Height. Favourite sport.
- Some are numbers, some are groups.
| Variable | What it is | Type |
|---|---|---|
| Shoe size | a measurement | numerical |
| Height in cm | a measurement | numerical |
| Favourite sport | a group you belong to | categorical |
| How you get to school | a group you belong to | categorical |
Numerical or categorical
- Numerical: a measurement you can do maths on.
- Categorical: which group you fall into.
- You cannot take the mean of "rugby".
| Variable | What it is | Type |
|---|---|---|
| Shoe size | a measurement | numerical |
| Height in cm | a measurement | numerical |
| Favourite sport | a group you belong to | categorical |
| How you get to school | a group you belong to | categorical |
Planning before collecting
- Start with a question: are our feet the same length?
- Decide what to measure, from whom, and how.
- Decide the rounding before you start, not after.
| Decide | Here | |
|---|---|---|
| The question | Are our feet the same length? | |
| The variable | foot length | numerical |
| Who from | everyone in the class | |
| How measured | ruler, to the nearest cm |
A dot plot shows the whole set
- One dot per person, stacked over its value.
- Now you can see the shape of the data.
- And all three averages are already visible.

The mode is the tallest stack
- Whichever value has the most dots.
- Three people wear a 5. Nothing else has three.
- The mode is 5.

The median is the middle dot
- Line them up in order and go to the middle.
- Ten values, so the middle is between the 5th and 6th.
- Both are 5, so the median is 5.

Doing that carefully
- Sorting first is not optional. It is the whole method.
- With an even count there is no single middle.
- Take the two in the middle and go halfway.
| Step | Working | Result |
|---|---|---|
| Sort them | 3 4 4 5 5 5 6 6 7 8 | |
| Ten values | so no single middle | |
| Take the 5th and 6th | 5 and 5 | |
| Halfway between | 5 |
The mean shares everything out
- Add every value, then divide by how many there are.
- It is what everyone would have if it were shared equally.
- Which is why it does not have to be a real value.

Try it: share it out
Working out the mean
- The ten sizes total 53.
- 53 ÷ 10 = 5.3.
- No shoe shop sells a 5.3. It is still the right answer.
| Step | Working | Result |
|---|---|---|
| Add them all | 3+4+4+5+5+5+6+6+7+8 | 53 |
| How many | 10 | |
| Divide | 53 ÷ 10 | 5.3 |
The range is the spread
- Highest take away lowest.
- 8 − 3 = 5.
- It says how spread out, not where the middle is.

All four together
- Three of them describe the middle.
- One describes the spread.
- A summary usually needs one of each.
| Measure | Means | Here |
|---|---|---|
| Mode | the most common value | 5 |
| Median | the middle value | 5 |
| Mean | shared out equally | 5.3 |
| Range | highest minus lowest | 5 |
Try it: all four at once
Now watch what one odd value does
- A different data set, with one very large value.
- Six values clustered together, and a 41.
- That 41 is called an outlier.

It drags the mean, not the median
- The mean is 16.9, bigger than six of the seven values.
- The median is 13, right in the cluster.
- The mean was pulled. The median was not.

By how much
- Take the 41 out and the mean drops to 12.8.
- The median only moves from 13 to 12.5.
- One value moved the mean eight times as far.
| Data | Mean | Median |
|---|---|---|
| With the 41 | mean 16.9 | median 13 |
| Without it | mean 12.8 | median 12.5 |
| Moved by | 4.1 | 0.5 |
So which one do you use?
- For categories, only the mode works at all.
- With an extreme value, the median is safer.
- The mean uses everything, including the extreme value.
| Measure | When |
|---|---|
| Mode | the only one that works for categories |
| Median | safest when there is an extreme value |
| Mean | uses every value, but one big one drags it |
Try it: which average?
Common mistakes
- The median of 9, 3, 7, 4 is the middle two, 3 and 7, so it is 5.Sort first: 3, 4, 7, 9, so the median is halfway between 4 and 7, which is 5.5.
- The mean shoe size is 5.3, but no one wears a 5.3, so I rounded it to 5.The mean does not have to be a real value; leave it as 5.3.
- The range is 3 to 8.The range is one number, highest minus lowest: 8 − 3 = 5.
- The mode is 3, because 3 is the smallest value.The mode is the value that appears most often, the tallest stack on the dot plot, not the smallest.
Your turn: eight questions
- Try all eight.
- On question 2, sort them before you do anything.
- That is where most marks are lost.
Find the mode of 2, 3, 3, 5, 7, 3, 8.
Find the median of 4, 9, 2, 7, 5.
Find the mean of 6, 8, 10, 12.
Find the range of 14, 9, 22, 17.
A class records four variables about each student. Which one is categorical?
Find the median of 3, 8, 5, 10, 6, 12.
The mean of four numbers is 6. Three of them are 3, 5 and 7. What is the fourth?
Five students get weekly pocket money of $5, $6, $6, $7 and $51. Find the mean and the median.
Show answer
1. 3. It appears three times, more than anything else. 2. 5. Sorted they are 2, 4, 5, 7, 9, and 5 is the middle one. 3. 9. They total 36, and 36 ÷ 4 = 9. 4. 13. The highest is 22 and the lowest is 9. 5. Favourite fruit. It puts each student in a group; the other three are measurements or counts you can do maths on. 6. 7. Sorted they are 3, 5, 6, 8, 10, 12. Six values, so go halfway between the 3rd and 4th: 6 and 8 give 7. 7. 9. Four numbers with mean 6 total 4 × 6 = 24, and 3 + 5 + 7 = 15, so the fourth is 24 − 15 = 9. 8. Mean $15, median $6. The total is $75 and 75 ÷ 5 = 15; the middle of the five sorted values is $6. The $51 drags the mean up.
The answers
- The mode is 3; it appears three times.
- Sorted, the median is 5. The mean is 36 ÷ 4 = 9.
- The range is 22 − 9 = 13.
| Answer | |
|---|---|
| 1 | mode 3 |
| 2 | median 5 |
| 3 | mean 9 |
| 4 | range 13 |
Center and Variability

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0
What to take away
- Three averages: mode, median, mean. They can disagree.
- Always sort before finding a median.
- One extreme value drags the mean and barely moves the median.
| Remember | |
|---|---|
| Mode | most common: the tallest stack |
| Median | middle; sort them first, always |
| Mean | add and divide; uses every value |
| Range | highest minus lowest, a measure of spread |
| One extreme value | moves the mean a lot, the median barely |
Challenge
A group of friends from a Tauranga surf club have a mean age of exactly 12. Their 36-year-old coach joins the group, and the mean age of everyone becomes exactly 15. (a) How many friends are there? (b) The friends' ages are 11, 11, 12, 12, 12, 13 and 13. Find the median age before and after the coach joins. Which average, the mean or the median, better describes a typical age in the group with the coach?
Hint
Think of the mean as sharing out. Once the mean is 15, each friend is 3 years below it. How far above 15 is the coach, and how many friends does it take to balance that?
Answer
(a) 7 friends. (b) The median is 12 before and 12 after. The median describes a typical age better, because the coach is an extreme value who drags the mean up to 15, older than every friend.
Step by step
- With a mean of 15, the amounts above and below 15 must balance.
- Each friend is 12, so each is 3 below 15.
- The coach is 36, which is 21 above 15.
- 21 ÷ 3 = 7, so 7 friends balance the coach.
- Sorted with the coach, the 4th and 5th ages are 12 and 12, so the median stays 12.
- The mean of 15 is bigger than every friend's age, so the median is the better summary.
Full working
- 36 − 15 = 21the coach is 21 above the new mean
- 15 − 12 = 3each friend is 3 below the new mean
- 21 ÷ 3 = 7friends needed to balance the coach
- Check: 7 × 12 + 36 = 120, and 120 ÷ 8 = 15the mean works
- 11, 11, 12, 12, 12, 13, 13median before is the 4th value, 12
- 11, 11, 12, 12, 12, 13, 13, 36median after is halfway between 12 and 12, so 12
- (a) 7 friends. (b) Median 12 before and after; the median is the better typical age
Seven students sat a spelling test marked out of 20, and every mark is a whole number. Six of the marks are 12, 15, 9, 18, 15 and 11. The seventh mark was smudged. The teacher remembers that the mean of all seven marks was exactly equal to their median. What was the smudged mark? Show that no other mark out of 20 works.
Hint
The six known marks add to 80. The median of seven marks is the 4th one in order, and which mark is 4th depends on where the smudged mark fits in. Try the cases: smudged mark small, middle-sized, or large.
Answer
The smudged mark was 4.
Step by step
- The known marks total 80, so the total of all seven is 80 plus the smudged mark.
- Sorted, the known marks are 9, 11, 12, 15, 15, 18.
- If the smudged mark is 12 or less, the median is 12, so the total must be 7 × 12 = 84, giving a mark of 4. That fits.
- If it is between 12 and 15, it is itself the median, and then 80 must be six times the mark. 80 ÷ 6 is not a whole number, so this fails.
- If it is 15 or more, the median is 15, so the total must be 105, giving a mark of 25. That is more than 20, so it fails.
- Only 4 works.
Full working
- 12 + 15 + 9 + 18 + 15 + 11 = 80total of the six known marks
- Sorted: 9, 11, 12, 15, 15, 18sort before finding a median
- Case mark ≤ 12: median = 12, total = 7 × 12 = 84mean must equal the median
- 84 − 80 = 4, and 4 ≤ 12this case works
- Case 12 to 15: median = mark, so 80 + mark = 7 × markthe mark is the 4th value
- 6 × mark = 80 gives 13.33...not a whole number, fails
- Case mark ≥ 15: median = 15, total = 105, mark = 25more than 20, fails
- Check: 4, 9, 11, 12, 15, 15, 18 has total 84, mean 12, median 12it works
- The smudged mark was 4
In a Year 7 class in Nelson, Group A has 5 students with a mean height of 150 cm and a range of 10 cm. Group B has 5 students with a mean height of 160 cm and also a range of 10 cm. All heights are whole centimetres. The two groups are put together into one group of 10. What is the smallest possible range of heights for the 10 students, and what is the largest possible range? Give a set of heights for each.
Hint
If Group A's shortest student is a cm, its tallest is a + 10. How low or high can the mean be then? The lowest mean comes when four students are as short as possible and one is as tall as possible. Do the same for Group B, then think about which shortest and tallest heights give the combined range.
Answer
Smallest possible range 14 cm, for example A: 148, 148, 148, 148, 158 and B: 152, 162, 162, 162, 162. Largest possible range 26 cm, for example A: 142, 152, 152, 152, 152 and B: 158, 158, 158, 158, 168.
Step by step
- Say Group A's shortest is a cm, so its tallest is a + 10 cm.
- The mean of A is smallest with a, a, a, a, a + 10, which is a + 2, and largest with a, a + 10, a + 10, a + 10, a + 10, which is a + 8.
- The mean is 150, so a is between 142 and 148. In the same way, Group B's shortest is between 152 and 158.
- The combined range is B's tallest minus A's shortest, which is (B's shortest + 10) − A's shortest.
- Smallest: B's shortest 152 and A's shortest 148, range 162 − 148 = 14.
- Largest: B's shortest 158 and A's shortest 142, range 168 − 142 = 26.
Full working
- Group A: shortest a, tallest a + 10range 10
- a, a, a, a, a + 10 has mean a + 2lowest possible mean for A
- a, a + 10, a + 10, a + 10, a + 10 has mean a + 8highest possible mean for A
- a + 2 ≤ 150 ≤ a + 8, so 142 ≤ a ≤ 148A's shortest
- Same for B: 152 ≤ b ≤ 158B's shortest, since its mean is 160
- Combined range = (b + 10) − aB holds the tallest, A the shortest
- Smallest: b = 152, a = 148 gives 162 − 148 = 14A: 148, 148, 148, 148, 158 (total 750); B: 152, 162, 162, 162, 162 (total 800)
- Largest: b = 158, a = 142 gives 168 − 142 = 26A: 142, 152, 152, 152, 152 (total 750); B: 158, 158, 158, 158, 168 (total 800)
- Smallest range 14 cm, largest range 26 cm


