Mean of grouped data

A cricket coach records the runs scored by 40 batsmen in a season, but not as 40 separate numbers — the scorer has already bucketed them into ranges like "20 to 29 runs," "30 to 39 runs," with a count against each range. The individual scores are gone; only the class intervals and their frequencies survive. Can you still find the average runs scored? You can, but not by adding raw numbers and dividing — there are no raw numbers left to add. This is the situation for grouped data, and ICSE Class 10 gives three routes to the same answer: the direct method, the short-cut (assumed mean) method, and the step-deviation method. All three represent each class by its mid-point, weight it by its frequency, and combine the weighted values — they differ only in how much arithmetic they demand. Examiners often name the method they want, so real exam fluency means switching between all three and trusting they land on the same number.

The core insight

The mean of grouped data is the frequency-weighted average of each class's mid-point, computed by the direct, short-cut, or step-deviation formula — all three always give the identical answer.

The core idea

Grouped data hides the individual values inside a range, so before any averaging can happen, each class interval must be collapsed to one representative number: its class mark (mid-value),

x=lower limit+upper limit2.x=\frac{\text{lower limit}+\text{upper limit}}{2}.

where: the lower and upper limit are the two boundaries of the class interval. Every data value inside that class is treated, for the purposes of the mean, as if it were exactly xx — an approximation, since the true values are spread across the interval, but one that becomes accurate once frequencies are large and classes are reasonably narrow. Once every class has a mark xx and a frequency ff, three formulae compute the mean:

Direct method: xˉ=ΣfxΣf\text{Direct method: } \bar x=\frac{\Sigma fx}{\Sigma f}

where: Σfx\Sigma fx is the sum, across all classes, of (frequency times class mark), and Σf\Sigma f is the total frequency — the total number of data items. This is nothing but the familiar "sum of values divided by count" idea, except each value xx is counted ff times instead of being listed ff times.

Short-cut method: xˉ=A+ΣfdΣf,d=x−A\text{Short-cut method: } \bar x = A+\frac{\Sigma fd}{\Sigma f}, \qquad d=x-A

where: AA is an assumed mean — any convenient class mark, chosen because it is roughly central — and d=x−Ad = x - A is the deviation of each class mark from AA. Instead of multiplying large class marks by frequencies, you multiply small (often single- or double-digit) deviations, which is far friendlier without a calculator.

Step-deviation method: xˉ=A+ΣftΣf×i,t=x−Ai\text{Step-deviation method: } \bar x = A+\frac{\Sigma ft}{\Sigma f}\times i, \qquad t=\frac{x-A}{i}

where: ii is the class size (the common width of every interval, assumed equal across the table) and t=x−Ait=\dfrac{x-A}{i} is the step-deviation — the deviation dd further shrunk by dividing out the class size, turning it into a small integer such as −2,−1,0,1,2-2, -1, 0, 1, 2. Why do three formulae exist for one quantity? They are algebraically the same expression rearranged for arithmetic convenience: the short-cut method avoids multiplying by large xx values, and the step-deviation method additionally avoids multiplying by large dd values. None of them changes what is computed — they change only how much multiplication you do by hand. Choosing AA to be a class mark near the centre of the distribution is good practice: it keeps dd and tt small and often makes one row exactly zero, a useful checkpoint.

Figure
Three parallel routes from a frequency table to the same mean value, labelled direct method, short-cut method, and step-deviation method
Three methods, one answer frequency table f, x direct: sum of f times x short-cut: A plus sum fd over sum f step-deviation: A plus sum ft over sum f times i same mean All three routes are algebraic rearrangements of the same weighted average and must agree.
Derivation AWhy the short-cut and step-deviation formulae equal the direct formula

The goal is to show, starting only from the definition d=x−Ad=x-A and t=x−Ait=\dfrac{x-A}{i}, that A+ΣfdΣfA+\dfrac{\Sigma fd}{\Sigma f} and A+ΣftΣf×iA+\dfrac{\Sigma ft}{\Sigma f}\times i are exactly equal to ΣfxΣf\dfrac{\Sigma fx}{\Sigma f}, so switching methods never changes the answer — it only changes how much arithmetic each row of the table demands.

Step 1. Expand Σfd\Sigma fd using d=x−Ad = x - A. For each class, fd=f(x−A)=fx−fAfd = f(x-A) = fx - fA. Summing over all classes, Σfd=Σfx−ΣfA=Σfx−AΣf\Sigma fd = \Sigma fx - \Sigma fA = \Sigma fx - A\Sigma f, because AA is a constant and can be pulled out of the sum, leaving Σf\Sigma f (the total frequency) multiplying it.

Step 2. Substitute back into the short-cut formula. xˉ=A+ΣfdΣf=A+Σfx−AΣfΣf=A+ΣfxΣf−A=ΣfxΣf\bar x = A + \dfrac{\Sigma fd}{\Sigma f} = A + \dfrac{\Sigma fx - A\Sigma f}{\Sigma f} = A + \dfrac{\Sigma fx}{\Sigma f} - A = \dfrac{\Sigma fx}{\Sigma f}. The two occurrences of AA cancel exactly, leaving precisely the direct-method formula. This confirms the short-cut method is not an approximation — it is the same sum computed by a different route.

Step 3. Extend the same idea to the step-deviation method. Since t=x−Ai=dit = \dfrac{x-A}{i} = \dfrac{d}{i}, we have d=itd = it, so Σfd=i Σft\Sigma fd = i\,\Sigma ft. Substituting into the short-cut result from Step 2, xˉ=A+ΣfdΣf=A+i ΣftΣf=A+ΣftΣf×i\bar x = A + \dfrac{\Sigma fd}{\Sigma f} = A + \dfrac{i\,\Sigma ft}{\Sigma f} = A + \dfrac{\Sigma ft}{\Sigma f}\times i, which is exactly the step-deviation formula.

Step 4. Read the result. Every step used only that AA and ii are constants (the same number for every class), so they can be factored in and out of sums freely. No approximation entered anywhere — the three formulae are algebraically identical expressions, and any correctly filled table must return the same xˉ\bar x by all three routes, which is exactly why examiners use this as a self-check.

Worked example

The marks (out of 50) obtained by 40 students in a test are given below. Find the mean marks, and verify the direct method against the step-deviation method with assumed mean A=25A=25 and class size i=10i=10.

Marks0–1010–2020–3030–4040–50
No. of students (ff)581575

Step 1. Find the class marks. Each class mark is the mid-point of its interval: 5,15,25,35,455, 15, 25, 35, 45. Note that 2525 is already one of these marks, which is why it is a good choice for the assumed mean AA.

Step 2. Build the direct-method table with columns ff, xx, fxfx.

Classffxxfxfx
0–105525
10–20815120
20–301525375
30–40735245
40–50545225
TotalΣf=40\Sigma f = 40Σfx=990\Sigma fx = 990

Applying the direct formula, xˉ=ΣfxΣf=99040=24.75\bar x = \dfrac{\Sigma fx}{\Sigma f} = \dfrac{990}{40} = 24.75.

Step 3. Build the step-deviation table with d=x−25d=x-25, t=x−2510t=\dfrac{x-25}{10}, and ftft.

Classffxxd=x−25d=x-25t=x−2510t=\dfrac{x-25}{10}ftft
0–1055−20-20−2-2−10-10
10–20815−10-10−1-1−8-8
20–301525000000
30–4073510101177
40–505452020221010
TotalΣf=40\Sigma f=40Σft=−1\Sigma ft = -1

Step 4. Apply the step-deviation formula and compare. xˉ=A+ΣftΣf×i=25+−140×10=25−0.25=24.75\bar x = A+\dfrac{\Sigma ft}{\Sigma f}\times i = 25+\dfrac{-1}{40}\times 10 = 25-0.25 = 24.75. This matches the direct-method value exactly, exactly as the derivation above guarantees. The mean mark is 24.75, confirmed by two independent methods.

Competitive stretch

Suppose the same table instead used assumed mean A=35A=35 with i=10i=10. Then tt values become −3,−2,−1,0,1-3,-2,-1,0,1 for the five classes, giving ft=−15,−16,−15,0,5ft = -15,-16,-15,0,5, so Σft=−41\Sigma ft = -41, and xˉ=35+−4140×10=35−10.25=24.75\bar x = 35 + \dfrac{-41}{40}\times 10 = 35 - 10.25 = 24.75 — the same answer again, showing that any valid choice of AA works, though A=25A=25 kept the arithmetic smallest.

Common traps

  • Using class limits instead of the class mark. Only the mid-value xx enters the formula; the lower or upper boundary of the interval is never substituted directly.
  • Forgetting to adjust discontinuous class intervals. If intervals are stated as 11–1010, 1111–2020 (a gap of 11 between classes), the true continuous boundaries must be found first (typically by subtracting and adding 0.50.5) before computing class marks.
  • Sign errors in dd or tt. Deviations below the assumed mean are negative; a dropped minus sign anywhere in the table throws off the final sum without any obvious warning.
  • Dividing by the number of classes instead of Σf\Sigma f. The denominator is always the total frequency, never the number of rows in the frequency table.

Ask the tutor: if you want to practise choosing a good assumed mean or converting a discontinuous class table into a continuous one before finding the mean, ask the AI tutor for a step-by-step walkthrough with your own numbers.

Do I have to use the method the question specifies, or can I always use the direct method?

If the question names "short-cut method" or "step-deviation method," you must show that method's working — examiners award marks for the procedure, not just the final number. If no method is specified, pick whichever is fastest; step-deviation is usually quickest when the class size is round, like 10 or 20. Since all three always agree, using the direct method as a mental check is good practice even if you write up only the required one.

What if the class intervals have unequal widths — can I still use the step-deviation method?

No, not directly. The step-deviation formula relies on dividing every deviation by the same class size ii, which only makes sense if every class has identical width. With unequal widths, use the direct or short-cut method instead, both of which work regardless. If asked for step-deviation on unequal-width data, point out the mismatch and fall back to short-cut or direct.

Why does treating every value in a class as its mid-point not distort the mean if the data inside is unevenly spread?

It can introduce a small approximation error, but for grouped data this is accepted as unavoidable — once data is tabulated into intervals, the original individual values are lost and cannot be recovered. The mid-point is the best single guess for a class assuming data is roughly evenly spread within it, and with reasonably narrow class widths and enough classes, the errors from different classes tend to partly cancel, keeping the computed mean close to the true mean of the raw data. This is a standard, examiner-accepted approximation, not a computational mistake.

Before this

Where this leads