Statistics: data & averages · Lesson 2 of 3

Grouped data and the assumed mean

Frequency tables with classes: class marks and boundaries, the mean by table (directly or with an assumed mean), and the median and mode of grouped data.

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

When there are many different values (marks out of 100, ages, weights), a table with one column per value would be enormous. So we group the values into classes such as 1–10, 11–20, 21–30, and count how many fall in each.

The words you need

For the class 21–30:

WordMeaningFor 21–30
class limitsthe numbers written21 and 30
class boundarieshalfway to the next class20.5 and 30.5
class width (size)upper boundary − lower boundary30.5−20.5=1030.5 - 20.5 = 10
class mark (mid-point)the middle of the class21+302=25.5\frac{21 + 30}{2} = 25.5

The mean of grouped data

We don’t know the exact values inside a class, so we let the class mark stand for every value in it. Then it’s the same as a frequency table:

xˉ=∑fx∑f,where x is the class mark\bar x = \frac{\sum fx}{\sum f}, \quad \text{where } x \text{ is the class mark}

The answer is an estimate, and that’s fine: it’s what the question expects.

The mean from a frequency tableFill in the table
classfclass mark xf × x
1 – 103
11 – 207
21 – 3012
31 – 4010
41 – 506
51 – 602
total40
The class mark is the middle of the class: (lower + upper) ÷ 2, e.g. (1 + 10) ÷ 2 = 5.5. Then multiply by the frequency for each row and add up the column.

Fill in the class marks and f×xf \times x for each row. A cell turns green when it’s right. Then try the assumed mean method on the same table.

The assumed mean method

Pick a class mark near the middle, call it AA (the assumed mean), and work with d=x−Ad = x - A instead of xx. The numbers are smaller, many dd‘s are negative and cancel, and

xˉ=A+∑fd∑f\bar x = A + \frac{\sum fd}{\sum f}

It always gives the same answer as ∑fx∑f\frac{\sum fx}{\sum f}. Use it when the question asks for it, or when the class marks are large.

Worked example · WAEC 2023

WAEC 2023 · Paper 2 · Q11 (a)

The table shows the frequency distribution of the ages of fifty members of a family.

Ages (years) 1–5 6–10 11–15 16–20 21–25 26–30
Frequency 7 12 4 6 11 10

Calculate, correct to two decimal places, the:

mean;

  1. Class marks

    1+52=3\frac{1 + 5}{2} = 3, then add the class width 5 each time: 3,8,13,18,23,283, 8, 13, 18, 23, 28.

    Think first. What is the class mark of 1–5? Of 6–10?

  2. Choose A and find d

    d=−15,−10,−5,0,5,10d = -15, -10, -5, 0, 5, 10.

    Think first. Take A=18A = 18. What are the values of d=x−18d = x - 18?

  3. Multiply by f and add

    Agesffxxddfdfd
    1–573−15−105
    6–10128−10−120
    11–15413−5−20
    16–2061800
    21–251123555
    26–30102810100
    ∑f=50\sum f = 50∑fd=−90\sum fd = -90
  4. The mean

    xˉ=18+−9050=18−1.8=16.20 years\bar x = 18 + \frac{-90}{50} = 18 - 1.8 = 16.20 \text{ years}

    Directly: ∑fx=810\sum fx = 810 and 810÷50=16.20810 \div 50 = 16.20, the same.

The median and mode of grouped data

Find the class first, then estimate inside it.

Median. With N=∑fN = \sum f values, the median is the N2\frac N2th. Keep a running total of the frequencies to find the class it’s in, then

median=L+(N2−Ffm)×c\text{median} = L + \left(\frac{\frac N2 - F}{f_m}\right) \times c

where LL is the lower boundary of the median class, FF the running total before it, fmf_m its frequency and cc the class width. (The cumulative frequency curve in the next topic does the same job by drawing.)

Mode. The modal class has the highest frequency. With Δ1\Delta_1 = (its frequency − the one before) and Δ2\Delta_2 = (its frequency − the one after):

mode=L+(Δ1Δ1+Δ2)×c\text{mode} = L + \left(\frac{\Delta_1}{\Delta_1 + \Delta_2}\right) \times c

This is exactly what the crossed lines on a histogram measure; you’ll see them in the charts lesson.

Worked example · NECO 2024

NECO 2024 · Paper 2 · Q12 (a)

The table shows the scores of candidates.

Marks (%) 1–10 11–20 21–30 31–40 41–50 51–60
Frequency 26 36 38 30 15 5

Calculate, correct to one decimal place, the (i) mean; (ii) median; (iii) modal score.

  1. The mean

    ∑f=150\sum f = 150, adding the frequencies.

    ∑fx=26(5.5)+36(15.5)+38(25.5)+30(35.5)+15(45.5)+5(55.5)=3695\begin{aligned} \sum fx &= 26(5.5) + 36(15.5) \\ &\quad + 38(25.5) + 30(35.5) \\ &\quad + 15(45.5) + 5(55.5) \\ &= 3695 \end{aligned}

    xˉ=3695150≈24.6\bar x = \frac{3695}{150} \approx 24.6, dividing ∑fx\sum fx by ∑f\sum f.

    Think first. Class marks are 5.5, 15.5, …. What are ∑f\sum f and ∑fx\sum fx?

  2. The median class

    Running totals: 26,62,100,…26, 62, 100, \ldots. The 75th is after the 62nd, so it’s in 21–30, with L=20.5L = 20.5, F=62F = 62, fm=38f_m = 38, c=10c = 10.

    Think first. The median is the 75th score. Which class is it in?

  3. The median

    20.5+75−6238×10=20.5+3.42≈23.920.5 + \frac{75 - 62}{38} \times 10 = 20.5 + 3.42 \approx 23.9
  4. The mode

    Δ1=38−36=2\Delta_1 = 38 - 36 = 2 and Δ2=38−30=8\Delta_2 = 38 - 30 = 8:

    20.5+22+8×10=22.520.5 + \frac{2}{2 + 8} \times 10 = 22.5

    Think first. The modal class is 21–30. Find Δ1\Delta_1 and Δ2\Delta_2.

Your turn

WAEC 2012 · Paper 2 · Q10 (a)

Marks 60–64 65–69 70–74 75–79 80–84 85–89 90–94 95–99
Frequency 2 3 6 11 8 7 2 1

The table shows the distribution of marks scored by students in an examination. Calculate, correct to 2 decimal places, the:

  1. (a)

    mean;

Worked solution (try it first)

(a)

  1. Mean =A+∑fd∑f= A + \frac{\sum fd}{\sum f}
    =77+7040= 77 + \frac{70}{40}
    =77+1.75= 77 + 1.75
    =78.75= 78.75.

Report a problem with this question

More past questions like this