Mean of grouped data: the direct and assumed-mean methods
About 50 minutes · 3 things to learn By the end you can…
Find the mean of grouped data by the direct method, using class marks.
Find the mean by the assumed-mean method and explain why any assumed mean gives the same answer.
Explain why the mean of grouped data is an estimate that can differ from the exact mean of the raw data.
A school notes how long 40 students spend on homework each evening, in groups: 0 – 20 minutes, 20 – 40 minutes, and so on. You do not know any one student's exact time — only how many students fall in each group. Can you still find the average time? Yes: you make one sensible assumption, and then the Class IX formula works again.
One assumption: each class sits at its class mark
In grouped data we know only how many values lie in each class. So we assume that the values in a class are centred at its class mark (its middle). A class 20 – 40 with frequency 9 is treated as nine values of 30. Then each class mark xi is a value that occurs fi times, exactly as in a Class IX frequency table.
The direct method
xˉ=ΣfiΣfixiSwipe to see the whole equation →
Build the table one column at a time:
Column
How to fill it
Class
copy from the question
fi
copy from the question; add them for Σfi
xi
class mark =2lower limit+upper limit
fixi
multiply across; add them for Σfixi
Then divide: xˉ=ΣfiΣfixi.
The grouped mean is an estimate
The assumption "values sit at the class mark" is rarely exactly true. So the mean of grouped data is usually a little different from the mean of the raw data it came from. The raw-data mean is exact; the grouped mean is a good estimate. (Worked example 3 shows both.)
The assumed-mean method: make the numbers smaller
When the class marks are large (₹700, ₹900, ₹1100 …), the products fixi become large too. A short cut:
Choose an assumed mean a — usually a class mark near the middle of the table.
Find the deviationdi=xi−a of each class mark (negative below a, 0 at a, positive above a).
Find fidi and Σfidi.
xˉ=a+ΣfiΣfidiSwipe to see the whole equation →
Why it works. Taking a away from every value takes a away from their mean. So the mean of the deviations is xˉ−a, that is, ΣfiΣfidi=xˉ−a. Adding a back gives the formula.
Any assumed mean gives the same answer
Because a is taken away and then added back, the answer does not depend on the choice of a. Choose a class mark near the middle only because the numbers stay small. This also gives you a free check: work the mean again with a different a, and you must get the same answer.
Which method?
Small class marks and frequencies → direct method.
Large class marks → assumed-mean method (or the step-deviation method of Topic 3).
All the methods give the same mean.
Visuals
The direct-method table built column by columnThe direct-method table, built in the same order every time.Draw in examShift and shrinkShift and shrink the numbers to make the arithmetic small — then undo both at the end.
Try it yourself — the grouped-data explorer. Type in the frequencies of up to seven classes and watch the table fill itself in.
Grouped-data explorerSee how each column comes from the one before, and that every method gives the same mean.
Worked examples
Worked example 1
The direct method
Question. The time 40 students spent on homework one evening is grouped as follows (in minutes): 0 – 20: 4 students; 20 – 40: 9; 40 – 60: 15; 60 – 80: 8; 80 – 100: 4. Find the mean time by the direct method.
Given: five classes of size 20 and their frequencies. Asked: the mean time.
Concept used: direct method, xˉ=ΣfiΣfixi, with the class marks as xi. Why it applies: the class marks (10, 30, 50 …) and frequencies are small numbers.
1
Class marks: 20+20=10, then 30, 50, 70, 90 (each 20 more than the one before).
2
Make the table:
Time (min)
fi
xi
fixi
0 – 20
4
10
40
20 – 40
9
30
270
40 – 60
15
50
750
60 – 80
8
70
560
80 – 100
4
90
360
Total
Σfi=40
Σfixi=1980
3
xˉ=ΣfiΣfixi=401980=49.5 minutes.
Check: a second route, the assumed-mean method with a=50: di=−40,−20,0,20,40, so Σfidi=−160−180+0+160+160=−20 and xˉ=50+40−20=50−0.5=49.5 ✔.
AnswerThe mean homework time is 49.5 minutes.
Common trap: Using the lower limits (0, 20, 40 …) as xi gives 39.5 minutes — every value is then 10 too small.
Worked example 2
The assumed-mean method
Question. The monthly electricity bills of 50 homes in a colony are: ₹600 – 800: 4 homes; ₹800 – 1000: 8; ₹1000 – 1200: 15; ₹1200 – 1400: 12; ₹1400 – 1600: 7; ₹1600 – 1800: 4. Find the mean bill by the assumed-mean method.
Given: six classes of size ₹200; Σfi=50. Asked: the mean bill.
Concept used:xˉ=a+ΣfiΣfidi with di=xi−a. Why it applies: the class marks (₹700 … ₹1700) are large, so the products fixi would be large.
1
Class marks: 700, 900, 1100, 1300, 1500, 1700.
2
Choose a=1100 (a class mark near the middle); then di=xi−1100.
Bill (₹)
fi
xi
di=xi−1100
fidi
600 – 800
4
700
−400
−1600
800 – 1000
8
900
−200
−1600
1000 – 1200
15
1100
0
0
1200 – 1400
12
1300
200
2400
1400 – 1600
7
1500
400
2800
1600 – 1800
4
1700
600
2400
Total
Σfi=50
Σfidi=4400
3
xˉ=a+ΣfiΣfidi=1100+504400=1100+88=1188
Check: another assumed mean must give the same answer. With a=1300: di=−600,−400,−200,0,200,400; Σfidi=−2400−3200−3000+0+1400+1600=−5600; xˉ=1300+50−5600=1300−112=1188 ✔.
AnswerThe mean monthly bill is ₹1188.
Common trap: Stopping at 504400=88 and writing "₹88" — that is only the mean of the deviations; add a back.
Worked example 3
The exact mean and the grouped mean
Question. In Topic 1, Worked example 4, twenty students scored 12, 25, 31, 18, 40, 27, 33, 20, 45, 30, 22, 38, 29, 35, 10, 41, 26, 30, 17, 36, and these marks were grouped as 10 – 20: 4; 20 – 30: 6; 30 – 40: 7; 40 – 50: 3. (a) Find the exact mean from the list. (b) Find the mean from the grouped table. (c) Why are they different?
Given: the raw marks and the grouped table. Asked: both means and the reason they differ.
Concept used: mean = sum ÷ number (raw data); direct method (grouped data). Why it applies: the same 20 marks are given in both forms.
1
(a) Sum of the 20 marks =565; exact mean =20565=28.25.
2
(b) Grouped table:
Marks
fi
xi
fixi
10 – 20
4
15
60
20 – 30
6
25
150
30 – 40
7
35
245
40 – 50
3
45
135
Total
Σfi=20
Σfixi=590
3
Grouped mean =20590=29.5.
4
(c) The grouped method treats the four marks 10, 12, 17, 18 as four 15s, the six marks in 20 – 30 as six 25s, and so on. Here the actual marks add to 565, but the class marks add to 590, so the grouped mean comes out higher.
Check: add the marks class by class: 10 – 20: 12+18+10+17=57; 20 – 30: 25+27+20+22+29+26=149; 30 – 40: 31+33+30+38+35+30+36=233; 40 – 50: 40+45+41=126; and 57+149+233+126=565 ✔.
Answer(a) 28.25 (b) 29.5 (c) The grouped mean assumes every mark sits at its class mark; that is only approximately true, so 29.5 is an estimate and 28.25 is exact.
Common trap: Thinking that one of the two answers must be a mistake. Both are right for what they use.
Worked example 4
Inclusive classes
Question. The marks of 40 students are grouped as 11 – 20: 6 students; 21 – 30: 10; 31 – 40: 16; 41 – 50: 8. Find the mean mark.
Given: inclusive classes (a gap of 1 between them). Asked: the mean.
Concept used: direct method. Why it applies: the class marks do not change when inclusive classes are made continuous (Topic 1), so the classes can be used as they are for the mean.
1
Class marks: 211+20=15.5, then 25.5, 35.5, 45.5.
Marks
fi
xi
fixi
11 – 20
6
15.5
93
21 – 30
10
25.5
255
31 – 40
16
35.5
568
41 – 50
8
45.5
364
Total
Σfi=40
Σfixi=1280
2
xˉ=401280=32
Check: assumed mean a=35.5: di=−20,−10,0,10; Σfidi=−120−100+0+80=−140; xˉ=35.5+40−140=35.5−3.5=32 ✔.
AnswerThe mean mark is 32.
Common trap: Taking the class marks as 15, 25, 35, 45 (the middle of 10 – 20 and so on). That gives 31.5, which is 0.5 too small.
4 examples · they get harder as you go
Quick check
Answer without scrolling up
Quick check · 1 of 4MCQ1 mark
For the data 0 – 10: 2; 10 – 20: 5; 20 – 30: 3, the mean by the direct method is:
This uses the lower limits 0, 10, 20 instead of the class marks.
102×5+5×15+3×25=10160=16.
This uses the upper limits 10, 20, 30.
This divides 160 by 3, the number of classes, instead of by Σfi=10.
Quick check · 2 of 4Short answer2 marks
Find the mean of this distribution by the direct method: 5 – 15: 5; 15 – 25: 8; 25 – 35: 4; 35 – 45: 3.
Answer: Class marks 10, 20, 30, 40. Σfi=20; Σfixi=50+160+120+120=450. Mean =20450=22.5.
Check your class marks first: 25+15=10. If you got 112.5, you divided by 4 (the number of classes) instead of 20.
Did you get it?
Quick check · 3 of 4MCQ1 mark
In the assumed-mean method, a student takes a=45 and finds Σfidi=−60 and Σfi=40. The mean is:
This is only ΣfiΣfidi — a has not been added back.
This adds 1.5 instead of −1.5; the sign of Σfidi is lost.
This adds 60 without dividing by Σfi.
45+40−60=45−1.5=43.5.
Quick check · 4 of 4Short answer2 marks
Using the assumed mean a=30, a student finds Σfidi=0. What is the mean? Explain in one line.
Answer: The mean is 30. xˉ=30+Σfi0=30: the deviations above 30 exactly balance those below it, so the guess was the mean itself.
Σfidi=0 does not make the mean 0 — the mean is a+0.
Did you get it?
Key points
Assume the values in each class sit at the class mark xi=2lower+upper.
Direct method: xˉ=ΣfiΣfixi, from the table Class | fi | xi | fixi.
Assumed-mean method: di=xi−a and xˉ=a+ΣfiΣfidi; any a gives the same mean.
The grouped mean is an estimate; the mean of the raw data is exact.
Check a mean by working it again with a different method or a different a.