Averages and measures of spread
The mean, median and mode and the range, from lists and from frequency tables, working backwards from a mean, and when to use each average. Extended: quartiles and the interquartile range, and the estimated mean and modal class of grouped data.
What the syllabus says
C9.3 (Core)
- Calculate the mean, median, mode and range for individual data and distinguish between the purposes for which these are used.
Notes and examples
- Data may be in a list or frequency table, but will not be grouped.
E9.3 (Extended)
- 1 Calculate the mean, median, mode, quartiles, range and interquartile range for individual data and distinguish between the purposes for which these are used.
- 2 Calculate an estimate of the mean for grouped discrete or grouped continuous data.
- 3 Identify the modal class from a grouped frequency distribution.
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
Mean, median, mode and range
An average is a single value that represents a whole set of data. There are three, and each one answers a slightly different question.
- The mean is the total of all the values divided by the number of values. It answers "if the total were shared out equally, how much would each get?"
- The median is the middle value once the data is in order. With values, it is the th value. When is even there are two middle values, and the median is halfway between them.
- The mode is the value that occurs most often. A set of data can have two modes, or no mode at all if every value occurs once. The mode is the only average that works for qualitative data: you can say "the modal colour is blue", but not "the mean colour".
The range is not an average. It measures spread: range largest value smallest value. A small range means the data is consistent; a large range means it is spread out.
For example, for : the mean is , the median is 3 (the 3rd value), the mode is 3 and the range is .
Why order matters for the median. The median is the value with as many values below it as above it. In an unordered list, the value in the middle position can be anything, so always sort the list first, and count to check you have every value.
Worked example 1
Sara counted the text messages she received on 10 days:
Find the mean, median, mode and range.
Order the data: . Count: 10 values.
Mean: total , so mean .
Median: , so the median is halfway between the 5th and 6th values, 5 and 6. Median .
Mode: 3 occurs three times, more than any other value. Mode .
Range: .
Answer: Mean 6, median 5.5, mode 3, range 9
Check yourself
Find the median of .
Answer it in the portal, where your answer is checked as you type →
Averages from a frequency table
Data is often given in a frequency table rather than a list. The table is just a short way of writing the list: a row "value 2, frequency 8" means the value 2 appears 8 times.
Mean. Every value must be counted as many times as it occurs, so multiply each value by its frequency.
- Add a column for (value frequency), often written .
- Add up this column: the total of all the data.
- Add up the frequency column: the number of values.
- Mean .
The most common mistake is to divide by the number of rows instead of the total frequency.
Median. Find its position, , where is the total frequency. Then add up the frequencies down the table (a running total) until you reach that position.
Mode. The value with the highest frequency. Give the value, not the frequency.
Range. The largest value minus the smallest value that actually occur (ignore any value with frequency 0).
Worked example 2
The table shows the number of brothers and sisters of each of 30 students.
Find (a) the mode, (b) the median, (c) the mean, (d) the range.
| Number of siblings | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Frequency | 6 | 11 | 8 | 3 | 2 |
(a) The highest frequency is 11, for the value 1. Mode .
(b) , so the median is at position : halfway between the 15th and 16th values. Running totals: 6 (value 0), then (value 1). The 15th and 16th values are both 1, so the median is 1.
(c) Add an column.
Working for the mean Siblings Frequency 0 6 0 1 11 11 2 8 16 3 3 9 4 2 8 Total 30 44 Mean (3 s.f.).
(d) Range .
Answer: (a) 1 (b) 1 (c) 1.47 (d) 4
Check yourself
The table shows the number of goals scored in 20 matches. Calculate the mean number of goals per match.
| Goals | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Frequency | 3 | 5 | 7 | 4 | 1 |
Answer it in the portal, where your answer is checked as you type →
Working backwards from the mean
Since mean , it follows that
This one rearrangement answers most "missing value" questions.
- A missing value. If the mean of 5 numbers is 8, their total is 40. Subtract the four numbers you know.
- A value added or removed. Work out the total before and after; the difference is the value added or removed.
- Combining groups. To find the mean of two groups together, add the two totals and divide by the total number of values. Do not average the two means unless the groups are the same size: a group of 30 should count three times as much as a group of 10.
For an unknown frequency in a table, write the total of and the total frequency in terms of the unknown, set mean total frequency total of , and solve.
Worked example 3
The mean of five numbers is 12. Four of the numbers are 9, 15, 10 and 14.
(a) Find the fifth number. (b) A sixth number is added and the mean of the six numbers is 13. Find the sixth number.
(a) Total of the five numbers .
The four known numbers total , so the fifth number is .
(b) Total of the six numbers .
The sixth number is .
Answer: (a) 12 (b) 18
Choosing the best average
Each average has a job it does best.
- Mean. It uses every value, so it is the most representative when the data has no extreme values. It is the one to use when totals matter (sharing costs, fuel per journey). But one very large or very small value (an outlier) drags it towards that value.
- Median. It is not affected by extreme values, because it only depends on the middle of the ordered data. Use it for data with outliers or a long tail, such as salaries or house prices.
- Mode. It is the only average for qualitative data, and the right choice when the most common value matters: a shoe shop wants to know which size sells most, not the mean size. It can be unhelpful if the data has several modes or none.
For example, the annual salaries (in thousands of dollars) at a small firm are 18, 20, 21, 21, 23, 25 and 89. The mean is , which is more than six of the seven salaries, because of the manager's 89. The median, 21, describes a typical salary much better.
The same thinking applies to spread: the range uses only the two most extreme values, so a single outlier can make it misleadingly large. (Extended candidates use the interquartile range instead, below.)
Check yourself
A shoe shop wants to know which shoe size it should order most of. Which average should it use?
Answer it in the portal, where your answer is checked as you type →
Quartiles and the interquartile range Extended
Extended candidates also find the quartiles. Once the data is in order, the median splits it into two halves. The quartiles split it into quarters:
- the lower quartile (LQ) is the median of the lower half;
- the upper quartile (UQ) is the median of the upper half.
The interquartile range is
It is the spread of the middle half of the data. Because it ignores the lowest quarter and the highest quarter, extreme values do not affect it, so it is a more reliable measure of spread than the range when there are outliers.
Method for a list.
- Put the data in order and find the median.
- Take the values below the median (the lower half) and find their median: the LQ. When is odd, the median itself is in neither half.
- Do the same with the values above the median: the UQ.
- IQR UQ LQ.
With 11 values, for example, the median is the 6th, the lower half is the 1st to 5th values (LQ is the 3rd) and the upper half is the 7th to 11th (UQ is the 9th). When a half has an even number of values, its median is halfway between its two middle values, exactly as for the median.
The same positions work for a frequency table: use running totals to find which value is in each position.
Worked example 4 Extended
The ages of 15 members of a choir are:
Find the median, the quartiles and the interquartile range.
In order: .
Median: the 8th value, 30.
Lower half: the 7 values . Its median (4th) is 25, so LQ .
Upper half: . Its median is 38, so UQ .
IQR years. (Compare the range, .)
Answer: Median 30, LQ 25, UQ 38, IQR 13
Check yourself Extended
Find the interquartile range of .
Answer it in the portal, where your answer is checked as you type →
Grouped data: the estimated mean and the modal class Extended
In a grouped frequency table you no longer know the exact values, only how many are in each class. So the mean cannot be found exactly, but it can be estimated.
The estimate assumes that every value in a class sits at the midpoint of the class. That is a fair guess on average: some values are below the midpoint and some above, and the errors roughly cancel.
- Find each class midpoint: . For it is 25. For the discrete class 6 to 10 it is 8.
- Multiply each midpoint by its frequency.
- Estimated mean .
Always call the answer an estimate, and check it is sensible: it must lie inside the range of the classes, usually near the classes with the biggest frequencies.
The modal class is the class with the highest frequency (when the classes are of equal width). Give the class, such as , not the frequency.
You can also say which class contains the median: find the position and use running totals, just as for an ungrouped table.
Worked example 5 Extended
The table shows the times, minutes, that 30 customers spent in a shop.
(a) Write down the modal class. (b) Calculate an estimate of the mean time.
| Time ( minutes) | Frequency |
|---|---|
| 4 | |
| 9 | |
| 12 | |
| 5 |
(a) The highest frequency is 12, so the modal class is .
(b) Use the midpoints 5, 15, 25 and 35.
Working for the estimated mean Time ( min) Frequency Midpoint 4 5 20 9 15 135 12 25 300 5 35 175 Total 30 630 Estimated mean minutes.
Check: 21 lies between 0 and 40, near the biggest classes. It is sensible.
Answer: (a) (b) 21 minutes
Check yourself Extended
The table shows the masses of 20 dogs. Calculate an estimate of the mean mass.
| Mass ( kg) | Frequency |
|---|---|
| 3 | |
| 8 | |
| 6 | |
| 3 |
Answer it in the portal, where your answer is checked as you type →
Key points
Mean total number of values. Median middle of the ordered data. Mode most common value. Range largest smallest.
With values, the median is the th value; order the data first.
From a frequency table: mean ; the mode is the value with the highest frequency.
Total mean number of values: use it for missing values and combined groups.
The median resists outliers; the mode suits qualitative data; the mean uses every value.
Extended: LQ and UQ are the medians of the lower and upper halves; IQR UQ LQ.
Extended: estimate the mean of grouped data with class midpoints; the modal class has the highest frequency.
Where marks are lost
Finding the middle of the list before putting it in order.
Giving the frequency instead of the value as the mode.
Dividing the total of by the number of rows instead of the total frequency.
Giving the median position (15.5) instead of the median value.
Averaging two group means when the groups are different sizes.
Giving the range as "2 to 10" instead of the single number 8.
Extended: using class upper bounds instead of midpoints for the estimated mean, or not calling it an estimate.
Extended: giving the IQR as the two quartiles rather than their difference.
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.