Harmonic mean
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Data analysis.
In data analysis, the harmonic mean is the average that replaces each observation by its reciprocal, then takes the reciprocal of the arithmetic mean of those reciprocals. Two investments can earn the same income at different rates, and the single rate that matches that income is not the ordinary average of the rates. The same reversal appears when equal sums of money buy goods at different prices: the average price per unit is the average that uses reciprocals. [1]
Harmonic mean
| Fact | Value |
|---|---|
| Topic | Data analysis |
| Listed on | Data analysis |
| Worked example | 1 |
Motivating example
Three investments yield the same income at rates of 5%, 10%, and 15%. The arithmetic mean of the rates is . The rate at which the whole capital would have to be invested to produce the same total income is the harmonic mean,
A buyer who spends the same amount, 200 euros, on coffee at 3, 2, and 1.5 euros per kilogram buys kilograms. The average price per kilogram is total cost divided by total quantity, which is the harmonic mean of the three prices and equals 2, not the arithmetic mean of the prices. [1]
Definition
For positive numbers , the harmonic mean is
For positive numbers the ordering is: the harmonic mean sits between the smallest and the largest observation, and it does not exceed the geometric mean, which does not exceed the arithmetic mean. A zero observation makes a reciprocal undefined, so the harmonic mean is undefined as soon as any observation is zero. [1]
For two positive numbers and ,
The gap between the arithmetic mean and this value is
The numerator is a square and the denominator is positive, so the difference is nonnegative and is zero only when .
Interpretation
The harmonic mean asks how many units a fixed outlay buys, then divides the outlay by that quantity. A low price buys many units, so it pulls the average harder than a high price of the same outlay. A very small observation has a very large reciprocal and can move the result sharply. A very large observation has a small reciprocal and moves it much less. The arithmetic mean is pulled the other way. NIST’s account of location makes the same contrast for tails: extreme values distort the mean, which is why a heavy-tailed sample can have a mean far from the bulk of the data. The harmonic mean is the reciprocal version of that sensitivity. It is largely insensitive to observations that are much larger than the rest, and much more sensitive to observations that are much smaller. [1] [2]
For the six positive numbers 1, 2, 3, 4, 5, and 100 the harmonic mean is about 2.62 and the arithmetic mean is about 19.17. For 1, 6, 6, 6, 6, and 6 the harmonic mean is and the arithmetic mean is . The single small value moves the harmonic mean. The single large value moves the arithmetic mean. [1]
Replacing the harmonic mean by the arithmetic mean answers a different question. In the investment example, 10% is not the rate at which the pooled capital earns the same income as the three separate investments. In the coffee example, the arithmetic mean of the prices is not the price per kilogram of the basket that was actually bought.
Worked example
The interest rates 5, 10, and 15 give
against an arithmetic mean of 10. Person weights 100, 200, and 300 have reciprocals , , and , which sum to . The harmonic mean is
which rounds to 164. [1]
Your turn. One of six positive observations is replaced by zero. What happens to the harmonic mean?
The harmonic mean is undefined, because a reciprocal of zero is not a number.
Connections
The arithmetic mean is the sum divided by the count. The geometric mean is the exponential of the average log, and for positive numbers it lies between the harmonic mean and the arithmetic mean. A median resists large and small outliers by using rank rather than reciprocals. The harmonic mean is the right average when the scientific quantity is a ratio of a fixed total to a sum of reciprocals: investments producing equal income at different rates, or equal expenditure at different prices. It is the wrong average when the scientific quantity is the ordinary total of the observations. [1] [2]
Check yourself
Try these questions before opening an answer.
Three interest rates
Rates of 5%, 10% and 15% produce the same income. What is the harmonic mean, as an exact fraction, and what is the arithmetic mean?
The harmonic mean is 90/11 percent, about 8.182. The arithmetic mean is 10 percent.
Three weights
Person weights are 100, 200 and 300. What is the exact harmonic mean, and what integer does it round to?
The exact value is 1800/11, about 163.636, which rounds to 164.
A zero
One of six positive observations is replaced by zero. What happens to the harmonic mean?
The harmonic mean is undefined, because a reciprocal of zero is not a number.
History
Dodge points the history of the relation among the harmonic, geometric, and arithmetic means to Mitrinović’s account of the inequalities, and the history of the harmonic mean itself back to the geometric mean. The statistical use is narrower than the algebraic identity. The mean is rarely the default summary. It becomes the right summary in the two situations the encyclopedia isolates: equal income from different interest rates, and equal expenditure at different prices per unit. The ordering for positive numbers is the property that keeps it from being interchangeable with the other two. [1]
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h a. (p. 240) b. (p. 240) c. (pp. 239–240) d. (p. 240) e. (p. 240) f. (p. 240) g. (pp. 239–240) h. (pp. 239–240) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
- ^ a b a. (§1.3.5.1, “Cauchy Distribution”) b. (§1.3.5.1) Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). Handbook 151: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.1 Measures of Location. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/eda/section3/eda351.htm
Cite this page
StatWiki (2026). "Harmonic mean." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/harmonic-mean.html
@misc{statwiki_harmonic_mean,
author = {{StatWiki}},
title = {{Harmonic mean}},
year = {2026},
url = {https://www.statwiki.io/articles/harmonic-mean.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}