Asked how a class performed in a test, most people reply with the average mark. The average stands in for the whole set of marks, and the commonest average is the arithmetic mean.

Arithmetic Mean of Ungrouped Data

The arithmetic mean of n values is their sum divided by n. If the values are x1, x2, up to xn, the mean is the sum of x divided by n. For the 20 marks of the previous topic, the sum is 565, so the mean is 565 / 20 = 28.25.

Definition: Arithmetic mean. The sum of all the observations divided by the number of observations; it is the value that would be obtained if the total were shared equally among all the observations.

Arithmetic Mean of Grouped Data

For a frequency distribution with class marks x and frequencies f, the mean is the sum of f·x divided by the sum of f. For large values, the assumed mean method simplifies the work. An assumed mean A is chosen, the deviation d = x - A is found for each class, and the mean is A + (sum of f·d) / (sum of f). Table 1.4 shows the calculation for the marks.

Table 1.4: Mean of grouped data by the assumed mean method (A = 25)

Class mark x Frequency f d = x - 25 f x d f x x
15 3 -10 -30 45
25 8 0 0 200
35 6 10 60 210
45 3 20 60 135
Total 20 90 590

Properties of the Arithmetic Mean

The sum of the deviations of the observations from their mean is always zero. If a constant is added to every observation, the mean increases by that constant, and if every observation is multiplied by a constant, the mean is multiplied by it. The mean of several groups is found by the weighted formula, the sum of n times mean divided by the sum of n. The mean uses every value and is simple to calculate, but one extreme value can pull it far away from the typical value.

Example 1.4: Mean of grouped data

Problem: Find the mean of the grouped marks distribution by the direct method and by the assumed mean method.

Solution:

  1. Direct method: the sum of f x x is 45 + 200 + 210 + 135 = 590 and the sum of f is 20, so the mean is 590 / 20 = 29.5.
  2. Assumed mean method with A = 25: the sum of f x d is -30 + 0 + 60 + 60 = 90.
  3. Mean = 25 + 90 / 20 = 25 + 4.5 = 29.5.

Result: Both methods give a mean of 29.5 marks.

x, f = [15, 25, 35, 45], [3, 8, 6, 3]
print(sum(a * b for a, b in zip(x, f)) / sum(f))
print(25 + sum(b * (a - 25) for a, b in zip(x, f)) / sum(f))

Output

29.5
29.5

Common mistakes

  • Taking the mean of the class limits instead of the class marks for grouped data.
  • Dividing the sum of f x x by the number of classes instead of by the sum of the frequencies.
  • Using the mean for data with extreme values without checking their effect.

Key takeaways

  • Mean = sum of observations / number of observations.
  • For grouped data the mean is sum of f x x / sum of f.
  • The sum of deviations from the mean is zero.
  • The mean is affected by extreme values.

Practice questions

  1. Find the mean of 4, 8, 6, 5 and 2.
  2. What is the sum of deviations of the observations from their mean?
  3. What is the weakness of the arithmetic mean?

Answers to the practice questions

  1. (4 + 8 + 6 + 5 + 2) / 5 = 25 / 5 = 5.
  2. Zero.
  3. It is affected by extreme values.

Sources

  • Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit I