Vertex Learn

Mean, median, mode and 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. Discrete numerical variables are counted. Continuous numerical variables are measured.
  • The response to a statistical question can be summarised by a measure of central tendency. The mean is the average of numerical data. The median is the middle value for sorted numerical data. The mode is the data value with the highest frequency for categorical data or discrete numerical data.
  • 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.
Key idea

Are our feet the same length?

  • That is a real question, and you cannot answer it by thinking.
  • You have to go and measure some feet.
  • Then you have to say something honest about the numbers.
Step
1. Ask a question
2. Collect data that could answer it
3. Summarise it
4. Answer the question
Key idea

What you measure is the variable

  • A variable is the thing you record about each person.
  • Foot length. Eye colour. Number of siblings.
  • They are not all the same kind of thing.
VariableBecauseKind
Eye coloursorts into groupscategorical
Number of siblingscounteddiscrete numerical
Foot lengthmeasuredcontinuous numerical
Favourite sportsorts into groupscategorical
Key idea

Categorical sorts into groups

  • Eye colour puts each person into a group.
  • Blue, brown, green. There is no arithmetic to do.
  • You cannot find the average eye colour of a class.
VariableBecauseKind
Eye coloursorts into groupscategorical
Number of siblingscounteddiscrete numerical
Foot lengthmeasuredcontinuous numerical
Favourite sportsorts into groupscategorical
Key idea

And numerical splits two ways

  • Counted things are discrete. Measured things are continuous.
  • The test: could it sensibly be a half?
  • Not half a sibling. But 24.5 centimetres is fine.
QuestionAnswerMeans
Can it be a half?Nocounted, so discrete
Yesmeasured, so continuous
Siblingsno half siblings herediscrete
Foot length24.5 cm is finecontinuous
Worked example

So: six people, feet measured

  • 22, 24, 24, 25, 26 and 29 centimetres.
  • Continuous numerical data, because we measured it.
  • Already sorted, which saves a step later.
So: six people, feet measured
Worked example

The mean: share it out evenly

  • Add every value: 150.
  • Divide by how many there are: 150 ÷ 6.
  • 25 centimetres. That is the mean.
StepWorkingGives
Add them all22+24+24+25+26+29150
Divide by how many150 ÷ 625
Mean25 cm
Key idea

It is the balancing point

  • Put the mean on the plot and look at it.
  • The values below it balance the values above it.
  • Which is why one very large value drags it upwards.
It is the balancing point
Key idea

Try it: the balancing point

Worked example

The median: the middle one

  • Sort the data first. Always. Otherwise this is meaningless.
  • Six values, so there is no single one in the middle.
  • Take the middle two, 24 and 25, and go halfway: 24.5.
StepWorkingGives
Sort them first22, 24, 24, 25, 26, 29
Six valuesno single middle one
Take the middle two24 and 25
Halfway between(24 + 25) ÷ 224.5 cm
Key idea

Odd is easier than even

  • Five values: the third one is the middle. Done.
  • Four values: the middle two, averaged.
  • 3, 5, 8, 10 gives (5 + 8) ÷ 2, which is 6.5.
How manyMiddleMedian
Odd, say 5the 3rd valuethat value
Even, say 6the 3rd and 4thhalfway between
3, 5, 8, 105 and 86.5
Worked example

The mode: the most common

  • Which value turns up most often?
  • 24 appears twice, everything else once.
  • So the mode is 24 centimetres.
StepWorkingGives
Which value repeats?24 appears twice
Everything elseappears once
Mode24 cm
Worked example

And the range is not an average at all

  • Highest minus lowest. 29 − 22 = 7 centimetres.
  • It does not tell you where the data sits.
  • It tells you how spread out it is. Different question.
StepWorkingGives
Highest29 cm
Lowest22 cm
Range29 − 227 cm
Key idea

Three centres, three answers

  • Mean 25. Median 24.5. Mode 24.
  • All three are correct. They disagree.
  • So "the average foot is 25 cm" needs saying which one you used.
MeasureValueWhat it is
Mean25 cmthe balancing point
Median24.5 cmthe middle one
Mode24 cmthe most common
Range7 cmhow spread out
Key idea

Try it: three centres

Key idea

Back to the question we asked

  • Are our feet the same length? No.
  • They differ by up to 7 centimetres, which is the range.
  • The centre tells you the typical foot. The range answers this.
Back to the question we asked
Key idea

One honest warning about the mode

  • Our 24 repeated because we rounded to whole centimetres.
  • Measure to the millimetre and probably nothing repeats at all.
  • On measured data the mode is often useless.
DataMode is
Eye colourthe only optionessential
Number of siblingssensibleuseful
Foot length to the mmprobably nothing repeatsuseless
Key idea

So which one should you use?

  • Categorical data leaves you only the mode.
  • If a few values are extreme, the median resists them better.
  • And if you want spread rather than centre, use the range.
SituationBecauseUse
Categorical datamean and median impossiblemode
Measured datamode often meaninglessmean or median
A few extreme valuesmean gets draggedmedian
Spreadnone of the threerange
Key idea

Try it: sort, middle, pull

Common mistakes

  • The median of 25, 22, 29 is 22, the middle one written.
    Sort the data first: 22, 25, 29, so the median is 25.
  • The median of 22, 24, 24, 25, 26, 29 is 24 or 25.
    With an even number of values, the median is halfway between the middle two: (24 + 25) ÷ 2 = 24.5 cm.
  • The range is 22 to 29.
    The range is one number: highest minus lowest, 29 − 22 = 7 cm.
  • Foot length is discrete, because I wrote whole numbers.
    Foot length is measured, so it is continuous even when rounded to the nearest centimetre.
Your turn

Your turn: eight questions

  • The data is 5, 8, 8, 11 and 13.
  • Five values, so the median is straightforward.
  • Label your answers. Two of them come out the same number.
Question
The data: 5, 8, 8, 11, 13
1Find the mean.
2Find the median.
3Find the mode and the range.
4The number of goals scored in each netball game is recorded. What kind of variable is it?
5A Year 8 class in Hamilton records each student's eye colour. Which measure of centre can they use?
6Find the median of 12, 7, 15, 9.
7Tama finds the range of 6, 15, 9, 4, 11 as 11 − 6 = 5. What did he do wrong?
8Five test scores have a mean of 14. Four of them are 12, 15, 10 and 17. What is the fifth score?
1
2
3
4
5
6
7
8
Show answer

1. 9. They add to 45, and 45 ÷ 5 = 9. 2. 8. Five values, so the middle one is the third, and they are already sorted. 3. Mode 8, the only repeated value. Range 13 − 5 = 8. Note the mode and the range are both 8 here and mean completely different things, which is a good reason to label your answers. 4. Discrete numerical: it is counted. You count goals, and you cannot score half a goal. 5. The mode only: eye colour is categorical. You cannot add colours for a mean or sort them for a median. 6. 10.5. Sorted it is 7, 9, 12, 15, so the middle two are 9 and 12, and (9 + 12) ÷ 2 = 10.5. 7. He used the first and last values; the range is 15 − 4 = 11. The range is highest minus lowest, wherever they sit in the list. 8. 16. Five scores with mean 14 total 14 × 5 = 70, and the four given add to 54, so 70 − 54 = 16.

Worked example

The answers

  • They add to 45, so the mean is 9.
  • The median is the third value, which is 8.
  • The mode is 8 too. And the range is 13 − 5, which is also 8.
Answer
Mean9
Median8
Mode8
Range8
Try it

Center and Variability

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0

Summary

What to take away

  • Start with a question. The arithmetic is there to answer it.
  • Mean, median and mode are three answers and they disagree.
  • The range is spread, not centre. Say which one you used.
Remember
Start with a questionnot with the arithmetic
Counted or measuredtells discrete from continuous
Meanadd them all, divide by how many
Mediansort first, then take the middle
Rangehighest minus lowest, a spread not a centre

Challenge

1

A Year 8 test was marked out of 40. Ms Tane turned every mark into a percentage (multiply by 2.5) and then gave everyone 5 bonus points. After both changes, the class's marks have a mean of 70, a median of 72.5, a mode of 80 and a range of 45. Work backwards to find the mean, median, mode and range of the original marks out of 40. Explain why the bonus points made no difference to the range.

Hint

Every mark went through the same two steps, so the mean, median and mode did too. Undo the steps in reverse order. For the range, think about what adding 5 to the highest and the lowest mark does to the gap between them.

Answer

Original mean 26, median 27, mode 30, range 18. Adding 5 to every mark moves the highest and lowest up by the same amount, so the gap between them does not change; only the multiplying by 2.5 stretched it.

Step by step
  1. Each mark was multiplied by 2.5 and then had 5 added, so the mean, median and mode were changed in exactly the same way.
  2. To undo it, take off the 5 first and then divide by 2.5.
  3. Mean: 70 − 5 = 65, and 65 ÷ 2.5 = 26. Median: 72.5 − 5 = 67.5, and 67.5 ÷ 2.5 = 27. Mode: 80 − 5 = 75, and 75 ÷ 2.5 = 30.
  4. The range is a gap, highest minus lowest. Adding 5 to both ends leaves the gap the same.
  5. Multiplying by 2.5 makes the gap 2.5 times as big, so the original range was 45 ÷ 2.5 = 18.
Full working
  1. new value = 2.5 × old value + 5true for every mark, so for mean, median and mode
  2. old value = (new value − 5) ÷ 2.5undo in reverse order
  3. mean: (70 − 5) ÷ 2.5 = 65 ÷ 2.5 = 26original mean
  4. median: (72.5 − 5) ÷ 2.5 = 67.5 ÷ 2.5 = 27original median
  5. mode: (80 − 5) ÷ 2.5 = 75 ÷ 2.5 = 30original mode
  6. (2.5H + 5) − (2.5L + 5) = 2.5(H − L)the two 5s cancel in highest minus lowest
  7. range: 45 ÷ 2.5 = 18only the 2.5 affects the range
  8. Mean 26, median 27, mode 30, range 18 (marks out of 40)
2

Twenty Year 8 students in a Gisborne class recorded how many siblings they have. 3 students have 0 siblings, x students have 1, 5 students have 2, y students have 3 and 2 students have 4. The mode is 1 (and only 1), and the median is 2. Find x and y. Then find the mean and the range.

Hint

x + y has to make the total 20. Line the 20 answers up in order: the median is halfway between the 10th and 11th. Which positions do the students with 2 siblings fill? Then ask how big x must be for 1 to beat every other count.

Answer

x = 6 and y = 4. The mean is 1.8 siblings and the range is 4 siblings.

Step by step
  1. There are 3 + 5 + 2 = 10 students already counted, so x + y = 10.
  2. In order, the 0s fill places 1 to 3 and the 1s fill places 4 to 3 + x. The 2s come next.
  3. For the median to be 2, the 10th and 11th places must both be 2s. The 1s must stop before place 10, so 3 + x is at most 9, which means x is at most 6.
  4. For 1 to be the only mode, x must be more than 5 (the number of 2s), so x is at least 6.
  5. So x = 6 and y = 4. Check: 6 is bigger than 3, 5, 4 and 2, so 1 really is the only mode.
  6. Total siblings: 0 × 3 + 1 × 6 + 2 × 5 + 3 × 4 + 4 × 2 = 36, so the mean is 36 ÷ 20 = 1.8. Range 4 − 0 = 4.
Full working
  1. 3 + x + 5 + y + 2 = 20, so x + y = 10twenty students in all
  2. places 1 to 3: 0, places 4 to 3 + x: 1sort the answers
  3. median = halfway between 10th and 11th = 220 values, an even number
  4. 3 + x ≤ 9, so x ≤ 6the 10th value must not be a 1
  5. x > 5, so x ≥ 61 must be more common than 2
  6. x = 6, y = 4both conditions together
  7. check: 2s fill places 10 to 14, so median = 2it works
  8. 0 × 3 + 1 × 6 + 2 × 5 + 3 × 4 + 4 × 2 = 36total number of siblings
  9. mean = 36 ÷ 20 = 1.8, range = 4 − 0 = 4mean and range
  10. x = 6, y = 4, mean 1.8 siblings, range 4 siblings
3

Nine students each score a whole number from 0 to 10 on a quiz. The mean score is exactly 5. (a) What is the largest the median could possibly be? Give a set of nine scores that shows it. (b) Now the range of the nine scores must also be 4 or less. What is the largest the median could be now? Give a set of scores that shows it, and explain why the median cannot be any bigger.

Hint

The total of the nine scores is fixed. The median is the 5th score in order, so at least five scores are as big as the median. Make the other four as small as you are allowed. In (b), the smallest score can be at most 4 below the median.

Answer

(a) 9, for example 0, 0, 0, 0, 9, 9, 9, 9, 9. (b) 6, for example 2, 3, 5, 5, 6, 6, 6, 6, 6. A median of 7 would need a total of at least 4 × 3 + 5 × 7 = 47, but the total is only 45.

Step by step
  1. A mean of 5 for nine scores means the total is 9 × 5 = 45.
  2. If the median is m, the 5th to 9th scores are all at least m, so they add up to at least 5m.
  3. In (a) the other four can be 0, so 5m ≤ 45 and m ≤ 9. The set 0, 0, 0, 0, 9, 9, 9, 9, 9 adds to 45, so 9 is possible.
  4. In (b) the lowest score is at least m − 4, so the four low scores add up to at least 4(m − 4).
  5. So 4(m − 4) + 5m ≤ 45. If m = 7, the smallest total is 12 + 35 = 47, too big. So m is at most 6.
  6. 2, 3, 5, 5, 6, 6, 6, 6, 6 adds to 45, has median 6 and range 6 − 2 = 4, so 6 is possible.
Full working
  1. total = 9 × 5 = 45the mean is fixed
  2. 5th to 9th scores ≥ mm is the median, the 5th score in order
  3. 0 + 0 + 0 + 0 + 5m ≤ 45, so m ≤ 9(a) make the low four as small as possible
  4. 0, 0, 0, 0, 9, 9, 9, 9, 9: total 45, median 9(a) 9 can happen
  5. lowest score ≥ m − 4(b) the range is at most 4
  6. 4(m − 4) + 5m ≤ 45(b) smallest possible total
  7. m = 7: 4 × 3 + 5 × 7 = 47 > 45(b) a median of 7 is impossible
  8. 2, 3, 5, 5, 6, 6, 6, 6, 6: total 45, median 6, range 4(b) 6 can happen
  9. (a) largest median 9; (b) largest median 6

More challenge problems

Science

Where science uses this

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in Statistics

Is your child on track?

Take the free placement test