TL;DR
The geometric mean of positive numbers is the th root of their product. It answers the question "what single number, used in place of each value, gives the same total product?" It is the right average for quantities that multiply, such as yearly growth factors, ratios and speedups, where the ordinary arithmetic mean gives misleading answers.
Where you'll see it: in the average yearly return of an investment that rose and fell, in summary scores for benchmark suites that compare the speed of computer systems, and in the centre of skewed data whose logarithms are roughly symmetric (log-normal data).
Intuition
A question about products
Suppose an investment gains 100 percent one year and then loses 50 percent the next. Its value over those two years is multiplied by , so it ends where it started. The arithmetic average of the two changes is percent a year, which would say the investment grew. It did not.
The problem is that the changes multiply, but the arithmetic mean adds. We want a single yearly factor such that . That factor is , and it is the geometric mean of the two factors. In general, if a list of positive numbers multiplies to a total, the geometric mean is the number that, multiplied by itself times, gives the same total.
Why the arithmetic mean is the wrong tool
An arithmetic mean answers "what number, added times, gives the same sum?" That is the right question for quantities that add: total distance, total cost, total votes. For quantities that multiply, the arithmetic mean overstates the typical value, because a large value pulls it up more than a small value pulls it down. The geometric mean is always at most the arithmetic mean, and the two are equal only when every number is the same.
A picture helps. Draw a rectangle with sides and . Its area is . A square with the same area has side , the geometric mean of and . The arithmetic mean is the side of a square with the same perimeter. Area is the quantity that multiplies, so is the one that matches it.
flowchart LR A[List of positive numbers] --> P[Multiply them together] P --> R[Take the nth root] R --> G[Geometric mean]
The math
Let be positive real numbers. Their geometric mean is
Here is the product symbol, the multiplicative version of , and means the th root of . Positivity is needed so that the root is defined and so that taking logarithms is allowed.
The logarithm form
Taking logarithms turns the product into a sum, which is how the geometric mean is usually computed in practice:
So the geometric mean is the exponential of the arithmetic mean of the logarithms: . This is why the geometric mean behaves well with growth and ratios. Their logarithms add, and an arithmetic average of the logarithms is meaningful.
Relation to the arithmetic mean
For positive numbers the geometric mean never exceeds the arithmetic mean :
with equality only when all the are equal. This is the AM-GM inequality. The gap between the two grows with the spread of the numbers. For data with the same arithmetic mean, a wider spread means a smaller geometric mean.
Growth factors
If a quantity changes by factors over periods, its final value is . The constant per-period factor that gives the same final value is the geometric mean of the , so
The average per-period growth rate is then . A factor of 1.10 means 10 percent growth, and a factor of 0.80 means a 20 percent fall.
Worked examples
Take and .
- The product is .
- The geometric mean is the square root of the product: .
- The arithmetic mean is .
- Check the inequality: .
Interpretation: 4 is the common factor that, applied twice, gives the same product as 2 and 8. The arithmetic mean 5 is larger because the 8 pulls it up more than the 2 pulls it down.
An investment changes by percent, percent and percent in three successive years. The growth factors are , and .
- The product of the factors is . So invested at the start is worth at the end.
- The geometric mean is the cube root: .
- Using logarithms: , and dividing by 3 gives .
- Exponentiate: .
- Check: , the product from step 1.
- The average yearly growth rate is about 4.6 percent.
The arithmetic average of the three changes is percent, which overstates the growth. Compounding the 6.7 percent over three years would give , not the actual . The geometric mean is the rate that reproduces the real outcome.
A new compiler is measured on four programs. Its speedups over the old compiler are , , and , where a value above 1 means faster and a value below 1 means slower.
- The arithmetic mean is .
- The product of the speedups is .
- The geometric mean is the fourth root: . Since and , we get .
- Check the inequality: .
Interpretation: the arithmetic mean says the typical program got twice as fast, which overstates the gain. The geometric mean says the typical program got about 57 percent faster. The geometric mean also has a property the arithmetic mean lacks. If the old and new compilers were swapped, every speedup would invert to its reciprocal, and the geometric mean would invert to its reciprocal as well. The summary would then report a consistent result in both directions, which is why benchmark summaries use geometric means of ratios.
Tradeoffs and failure modes
The geometric mean is the right summary only under particular conditions. Use it when the quantities multiply and are positive. Avoid it when the numbers add, when they can be zero, or when they have mixed signs.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Values add, such as costs or totals | The geometric mean understates the total per unit | Use the arithmetic mean |
| A value is zero | The product is zero, so the geometric mean is zero whatever the other values | Remove the zero, or use an arithmetic mean on a different scale |
| Negative values appear in the data | The root of a negative product may not exist | Convert to positive ratios, such as growth factors , before averaging |
| Ratios of very different magnitudes | Both means are sensitive to outliers, but in different ways | Report the spread alongside the summary |
| Averaging rates over time with unequal periods | The simple geometric mean ignores period length | Weight by time, or compute the compound annual rate directly |
History
The ancient Greeks, Pythagoreans among them, studied three means, the arithmetic, the geometric and the harmonic (the reciprocal of the average of reciprocals), and the relationships among them. The geometric mean long belonged to geometry and the theory of musical ratios, and the arithmetic mean was far more common in data work. It came into statistics as a summary of quantities that multiply, such as growth factors and population ratios. In the 1980s it became standard in computer performance measurement, where summaries of speedups across benchmark suites were shown to be more consistent when computed as geometric means of ratios. The idea is now routine in finance, in economics and in data analysis of skewed, log-normally distributed quantities.
Recap
The geometric mean is the th root of a product of positive numbers, and equivalently the exponential of the average logarithm. It is the right average for quantities that multiply, such as growth factors and ratios, and it is never larger than the arithmetic mean. Its failure modes are zeros, negative values and additive quantities. It also matches the centre of data whose logarithms are roughly symmetric, the case where averaging on the log scale is natural.
Check yourself
QuestionRecall: what is the geometric mean of positive numbers, and what is its logarithm form?Show answer
The geometric mean is the th root of their product, . Its logarithm is the arithmetic mean of the logarithms, . Computing the average logarithm and exponentiating is the stable way to calculate it for many numbers.
QuestionComputation: find the geometric mean of 3, 12 and 4.Show answer
The product is . The cube root of 144 is about 5.24, since . Check the inequality: the arithmetic mean is , and .
QuestionWhy: why does an investment with returns of percent and percent in consecutive years end lower than it started, even though the arithmetic average return is zero?Show answer
The changes multiply, not add. The growth factors are and , and their product is , so the investment loses a quarter of its value. The geometric mean is , a yearly loss of about 13.4 percent. The arithmetic average of zero hides this because the arithmetic mean treats the gains and losses as if they were additive, which they are not.
QuestionApplied: a team reports that its build time fell by a factor of 2 on one project and rose by a factor of 2 on another. Which summary should it report, and why?Show answer
The factors are ratios that multiply, so the geometric mean is the right summary. The geometric mean of 2 and 0.5 is , which says the typical build time did not change on average. The arithmetic mean of the two ratios is , which would wrongly suggest a slowdown on average. Reporting the geometric mean together with the individual ratios gives the honest picture.