Geometric Mean
calculator.
The geometric mean is the right average for returns, growth rates and skewed data.
| # | Value |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 |
- Arithmetic mean
- 6
- Harmonic mean
- 5.028376
- Geometric SD
- 1.580797
The arithmetic mean is 6, which is higher because large values pull it up. A spread factor of 1.58 puts about two thirds of log-normal data between 3.46 and 8.66.
Where the means sit
Dots are your values. G is the geometric mean, A the arithmetic and H the harmonic. Equal ratios sit equally far apart.
Against the other means
For positive numbers, the arithmetic mean is the highest of the three and the harmonic the lowest. The three agree only when every value matches.
Set a target
- The last value would need to be
- 5.680519
The mean with one value left out
| Leave out | Mean without it | Change |
|---|---|---|
| 4 | 5.771499 | +0.294513 |
| 5 | 5.560796 | +0.083809 |
| 8 | 5.141821 | −0.335165 |
| 7 | 5.257537 | −0.21945 |
| 11 | 4.876032 | −0.600955 |
| 4 | 5.771499 | +0.294513 |
| 3 | 6.054967 | +0.57798 |
The row with the largest change is the one to check first.
Working
- 1Take the natural log of each value1.386294, 1.609438, 2.079442, 1.94591, 2.397895, 1.386294, 1.098612
- 2Add them and divide by the count11.9038867= 1.700555
- 3Raise e to that powere1.700555 = 5.476987
- 4This is the same as the root of the productThe 7th root of 147,840
- 5Check: multiply the answer by itself, once per value5.4769877 = 147,840, and the product is 147,840
How it's worked out
It answers one question: what single factor, applied every time, gives the same result as the real factors? NIST defines it as the nth root of the product of n values.
Multiplying a long list can overflow a computer’s number range, so the tool takes the same route through natural logs. It averages the log of each value, then raises e to that power.
For growth, each percent change r becomes a factor of 1 plus r over 100. A rise of 12% is 1.12 and a fall of 8% is 0.92. Take the geometric mean of the factors, then subtract 1 for the rate per period.
With weights, the logs are averaged with those weights, so a value with a weight of 3 counts as three copies of that value.
The geometric standard deviation is e raised to the standard deviation of the logs. It works as a factor and not an amount: you divide and multiply by it. Limpert and Stahel show that the range from the mean divided by that factor to the mean times it holds about two thirds of log-normal data.
Worked examples
Five years of fund returns
A fund returns 12%, −8%, 15%, 4% and 9%. The plain average is 6.4% a year, but $100 only grows to $134.33, a total change of 34.33%.
The geometric rate is 6.08% a year, and five years at that steady rate reach the same $134.33. The plain average would have promised $136.37, which never existed.
To bring the average up to 8% a year over six years, year six would have to return 18.14%.
Testing a beach for E. coli
Bacteria counts run from low to very high, and EPA’s 2012 recreational water criteria use geometric means for that reason. One recommended limit for fresh water is 126 cfu per 100 mL of E. coli, as a geometric mean over any 30 days. A cfu is a colony forming unit, a count of live bacteria.
Five samples read 40, 120, 300, 90 and 150. The geometric mean is 114.2, under 126. The plain average is 140, over it, because the single 300 pulls it up.
The spread factor here is 2.09, so the typical range is about 55 to 238. EPA also sets a second limit of 410 for the same 30 days, which no more than 10% of samples should pass. These numbers are guidance for states, and your state’s standard may differ.
A fund that grew at two different rates
A fund grew 5% a year for 3 years, then 12% a year for 2. Enter the factors 1.05 and 1.12, with the years as weights. The weighted mean factor is 1.0775, or 7.75% a year.
A weighted plain average of the factors gives 1.078, a little higher. Over only two rates the gap is small, because 1.05 and 1.12 sit close together.
Reading your result
The gap is the point. A gain of 100% and a loss of 50% have a plain average of 25%, and a geometric rate of 0%, because you end where you started. An article on the CFA Institute’s site makes the same point about real fund returns: the geometric mean is the one to use on a product.
Expect it below the plain average. For positive numbers the arithmetic mean is at least the geometric mean, which is at least the harmonic mean. All three agree only if every value is equal, and they drift apart as the spread widens.
| Values | A | G | H |
|---|---|---|---|
| 10, 10, 10, 10 | 10 | 10 | 10 |
| 5, 10, 15, 20 | 12.5 | 11.07 | 9.6 |
| 1, 10, 100, 1000 | 277.75 | 31.62 | 3.6 |
| 1, 1, 1, 100 | 25.75 | 3.16 | 1.33 |
Read the spread as a factor. Limpert and Stahel give an insulin example with a geometric mean of 256 and a factor of 1.71, for a range of about 150 to 438. Unlike a plain mean with a plus or minus, that range can never drop below 0.
It shows up in real scores. The Human Development Index is the geometric mean of three normalized indices. For a start and end value with no steps between, use the CAGR calculator. It gives the same rate as this tool does for the changes between them.
Common mistakes
- Averaging returns with a plain average. Returns of +50% and −50% average 0%, but $100 ends at $75.
- Typing percent changes into Numbers mode. A −8 has no real log, so that mode refuses it. Percent changes mode turns −8 into a factor of 0.92, and the mean then works.
- Quietly dropping a zero. If a list has a 0, the mean is 0, and the tool says so. Throwing out the zero, or adding a small constant, changes the question. If you do either, report it.
- Reading it as a forecast. The rate says what happened. It says nothing about next year, or about the swings along the way.
- Using it on rates over a set distance. Average speed over equal distances calls for the harmonic mean.
Questions people ask
Sources
- NIST Dataplot reference manual, Geometric Mean
- Microsoft Support, GEOMEAN function
- EPA, 2012 Recreational Water Quality Criteria fact sheet (EPA-820-F-12-061)
- Limpert and Stahel (2011), Problems with using the normal distribution, PLoS ONE
- CFA Institute, Enterprising Investor: The myth of volatility drag, part 1
- UNDP, Human Development Index
- Microsoft Tech Community, GEOMEAN producing unexplained #NUM