Skip to content

Measures of centre for data in classes

Measures of centre for data in classes

Data in classes

A continuous variable, such as height, takes a different value in almost every item. So the data are sorted into classes of equal width, and the data in each class are counted.

The heights of 14 students in a class, in cm:
148, 153, 155, 158, 162, 163, 163, 167, 169, 174, 177, 178, 185, 188.

Height (cm)140–150150–160160–170170–180180–190
Frequency13532
  • The class 150–160 is “from 150 up to less than 160”: a student 160 cm tall is counted in the class 160–170.
  • The table shows the overall picture, but no longer the data themselves.
  • In the histogram the bars touch, because each class begins where the one before ends:
012345140150160170180190Height (cm)Students13532
The class middle and the estimated mean

From data in classes only an estimated mean can be worked out: assume all the data in a class lie at the class middle, and work it out as from a frequency table.

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 classes’ middles, f1,…,fk\displaystyle f_1, \dots, f_k – their frequencies.

The middle of the class 140–150 is 140+1502=145\displaystyle {\frac{140+150}{2}}={145}, and the middles of the other classes are 155, 165, 175 and 185.

xˉ≈145⋅1+155⋅3+165⋅5+175⋅3+185⋅214=233014≈166.43\bar{x}\approx\frac{145\cdot1+155\cdot3+165\cdot5+175\cdot3+185\cdot2}{14}=\frac{2330}{14}\approx166.43
The mean of the list and the mean of the classes

From the list of 14 heights the mean is:

xˉ=234014≈167.14\bar{x}=\frac{2340}{14}\approx167.14

The two means are close, but not equal.

  • In the working from the classes each height was replaced by its class middle: 148 counted as 145, and 169 as 165.
  • Some data grew in the replacement and some shrank, so the difference is small – but it is 0 only by chance.
  • When there is only a table in classes, the estimated mean is the best that can be done.
The modal class

The modal class is the class with the highest frequency – the tallest bar of the histogram.

  • In the heights the modal class is 160–170 cm, with five students.
  • In the list itself the mode is 163, which is indeed in this class. But the list’s mode depends on chance: two students of exactly the same height. The modal class shows what matters – where the data are crowded.
An open end class

Sometimes the first or the last class has no bound: “less than 20”, “60 and over”. This is an open end class.

The ages of the members of a club:

Age20–3030–4040–5050 and over
Frequency71295
  • The class “50 and over” has no middle: perhaps all of them are 52, perhaps 80. So no mean can be worked out, not even an estimate.
  • The modal class is 30–40 – it can always be found.
Exercise 1

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

Minutes0–1010–2020–3030–40
Frequency614128
a

Work out the estimated mean length of the journey.

    / – 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 modal class?

    Exercise 2

    At the post office 25 parcels were weighed:

    Weight (kg)0–22–44–66–8
    Frequency4975

    Work out the estimated mean weight of a parcel.

      / – 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

      Exercise 3

      The histogram shows the noon temperature on 30 days:

      0246810121015202530Noon temperature (degrees)Days39126

      Work out the estimated mean temperature.

        / – 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

        Exercise 4

        The marks of 25 students in a test:

        Mark40–6060–8080–100
        Frequency31210
        a

        Work out the estimated mean mark.

          / – 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

          The teacher worked out the mean from the list of marks, and got 76.2. Why does her mean differ from the one you worked out?

          Exercise 5

          The waiting time of 50 callers at a call centre:

          Minutes0–55–1010–1515 and over
          Frequency1815107

          Can the estimated mean waiting time be worked out? Can the modal class be found? Explain.