The big idea
A frequency table sums up a lot of data in a few rows. Each row gives a value and its frequency: how many times it comes up. You can find averages straight from it.
In Year 7 you found the mode (most common value), median (middle value, in order), mean (total divided by the number of values) and range (largest minus smallest) of a list.
The mode, the range and the mean
- Add up the frequencies to get the total frequency: the number of values.
- The mode is the value with the highest frequency. For the range, ignore any row with a frequency of 0.
- For the mean, multiply each value, \(x\), by its frequency, \(f\), in an extra column (the fx column). This column adds up to the total of all the values. Divide that by the total frequency.
The table shows how many pets each pupil in a class has. Find the mode, the range and the mean.
| Number of pets, \(x\) | Number of pupils, \(f\) | \(x \times f\) |
|---|
| 0 | 4 | 0 |
| 1 | 7 | 7 |
| 2 | 5 | 10 |
| 3 | 3 | 9 |
| 4 | 1 | 4 |
| 5 | 0 | 0 |
| Total | 20 | 30 |
Mode: the highest frequency is 7, for 1 pet, so the mode is 1 pet.
Range: nobody has 5 pets, so that row is not part of the data. Range \(= 4 - 0 = 4\) pets.
Mean: 20 pupils have 30 pets, so the mean is \(30 \div 20 = 1.5\) pets. The 4 pupils with no pets still count when you divide.
The median
A frequency table already has the values in order. With \(n\) values, the median is the \(\dfrac{n + 1}{2}\)th value. A running total of the frequencies shows which row it is in.
A bird club counted the eggs in each of 26 nest boxes. Find the median number of eggs.
| Number of eggs | Number of nest boxes | Running total |
|---|
| 0 | 4 | 4 |
| 1 | 3 | 7 |
| 2 | 6 | 13 |
| 3 | 8 | 21 |
| 4 | 3 | 24 |
| 5 | 2 | 26 |
The median is the \(\dfrac{26 + 1}{2} = 13.5\)th value, halfway between the 13th and 14th. The running totals show that the 13th value is the last 2, and the 14th is the first 3. So the median is 2.5 eggs.
With 27 values, the median would be the 14th.
Comparing two frequency tables
Work out an average and the range for each table. Then write a sentence about each, in context.
At mini golf, Priya played 18 holes and Tom played 12. The table shows how many shots they took at each hole. Compare their scores.
| Number of shots | Priya (holes) | Tom (holes) |
|---|
| 1 | 2 | 2 |
| 2 | 8 | 3 |
| 3 | 5 | 3 |
| 4 | 3 | 2 |
| 5 | 0 | 1 |
| 6 | 0 | 1 |
Priya: total \(= 2 + 16 + 15 + 12 = 45\) shots, mean \(= 45 \div 18 = 2.5\) shots, range \(= 4 - 1 = 3\) shots.
Tom: total \(= 2 + 6 + 9 + 8 + 5 + 6 = 36\) shots, mean \(= 36 \div 12 = 3\) shots, range \(= 6 - 1 = 5\) shots.
Tom took fewer shots in total, but he played fewer holes, so compare the means. In golf fewer shots is better, so Priya played better on average. Her range is smaller, so her scores were more consistent.
Stretch: a missing frequency
The total of the values is the mean times the total frequency, so the total frequency is the total ÷ the mean. (For a gap in another row, use a letter and an equation.)
A running club recorded how many runs each member went on last week. The mean is 2 runs. How many members went on no runs?
| Number of runs | Number of members |
|---|
| 0 | \(n\) |
| 1 | 4 |
| 2 | 8 |
| 3 | 6 |
| 4 | 4 |
Members with no runs add nothing to the total: \(4 + 16 + 18 + 16 = 54\) runs.
The mean is 2, so there are \(54 \div 2 = 27\) members. The table shows \(4 + 8 + 6 + 4 = 22\), so \(n = 27 - 22 = 5\).
Remember
- Mean = total of the fx column \(\div\) total frequency.
- The median is the \(\dfrac{n + 1}{2}\)th value: use running totals to find it.
- The mode is a value from the table, never a frequency.
Common mistakes
- Dividing by the number of rows (\(30 \div 6 = 5\) pets) instead of the total frequency, 20.
- Giving the frequency, 7, as the mode instead of its value, 1 pet.
- Giving the position as the median (13.5 instead of 2.5 eggs), or choosing the middle row of the table.
- Using a row with a frequency of 0 for the range: for the pets it is \(4 - 0\), not \(5 - 0\).
Top tip
Your mean and median must lie between the smallest and largest values: a mean of 5 pets, when nobody has more than 4, is wrong.