Statistics
Logarithm form
Averaging logarithms avoids overflow when the product is very large.
Last updated
The Formula
GM = exp( (ln x1 + ln x2 + ... + ln xn) / n )
Averaging logarithms avoids overflow when the product is very large.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| GM | Geometric mean | same as input | The multiplicative average. |
| ln | Natural logarithm | unitless | The log base e of each value. |
| exp | Exponential | unitless | Raises e to the averaged logarithm. |
What Each Symbol Means
GMsame as input
Geometric mean
The multiplicative average.
lnunitless
Natural logarithm
The log base e of each value.
expunitless
Exponential
Raises e to the averaged logarithm.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate a geometric mean page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate A Geometric Mean, filed under Math. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Logarithm form?
The formula for Logarithm form is GM = exp( (ln x1 + ln x2 + ... + ln xn) / n ). Averaging logarithms avoids overflow when the product is very large.
What does each symbol in Logarithm form stand for?
GM is geometric mean; ln is natural logarithm; exp is exponential.
What units should I use with Logarithm form?
Substitute GM in same as input, ln in unitless, exp in unitless. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Logarithm form?
Taking the wrong root. Three values need a cube root, four need a fourth root. Using a square root for three values gives a value that is too large by the remaining root.