Skip to content

Grouped data

Grouped data

Classes

When there are many different values, they are grouped in classes – intervals of equal width – and the data in each class are counted. These are grouped data.

A company asked 40 employees how many minutes their journey to work takes:

Minutes0–1010–2020–3030–4040–50
Employees5131273
  • The class 10–20 is “from 10 to less than 20”: an employee whose journey takes 20 minutes is counted in the class 20–30.
  • The table shows the overall picture, but no longer the data themselves: nobody knows how long each employee’s journey takes exactly.
The histogram

A histogram is a bar chart of grouped data: a bar for each class, its height the class’s frequency. The bars touch, since each class goes on where the one before it ends; the classes’ bounds are written under them.

0246810121401020304050MinutesEmployees5131273

The class with the highest frequency is the modal class: here 10–20 minutes, with 13 employees.

The class middle and an estimate of the mean

From grouped data only an estimate of the mean can be worked out: assume all the data of a class lie at the class middle, and work out a weighted mean.

xˉ≈m1f1+m2f2+⋯+mkfkf1+f2+⋯+fk\displaystyle \bar{x}\approx\frac{m_1f_1+m_2f_2+\dots+m_kf_k}{f_1+f_2+\dots+f_k}

m1,…,mk\displaystyle m_1, \dots, m_k – the class middles, f1,…,fk\displaystyle f_1, \dots, f_k – their frequencies.

On the way to work: the middle of the class 0–10 is 0+102=5\displaystyle {\frac{0+10}{2}}={5}, and the other classes’ middles are 15, 25, 35 and 45.

xˉ≈5⋅5+15⋅13+25⋅12+35⋅7+45⋅340=25+195+300+245+13540=90040=22.5\bar{x}\approx\frac{5\cdot5+15\cdot13+25\cdot12+35\cdot7+45\cdot3}{40}=\frac{25+195+300+245+135}{40}=\frac{900}{40}=22.5

The journey to work takes about 22.5 minutes on average. It is an estimate: within each class the real data may be above or below the middle.

The median’s class

From grouped data the median cannot be found exactly, but the median’s class – the class the median is in – can.

There are 40 employees, so the median lies between the 20th and the 21st value of the ordered list.
Count from the first class:

  • The class 0–10 – 5 employees: values 1–5.
  • The class 10–20 – 13 employees: values 6–18.
  • The class 20–30 – 12 employees: values 19–30.

The 20th and 21st values are in the class 20–30, and that is the median’s class. At least half the employees get to work in less than 30 minutes.

Exercise 1

The heights of 50 Year 10 pupils, in cm:

05101520150160170180190Height (cm)Pupils618206
a

What is the modal class?

b

Work out an estimate of the mean height.

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    c

    What is the median’s class? Explain.

    Exercise 2

    A mobile company checked how many gigabytes (GB) of data 80 subscribers used in one month:

    GB a month0–1010–2020–3030–40
    Subscribers16302410
    a

    Work out an estimate of the mean use.

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      b

      What is the median’s class?

      c

      How many subscribers used 20 GB or more?

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        d

        The company is thinking of offering all its subscribers a 20 GB plan a month.
        Will the plan be enough for most of them? Explain with your answers.

        Exercise 3

        The waiting times of 20 patients in an emergency room, in minutes:
        12,35,48,27,8,55,31,19,42,24\displaystyle 12, 35, 48, 27, 8, 55, 31, 19, 42, 24
        37,15,29,51,33,22,46,38,26,44\displaystyle 37, 15, 29, 51, 33, 22, 46, 38, 26, 44

        a

        Fill in the frequency of each of the classes 0–15, 15–30, 30–45, 45–60.

        0–15

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          15–30

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            30–45

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              45–60

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                b

                From the frequencies, work out an estimate of the mean waiting time.

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                  c

                  Work out the exact mean from the data themselves.

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                    d

                    Why are the estimate and the exact mean different?