The Mean of Grouped Data
Estimating the mean of grouped data from the mid-values of the classes, from a table or a histogram; why the answer is an estimate; a missing frequency; and the modal class beside the mean.
What You Should Already Know
- Lesson 12.4: grouped data are counted in classes such as (10 included, 20 not); the modal class is the class with the highest frequency.
- Lesson 12.7: the mean of a frequency table is .
Why the Mean Can Only Be Estimated
A grouped frequency table tells us how many values lie in each class, but not what they are. Six values in the class could be 10, 11, 11, 12, 13 and 19, or six values of 18. Without the values we cannot find their sum, so we cannot find the exact mean.
We estimate it instead, by taking every value in a class to be at the middle of the class, its mid-value.
The estimated mean of grouped data
Mid-value of a class (lower boundary upper boundary) 2
Estimated mean , where is the frequency of each class and its mid-value.
The answer is an estimate, and the working should say so.
Example 1: Mid-values
Find the mid-value of each class. (a) (b) (c) (d)
Solution
(a) (b) (c)
(d) Some books write classes the other way round, with the upper boundary included: holds 20 but not 15. The mid-value is found in the same way: .
(a) 15 (b) 2.5 (c) 160 (d) 17.5
Estimating the Mean from a Table
Add two columns to the table: the mid-value of each class, and . The column of frequencies is headed . To keep the data and the mid-value apart, the data are named by another letter, such as for a time; is kept for the mid-value.
Example 2: An estimated mean and the modal class
The table shows the time, minutes, that 50 pupils took to travel to school. (a) Estimate the mean time. (b) State the modal class.
| Time, min | Frequency |
|---|---|
| Total |
Solution
(a) The mid-values are , then 15, 25, 35 and 45.
| Time, min | |||
|---|---|---|---|
| Total |
and
Estimated mean minutes.
(b) The highest frequency is 17, in . That is the most common class, but 17 of 50 pupils is not most of them.
(a) The mean time is about 22.8 minutes (an estimate). (b)
Example 3: The estimate and the true mean
The stem-and-leaf diagram shows the times, in seconds, that 20 pupils took to run 200 m. (a) Find the mean time. (b) Group the times into the classes , , …, and estimate the mean from the table. (c) Compare the two answers.
Solution
(a) Sum of the 20 times (row by row: ). Mean s.
(b) 30, 35, 40 and 45 each start a class.
| Time, s | |||
|---|---|---|---|
| Total |
Estimated mean s.
(c) The estimate is 0.5 s more than the true mean. In the times are 28 and 29, but the estimate takes both as 27.5; in the seven times add up to 257, but the estimate takes them as . Such differences partly cancel, so the estimate is close, but it is not exact.
(a) 36.75 s (b) 37.25 s (an estimate) (c) The estimate is close to the true mean but 0.5 s more, because each time was taken as its class's mid-value.
Why only an estimate
The estimate assumes that the values in each class are spread evenly about its mid-value, so that their mean is the mid-value. Real data are rarely spread exactly so. Narrower classes usually give an estimate closer to the true mean; when the raw data are known, find the exact mean from them instead.
Estimating the Mean from a Histogram
Example 4: Reading the frequencies first
The histogram shows how much money, $, each of 60 pupils spent at a school book fair. (a) Estimate the mean amount spent. (b) State the modal class.
Solution
(a) Read each bar's height from the frequency axis: 8, 18, 20, 10, 4. The classes are 20 dollars wide, so the mid-values are 10, 30, 50, 70 and 90.
| Amount, $ | |||
|---|---|---|---|
| Total |
Estimated mean which is $44.67 to the nearest cent.
(b) The tallest bar is , with 20 pupils, a third of them.
(a) About $44.67 (b)
A Missing Frequency
Example 5: Finding from an estimated mean
The table shows the number of hours, , that some pupils spent exercising last week. An estimate of the mean is 7.6 hours. Find .
| Hours, | Frequency |
|---|---|
Solution
The mid-values are 2, 6, 10 and 14.
so
, so .
Check: , , and .
Spotting Errors
Example 6: Three wrong estimates
Three pupils estimated the mean travel time from the table of Example 2 (frequencies 6, 15, 17, 8, 4 in classes of 10 minutes from 0 to 50). Find each one's mistake. (a) Ben used 0, 10, 20, 30, 40 as and got 17.8 minutes. (b) Chloe used 10, the class width, as for every class and got 10 minutes. (c) Dev divided 1140 by 5 and got 228 minutes.
Solution
(a) Ben used the lower boundaries: and . This takes every time as the smallest it could be, so the estimate is too low. Use the mid-values.
(b) The class width is the same for every class and says nothing about where the class lies. Chloe's answer would be 10 whatever the times were.
(c) 5 is the number of classes, not the number of pupils. Divide by . A mean of 228 minutes is far above the largest class, which ends at 50.
The estimate uses the mid-values as and divides by : 22.8 minutes.
Common Mistakes
- Using the lower or upper boundary, or the class width, as instead of the mid-value.
- Dividing by the number of classes instead of by .
- Calling the answer the mean. From grouped data it is an estimate of the mean.
- Using one letter for both the data and the mid-value.
- Saying that most of the data lie in the modal class. It is only the class with the highest frequency.
- Reading the frequencies of a histogram wrongly: read each bar's height against the frequency axis before working out .
Practice Questions
Try each question first, then open the solution to check your working. Give an answer that is not exact to 3 significant figures, and money to the nearest cent.
Question 1
Find the mid-value of each class. (a) (b) (c) (d)
ShowHide solution
(a) (b) (c) (d)
(a) 35 (b) 1.75 (c) 50 (d) 12.5
Question 2
The table shows the masses, g, of 40 eggs. (a) Estimate the mean mass. (b) State the modal class.
| Mass, g | Frequency |
|---|---|
| Total |
ShowHide solution
(a)
| Mass, g | |||
|---|---|---|---|
| Total |
Estimated mean g (to 3 significant figures).
(b) The highest frequency is 14, in .
(a) About 53.1 g (b)
Question 3
The table shows the time, minutes, that 30 people took to complete a walk. The classes include their upper boundaries. Estimate the mean time.
| Time, min | Frequency |
|---|---|
| Total |
ShowHide solution
The mid-values are found in the usual way: , then 90, 110 and 130.
| Time, min | |||
|---|---|---|---|
| Total |
Estimated mean minutes.
About 102 minutes.
Question 4
The histogram shows the distances, km, that 50 cyclists rode at East Coast Park on a Sunday. (a) Estimate the mean distance. (b) State the modal class. (c) Is the estimated mean in the modal class?
ShowHide solution
(a) The frequencies are 7, 16, 14, 9, 4, and the mid-values 5, 15, 25, 35, 45.
| Distance, km | |||
|---|---|---|---|
| Total |
Estimated mean km.
(b) The tallest bar is , with 16 cyclists.
(c) No. 22.4 km is in . The mean uses every class, and the many cyclists who rode more than 20 km pull it above the modal class.
(a) About 22.4 km (b) (c) No: it lies in .
Question 5
The table shows the ages, years, of the members of a residents' committee. An estimate of their mean age is 34 years. Find .
| Age, years | Frequency |
|---|---|
ShowHide solution
Mid-values: 15, 25, 35, 45, 55.
so and .
Check: , , .
Question 6
In a grouped table, the class has frequency 5. The five values in it were really 21, 22, 22, 23 and 24. (a) What does the estimate of the mean take their sum to be? (b) What is their real sum? (c) For this class, is the estimate too high or too low?
ShowHide solution
(a) Each value is taken as the mid-value 25: .
(b)
(c) Too high, by 13: these values lie in the lower half of the class, not evenly about its middle.
(a) 125 (b) 112 (c) Too high.
Question 7
The table shows the time, minutes, that 25 pupils spent on homework one evening. (a) Sam used 0, 30, 60, 90 as and got 48 minutes. Tina found and divided by 4. What did each do wrong? (b) Estimate the mean correctly. (c) A newsletter says, "Most pupils spent 60 to 90 minutes on homework." Is this right?
| Time, min | Frequency |
|---|---|
| Total |
ShowHide solution
(a) Sam used the lower boundaries, which makes the estimate too low ( and ). Tina divided by the number of classes, 4, getting 393.75 minutes, more than any pupil could have spent; she should divide by 25.
(b)
| Time, min | |||
|---|---|---|---|
| Total |
Estimated mean minutes.
(c) No. is the modal class, but 10 of 25 pupils is less than half.
(a) Sam used lower boundaries; Tina divided by the number of classes. (b) About 63 minutes (c) No: 10 of 25 is not most.
Question 8
The lengths, in minutes, of 16 phone calls were: 12, 3, 17, 8, 22, 5, 14, 9, 2, 15, 11, 27, 6, 18, 12, 7. (a) Find the mean length. (b) Group the lengths into the classes , , …, and estimate the mean. (c) By how much does the estimate differ from the mean?
ShowHide solution
(a) Sum , so the mean minutes.
(b) 5, 15 start their classes.
| Length, min | |||
|---|---|---|---|
| Total |
Estimated mean minutes (to 3 significant figures).
(c) the estimate is about 0.44 minutes more.
(a) 11.75 minutes (b) About 12.2 minutes (c) About 0.44 minutes more.
Key Points
- Grouped data do not show the single values, so their mean can only be estimated.
- Mid-value (lower boundary upper boundary) 2, for and alike.
- Estimated mean , with the mid-value of each class; say that it is an estimate.
- The estimate takes every value of a class as its mid-value; narrower classes usually give a closer estimate.
- From a histogram, read the frequencies from the bar heights first.
- A missing frequency is found by writing equal to the given estimate and solving.
- The modal class is the class with the highest frequency, not where most of the data lie; the estimated mean need not lie in it.