Mean of grouped data

Ask a class of fifty students their exam marks and you get fifty individual numbers — finding the average is just add-and-divide. But a school report often hands you the data already bucketed into ranges: "5 students scored 0 to 10, 8 scored 10 to 20," and so on. The individual marks are gone; only class intervals and frequencies survive. You cannot average numbers you no longer have. The mean of grouped data solves exactly this problem. It represents every student in a class interval by a single stand-in value — the interval's midpoint, called the class mark — and then averages those stand-ins, weighted by how many observations fall in each class. Three routes get you there: the direct method, the assumed-mean method, and the step-deviation method. All three are the same idea in different arithmetic clothing, and this article shows why they always agree, works two full examples, and flags the mistakes that cost marks in this CBSE Class 10 Statistics chapter.

The core insight

The mean of grouped data replaces every class interval by its midpoint xix_i and computes the frequency-weighted average xˉ=∑fixi/∑fi\bar{x} = \sum f_ix_i / \sum f_i, with the assumed-mean and step-deviation formulas being algebraic rearrangements of that same sum chosen to keep the arithmetic small.

The core idea

A class interval such as 1010–2020 tells you how many observations fall between 1010 and 2020, but not their individual values. The standard convention is to assume every observation in that class behaves like the interval's midpoint, the class mark:

xi=lower limit+upper limit2x_i = \frac{\text{lower limit} + \text{upper limit}}{2}

where: the lower and upper limits are the boundaries of class ii, so for 1010–2020 the class mark is xi=(10+20)/2=15x_i = (10+20)/2 = 15. Once every class has a single representative value xix_i and a frequency fif_i (the count of observations in that class), the mean is found the same way as an ordinary weighted average — each class mark contributes to the total in proportion to how many observations sit in it.

Direct method. Multiply each class mark by its frequency, add these products, and divide by the total frequency:

xˉ=∑fixi∑fi\bar{x} = \frac{\sum f_i x_i}{\sum f_i}

where: fif_i is the frequency of class ii, xix_i is its class mark, ∑fi\sum f_i is the total number of observations, and ∑fixi\sum f_ix_i is the sum of every class mark weighted by its frequency.

Assumed-mean method. Pick a convenient class mark as a reference point, an assumed mean aa (usually a round number near the middle of the data), and work with deviations di=xi−ad_i = x_i - a instead of raw class marks:

xˉ=a+∑fidi∑fi\bar{x} = a + \frac{\sum f_i d_i}{\sum f_i}

where: di=xi−ad_i = x_i - a is how far class mark ii sits from the assumed mean, so deviations for classes below aa are negative and those above are positive.

Step-deviation method. When every class has the same width hh, divide the deviations by hh to get smaller whole-number values ui=(xi−a)/hu_i = (x_i - a)/h:

xˉ=a+h(∑fiui∑fi)\bar{x} = a + h\left(\frac{\sum f_i u_i}{\sum f_i}\right)

where: hh is the common class width and uiu_i is the step-deviation of class ii, an integer such as −2,−1,0,1,2-2, -1, 0, 1, 2 when classes are evenly spaced around aa. The figure below shows the same five-class distribution processed by all three methods side by side, landing on one shared mean.

Figure
Three parallel tables labelled direct method assumed mean method and step deviation method all converging on the same mean value of twenty seven
Three methods, one mean Direct method use x_i directly sum f_i x_i = 1350 sum f_i = 50 x-bar = 1350 / 50 Assumed mean a = 25, d_i = x_i - a sum f_i d_i = 100 sum f_i = 50 x-bar = 25 + 100/50 Step deviation h = 10, u_i = d_i / h sum f_i u_i = 10 sum f_i = 50 x-bar = 25 + 10(10/50) x-bar = 27 same distribution, same answer, different arithmetic

Why the three formulas always agree

This grounded derivation shows that the assumed-mean and step-deviation formulas are not new rules to memorise — they are the direct-method formula rearranged for smaller arithmetic, so if two of your three answers disagree on the same data, the error is arithmetic, not conceptual.

Step 1. Start from the direct-method definition, xˉ=∑fixi∑fi\bar{x} = \dfrac{\sum f_ix_i}{\sum f_i}, and rewrite each class mark as the assumed mean plus its deviation, xi=a+dix_i = a + d_i. Substituting gives xˉ=∑fi(a+di)∑fi\bar{x} = \dfrac{\sum f_i(a + d_i)}{\sum f_i}.

Step 2. Split the sum in the numerator, since aa is a constant that multiplies every fif_i: ∑fi(a+di)=a∑fi+∑fidi\sum f_i(a+d_i) = a\sum f_i + \sum f_id_i. Dividing through by ∑fi\sum f_i gives xˉ=a+∑fidi∑fi\bar{x} = a + \dfrac{\sum f_id_i}{\sum f_i} — exactly the assumed-mean formula. Nothing new was assumed; this is the direct method with xix_i replaced by a+dia + d_i.

Step 3. Now suppose every class has the same width hh, so the deviations are evenly spaced multiples of hh: di=h uid_i = h\,u_i for some integer uiu_i. Substitute into the assumed-mean result: xˉ=a+∑fi(hui)∑fi=a+h(∑fiui∑fi)\bar{x} = a + \dfrac{\sum f_i(hu_i)}{\sum f_i} = a + h\left(\dfrac{\sum f_iu_i}{\sum f_i}\right), since hh is a constant and factors out of the sum. This is the step-deviation formula.

Step 4. Because each formula was obtained from the previous one by pure algebraic substitution — no approximation, no rounding — all three must give identical results on the same data, provided the arithmetic is carried out correctly. The only thing that changes between methods is the size of the numbers you add: raw class marks (can be large), deviations from a central value (smaller), or whole-number step-deviations (smallest, and easiest to sum by hand).

Worked example

Find the mean of the distribution below using all three methods, taking assumed mean a=25a = 25, and confirm they agree.

Class0–1010–2020–3030–4040–50
Frequency fif_i5815166

Step 1. Find the class marks: xi=5,15,25,35,45x_i = 5, 15, 25, 35, 45, and note the class width is h=10h = 10 throughout.

Step 2 — direct method. Compute fixif_ix_i: 5(5)=255(5)=25, 8(15)=1208(15)=120, 15(25)=37515(25)=375, 16(35)=56016(35)=560, 6(45)=2706(45)=270. Totals: ∑fi=5+8+15+16+6=50\sum f_i = 5+8+15+16+6 = 50 and ∑fixi=25+120+375+560+270=1350\sum f_ix_i = 25+120+375+560+270 = 1350. So xˉ=1350/50=27\bar{x} = 1350/50 = 27.

Step 3 — assumed-mean method. With a=25a = 25, deviations are di=xi−25d_i = x_i - 25: that is −20,−10,0,10,20-20, -10, 0, 10, 20. Then fidif_id_i: 5(−20)=−1005(-20)=-100, 8(−10)=−808(-10)=-80, 15(0)=015(0)=0, 16(10)=16016(10)=160, 6(20)=1206(20)=120. Summing, ∑fidi=−100−80+0+160+120=100\sum f_id_i = -100-80+0+160+120 = 100. So xˉ=25+100/50=25+2=27\bar{x} = 25 + 100/50 = 25 + 2 = 27.

Step 4 — step-deviation method. Divide each deviation by h=10h=10: ui=−2,−1,0,1,2u_i = -2, -1, 0, 1, 2. Then fiuif_iu_i: 5(−2)=−105(-2)=-10, 8(−1)=−88(-1)=-8, 15(0)=015(0)=0, 16(1)=1616(1)=16, 6(2)=126(2)=12. Summing, ∑fiui=−10−8+0+16+12=10\sum f_iu_i = -10-8+0+16+12 = 10. So xˉ=25+10(10/50)=25+2=27\bar{x} = 25 + 10(10/50) = 25 + 2 = 27. All three methods land on 27, exactly as the algebra of the previous section guarantees.

Competitive stretch

For the distribution with a=25a=25 and ∑fi=50\sum f_i = 50, if ∑fiui\sum f_iu_i had instead come out to −3-3 (as in a differently-weighted version of this table), the mean would shift to xˉ=25+10(−3/50)=25−0.6=24.4\bar{x} = 25 + 10(-3/50) = 25 - 0.6 = 24.4 — a reminder that the step-deviation total can be negative when more weight sits in classes below the assumed mean, and the final mean can land below aa even though aa was chosen "near the middle."

Common traps

  • Using a class boundary instead of the class mark. The formula needs xix_i, the midpoint, never the lower or upper limit of the interval.
  • Applying step-deviation with unequal class widths. ui=(xi−a)/hu_i = (x_i-a)/h only makes sense when every class shares one common width hh; with unequal widths, use the direct or assumed-mean method instead.
  • Dropping a sign while summing fidif_id_i or fiuif_iu_i. Deviations below the assumed mean are negative — losing one minus sign shifts the whole mean.
  • Picking an assumed mean far from the data's centre. The method still gives the correct answer, but did_i or uiu_i become large and the arithmetic advantage is lost.

Ask the tutor: Want to try the step-deviation method on a distribution with six classes and check whether your answer matches the direct method?

Why do we use the midpoint of a class interval instead of the actual data values

Grouped data is recorded precisely because the individual values were not kept — only counts per range. The midpoint is the best single guess for "a typical value" in that range, assuming observations are roughly spread evenly across the interval. It is an approximation, so the computed mean of grouped data is itself an estimate of the true mean, not necessarily identical to the mean you would get from the raw ungrouped values.

Does it matter which class mark I pick as the assumed mean a

No — the mean will come out the same no matter which class mark you choose for aa, because the algebra in the derivation holds for any aa. What changes is only the size of the numbers you handle. Picking aa close to the middle of the data keeps deviations small and the arithmetic light; picking aa at one extreme still works but produces larger, more error-prone numbers.

Can I use the step-deviation method if the class widths are not all equal

Not directly. The formula ui=(xi−a)/hu_i = (x_i-a)/h relies on a single common width hh dividing evenly into every deviation, which only holds when all classes are the same size. If widths differ, fall back to the direct method or the assumed-mean method — both work regardless of whether class widths are equal.

Before this

Where this leads