A harmonic mean is one of several mean functions, and comes into play when averaging over the numerator of a ratio. For example, consider speed (distance per time). When we are calculating a mean over time (i.e., over the denominator), we use the arithmetic mean. However, when we are averaging over distance, we use the harmonic mean.
The harmonic mean
where