13.1 Mean of Grouped Data
When a hundred marks are squeezed into a table of class intervals, the individual values are lost. The mean of grouped data finds the average anyway: replace each class by its class mark, weight it by its frequency, and divide by the total frequency.
A school records the marks of 400 students in a unit test. Nobody wants to read 400 numbers, so the marks are sorted into classes such as $0$โ$10$, $10$โ$20$, $20$โ$30$, and the table only says how many students fall in each class. This is grouped data. It is easy to read, but it hides the exact marks. So how can we still find the average mark?
In Class 9 you found the mean of a list as (sum of values) รท (number of values). Here we do not have the values, so we make one sensible assumption: every observation in a class is equal to the middle value of that class. That middle value is the class mark. The result is not exact, but it is very close, and it is the method every statistics report uses. In this section you learn the direct method, a shortcut called the assumed-mean method, and a still faster version, the step-deviation method โ all three are in your syllabus.
Class marks and the direct method
For the class $20$โ$30$, the class mark is $x_i=\dfrac{30+20}{2}=25$ and the class size is $h=10$. If $7$ students scored in this class, we treat them as seven students who all scored $25$.
Why does this work? If a class mark $x_i$ occurs $f_i$ times, then adding all the observations means adding $x_i$ a total of $f_i$ times, which is $f_ix_i$. The total of all observations is $\sum f_ix_i$ and there are $\sum f_i$ of them, so the mean is the ratio. It is the same rule as "sum รท count" for a list, written for repeated values.
1. Dividing by the number of classes. Divide by $\sum f_i$ (the number of observations), never by the number of rows.
2. Using the class limit instead of the class mark. Multiply the frequency by the midpoint $x_i$, not by the lower or upper limit.
3. Averaging the class marks. $\dfrac{5+15+25+35+45}{5}$ ignores the frequencies. A class with more students must count for more.
4. Calling the answer exact. The mean of grouped data is an estimate; the true mean of the raw marks can differ a little, as Example 6 shows.
| Marks | $0$โ$10$ | $10$โ$20$ | $20$โ$30$ | $30$โ$40$ | $40$โ$50$ |
|---|---|---|---|---|---|
| Students $f_i$ | 3 | 5 | 8 | 8 | 6 |
The assumed-mean method
When the numbers $x_i$ are large (wages in hundreds of rupees, say), the products $f_ix_i$ become big and calculation slips are likely. The cure is to measure every class mark from a convenient assumed mean $a$, usually a class mark near the middle of the table. The deviation of a class mark from $a$ is $d_i=x_i-a$. The deviations are small numbers, often $0$ or negative, so the products $f_id_i$ are easy.
Proof. Write $x_i=a+d_i$ in the direct method: $$\bar x=\frac{\sum f_i(a+d_i)}{\sum f_i}=\frac{a\sum f_i+\sum f_id_i}{\sum f_i}=a+\frac{\sum f_id_i}{\sum f_i}.\qquad\blacksquare$$ Notice that the proof works for any $a$. A good choice only makes the arithmetic shorter: if $a$ is not near the true mean, $\sum f_id_i$ is simply large, and the correction $\dfrac{\sum f_id_i}{\sum f_i}$ makes up for it.
| Wage (โน) | $400$โ$500$ | $500$โ$600$ | $600$โ$700$ | $700$โ$800$ | $800$โ$900$ |
|---|---|---|---|---|---|
| Workers $f_i$ | 6 | 10 | 14 | 12 | 8 |
| Class | $0$โ$20$ | $20$โ$40$ | $40$โ$60$ | $60$โ$80$ | $80$โ$100$ |
|---|---|---|---|---|---|
| Frequency | 6 | 8 | $p$ | 10 | 4 |
The step-deviation method
If every deviation $d_i$ is a multiple of the class size $h$ (as happens when all classes have the same size), we can shrink the numbers even more by dividing the deviations by $h$. Put $u_i=\dfrac{x_i-a}{h}$, which are small whole numbers $\dots,-2,-1,0,1,2,\dots$.
Proof. $d_i=x_i-a=hu_i$, so $\sum f_id_i=h\sum f_iu_i$. Substituting into Theorem 13.2 gives the formula. $\blacksquare$
- Small class marks (like $5,15,25$): use the direct method.
- Large or awkward class marks: pick $a$ as a class mark near the middle, and use the assumed-mean method.
- Equal class sizes $h$ and large marks: the step-deviation method is the shortest. Remember to multiply by $h$ at the end โ forgetting it is the usual slip.
- All three give the same mean. If you have time, confirm with a second method.
| Time (min) | $0$โ$5$ | $5$โ$10$ | $10$โ$15$ | $15$โ$20$ | $20$โ$25$ | $25$โ$30$ |
|---|---|---|---|---|---|---|
| Customers | 4 | 10 | 18 | 14 | 9 | 5 |
Exercises
- 1 Write the class mark and the class size of the class $15$โ$25$.
- 2 Find the class marks of $40$โ$60$ and of $100$โ$150$.
- 3 Classes are written $11$โ$20$, $21$โ$30$, $31$โ$40$. Find the class mark of each.
- 4 The class marks $10,20,30$ have frequencies $2,3,5$. Find the mean.
- 5 For a distribution, $\sum f_ix_i=1260$ and $\sum f_i=45$. Find $\bar x$.
- 6 In the assumed-mean method with $a=40$, $\sum f_id_i=-120$ and $\sum f_i=30$. Find the mean.
- 1 Classes $0$โ$10,\ 10$โ$20,\ 20$โ$30,\ 30$โ$40,\ 40$โ$50$ with frequencies $3,7,12,5,3$. Give the answer to $2$ d.p.
- 2 Classes $10$โ$20,\dots,50$โ$60$ with frequencies $4,6,10,8,2$. Give the answer to $2$ d.p.
- 3 Heights (cm) of $30$ students: $140$โ$150$: $5$; $150$โ$160$: $12$; $160$โ$170$: $10$; $170$โ$180$: $3$. Give the answer to $2$ d.p.
- 4 Weekly pocket money (โน) of $60$ students: $0$โ$50$: $8$; $50$โ$100$: $14$; $100$โ$150$: $20$; $150$โ$200$: $12$; $200$โ$250$: $6$.
- 5 Pages read in a week by $30$ students: $1$โ$10$: $6$; $11$โ$20$: $9$; $21$โ$30$: $10$; $31$โ$40$: $5$. Give the answer to $2$ d.p.
- 6 Daily rainfall (mm) over $40$ days: $0$โ$4$: $18$; $4$โ$8$: $10$; $8$โ$12$: $7$; $12$โ$16$: $5$.
- 1 Classes $0$โ$20,\ 20$โ$40,\ 40$โ$60,\ 60$โ$80,\ 80$โ$100$ have frequencies $6,9,15,12,8$. Find the mean with the assumed-mean method, taking $a=50$.
- 2 For the same data find the mean by the step-deviation method with $a=50$ and $h=20$.
- 3 For the same data take $a=30$. Show that you get the same mean.
- 4 The mean of the distribution (classes $0$โ$10,\dots,40$โ$50$) with frequencies $4,6,p,8,2$ is $24.5$. Find $p$.
- 5 Classes $0$โ$20,\dots,80$โ$100$ have frequencies $7,p,12,q,8$, total frequency $50$ and mean $51.2$. Find $p$ and $q$.
- 6 A cricket coach records the runs scored in 50 matches. Classes $20$โ$30,30$โ$40,40$โ$50,50$โ$60,60$โ$70$ have frequencies $5,8,15,16,6$. Find the mean using $a=45$.
- 1 A distribution has mean $\bar x$. Each class mark is increased by $10$ (frequencies unchanged). Show that the new mean is $\bar x+10$.
- 2 Each class mark is doubled. Show that the new mean is $2\bar x$. Use this to find the mean of a distribution whose class marks are $20,60,100,140,180$ with frequencies $6,9,15,12,8$, given that the class marks $10,30,50,70,90$ with the same frequencies have mean $52.8$.
- 3 A student claims: "The mean of $0$โ$10$ (frequency $4$) and $90$โ$100$ (frequency $4$) is $50$, so the mean is the average of $0$ and $100$." Find the actual grouped mean and explain the error.
- 4 A shopkeeper's daily sales (โน hundreds) over $40$ days: $10$โ$20$: $4$; $20$โ$30$: $8$; $30$โ$40$: $14$; $40$โ$50$: $10$; $50$โ$60$: $4$. Find the mean and write the total sales in โน.
How this is examined: Boards ask for the mean of a table in 3 marks (direct, assumed-mean or step-deviation โ write the formula, the table and the substitution), a "find the missing frequency" item in 2โ3 marks, and 1-mark MCQs on class marks and formulas. JEE Main uses the effect of changing every observation, $\overline{ax+b}=a\bar x+b$.
E1. Board ยท 1 mark For a grouped distribution, $\sum f_ix_i=1260$ and $\sum f_i=42$. The mean is (A) $20$ (B) $30$ (C) $252$ (D) $1218$
E2. Board ยท 1 mark Assertion (A): The value of the mean found by the assumed-mean method depends on the choice of the assumed mean $a$. Reason (R): $\bar x=a+\dfrac{\sum f_id_i}{\sum f_i}$, where $d_i=x_i-a$.
(A) Both A and R are true and R is the correct explanation of A. (B) Both A and R are true but R is not the correct explanation of A. (C) A is true but R is false. (D) A is false but R is true.
E3. Board ยท 3 marks A shop's daily sales (in โน hundreds) over $50$ days are: $20$โ$30$: $5$; $30$โ$40$: $8$; $40$โ$50$: $15$; $50$โ$60$: $16$; $60$โ$70$: $6$. Find the mean daily sales by the assumed-mean method.
E4. Board ยท 2 marks Classes $10$โ$20,\ 20$โ$30,\ 30$โ$40,\ 40$โ$50,\ 50$โ$60$ have frequencies $5,\ 8,\ p,\ 7,\ 5$. If the mean is $34.8$, find $p$.
E5. Board ยท Case study A survey of $40$ Class 10 students recorded the time (in minutes) they spent on a phone on one day: $0$โ$30$: $4$; $30$โ$60$: $10$; $60$โ$90$: $14$; $90$โ$120$: $8$; $120$โ$150$: $4$. (i) Write the class marks and find $\sum f_ix_i$. (2) (ii) Find the mean time. (1) (iii) How many students spent more than $90$ minutes, and what percentage of the class is that? (1)
E6. JEE Main The mean of a frequency distribution (of class marks $x_i$) is $40$. Every class mark is replaced by $3x_i-5$ (frequencies unchanged). The new mean is (A) $35$ (B) $115$ (C) $120$ (D) $125$
Research question. How close is the mean of grouped data to the true mean of the raw values, and how does the choice of class size change the gap?
Why it matters. Census reports, weather summaries and sports statistics often publish only grouped tables. Analysts must know how much accuracy the grouping costs before they trust a figure computed from it.
What to do.
- Ask 30 classmates (or use a data source such as daily temperatures for a month) for one number, for example minutes spent travelling to school each day.
- Find the exact mean from the raw numbers.
- Group the data with class size $h=10$, then again with $h=5$, and find the grouped mean each time (direct method, in a spreadsheet).
- Compare: which class size gives the estimate closer to the exact mean?
- Try one very wide class (for example $0$โ$60$ for everything) and note what happens.
Tools: A notebook, a calculator or a spreadsheet, and a short survey
Hand in: Your raw data, the two frequency tables, the three means, and a paragraph explaining which grouping you would trust and why.
Going further. Change the assumed mean $a$ three times in the assumed-mean method. Confirm that the final mean is unchanged, and explain in words why it must be.
๐งช Self-check quiz
Q1. The class mark of the class $35$โ$45$ is
Q2. If $\sum f_ix_i=860$ and $\sum f_i=40$, the mean is
Q3. In the assumed-mean method, $a=25$, $\sum f_id_i=60$ and $\sum f_i=30$. The mean is
Q4. Which statement about the assumed mean $a$ is false?
Q5. The class mark of the class $10$โ$19$ (written without overlap) is