- Foundation
- About 16 min
- 5 practice questions
Grouped data and the mean by the direct method
Read a grouped frequency table, find class marks, and calculate the mean of grouped data by the direct method.
If something looks wrong, please tell us.
By the end of this lesson you can
- Find the class mark and class size of a class interval.
- Calculate the mean of data given with frequencies, using x̄ = Σfᵢxᵢ ÷ Σfᵢ.
- Calculate the mean of grouped data by the direct method and explain why it is an estimate.
A school wants to know how long its students spend on homework, a shopkeeper wants the typical daily sale, and a doctor looks at the usual weight of newborn babies. When there are many observations, they are grouped into classes to make a table manageable. In Class 9 you found the mean, median and mode of ungrouped data. In this chapter you will find all three for grouped data. We start with the mean.
Mean of data with frequencies
If the values x₁, x₂, ..., xₙ occur f₁, f₂, ..., fₙ times, the sum of all observations is f₁x₁ + f₂x₂ + ... + fₙxₙ and the number of observations is f₁ + f₂ + ... + fₙ. The Greek letter Σ (sigma) means 'add up all of these'.
Mean x̄ = Σfᵢxᵢ ÷ Σfᵢ. For grouped data, xᵢ is the class mark: class mark = (lower limit + upper limit) ÷ 2.
Worked example 1: a quiz scored out of 10
| Score (x) | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|
| Students (f) | 2 | 3 | 5 | 4 | 4 | 2 |
- Σf = 2 + 3 + 5 + 4 + 4 + 2 = 20.
- Products fx: 8, 15, 30, 28, 32, 18. Σfx = 8 + 15 + 30 + 28 + 32 + 18 = 131.
- Mean = 131 ÷ 20 = 6.55.
Grouped data: a few words
- Class interval: a range such as 20-40. Its lower limit is 20 and upper limit is 40.
- Class size (width): upper limit − lower limit = 20.
- Class mark: the midpoint, (20 + 40) ÷ 2 = 30. It stands for every value in the class.
- Convention: in classes like 20-40 and 40-60, a value of exactly 40 is counted in 40-60, the class where it is the lower limit, so no value is counted twice.
Once data is grouped, we no longer know the exact values. So we assume the frequency of each class is centred at its class mark. That is why the mean of grouped data is a good estimate rather than the exact mean of the original values.
Direct method for the mean of grouped data
- Find class marks xᵢ = (lower + upper) ÷ 2 for each class
- Multiply fᵢ × xᵢ for each class
- Add the columns Find Σfᵢ and Σfᵢxᵢ
- Divide x̄ = Σfᵢxᵢ ÷ Σfᵢ
Worked example 2: time spent on homework
| Time (minutes) | 0-20 | 20-40 | 40-60 | 60-80 | 80-100 |
|---|---|---|---|---|---|
| Number of students | 4 | 10 | 14 | 8 | 4 |
| Class | f | Class mark x | fx |
|---|---|---|---|
| 0-20 | 4 | 10 | 40 |
| 20-40 | 10 | 30 | 300 |
| 40-60 | 14 | 50 | 700 |
| 60-80 | 8 | 70 | 560 |
| 80-100 | 4 | 90 | 360 |
| Total | 40 | 1960 |
Mean = Σfx ÷ Σf = 1960 ÷ 40 = 49 minutes. So a typical student spends about 49 minutes on homework. Check the size of the answer: it lies inside the range 0-100 and close to the busiest class 40-60, which makes sense.
Key takeaways
Key takeaways: the class mark represents a whole class; the direct method is Σfx ÷ Σf; a value equal to a shared limit goes into the class that starts with it; always add a total row and check that your mean lies within the classes.
Check your understanding
-
1. What is the class mark of the class 25-35?
- 10
- 35
- 30
- 25
Show answer
Answer: C. Class mark = (25 + 35) ÷ 2 = 60 ÷ 2 = 30. The class size, 10, is a different quantity.
-
2. The values 2, 4 and 6 occur 3, 5 and 2 times respectively. What is their mean?
- 4
- 3.8
- 3.6
- 12.67
Show answer
Answer: B. Σf = 3 + 5 + 2 = 10. Σfx = 6 + 20 + 12 = 38. Mean = 38 ÷ 10 = 3.8.
-
3. Classes 0-10, 10-20 and 20-30 have frequencies 5, 8 and 7. Find the mean by the direct method.
- 16
- 15
- 17.5
- 20
Show answer
Answer: A. Class marks are 5, 15 and 25. Σfx = 25 + 120 + 175 = 320 and Σf = 20. Mean = 320 ÷ 20 = 16.
-
4. A table has classes 40-50 and 50-60. In which class is an observation of exactly 50 counted?
- 40-50
- Both classes
- Neither class
- 50-60
Show answer
Answer: D. By convention a value equal to the shared limit is counted in the class where it is the lower limit, so 50 goes into 50-60. This way no observation is counted twice.
-
5. Assertion (A): The mean calculated from a grouped frequency table is usually an estimate of the mean of the original data. Reason (R): We assume every observation in a class is at its class mark.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true but R is false
- A is false but R is true
Show answer
Answer: A. Both are true. Because we replace each real value by the class mark (R), the result is close to, but not always exactly, the true mean (A). So R explains A.
Sign in to keep track of the lessons you finish.