Skip to the page
Home Campus
Start free

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≤t<2010 \le t < 20 (10 included, 20 not); the modal class is the class with the highest frequency.
  • Lesson 12.7: the mean of a frequency table is xˉ=ΣfxΣf\bar{x} = \dfrac{\Sigma fx}{\Sigma f}.

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 10≤t<2010 \le t < 20 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) ÷\div 2

Estimated mean =ΣfxΣf= \dfrac{\Sigma fx}{\Sigma f}, where ff is the frequency of each class and xx 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) 10≤t<2010 \le t < 20 (b) 0≤m<50 \le m < 5 (c) 150≤h<170150 \le h < 170 (d) 15<t≤2015 < t \le 20

Solution

(a) 10+202=15\dfrac{10 + 20}{2} = 15 (b) 0+52=2.5\dfrac{0 + 5}{2} = 2.5 (c) 150+1702=160\dfrac{150 + 170}{2} = 160

(d) Some books write classes the other way round, with the upper boundary included: 15<t≤2015 < t \le 20 holds 20 but not 15. The mid-value is found in the same way: 15+202=17.5\dfrac{15 + 20}{2} = 17.5.

(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 xx of each class, and fxfx. The column of frequencies is headed ff. To keep the data and the mid-value apart, the data are named by another letter, such as tt for a time; xx is kept for the mid-value.

Example 2: An estimated mean and the modal class

The table shows the time, tt minutes, that 50 pupils took to travel to school. (a) Estimate the mean time. (b) State the modal class.

Time, tt minFrequency
0≤t<100 \le t < 1066
10≤t<2010 \le t < 201515
20≤t<3020 \le t < 301717
30≤t<4030 \le t < 4088
40≤t<5040 \le t < 5044
Total5050

Solution

(a) The mid-values are 0+102=5\dfrac{0 + 10}{2} = 5, then 15, 25, 35 and 45.

Time, tt minffxxfxfx
0≤t<100 \le t < 1066555×6=305 \times 6 = 30
10≤t<2010 \le t < 201515151515×15=22515 \times 15 = 225
20≤t<3020 \le t < 301717252525×17=42525 \times 17 = 425
30≤t<4030 \le t < 4088353535×8=28035 \times 8 = 280
40≤t<5040 \le t < 5044454545×4=18045 \times 4 = 180
Total505011401140

Σf=50\Sigma f = 50 and Σfx=30+225+425+280+180=1140.\Sigma fx = 30 + 225 + 425 + 280 + 180 = 1140\text{.}

Estimated mean =ΣfxΣf=114050=22.8= \dfrac{\Sigma fx}{\Sigma f} = \dfrac{1140}{50} = 22.8 minutes.

(b) The highest frequency is 17, in 20≤t<3020 \le t < 30. 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) 20≤t<3020 \le t < 30

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 25≤t<3025 \le t < 30, 30≤t<3530 \le t < 35, …, 45≤t<5045 \le t < 50 and estimate the mean from the table. (c) Compare the two answers.

Stem-and-leaf diagram of 20 times: 2 | 8 9; 3 | 1 2 3 3 4 5 5 6 7 7 8 9; 4 | 0 1 2 3 5 7; key 2 | 8 means 28 secondsStemLeaves28931233455677894012357Key: 2 | 8 means 28 seconds

Solution

(a) Sum of the 20 times =735= 735 (row by row: 57+420+25857 + 420 + 258). Mean =735÷20=36.75= 735 \div 20 = 36.75 s.

(b) 30, 35, 40 and 45 each start a class.

Time, tt sffxxfxfx
25≤t<3025 \le t < 302227.527.527.5×2=5527.5 \times 2 = 55
30≤t<3530 \le t < 355532.532.532.5×5=162.532.5 \times 5 = 162.5
35≤t<4035 \le t < 407737.537.537.5×7=262.537.5 \times 7 = 262.5
40≤t<4540 \le t < 454442.542.542.5×4=17042.5 \times 4 = 170
45≤t<5045 \le t < 502247.547.547.5×2=9547.5 \times 2 = 95
Total2020745745

Estimated mean =74520=37.25= \dfrac{745}{20} = 37.25 s.

(c) The estimate is 0.5 s more than the true mean. In 25≤t<3025 \le t < 30 the times are 28 and 29, but the estimate takes both as 27.5; in 35≤t<4035 \le t < 40 the seven times add up to 257, but the estimate takes them as 7×37.5=262.57 \times 37.5 = 262.5. 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, $aa, each of 60 pupils spent at a school book fair. (a) Estimate the mean amount spent. (b) State the modal class.

Histogram of money spent at a book fair: 0 to 20 dollars frequency 8, 20 to 40 frequency 18, 40 to 60 frequency 20, 60 to 80 frequency 10, 80 to 100 frequency 402468101214161820020406080100Amount spent ($)Frequency

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, $aaffxxfxfx
0≤a<200 \le a < 2088101010×8=8010 \times 8 = 80
20≤a<4020 \le a < 401818303030×18=54030 \times 18 = 540
40≤a<6040 \le a < 602020505050×20=100050 \times 20 = 1000
60≤a<8060 \le a < 801010707070×10=70070 \times 10 = 700
80≤a<10080 \le a < 10044909090×4=36090 \times 4 = 360
Total606026802680

Estimated mean =268060=44.666…,= \dfrac{2680}{60} = 44.666\ldots\text{,} which is $44.67 to the nearest cent.

(b) The tallest bar is 40≤a<6040 \le a < 60, with 20 pupils, a third of them.

(a) About $44.67 (b) 40≤a<6040 \le a < 60

A Missing Frequency

Example 5: Finding kk from an estimated mean

The table shows the number of hours, hh, that some pupils spent exercising last week. An estimate of the mean is 7.6 hours. Find kk.

Hours, hhFrequency
0≤h<40 \le h < 466
4≤h<84 \le h < 81010
8≤h<128 \le h < 12kk
12≤h<1612 \le h < 1644

Solution

The mid-values are 2, 6, 10 and 14.

Σf=6+10+k+4=20+k.\Sigma f = 6 + 10 + k + 4 = 20 + k\text{.}

Σfx=2×6+6×10+10k+14×4=12+60+10k+56=128+10k.\Sigma fx = 2 \times 6 + 6 \times 10 + 10k + 14 \times 4 = 12 + 60 + 10k + 56 = 128 + 10k\text{.}

128+10k20+k=7.6,\dfrac{128 + 10k}{20 + k} = 7.6\text{,} so 128+10k=152+7.6k.128 + 10k = 152 + 7.6k\text{.}

2.4k=242.4k = 24, so k=10k = 10.

Check: Σf=30\Sigma f = 30, Σfx=228\Sigma fx = 228, and 228÷30=7.6228 \div 30 = 7.6.

k=10k = 10

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 xx and got 17.8 minutes. (b) Chloe used 10, the class width, as xx for every class and got 10 minutes. (c) Dev divided 1140 by 5 and got 228 minutes.

Solution

(a) Ben used the lower boundaries: Σfx=0+150+340+240+160=890,\Sigma fx = 0 + 150 + 340 + 240 + 160 = 890\text{,} and 890÷50=17.8890 \div 50 = 17.8. 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 Σf=50\Sigma f = 50. A mean of 228 minutes is far above the largest class, which ends at 50.

The estimate uses the mid-values as xx and divides by Σf\Sigma f: 22.8 minutes.

Common Mistakes

  • Using the lower or upper boundary, or the class width, as xx instead of the mid-value.
  • Dividing Σfx\Sigma fx by the number of classes instead of by Σf\Sigma f.
  • 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 fxfx.

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) 30≤m<4030 \le m < 40 (b) 1.5≤d<2.01.5 \le d < 2.0 (c) 40<t≤6040 < t \le 60 (d) 0≤h<250 \le h < 25

ShowHide solution

(a) 30+402=35\dfrac{30 + 40}{2} = 35 (b) 1.5+2.02=1.75\dfrac{1.5 + 2.0}{2} = 1.75 (c) 40+602=50\dfrac{40 + 60}{2} = 50 (d) 0+252=12.5\dfrac{0 + 25}{2} = 12.5

(a) 35 (b) 1.75 (c) 50 (d) 12.5

Question 2

The table shows the masses, mm g, of 40 eggs. (a) Estimate the mean mass. (b) State the modal class.

Mass, mm gFrequency
40≤m<4540 \le m < 4533
45≤m<5045 \le m < 5088
50≤m<5550 \le m < 551414
55≤m<6055 \le m < 601111
60≤m<6560 \le m < 6544
Total4040
ShowHide solution

(a)

Mass, mm gffxxfxfx
40≤m<4540 \le m < 453342.542.542.5×3=127.542.5 \times 3 = 127.5
45≤m<5045 \le m < 508847.547.547.5×8=38047.5 \times 8 = 380
50≤m<5550 \le m < 55141452.552.552.5×14=73552.5 \times 14 = 735
55≤m<6055 \le m < 60111157.557.557.5×11=632.557.5 \times 11 = 632.5
60≤m<6560 \le m < 654462.562.562.5×4=25062.5 \times 4 = 250
Total404021252125

Estimated mean =212540=53.125≈53.1= \dfrac{2125}{40} = 53.125 \approx 53.1 g (to 3 significant figures).

(b) The highest frequency is 14, in 50≤m<5550 \le m < 55.

(a) About 53.1 g (b) 50≤m<5550 \le m < 55

Question 3

The table shows the time, tt minutes, that 30 people took to complete a walk. The classes include their upper boundaries. Estimate the mean time.

Time, tt minFrequency
60<t≤8060 < t \le 8044
80<t≤10080 < t \le 10099
100<t≤120100 < t \le 1201212
120<t≤140120 < t \le 14055
Total3030
ShowHide solution

The mid-values are found in the usual way: 60+802=70\dfrac{60 + 80}{2} = 70, then 90, 110 and 130.

Time, tt minffxxfxfx
60<t≤8060 < t \le 8044707070×4=28070 \times 4 = 280
80<t≤10080 < t \le 10099909090×9=81090 \times 9 = 810
100<t≤120100 < t \le 1201212110110110×12=1320110 \times 12 = 1320
120<t≤140120 < t \le 14055130130130×5=650130 \times 5 = 650
Total303030603060

Estimated mean =306030=102= \dfrac{3060}{30} = 102 minutes.

About 102 minutes.

Question 4

The histogram shows the distances, dd 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?

Histogram of distances cycled: 0 to 10 km frequency 7, 10 to 20 frequency 16, 20 to 30 frequency 14, 30 to 40 frequency 9, 40 to 50 frequency 401234567891011121314151601020304050Distance (km)Frequency
ShowHide solution

(a) The frequencies are 7, 16, 14, 9, 4, and the mid-values 5, 15, 25, 35, 45.

Distance, dd kmffxxfxfx
0≤d<100 \le d < 1077555×7=355 \times 7 = 35
10≤d<2010 \le d < 201616151515×16=24015 \times 16 = 240
20≤d<3020 \le d < 301414252525×14=35025 \times 14 = 350
30≤d<4030 \le d < 4099353535×9=31535 \times 9 = 315
40≤d<5040 \le d < 5044454545×4=18045 \times 4 = 180
Total505011201120

Estimated mean =112050=22.4= \dfrac{1120}{50} = 22.4 km.

(b) The tallest bar is 10≤d<2010 \le d < 20, with 16 cyclists.

(c) No. 22.4 km is in 20≤d<3020 \le d < 30. 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) 10≤d<2010 \le d < 20 (c) No: it lies in 20≤d<3020 \le d < 30.

Question 5

The table shows the ages, aa years, of the members of a residents' committee. An estimate of their mean age is 34 years. Find pp.

Age, aa yearsFrequency
10≤a<2010 \le a < 2044
20≤a<3020 \le a < 3099
30≤a<4030 \le a < 40pp
40≤a<5040 \le a < 5088
50≤a<6050 \le a < 6033
ShowHide solution

Mid-values: 15, 25, 35, 45, 55.

Σf=4+9+p+8+3=24+p.\Sigma f = 4 + 9 + p + 8 + 3 = 24 + p\text{.}

Σfx=60+225+35p+360+165=810+35p.\Sigma fx = 60 + 225 + 35p + 360 + 165 = 810 + 35p\text{.}

810+35p24+p=34,\dfrac{810 + 35p}{24 + p} = 34\text{,} so 810+35p=816+34p,810 + 35p = 816 + 34p\text{,} and p=6p = 6.

Check: Σf=30\Sigma f = 30, Σfx=1020\Sigma fx = 1020, 1020÷30=341020 \div 30 = 34.

p=6p = 6

Question 6

In a grouped table, the class 20≤t<3020 \le t < 30 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: 5×25=1255 \times 25 = 125.

(b) 21+22+22+23+24=112.21 + 22 + 22 + 23 + 24 = 112\text{.}

(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, tt minutes, that 25 pupils spent on homework one evening. (a) Sam used 0, 30, 60, 90 as xx and got 48 minutes. Tina found Σfx=1575\Sigma fx = 1575 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, tt minFrequency
0≤t<300 \le t < 3033
30≤t<6030 \le t < 6088
60≤t<9060 \le t < 901010
90≤t<12090 \le t < 12044
Total2525
ShowHide solution

(a) Sam used the lower boundaries, which makes the estimate too low (0+240+600+360=1200,0 + 240 + 600 + 360 = 1200\text{,} and 1200÷25=481200 \div 25 = 48). 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, tt minffxxfxfx
0≤t<300 \le t < 3033151515×3=4515 \times 3 = 45
30≤t<6030 \le t < 6088454545×8=36045 \times 8 = 360
60≤t<9060 \le t < 901010757575×10=75075 \times 10 = 750
90≤t<12090 \le t < 12044105105105×4=420105 \times 4 = 420
Total252515751575

Estimated mean =157525=63= \dfrac{1575}{25} = 63 minutes.

(c) No. 60≤t<9060 \le t < 90 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 0≤t<50 \le t < 5, 5≤t<105 \le t < 10, …, 25≤t<3025 \le t < 30 and estimate the mean. (c) By how much does the estimate differ from the mean?

ShowHide solution

(a) Sum =188= 188, so the mean =188÷16=11.75= 188 \div 16 = 11.75 minutes.

The 16 lengths in order as a stem-and-leaf diagram: 0 | 2 3 5 6 7 8 9; 1 | 1 2 2 4 5 7 8; 2 | 2 7; key 0 | 2 means 2 minutesStemLeaves0235678911224578227Key: 0 | 2 means 2 minutes

(b) 5, 15 start their classes.

Length, tt minffxxfxfx
0≤t<50 \le t < 5222.52.52.5×2=52.5 \times 2 = 5
5≤t<105 \le t < 10557.57.57.5×5=37.57.5 \times 5 = 37.5
10≤t<1510 \le t < 154412.512.512.5×4=5012.5 \times 4 = 50
15≤t<2015 \le t < 203317.517.517.5×3=52.517.5 \times 3 = 52.5
20≤t<2520 \le t < 251122.522.522.5×1=22.522.5 \times 1 = 22.5
25≤t<3025 \le t < 301127.527.527.5×1=27.527.5 \times 1 = 27.5
Total1616195195

Estimated mean =19516=12.1875≈12.2= \dfrac{195}{16} = 12.1875 \approx 12.2 minutes (to 3 significant figures).

(c) 12.1875−11.75=0.4375:12.1875 - 11.75 = 0.4375\text{:} 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) ÷\div 2, for a≤x<ba \le x < b and a<x≤ba < x \le b alike.
  • Estimated mean =ΣfxΣf= \dfrac{\Sigma fx}{\Sigma f}, with xx 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 ΣfxΣf\dfrac{\Sigma fx}{\Sigma f} 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.

‹ 12.9 The Mode 12.11 Choosing the Mean, Median or Mode ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons for Primary 3 to Secondary 2, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.