Statistics: data & averages · Lesson 1 of 3

Mean, median and mode

The three averages: what each one measures, how to find them from a list or a frequency table, and the total trick behind most mean questions.

15 minYou should already know: Number foundations & fractions
  1. 1
  2. 2
  3. 3

An average is one number that stands for a whole set of data. There are three, and they answer slightly different questions:

  • The mean shares the total out equally: add all the values, divide by how many there are.
  • The median is the middle value once the data is in order.
  • The mode is the value that appears most often.

Try it

Three kinds of averageDrag the dots
0510152025medianmean
6.78mean (balance point)7median (middle value)7mode (most common)9range (largest − smallest)
The mean is where the dot plot would balance: add everything and divide by how many (3 + 5 + 5 + 6 + 7 + 7 + 7 + 9 + 12 = 61, ÷ 9). The median is the middle value once they're in order. The mode is the value that appears most often.

Drag the dots. The mean is the balance point: the triangle under the line is where a ruler holding these dots would balance. The median has half the dots on each side. Now press Add an unusually large value. One large value drags the mean towards it, but the median hardly moves. That’s why house prices and salaries are often described by the median.

The mean

mean=sum of the valuesnumber of values\text{mean} = \frac{\text{sum of the values}}{\text{number of values}}

For 4,7,7,9,134, 7, 7, 9, 13: the sum is 4040 and there are 5 values, so the mean is 40÷5=840 \div 5 = 8.

The total trick

Many mean questions give you a mean and ask about a missing or changed value. Turn the mean back into a total:

total=mean×number of values\text{total} = \text{mean} \times \text{number of values}

More: the total trick

The median

Put the values in order first. With nn values, the median is the value in position n+12\frac{n + 1}{2}.

  • Odd number of values: one middle value. In 2,3,5,8,92, 3, 5, 8, 9 the median is 55.
  • Even number of values: two middle values, so take the number halfway between them. In 2,3,5,8,9,122, 3, 5, 8, 9, 12 the middle two are 55 and 88, so the median is 6.56.5.

The mode

The mode is the value with the highest frequency. There can be more than one mode (for example, 2,2,5,5,72, 2, 5, 5, 7 has modes 22 and 55).

More: mean, median and mode of a list

Averages from a frequency table

A frequency table is a short way of writing a long list. “Score 4, frequency 10” means the score 4 appears 10 times.

Score xx123456
Frequency ff26121064
  • Mean: multiply each value by its frequency, add, then divide by the total frequency: xˉ=∑fx∑f=2+12+36+40+30+2440=14440=3.6\begin{aligned} \bar x = \frac{\sum fx}{\sum f} &= \frac{2 + 12 + 36 + 40 + 30 + 24}{40} \\ &= \frac{144}{40} = 3.6 \end{aligned}
  • Median: there are 40 values, so the median is halfway between the 20th and 21st. Keep a running total of the frequencies: 2,8,20,30,…2, 8, 20, 30, \ldots. The 20th value is a 3 and the 21st is a 4, so the median is 3.53.5.
  • Mode: the highest frequency is 12, so the mode is 33.

More: averages from a frequency table

Worked example · WAEC 2016

WAEC 2016 · Paper 2 · Q12 (a)

Marks 3 4 5 6 7 8 9
Frequency 1 4 3 5 2 xx 2

The table shows the distribution of marks of students in a Mathematics test. If the mean of the distribution is 6, calculate the:

value of xx;

  1. Write the totals in terms of x

    ∑f=1+4+3+5+2+x+2=17+x\sum f = 1 + 4 + 3 + 5 + 2 + x + 2 = 17 + x.

    ∑fx=3+16+15+30+14+8x+18\sum fx = 3 + 16 + 15 + 30 + 14 + 8x + 18, each value times its frequency.

    ∑fx=96+8x\sum fx = 96 + 8x, adding the numbers.

    Think first. What is ∑f\sum f? What is ∑fx\sum fx?

  2. Use the mean

    96+8x17+x=6\frac{96 + 8x}{17 + x} = 6

    Think first. The mean is 6. Write an equation.

  3. Solve

    96+8x=102+6x⇒2x=6⇒x=396 + 8x = 102 + 6x \quad\Rightarrow\quad 2x = 6 \quad\Rightarrow\quad x = 3

    Check: ∑f=20\sum f = 20 and ∑fx=120\sum fx = 120, and 120÷20=6120 \div 20 = 6 ✓.

Your turn

WAEC 2022 · Paper 2 · Q10 (a)

Age (years) 3 4 5 6 7 8 9 10
Number of children 2 6 5 xx 6 9 8 5

The table shows the distribution of ages of a number of children in a school. If the mean of the distribution is 7, find the:

  1. (a)

    value of xx;

Worked solution (try it first)

(a)

  1. ∑f=2+6+5+x+6+9+8+5\sum f = 2 + 6 + 5 + x + 6 + 9 + 8 + 5
    =41+x= 41 + x and ∑fx=6+24+25+6x+42+72+72+50\sum fx = 6 + 24 + 25 + 6x + 42 + 72 + 72 + 50
    =291+6x= 291 + 6x.
  2. The mean is 7: 291+6x41+x=7\frac{291 + 6x}{41 + x} = 7.
  3. So 291+6x=287+7x291 + 6x = 287 + 7x, which gives x=4x = 4.
  4. Check: ∑f=45\sum f = 45, ∑fx=315\sum fx = 315, and 31545=7\frac{315}{45} = 7.

Report a problem with this question

More past questions like this