In mathematics, the harmonic mean (formerly sometimes called the subcontrary mean) is one of several kinds of average. Typically, it is appropriate for situations when the average of rates is desired. The harmonic mean is the number of variables divided by the sum of the reciprocals of the variables.
The harmonic mean H of the positive real numbers a1, a2, ..., an is defined to be
That is, the harmonic mean of a group of terms is the reciprocal of the arithmetic mean of the reciprocals.
Examples
In certain situations, especially many situations involving rates and ratios, the harmonic mean provides the truest average. For instance, if a vehicle travels a certain distance at a speed x (e.g. 60 kilometres per hour) and then the same distance again at a speed y (e.g. 40 kilometres per hour), then its average speed is the harmonic mean of x and y (48 kilometres per hour), and its total travel time is the same as if it had traveled the whole distance at that average speed. However, if the vehicle travels for a certain amount of time at a speed x and then the same amount of time at a speed y, then its average speed is the arithmetic mean of x and y, which in the above example is 50 kilometres per hour. The same principle applies to more than two segments: given a series of sub-trips at different speeds, if each sub-trip covers the same distance, then the average speed is the harmonic mean of all the sub-trip speeds, and if each sub-trip takes the same amount of time, then the average speed is the arithmetic mean of all the sub-trip speeds. (If neither is the case, then a weighted harmonic mean or weighted arithmetic mean is needed.)
Similarly, if one connects two electrical resistors in parallel, one having resistance x (e.g. 60Ω) and one having resistance y (e.g. 40Ω), then the effect is the same as if one had used two resistors with the same resistance, both equal to the harmonic mean of x and y (48Ω): the equivalent resistance in either case is 24Ω (one-half of the harmonic mean). However, if one connects the resistors in series, then the average resistance is the arithmetic mean of x and y (with total resistance equal to the sum of x and y). And, as with previous example, the same principle applies when more than two resistors are connected, provided that all are in parallel or all are in series.
In finance, the harmonic mean is used to calculate the average cost of shares purchased over a period of time. For example, an investor purchases $1000 worth of stock every month for three months and the prices paid per share each month were $8, $9, and $10, then the average price the investor paid is $8.926 per share. However, if the investor purchased 1000 shares per month, the arithmetic mean (which turns out to be $9.00) would be used. Note that in this example, the investor buying $1000 worth of the stock each month means buying 125 shares at $8 the first month, 111.11 shares at $9 the second month, and 100 shares at $10 in the third month. Fewer shares are purchased at higher prices while more shares are purchased at lower prices. Thus more weight is given to the lower prices than the higher prices in the calculation of the average cost per share ($8.926). If the investor had instead purchased 1000 shares each month then equal weight would be given to high and low purchase prices, leading to an average cost per share of $9.00. This explains why the harmonic mean is less than the arithmetic mean.
An interesting consequence arises from basic algebra in problems of working together. As an example, if a gas-powered pump can drain a pool in 4 hours and a battery-powered pump can drain the same pool in 6 hours, then it will take both pumps \frac , which is equal to 2.4 hours, to drain the pool together. Interestingly, this is one-half of the harmonic mean of 6 and 4.
This consequence arises in any work problem of n people. Shown here in simplified form,
Harmonic mean of two numbers
For just two numbers, the harmonic mean can be written as:
In this case, their harmonic mean is related to their arithmetic mean,
and their geometric mean,
by
so
, i. e. the geometric mean is the geometric mean of the arithmetic mean and the harmonic mean.
Note that this result holds only in the case of just two numbers.
Relationship with other means
The harmonic mean is one of the 3 Pythagorean means. For a given data set, the harmonic mean is always the least of the three, while the arithmetic mean is always the greatest of the three and the geometric mean is always in between (as the geometric mean is actually the geometric mean applied to the other two means as shown above).
It is the special case M − 1 of the power mean.
It is equivalent to a weighted arithmetic mean with each value's weight being the reciprocal of the value.
Since the harmonic mean of a list of numbers tends strongly toward the least elements of the list, it tends (compared to the arithmetic mean) to mitigate the impact of large outliers and aggravate the impact of small ones.
The arithmetic mean is often incorrectly used in places calling for the harmonic mean.[1] In the speed example above for instance the arithmetic mean 50 is incorrect, and too big. Such an error was apparently made in a calculation of transport capacity of American ships during World War I. The arithmetic mean of the various ships' speed was used, resulting in a total capacity estimate which proved unattainable.[citation needed]
See also
* Rate
* Generalized mean
* Diatessaron (harmony)
* Tertius minor
References
1. ^ *Statistical Analysis, Ya-lun Chou, Holt International, 1969, ISBN 0030730953
Retrieved from "http://en.wikipedia.org/"
All text is available under the terms of the GNU Free Documentation License