StatisticsMean of Grouped Data
The plank balanced at 5, and the arithmetic agrees. Riya's list repeats some scores — 2 appears three times and 10 twice — so it is quicker to write it as a table of values and their
| Pani-puris eaten () | 1 | 2 | 3 | 4 | 5 | 7 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|
| Number of friends () | 1 | 3 | 1 | 1 | 1 | 1 | 1 | 2 |
Instead of adding 2 three times, multiply: . Doing this for every column gives the total number of pani-puris,
The same recipe works for any table. Suppose the values occur times. Then all the observations together add up to , and there are of them. So the mean is
The Greek capital letter Σ (sigma) is shorthand for "add up all of these", so the same formula is written
or, when it is clear that runs from 1 to , simply .
Now a real class. Thirty students sat a 100-mark mathematics paper.
Example 1 : The marks obtained by 30 students of Class X of a school in a mathematics paper of 100 marks are given in the table below. Find the mean of the marks obtained by the students.
| Marks obtained () | 10 | 20 | 36 | 40 | 50 | 56 | 60 | 70 | 72 | 80 | 88 | 92 | 95 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Number of students () | 1 | 1 | 3 | 4 | 3 | 2 | 4 | 4 | 1 | 1 | 2 | 3 | 1 |
Solution : We need each mark multiplied by its frequency , so we add an column, as in Table 13.1.
Table 13.1
| Marks obtained () | Number of students () | |
|---|---|---|
| 10 | 1 | 10 |
| 20 | 1 | 20 |
| 36 | 3 | 108 |
| 40 | 4 | 160 |
| 50 | 3 | 150 |
| 56 | 2 | 112 |
| 60 | 4 | 240 |
| 70 | 4 | 280 |
| 72 | 1 | 72 |
| 80 | 1 | 80 |
| 88 | 2 | 176 |
| 92 | 3 | 276 |
| 95 | 1 | 95 |
| Total |
So
The mean mark is 59.3. Keep this number in mind: in a moment the very same marks will give a slightly different answer.
From a List to Classes
Thirty marks fit into one table. Three thousand would not. With large data sets we sort the values into
One snag: four students scored exactly 40, and 40 is where 25 – 40 ends and 40 – 55 begins. Each student must be counted in exactly one class, so we follow a fixed rule: a value equal to the upper limit of a class goes into the next class. A mark of 40 therefore counts in 40 – 55, not in 25 – 40.
Drag each mark into its class.
Sorting all 30 marks this way gives a grouped frequency distribution:
Table 13.2
| Class interval | 10 - 25 | 25 - 40 | 40 - 55 | 55 - 70 | 70 - 85 | 85 - 100 |
|---|---|---|---|---|---|---|
| Number of students | 2 | 3 | 7 | 6 | 6 | 6 |
Grouping has a price: the table no longer says what each student scored, only which class they are in. To work out a mean, every class needs one number to stand for all its members. The fairest choice is the middle of the class — some students in it scored a little less, some a little more, and on balance those differences roughly cancel. So we assume that the frequency of each class is centred at its mid-point, which is called its
For the class 10 – 25 the class mark is
Table 13.3
| Class interval | Number of students () | Class mark () | |
|---|---|---|---|
| 10 - 25 | 2 | 17.5 | 35.0 |
| 25 - 40 | 3 | 32.5 | 97.5 |
| 40 - 55 | 7 | 47.5 | 332.5 |
| 55 - 70 | 6 | 62.5 | 375.0 |
| 70 - 85 | 6 | 77.5 | 465.0 |
| 85 - 100 | 6 | 92.5 | 555.0 |
| Total |
Adding the last column gives , so
Using the class marks as they are, like this, is called the direct method.
But wait. These are the same 30 students as in Example 1, and there the mean was 59.3. Which answer is right? Each grey dot below is one student, placed at their exact mark; the shaded bands are the six classes. The blue line is where the dots balance — their mean. Squash every class onto its class mark and watch the blue line.
Grouping moved the students: a 40 now counts as 47.5, a 70 as 77.5, a 36 as 32.5. On balance the moves were upwards, so the balance point drifted from 59.3 to 62. So 59.3 is the exact mean, and 62 is an
The direct method is quick here. But when the and are large, the products get long and error-prone. There is a way to shrink the numbers first.
The Assumed Mean Method
We cannot change the frequencies — they are what they are. But we can make every smaller by
Step 1. Choose one of the as the
Step 2. Find the
Step 3. Multiply each by its frequency , and add up all the . Table 13.4 shows the working.
Table 13.4
| Class interval | Number of students () | Class mark () | ||
|---|---|---|---|---|
| 10 - 25 | 2 | 17.5 | -30 | -60 |
| 25 - 40 | 3 | 32.5 | -15 | -45 |
| 40 - 55 | 7 | 47.5 | 0 | 0 |
| 55 - 70 | 6 | 62.5 | 15 | 90 |
| 70 - 85 | 6 | 77.5 | 30 | 180 |
| 85 - 100 | 6 | 92.5 | 45 | 270 |
| Total |
The mean of the deviations is . How is it related to the mean that we want? Every is its with taken away, so we expect the mean of the to be the mean of the with taken away. The algebra confirms it:
So, to get back, we
From Table 13.4, , and , so
The same 62 as the direct method, with much smaller multiplications. This is the assumed mean method.
Activity 1 : Would the answer change if we picked a different ? Choose class marks from Table 13.3 as — at least three different ones — and watch the deviations and the mean.
The mean comes out
The Step-Deviation Method
Look again at the column of Table 13.4: −30, −15, 0, 15, 30, 45. Every one of them is a multiple of 15, which is the
With and , the deviation −30 becomes
Table 13.5
| Class interval | |||||
|---|---|---|---|---|---|
| 10 - 25 | 2 | 17.5 | -30 | -2 | -4 |
| 25 - 40 | 3 | 32.5 | -15 | -1 | -3 |
| 40 - 55 | 7 | 47.5 | 0 | 0 | 0 |
| 55 - 70 | 6 | 62.5 | 15 | 1 | 6 |
| 70 - 85 | 6 | 77.5 | 30 | 2 | 12 |
| 85 - 100 | 6 | 92.5 | 45 | 3 | 18 |
| Total |
Let . Each is a deviation divided by , so should be the mean deviation divided by :
So , which gives
Substituting , , and from Table 13.5:
This is the
The three methods for the mean of grouped data:
where and .
A few things to remember:
- The step-deviation method is handy when all the have a common factor.
- All three methods give the same mean: the assumed mean and step-deviation methods are just the direct method with easier numbers.
- holds for any numbers and , as long as — they need not be a class mark and the class size.
Let's use all three methods on the same data.
Example 2 : The table below gives the percentage distribution of female teachers in the primary schools of rural areas of various states and union territories (U.T.) of India. Find the mean percentage of female teachers by all the three methods discussed in this section.
| Percentage of female teachers | 15 - 25 | 25 - 35 | 35 - 45 | 45 - 55 | 55 - 65 | 65 - 75 | 75 - 85 |
|---|---|---|---|---|---|---|---|
| Number of States/U.T. | 6 | 11 | 7 | 4 | 4 | 2 | 1 |
Source : Seventh All India School Education Survey
Solution : First, the class marks (Table 13.6):
Table 13.6
| Percentage of female teachers | Number of States /U.T. () | |
|---|---|---|
| 15 - 25 | 6 | 20 |
| 25 - 35 | 11 | 30 |
| 35 - 45 | 7 | 40 |
| 45 - 55 | 4 | 50 |
| 55 - 65 | 4 | 60 |
| 65 - 75 | 2 | 70 |
| 75 - 85 | 1 | 80 |
Take and , so that and . Table 13.7 has every column we need.
Table 13.7
| Percentage of female teachers | Number of states/U.T. () | ||||||
|---|---|---|---|---|---|---|---|
| 15 - 25 | 6 | 20 | -30 | -3 | 120 | -180 | -18 |
| 25 - 35 | 11 | 30 | -20 | -2 | 330 | -220 | -22 |
| 35 - 45 | 7 | 40 | -10 | -1 | 280 | -70 | -7 |
| 45 - 55 | 4 | 50 | 0 | 0 | 200 | 0 | 0 |
| 55 - 65 | 4 | 60 | 10 | 1 | 240 | 40 | 4 |
| 65 - 75 | 2 | 70 | 20 | 2 | 140 | 40 | 4 |
| 75 - 85 | 1 | 80 | 30 | 3 | 80 | 30 | 3 |
| Total | 35 | 1390 | -360 | -36 |
From the totals,
Direct method:
Assumed mean method:
Step-deviation method:
So the mean percentage of female teachers in these schools is 39.71 — the same by every method.
Tip
Choosing a method. All three methods give the same result, so choose by the size of the numbers. Small and : the direct method is quickest. Large values: use the assumed mean or the step-deviation method. Even when the class sizes are unequal and the are large, step deviation still works if you take for a suitable divisor of the .
Example 3 : The distribution below shows the number of wickets taken by bowlers in one-day cricket matches. Find the mean number of wickets by choosing a suitable method. What does the mean signify?
| Number of wickets | 20 - 60 | 60 - 100 | 100 - 150 | 150 - 250 | 250 - 350 | 350 - 450 |
|---|---|---|---|---|---|---|
| Number of bowlers | 7 | 5 | 16 | 12 | 2 | 3 |
Solution : The class sizes are unequal here, and the are large. Step deviation still works: take and . (One comes out as a decimal, −3.75, and that is fine — the formula holds for any .) This gives Table 13.8.
Table 13.8
| Number of wickets taken | Number of bowlers () | ||||
|---|---|---|---|---|---|
| 20 - 60 | 7 | 40 | -160 | -8 | -56 |
| 60 - 100 | 5 | 80 | -120 | -6 | -30 |
| 100 - 150 | 16 | 125 | -75 | -3.75 | -60 |
| 150 - 250 | 12 | 200 | 0 | 0 | 0 |
| 250 - 350 | 2 | 300 | 100 | 5 | 10 |
| 350 - 450 | 3 | 400 | 200 | 10 | 30 |
| Total | 45 | -106 |
So , and
On average, each of these 45 bowlers took about 153 wickets in one-day cricket.
Activity 2: your class in numbers
Split the class into three groups, one task each:
- Collect everyone's marks in the latest school mathematics exam and form a grouped frequency distribution.
- Record your city's daily maximum temperature for 30 days and group the data.
- Measure the height of every student in the class (in cm) and group the data.
Each group then finds the mean of its data by whichever method suits its numbers best.
Speed Round: Class Marks and Deviations
Every mean calculation leans on two quick skills: finding a class mark, and turning into . Do them in your head.
Get five right to move on.