• 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

Scores of 20 students
Score (x)456789
Students (f)235442
  1. Σf = 2 + 3 + 5 + 4 + 4 + 2 = 20.
  2. Products fx: 8, 15, 30, 28, 32, 18. Σfx = 8 + 15 + 30 + 28 + 32 + 18 = 131.
  3. 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

  1. Find class marks xᵢ = (lower + upper) ÷ 2 for each class
  2. Multiply fᵢ × xᵢ for each class
  3. Add the columns Find Σfᵢ and Σfᵢxᵢ
  4. Divide x̄ = Σfᵢxᵢ ÷ Σfᵢ

Worked example 2: time spent on homework

Time spent on homework by 40 students
Time (minutes)0-2020-4040-6060-8080-100
Number of students4101484
Working table
ClassfClass mark xfx
0-2041040
20-401030300
40-601450700
60-80870560
80-100490360
Total401960

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. 1. What is the class mark of the class 25-35?

    1. 10
    2. 35
    3. 30
    4. 25
    Show answer

    Answer: C. Class mark = (25 + 35) ÷ 2 = 60 ÷ 2 = 30. The class size, 10, is a different quantity.

  2. 2. The values 2, 4 and 6 occur 3, 5 and 2 times respectively. What is their mean?

    1. 4
    2. 3.8
    3. 3.6
    4. 12.67
    Show answer

    Answer: B. Σf = 3 + 5 + 2 = 10. Σfx = 6 + 20 + 12 = 38. Mean = 38 ÷ 10 = 3.8.

  3. 3. Classes 0-10, 10-20 and 20-30 have frequencies 5, 8 and 7. Find the mean by the direct method.

    1. 16
    2. 15
    3. 17.5
    4. 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. 4. A table has classes 40-50 and 50-60. In which class is an observation of exactly 50 counted?

    1. 40-50
    2. Both classes
    3. Neither class
    4. 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. 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.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true but R is false
    4. 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.

Privacy · Terms · Refunds · Delivery