Harmonic mean
The harmonic mean is one of the types of mean we typically use when we are working with rates.
Average speed
For example, imagine we took a train on a day trip, and the average speed of the train was 120 km/h. On the way back we went by train again, along the same route, but this time the train crawled along at just 40 km/h. What was the average speed of the train for the whole journey there and back? It is rather tempting to work out the average speed using the arithmetic mean, like this
and to say that the average speed was 80 km/h. But that is not true. We can easily show this: suppose the train travelled for one hour on the way there. Since its average speed was 120 km/h, it covered exactly 120 km in that hour. If it travelled at an average speed of 40 km/h on the way back, it needed 3 hours to cover 120 km. So altogether the train covered 240 km in 4 hours. From this we can work out the average speed
So the arithmetic mean let us down. How would we have to work out the mean of the two speeds, 120 and 40, to get the correct result?
The harmonic mean
Instead of the arithmetic mean we can use the harmonic mean. We work it out by building a fraction whose numerator is the number of values we are averaging – in our case 2, because we have two speeds:
In the denominator we put the sum of the reciprocals of both speeds. If the speed is 120, its reciprocal is 120−1, which is
We rewrite the fractions in the denominator over a common denominator:
Now we can add the fractions easily:
This fraction looks odd, but don't worry, it works out well. We rewrite the fraction as a product like this:
If this step confused you, remember that dividing by one half is the same as multiplying by two. So dividing 2 by the fraction
The harmonic mean came out as 60, which is the correct result.
General formula for the harmonic mean
Take n numbers x1, x2, …, xn. Their harmonic mean H is then
If you like sigma notation, we can also write the harmonic mean like this:
For example, the harmonic mean of the four values 1, 2, 3, 4 is
Chapters: Mean (average), Median, Mode, How to work out an average grade, Geometric mean, Harmonic mean