Averages from Grouped Frequency Tables

On this page

How to use a grouped frequency table to find the modal class and the class that contains the median, how to work out an estimate for the mean using midpoints, and why the answer can only be an estimate.

What a grouped frequency table shows

A grouped frequency table puts the data into groups called class intervals, or classes. It shows how many values are in each class, but not the values themselves.

Here 18 people recorded how long they spent reading one evening. 10<t\le20 means more than 10 minutes, up to and including 20 minutes. So exactly 20 minutes goes in this class, but exactly 10 minutes goes in 0<t\le10

Because the exact values are lost, you cannot find the exact mean, median or range. You can find the modal class, the class that contains the median, and an estimate of the mean.

In the exam you are usually asked to write down the modal class, or to find the class interval that contains the median, for 1 mark each, and to work out an estimate for the mean, for 3 marks. Harder questions ask why the answer is only an estimate, ask you to use the estimate to make a decision, or ask whether someone's statement about the median is right.

Worked example 1: The total frequency and the modal class

The table shows information about the times, in seconds, that some children took to finish an obstacle course.

(a) How many children are there?

(b) Write down the modal class.

  1. Each frequency tells you how many children are in that class.
  2. Your turn. How many children are there altogether?

    3+7+12+6+2=30 children

  3. The highest frequency is 12, in the class 60<t\le70
  4. The modal class is 60<t\le70. The answer is not 12: that is how many children are in the class.
  5. Answer: (a) 30 children (b) 60<t\le70

The class that contains the median

The median is the middle value when the data is in order. A grouped table doesn't show the exact values, so you can only find which class the median is in. So don't give the middle of a class, such as 25 for 20<t\le30, as the median.

If there are n values, the median is the value in position

\frac{n+1}{2}

Keep a running total of the frequencies as you go down the table. The median is in the first class whose running total reaches that position. For 60 values the position is 30.5, so look for the class that holds the 30th and 31st values.

The class that contains the median is often not the middle row of the table. Count the people, not the rows. In the exam this is asked as “Find the class interval that contains the median”.

Worked example 2: Finding the class that contains the median

The table shows information about the distances, in km, that 45 members of a cycling club rode last Saturday.

Find the class interval that contains the median.

  1. There are 45 values, so the median is the value in position (45+1)\div2=23
  2. Running totals: 3, 3+5=8, 8+9=17, …
  3. Your turn. Work out the missing running total.

    17+16=33

  4. 17 is less than 23, but 33 is 23 or more. So the 23rd value is in the class 30<d\le40
  5. The middle row of the table is 20<d\le30, but that is not where the median is.
  6. Answer: 30<d\le40

Midpoints

A grouped table doesn't give the exact values, so you use the midpoint of each class to stand for every value in it. The midpoint is halfway between the two ends of the class:

\text{midpoint}=\frac{\text{lower end}+\text{upper end}}{2}

For 10<t\le20 the midpoint is (10+20)\div2=15. For 5<t\le10 it is (5+10)\div2=7.5. For whole-number classes, such as 5 to 9 books, it is (5+9)\div2=7

Midpoint × frequency gives an estimate of the total for one class. In the reading table, 9 people read for more than 10 and up to 20 minutes. Between them they read for about 15\times9=135 minutes.

Worked example 3: An estimate of the total

A farmer weighed 25 pumpkins. The table shows information about their masses, in kg.

Work out an estimate for the total mass of the 25 pumpkins.

  1. Add a midpoint column. For example, the midpoint of 0<m\le4 is (0+4)\div2=2
  2. Treat each of the 6 pumpkins in 0<m\le4 as 2 kg. Together they have a mass of about 2\times6=12 kg.
  3. Your turn. Work out midpoint × frequency for the class 4<m\le8

    The midpoint is 6, and 6\times10=60

  4. The other classes: 10\times7=70 and 14\times2=28
  5. Add the products: 12+60+70+28=170
  6. Answer: about 170 kg

An estimate of the mean

Add up the midpoint × frequency column. This is an estimate of the total of all the data. Then divide by the total frequency:

\text{estimate of the mean}=\frac{\text{total of midpoint}\times\text{frequency}}{\text{total frequency}}

Divide by the total frequency, the number of people. Don't divide by the number of classes, and don't divide by the total of the midpoints.

Keep every product exact and round only the final answer. Then check it: the estimate must lie between the bottom of the first class and the top of the last class, and it is usually near the classes with the biggest frequencies.

If a few values are much bigger than the rest, they pull the mean up. Then the modal class or the class that contains the median may describe a typical value better than the mean does.

Worked example 4: An estimate of the mean

The table shows information about the number of hours that 35 adults slept last night.

Work out an estimate for the mean time. Give your answer correct to 1 decimal place.

  1. The midpoints are 5, 7, 9 and 11. Multiply each one by its frequency.
  2. 5\times6=30, 7\times14=98, 9\times11=99, 11\times4=44
  3. 30+98+99+44=271. This is an estimate of the total hours slept by all 35 adults.
  4. Your turn. Divide by the total frequency. Give the estimate of the mean correct to 1 decimal place.

    271\div35=7.742\ldots=7.7 to 1 decimal place

  5. Check: 7.7 is between 4 and 12, and it is in the class 6<t\le8, which has the most adults.
  6. Answer: 7.7 hours

Why it is only an estimate

In the reading table, the 5 people in 0<t\le10 could all have read for 1 minute, or all for 10 minutes. Using the midpoint assumes that, on average, they read for 5 minutes.

So a mean worked out from midpoints is only an estimate. If a question asks why, say that the exact values are not known, so the midpoint of each class was used instead.

The range can only be estimated too. The largest it could be is the top of the last class minus the bottom of the first class, using only classes with a frequency above 0. For the reading table that is 30-0=30 minutes.

Worked example 5: Using an estimate to make a decision

A library recorded how long, in minutes, 48 visitors stayed one morning. The table shows the results.

The manager says, "On average, visitors stay for more than half an hour."

Use an estimate for the mean to decide whether the manager is right. Give the estimate correct to 3 significant figures.

  1. The first midpoint is (0+15)\div2=7.5. Midpoints can be decimals.
  2. Your turn. What is the midpoint of the class 15<t\le30?

    (15+30)\div2=22.5. The midpoints go up in 15s: 7.5, 22.5, 37.5, 52.5, 67.5

  3. 7.5\times9=67.5, 22.5\times15=337.5, 37.5\times12=450, 52.5\times8=420, 67.5\times4=270
  4. 67.5+337.5+450+420+270=1545, and the total frequency is 48
  5. Your turn. Work out the estimate of the mean, correct to 3 significant figures.

    1545\div48=32.1875=32.2 to 3 significant figures

  6. Answer: an estimate of the mean is 32.2 minutes. Half an hour is 30 minutes, and 32.2 is more than 30, so the manager is right.

Worked example 6: The median class and an estimate of the mean

The table shows information about the heights, in cm, of 75 tomato plants.

(a) Find the class interval that contains the median.

(b) Work out an estimate for the mean height of the 75 plants. Give your answer correct to 3 significant figures.

  1. (a) There are 75 plants, so the median is the value in position (75+1)\div2=38
  2. Your turn. Work out the running total for the first two classes.

    12+31=43

  3. 12 is less than 38, but 43 is 38 or more. So the median is in 40<h\le60, not in the middle row of the table.
  4. (b) Midpoint × frequency: 30\times12=360, 50\times31=1550, 70\times17=1190, 90\times10=900, 110\times5=550. These add up to 4550
  5. Your turn. Divide by the total frequency. Give the estimate of the mean correct to 3 significant figures.

    4550\div75=60.666\ldots=60.7 to 3 significant figures

  6. Answer: (a) 40<h\le60 (b) 60.7 cm

Common mistakes

  • Dividing by the number of classes. Divide the total of midpoint × frequency by the total frequency.
  • Adding the midpoints or the frequencies and dividing. Multiply each midpoint by its frequency first, then add the products.
  • Using the end of each class instead of the midpoint. Use the value halfway along each class, such as 15 for 10<t\le20
  • Taking the middle row of the table as the median class. Find the position (n+1)\div2, then use a running total of the frequencies.
  • Going one class too far for the median. Stop at the first class whose running total reaches the position.
  • Rounding before the end. Keep the frequencies and every product exact, and round only the final answer.

Practice questions