Can someone explain why taking an average of an average usually results in a wrong answer? Is there ever a case where the average of the average can be used correctly?

As an example, let's say that an assessment is given to three schools and I want to find out the average score for all three schools combined and the average score per school. When I attempt to add the three individual scores and divide by three I get a number that is very close (+/- 1 percent) to the actual overall average.

  • 10
    It's not wrong, it needs interpretation. If school A has 10000 students, with average marks in chemistry, say 2.56, and school B has one pupil (ok, bit extreme, but why not), with average mark in chemistry 1, then you may either want to know the average marks w.r.t. the number of schools (2.56 + 1)/2 or w.r.t to pupils (10000*2.56 +1)/10001. Both number make sense but have, of course, completely different implications and interpretations. – user20266 Jan 2 '12 at 21:20
  • 19
    Say two of the schools are small and very good, and the third school is huge, and pretty bad. If you average over students, the good results from the small schools hardly make a dent. If you first find the average per school, and average the averages, this will tend to hide the poor results from the huge school. In the real world, disparities of size or performance are often not very dramatic, so the two procedures can end up giving fairly similar numbers. One thing we can be sure of: whoever is trying to make a point will choose the procedure that supports his/her point. – André Nicolas Jan 2 '12 at 21:22
  • @AndréNicolas - You may want to post that as your answer. I feel as though you are implying that neither approach is wrong, is this true? – O.O Jan 2 '12 at 21:32
  • 8
    An interesting real-world case. When a university reports the "average class size", the result is quite different if they report the class size for the average student, or the class size for the average instructor. – GEdgar Jan 2 '12 at 21:38
  • @subt13: In case I do not get around to posting, either approach may be useful. Doing a school by school analysis, but using more than simple averages, and including variance, can help to highlight regional disparities, and may motivate remedial action. Averaging over students produces information of a different kind. – André Nicolas Jan 2 '12 at 21:45
up vote 66 down vote accepted

If there are $n_1$, $n_2$, and $n_3$ students in the three schools, and the average test score for each school is $a_1$,$a_2$,$a_3$, respectively, the correct average is a "weighted average:"

$$\frac{n_1}{n_1+n_2+n_3}a_1+\frac{n_2}{n_1+n_2+n_3}a_2+\frac{n_3}{n_1+n_2+n_3}a_3$$

The average of the averages is:

$$\frac{1}{3}a_1 + \frac{1}{3}a_2 + \frac{1}{3}a_3$$

These two values will be exactly the same if each school has exactly the same number of students, and will tend to be "close" if the schools are relatively close in size and/or the scores for the three schools are close.

If a school system put all the smart students at a single school, they could bump up the second value - the "average of averages" - but they couldn't do that if they take the correct weighted average.

  • I changed some $n_1$'s to $n_2$ and $n_3$... – David Mitra Jan 3 '12 at 0:52
  • I don't know if i have to open new question. How would you weight average potions of impresions & clicks keywords? – jrosell Mar 4 '16 at 7:03
  • If s1 is number of students in school 1 and n1 is the score of school 1, then a1 is average for school 1, which is a1 = (n1)/(s1). Similarly, a2= (n2)/(s2) and a3 = (n3)/(s3). I would like to know what does this value represent (n1 + n2 + n3) / (s1 + s2 + s3) Does this value represents the average of all the schools as we are dividing the total score of all schools and dividing it by total number of students? How this is different with the given "weighted average" value? – Bharat Kul Ratan Jul 26 '17 at 7:36
  • $n_1$ is not the score for the school, it is the sum of the scores of the students in the school. That is not a "score for the school" in any useful meaning. And it is the weighted average. – Thomas Andrews Jul 26 '17 at 15:49
  • @ThomasAndrews: Thanks for pointing out. I meant the same. n1 is the sum of scores for all the students in the school 1. Similarly the case for n2 and n3. If wa = (n1 + n2 + n3)/(s1 + s2 + s3) , does wa represent the weighted average. But substituting the values for a1, a2, and a3 in the formula given in answer we get different value than wa. – Bharat Kul Ratan Jul 27 '17 at 5:47

For example: the average of $ \{ 2,2,2,2,2,2,2,2,2,2,2,2,2\} $ is $2$, ($N=13$) and the average of $\{4\}$ is $4$, ($N=1$). The average of the averages is $3$. But the average of all numbers is $30/14$ ≃ $2.14$.

I hope this is enough to explain what goes wrong (you're giving equal weights to the "first averages" when you take their average, which isn't the correct thing to do if you want the average of all the numbers).

Thomas Andrews already answered the question, but I'd like to present a more analytical solution to the problem.

The average of averages is only equal to the average of all values in two cases:

  1. if the number of elements of all groups is the same; or
  2. the trivial case when all the group averages are zero

Here's why this is so.

Consider two sets $X = \{x_1, x_2, ..., x_n\}$ and $Y = \{y_1, y_2, ..., y_m\}$ and their averages:

$$ \bar{x} = \frac{\sum_{i=1}^{n}{x_i}}{n} \,,\, \bar{y} = \frac{\sum_{i=1}^{m}{y_i}}{m} $$

The average of the averages is:

$$ average(\bar{x}, \bar{y}) = \frac{\frac{\sum_{i=1}^{n}{x_i}}{n} + \frac{\sum_{i=1}^{m}{y_i}}{m}}{2} = \frac{\sum_{i=1}^{n}{x_i}}{2n} + \frac{\sum_{i=1}^{m}{y_i}}{2m} $$

Now consider the whole group $Z = \{x_1, x_2, ..., x_n, y_1, y_2, ..., y_m\}$ and its average:

$$ \bar{z} = \frac{\sum_{i=1}^{n}{x_i} + \sum_{i=1}^{m}{y_i}}{n + m}$$

For the general case, we can see that these averages are different:

$$ \frac{\sum_{i=1}^{n}{x_i}}{2n} + \frac{\sum_{i=1}^{m}{y_i}}{2m} \ne \frac{\sum_{i=1}^{n}{x_i} + \sum_{i=1}^{m}{y_i}}{n + m} $$

This answers the first OP question, as to why the average of averages usually gives the wrong answer.

However, if we make $n = m$, we have:

$$ \frac{\sum_{i=1}^{n}{x_i}}{2n} + \frac{\sum_{i=1}^{m}{y_i}}{2n} = \frac{\sum_{i=1}^{n}{x_i} + \sum_{i=1}^{n}{y_i}}{2n} $$

This is why the average of averages is equal to the average of the whole group when the groups have the same size.

The second case is trivial: $\bar{x} = \bar{y} = average(\bar{x}, \bar{y}) = 0$.

Note that the above reasoning can be extended for any number of groups.

  • 2
    The simplicity of the two rules make this the most useful answer for me. – Rob Apr 14 '17 at 18:57
  • 1
    This is a great answer and both the summary of the two cases and the proof are elegant. I am not sure that it answers why the average of averages usually gives the wrong answer, it only shows how the two calculations are different. The application and reasoning is more interesting. What is it exactly that the calculation is measuring, how will it influence behaviour? If it is the average of all students, then why is that the choice? Is it to compare all students with each other, and is that fair? If it is the average between schools then why? What are the dangers of misinterpretation? – Davos Sep 21 at 12:30

protected by Community Apr 22 '16 at 1:48

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.