✖

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

120 km/h+40 km/h2=80 km/h

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

240 km4 h=60 km/h

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:

2?

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 1120. We get the fraction

21120+140

We rewrite the fractions in the denominator over a common denominator:

21120+3120

Now we can add the fractions easily:

24120

This fraction looks odd, but don't worry, it works out well. We rewrite the fraction as a product like this:

24120=2⋅1204

If this step confused you, remember that dividing by one half is the same as multiplying by two. So dividing 2 by the fraction 4120 is the same as multiplying 2 by the reciprocal fraction 1204. Now we just simplify the fraction a little and we get our result:

2⋅1204=2404=60

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

H=n1x1+1x2+…+1xn

If you like sigma notation, we can also write the harmonic mean like this:

H=n∑i=1n1xi

For example, the harmonic mean of the four values 1, 2, 3, 4 is

H=411+12+13+14=41212+612+412+312=42512=4⋅1225=4825=1.92

Chapters: Mean (average), Median, Mode, How to work out an average grade, Geometric mean, Harmonic mean