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 mean of grouped data replaces every class interval by its midpoint and computes the frequency-weighted average , 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 – tells you how many observations fall between and , 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:
where: the lower and upper limits are the boundaries of class , so for – the class mark is . Once every class has a single representative value and a frequency (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:
where: is the frequency of class , is its class mark, is the total number of observations, and 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 (usually a round number near the middle of the data), and work with deviations instead of raw class marks:
where: is how far class mark sits from the assumed mean, so deviations for classes below are negative and those above are positive.
Step-deviation method. When every class has the same width , divide the deviations by to get smaller whole-number values :
where: is the common class width and is the step-deviation of class , an integer such as when classes are evenly spaced around . The figure below shows the same five-class distribution processed by all three methods side by side, landing on one shared mean.
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, , and rewrite each class mark as the assumed mean plus its deviation, . Substituting gives .
Step 2. Split the sum in the numerator, since is a constant that multiplies every : . Dividing through by gives — exactly the assumed-mean formula. Nothing new was assumed; this is the direct method with replaced by .
Step 3. Now suppose every class has the same width , so the deviations are evenly spaced multiples of : for some integer . Substitute into the assumed-mean result: , since 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 , and confirm they agree.
| Class | 0–10 | 10–20 | 20–30 | 30–40 | 40–50 |
|---|---|---|---|---|---|
| Frequency | 5 | 8 | 15 | 16 | 6 |
Step 1. Find the class marks: , and note the class width is throughout.
Step 2 — direct method. Compute : , , , , . Totals: and . So .
Step 3 — assumed-mean method. With , deviations are : that is . Then : , , , , . Summing, . So .
Step 4 — step-deviation method. Divide each deviation by : . Then : , , , , . Summing, . So . All three methods land on 27, exactly as the algebra of the previous section guarantees.
Competitive stretch
For the distribution with and , if had instead come out to (as in a differently-weighted version of this table), the mean would shift to — 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 even though was chosen "near the middle."
Common traps
- Using a class boundary instead of the class mark. The formula needs , the midpoint, never the lower or upper limit of the interval.
- Applying step-deviation with unequal class widths. only makes sense when every class shares one common width ; with unequal widths, use the direct or assumed-mean method instead.
- Dropping a sign while summing or . 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 or 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 , because the algebra in the derivation holds for any . What changes is only the size of the numbers you handle. Picking close to the middle of the data keeps deviations small and the arithmetic light; picking 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 relies on a single common width 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.