Math Lab
Home/Class X/Ch 13/Mean of grouped data

Mean of grouped data

The mean (arithmetic average) of a list of numbers is the sum divided by the count. For grouped data, we treat each class as a single value (the class mark xix_i) with the corresponding frequency fif_i. There are three methods to compute the mean. All three give the same answer; the choice depends on how convenient the arithmetic is.

Method 1: Direct method

Multiply each class mark by its frequency, sum, and divide by the total frequency:

xˉ=fixifi.\bar x = \frac{\sum f_i x_i}{\sum f_i}.

This is the most straightforward method but can involve large multiplications if the class marks are big.

Example.

Classxix_ifif_ifixif_i x_i
0100-1055442020
102010-201515669090
203020-3025251010250250
304030-40353555175175
405040-50454533135135
Total2828670670

xˉ=670/28=23.93\bar x = 670/28 = 23.93.

Method 2: Assumed-mean method

Pick a convenient class mark aa (the "assumed mean"). Compute deviations di=xiad_i = x_i - a. Then

xˉ=a+fidifi.\bar x = a + \frac{\sum f_i d_i}{\sum f_i}.

The advantage: the deviations did_i are smaller than the original class marks, so the arithmetic is easier.

Example (same data, a=25a = 25).

Classxix_idi=xi25d_i = x_i - 25fif_ifidif_i d_i
0100-105520-204480-80
102010-20151510-106660-60
203020-30252500101000
304030-4035351010555050
405040-5045452020336060
Total282830-30

xˉ=25+(30/28)=251.07=23.93\bar x = 25 + (-30/28) = 25 - 1.07 = 23.93. (Matches Method 1.)

Method 3: Step-deviation method

When the class size hh is constant, take ui=(xia)/hu_i = (x_i - a)/h, where aa is the assumed mean. Then

xˉ=a+hfiuifi.\bar x = a + h \cdot \frac{\sum f_i u_i}{\sum f_i}.

The advantage: the uiu_i are small integers like 2,1,0,1,2-2, -1, 0, 1, 2, even easier to compute.

Example (same data, a=25,h=10a = 25, h = 10).

Classxix_iuiu_ifif_ifiuif_i u_i
0100-10552-2448-8
102010-2015151-1666-6
203020-30252500101000
304030-403535115555
405040-504545223366
Total28283-3

xˉ=25+10(3/28)=2530/28=251.07=23.93\bar x = 25 + 10 \cdot (-3/28) = 25 - 30/28 = 25 - 1.07 = 23.93.

When to use which method

  • Direct: simplest formula, but heavy arithmetic with large xix_i.
  • Assumed-mean: good for medium-large xix_i; reduces multiplications.
  • Step-deviation: ideal when class size hh is constant and xix_i are large; smallest arithmetic.

For board exam, all three are acceptable. The textbook usually asks for one specific method by name. Use what is asked; if no method is specified, step-deviation is usually the cleanest.

Worked examples

Example 1. Find the mean of the data: classes 010,1020,2030,3040,40500-10, 10-20, 20-30, 30-40, 40-50 with frequencies 7,10,15,8,107, 10, 15, 8, 10, using the direct method.

Class marks: 5,15,25,35,455, 15, 25, 35, 45. Total f=50f = 50. Sum fx=35+150+375+280+450=1290f x = 35 + 150 + 375 + 280 + 450 = 1290. Mean =1290/50=25.8= 1290/50 = 25.8.

Example 2. The mean of 3030 observations is 2020. If one of the observations is wrongly written as 2525 instead of 1515, find the correct mean.

Original sum (wrong) =3020=600= 30 \cdot 20 = 600. Correction: subtract 2525, add 1515, so new sum = 590590. Correct mean = 590/30=19.67590/30 = 19.67.

Example 3. Find the mean of the data using assumed-mean method, with classes 5060,6070,7080,8090,9010050-60, 60-70, 70-80, 80-90, 90-100 and frequencies 5,10,15,12,85, 10, 15, 12, 8. Take a=75a = 75.

Class marks: 55,65,75,85,9555, 65, 75, 85, 95. Deviations: 20,10,0,10,20-20, -10, 0, 10, 20. fdf d: 100,100,0,120,160-100, -100, 0, 120, 160. Sum fd=80fd = 80. n=50n = 50.

Mean =75+80/50=75+1.6=76.6= 75 + 80/50 = 75 + 1.6 = 76.6.

Example 4. Use step-deviation method for the same data.

ui=di/10u_i = d_i/10: 2,1,0,1,2-2, -1, 0, 1, 2. fuf u: 10,10,0,12,16-10, -10, 0, 12, 16. Sum =8= 8.

Mean =75+108/50=75+1.6=76.6= 75 + 10 \cdot 8/50 = 75 + 1.6 = 76.6.

Example 5. The mean of 2020 observations is 3030. If an observation 4040 is replaced by 5050, find the new mean.

Original sum =600= 600. New sum =60040+50=610= 600 - 40 + 50 = 610. New mean =30.5= 30.5.

Try it yourself

  1. Find the mean of the data: classes 05,510,1015,15200-5, 5-10, 10-15, 15-20 with frequencies 4,7,8,14, 7, 8, 1 using direct method.
  2. Same data, use assumed-mean with a=12.5a = 12.5.
  3. Same data, use step-deviation with a=12.5,h=5a = 12.5, h = 5.
  4. Find the mean of classes 2030,3040,4050,506020-30, 30-40, 40-50, 50-60 with frequencies 5,8,12,55, 8, 12, 5.
  5. The mean of 5050 observations is 4040. Find the sum.
  6. A class of 3030 students has mean weight 4545 kg. Two new students of weights 5050 and 5555 kg join. Find the new mean.
  7. The mean of 55 observations is 2020. Three are 15,18,2515, 18, 25. The other two have ratio 3:43:4. Find them.
  8. Find the mean of classes 515,1525,2535,3545,45555-15, 15-25, 25-35, 35-45, 45-55 with frequencies 3,5,8,6,33, 5, 8, 6, 3.
  9. Same data, with assumed mean 3030.
  10. Same data, step-deviation with h=10h = 10.
  11. The mean of a data set is 5050. If each value is increased by 55, what is the new mean?
  12. The mean of a data set is 5050. If each value is multiplied by 22, what is the new mean?

Pitfalls / Insight

(1) Always compute the class marks first. A common error is using the lower or upper limits instead.

(2) For step-deviation, hh must be the same for all classes. If not, use assumed-mean instead.

(3) The signs of did_i and uiu_i matter: deviations below aa are negative.

(4) The formula gives a grand mean weighted by frequency, not a simple average of class marks.

(5) The mean has the same units as the data. If marks are in percentage points, the mean is in percentage points.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Mean
6 questions · pick the best answer
Q1

Direct mean formula:

Q2

Assumed-mean: if a=25a = 25 and fd=100\sum f d = 100, n=50n = 50, mean is:

Q3

Step-deviation: a=30,h=10,fu=2,n=20a = 30, h = 10, \sum f u = -2, n = 20. Mean:

Q4

Mean of f=3,5,8,4f = 3, 5, 8, 4 at class marks 5,15,25,355, 15, 25, 35:

Q5

Mean is invariant if:

Q6

When class size hh is uniform, the easiest method is: