Skip to content
MathClicksIGCSE← All notes Cambridge IGCSE® Mathematics 0580 Extended Chapter 12 — Averages and Measures of Spread

12.2  Averages from Frequency Tables

Finding the mean, median and mode straight from a frequency table — using Σfx over Σf, locating the median by cumulative counting, and never averaging the frequencies by mistake.

A frequency table is a compressed list

In 12.1 you found averages from a raw list of values. Real data sets are usually handed to you already organised into a frequency table — and every skill from 12.1 still works, as long as you remember one thing: the table is just a compressed list. A row that says “value 2, frequency 7” means the number 2 appears seven times in the list.

Key idea A frequency table records each value once, together with its frequency — how many times it occurs. The total number of data values is not the number of rows: it is the sum of the frequencies, n = Σf.

Here is the table this page will keep coming back to — the number of goals a school team scored in each of its 25 matches:

Goals scored (x)01234Total
Frequency (f)6873125

The same data as a picture — one dot per match

0 1 2 3 4 goals scored in a match mode = 1 (tallest stack)

Two of the four measures from 12.1 can be read straight off the table:

Mode

The value with the largest frequency. Here the frequency 8 is the biggest, so the mode is 1 goal.

Range

Largest value minus smallest value that actually occurs: 4 − 0 = 4. Frequencies play no part.

Watch out The mode is the value 1, not the frequency 8. Writing “mode = 8” is the single most common error in this topic — the examiner is asking “how many goals were scored most often?”, and the answer to that is a number of goals.

The mean from a frequency table

The mean is still total of all the values ÷ how many values there are. The table just lets you find the total quickly: six matches with 0 goals contribute 0 × 6 = 0 goals, eight matches with 1 goal contribute 1 × 8 = 8 goals, and so on. Adding an fx column (value × frequency) does the repeated addition for you.

mean = ΣfxΣf Σfx = total of all the values  ·  Σf = how many values there are
Example 1Using the goals table above, calculate the mean number of goals per match.
1
Add an fx column — multiply each value by its frequency. x:  0  1  2  3  4
f:  6  8  7  3  1
fx: 0  8  14  9  4
2
Total both rows. Σf = 6 + 8 + 7 + 3 + 1 = 25     Σfx = 0 + 8 + 14 + 9 + 4 = 35
3
Divide the total of the values by the number of values. mean = 35 ÷ 25 = 1.4
mean = 1.4 goals per match
Sense check The mean must sit between the smallest and largest value (0 and 4), and most of the data is bunched at 0–2, so 1.4 is believable. A mean of 7 — which is what you get if you divide by the 5 rows instead of the 25 matches — is impossible.
The classic error Divide by Σf (here 25), never by the number of rows (here 5). The table has 5 rows but the team played 25 matches — and the mean is per match.

Frequency-table calculator

Edit the values and frequencies — the fx column, mean, median, mode and range update live. Leave a frequency as 0 to ignore a row.

The median from a frequency table

The median is the middle value of the ordered list — and a frequency table is already ordered, because the values run along it from smallest to largest. So you only need to work out which position is the middle, then count through the frequencies until you reach it.

Key idea For n values the median sits at position n + 12. If n is even this is a half — take the mean of the two values either side. Count through a running total of the frequencies to find which value holds that position.
Example 2Find the median of the goals data (25 matches).
1
Find the position of the middle value. position = (25 + 1) ÷ 2 = 13th value
2
Build a running total (cumulative frequency) along the table. up to 0 goals: 6 values  ·  up to 1 goal: 6 + 8 = 14 values
3
Locate the 13th value: positions 1–6 are 0s and positions 7–14 are 1s, so the 13th value is a 1. 6 < 13 ≤ 14  →  the 13th value is 1
median = 1 goal
Exam tip Write the position line (“13th value”) and the running totals on paper. If the median is wrong but the method is visible, you still collect the method marks — a bare wrong answer collects nothing.

Missing frequencies and combined means

Paper 4 rarely stops at “find the mean”. The two favourite twists both run the Σfx machinery backwards.

A missing frequency, given the mean

Example 3The table shows scores 1, 2, 3, 4 with frequencies 4, x, 5, 3. The mean score is 2.5. Find x.
1
Write Σfx and Σf in terms of x. Σfx = 1(4) + 2x + 3(5) + 4(3) = 31 + 2x
Σf = 4 + x + 5 + 3 = 12 + x
2
Set up the mean equation and multiply both sides by 12 + x. (31 + 2x)/(12 + x) = 2.5
31 + 2x = 2.5(12 + x) = 30 + 2.5x
3
Solve. 31 − 30 = 2.5x − 2x  →  1 = 0.5x  →  x = 2
4
Check: with x = 2, Σfx = 35 and Σf = 14, and 35 ÷ 14 = 2.5 ✓
x = 2

Combining two groups

Example 4Class A (12 students) has a mean test mark of 60. Class B (18 students) has a mean of 70. Find the mean mark of all 30 students.
Careful The answer is not 65. The classes are different sizes, so the bigger class pulls the combined mean towards its own.
1
Rebuild each class’s total marks from its mean. Class A total = 12 × 60 = 720
Class B total = 18 × 70 = 1260
2
Combine totals and divide by the combined number of students. mean = (720 + 1260) ÷ 30 = 1980 ÷ 30 = 66
combined mean = 66 marks
Why 66, not 65? Class B has more students, so the combined mean lands closer to 70 than to 60. Averaging the two means only works when the groups are exactly the same size.

More worked examples

Example 5A shop records the shoe sizes it sells in one morning: sizes 36, 37, 38, 39, 40 with frequencies 3, 7, 9, 4, 2. Find the mode, median, mean and range.
1
Mode: the largest frequency is 9. mode = size 38
2
Median: n = 25, so the middle is the (25 + 1) ÷ 2 = 13th value. Running totals: 3, 10, 19 — the 13th value falls in the size-38 block. 10 < 13 ≤ 19  →  median = 38
3
Mean: build the fx column. Σfx = 36(3) + 37(7) + 38(9) + 39(4) + 40(2)
= 108 + 259 + 342 + 156 + 80 = 945
mean = 945 ÷ 25 = 37.8
4
Range: 40 − 36 = 4
mode 38  ·  median 38  ·  mean 37.8  ·  range 4
Which average would the shop use? The mode — a shop restocks the size it sells most. A mean shoe size of 37.8 is not a size anyone can wear. Expect one mark for naming the average and giving a reason in context.
Example 6Scores 0, 1, 2, 3 occur with frequencies 5, x, 6, 4, and the median score is 2. Find the greatest possible value of x.
1
There are n = 15 + x values. For the median to be 2, the middle of the ordered list must land inside the block of 2s — after all the 0s and 1s. values before the 2s: 5 + x
2
Try x = 5: then n = 20 and the median is the mean of the 10th and 11th values. Running totals: 5, 10, 16 — the 10th value is a 1 and the 11th is a 2. median = (1 + 2) ÷ 2 = 1.5  ✗ too big
3
Try x = 4: then n = 19 and the median is the 10th value. Running totals: 5, 9, 15 — positions 10 to 15 are 2s. 9 < 10 ≤ 15  →  median = 2  ✓
greatest possible x = 4
Exam trap With an even n the median straddles two positions — always check both, exactly as step 2 did. Assuming “x = 5 works” without the check is how this question takes its marks back.

Your turn

Practice set

  1. Values 1, 2, 3, 4 have frequencies 2, 5, 2, 1. Find the mode, median, mean and range.
  2. Journey times of 5, 10, 15 and 20 minutes occur with frequencies 4, 6, 8 and 2. Calculate the mean journey time.
  3. Values 2, 4, 6 have frequencies 3, x, 5. The mean is 4.4. Find x.
  4. Ten boys have a mean mass of 52 kg and fifteen girls have a mean mass of 62 kg. Find the mean mass of all 25 students.
  5. Scores 1, 2, 3, 4, 5 have frequencies 7, 9, 4, 12, 8. Explain why the median is 3.5.

  1. n = 10. Mode 2 (frequency 5). Median = mean of 5th and 6th values; running totals 2, 7 put both in the 2s → 2. Mean: Σfx = 2 + 10 + 6 + 4 = 22, so 22 ÷ 10 = 2.2. Range 3.
  2. Σf = 20, Σfx = 20 + 60 + 120 + 40 = 240 → 240 ÷ 20 = 12 minutes.
  3. (6 + 4x + 30)/(8 + x) = 4.4 → 36 + 4x = 35.2 + 4.4x → 0.8 = 0.4x → x = 2. (Check: 44 ÷ 10 = 4.4 ✓)
  4. Totals: 10 × 52 = 520 and 15 × 62 = 930; combined 1450 ÷ 25 = 58 kg. (Not 57 — the girls outnumber the boys.)
  5. n = 40, so the median is the mean of the 20th and 21st values. Running totals: 7, 16, 20, 32 — the 20th value is a 3 and the 21st is a 4, so the median is (3 + 4) ÷ 2 = 3.5.

Key points to remember

  • A frequency table is a compressed list: n = Σf, never the number of rows.
  • Mean = Σfx ÷ Σf — add an fx column, total both rows, and show the division.
  • The mode is the value with the biggest frequency — not the frequency itself.
  • The median sits at position (n + 1) ÷ 2; count through the running totals to find it, and with an even n average the two middle values.
  • Given the mean and a missing frequency, write Σfx and Σf in terms of x and solve the equation.
  • To combine two groups, rebuild each group’s total first — never average the two means unless the groups are the same size.

Where next?

✅ Mark scheme All notes

Progress is saved on this device only and appears on the notes home page.