Geometric mean
This article needs additional citations for verification. (May 2010) (Learn how and when to remove this template message)

In mathematics, the geometric mean is a type of mean or average, which indicates the central tendency or typical value of a set of numbers by using the product of their values (as opposed to the arithmetic mean which uses their sum). The geometric mean is defined as the nth root of the product of n numbers, i.e., for a set of numbers x_{1}, x_{2}, ..., x_{n}, the geometric mean is defined as
For instance, the geometric mean of two numbers, say 2 and 8, is just the square root of their product, that is, . As another example, the geometric mean of the three numbers 4, 1, and 1/32 is the cube root of their product (1/8), which is 1/2, that is, .
A geometric mean is often used when comparing different items—finding a single "figure of merit" for these items—when each item has multiple properties that have different numeric ranges.^{[2]} For example, the geometric mean can give a meaningful "average" to compare two companies which are each rated at 0 to 5 for their environmental sustainability, and are rated at 0 to 100 for their financial viability. If an arithmetic mean were used instead of a geometric mean, the financial viability is given more weight because its numeric range is larger—so a small percentage change in the financial rating (e.g. going from 80 to 90) makes a much larger difference in the arithmetic mean than a large percentage change in environmental sustainability (e.g. going from 2 to 5). The use of a geometric mean "normalizes" the ranges being averaged, so that no range dominates the weighting, and a given percentage change in any of the properties has the same effect on the geometric mean. So, a 20% change in environmental sustainability from 4 to 4.8 has the same effect on the geometric mean as a 20% change in financial viability from 60 to 72.
The geometric mean can be understood in terms of geometry. The geometric mean of two numbers, and , is the length of one side of a square whose area is equal to the area of a rectangle with sides of lengths and . Similarly, the geometric mean of three numbers, , , and , is the length of one edge of a cube whose volume is the same as that of a cuboid with sides whose lengths are equal to the three given numbers.
The geometric mean applies only to numbers of the same sign.^{[3]} It is also often used for a set of numbers whose values are meant to be multiplied together or are exponential in nature, such as data on the growth of the human population or interest rates of a financial investment.
The geometric mean is also one of the three classical Pythagorean means, together with the aforementioned arithmetic mean and the harmonic mean. For all positive data sets containing at least one pair of unequal values, the harmonic mean is always the least of the three means, while the arithmetic mean is always the greatest of the three and the geometric mean is always in between (see Inequality of arithmetic and geometric means.)
Contents
Calculation
The geometric mean of a data set is given by:
The above figure uses capital pi notation to show a series of multiplications. Each side of the equal sign shows that a set of values is multiplied in succession (the number of values is represented by "n") to give a total product of the set, and then the nth root of the total product is taken to give the geometric mean of the original set. For example, in a set of four numbers , the product of is , and the geometric mean is the fourth root of 24, or ≈ 2.213. The exponent on the left side is equivalent to the taking nth root. For example, .
The geometric mean of a data set is less than the data set's arithmetic mean unless all members of the data set are equal, in which case the geometric and arithmetic means are equal. This allows the definition of the arithmeticgeometric mean, an intersection of the two which always lies in between.
The geometric mean is also the arithmeticharmonic mean in the sense that if two sequences () and () are defined:
and
where is the harmonic mean of the previous values of the two sequences, then and will converge to the geometric mean of and .
This can be seen easily from the fact that the sequences do converge to a common limit (which can be shown by Bolzano–Weierstrass theorem) and the fact that geometric mean is preserved:
Replacing the arithmetic and harmonic mean by a pair of generalized means of opposite, finite exponents yields the same result.
Relationship with logarithms
The geometric mean can also be expressed as the exponential of the arithmetic mean of logarithms.^{[4]} By using logarithmic identities to transform the formula, the multiplications can be expressed as a sum and the power as a multiplication:
 When
 if then
 Where m is the number of negative numbers.
This is sometimes called the logaverage (not to be confused with the logarithmic average). It is simply computing the arithmetic mean of the logarithmtransformed values of (i.e., the arithmetic mean on the log scale) and then using the exponentiation to return the computation to the original scale, i.e., it is the generalised fmean with . For example, the geometric mean of 2 and 8 can be calculated as the following, where is any base of a logarithm (commonly 2, or 10):
The log form of the geometric mean is generally the preferred alternative for implementation in computer languages because calculating the product of many numbers can lead to an arithmetic overflow or arithmetic underflow. This is less likely to occur with the sum of the logarithms for each number.
Relationship with arithmetic mean and meanpreserving spread
If a set of nonidentical numbers is subjected to a meanpreserving spread — that is, two or more elements of the set are "spread apart" from each other while leaving the arithmetic mean unchanged — then the geometric mean always decreases.^{[5]}
Computation in constant time
In cases where the geometric mean is being used to determine the average growth rate of some quantity, and the initial and final values and of that quantity are known, the product of the measured growth rate at every step need not be taken.^{[citation needed]} Instead, the geometric mean is simply
where is the number of steps from the initial to final state.
If the values are , then the growth rate between measurement and is . The geometric mean of these growth rates is just
Properties
The fundamental property of the geometric mean, which can be proven to be false for any other mean, is
This makes the geometric mean the only correct mean when averaging normalized results; that is, results that are presented as ratios to reference values.^{[6]} This is the case when presenting computer performance with respect to a reference computer, or when computing a single average index from several heterogeneous sources (for example, life expectancy, education years, and infant mortality). In this scenario, using the arithmetic or harmonic mean would change the ranking of the results depending on what is used as a reference. For example, take the following comparison of execution time of computer programs:
Computer A  Computer B  Computer C  

Program 1  1  10  20 
Program 2  1000  100  20 
Arithmetic mean  500.5  55  20 
Geometric mean  31.622 . . .  31.622 . . .  20 
Harmonic mean  1.998 . . .  18.182 . . .  20 
The arithmetic and geometric means "agree" that computer C is the fastest. However, by presenting appropriately normalized values and using the arithmetic mean, we can show either of the other two computers to be the fastest. Normalizing by A's result gives A as the fastest computer according to the arithmetic mean:
Computer A  Computer B  Computer C  

Program 1  1  10  20 
Program 2  1  0.1  0.02 
Arithmetic mean  1  5.05  10.01 
Geometric mean  1  1  0.632 . . . 
Harmonic mean  1  0.198 . . .  0.039 . . . 
while normalizing by B's result gives B as the fastest computer according to the arithmetic mean but A as the fastest according to the harmonic mean:
Computer A  Computer B  Computer C  

Program 1  0.1  1  2 
Program 2  10  1  0.2 
Arithmetic mean  5.05  1  1.1 
Geometric mean  1  1  0.632 
Harmonic mean  0.198 . . .  1  0.363 . . . 
and normalizing by C's result gives C as the fastest computer according to the arithmetic mean but A as the fastest according to the harmonic mean:
Computer A  Computer B  Computer C  

Program 1  0.05  0.5  1 
Program 2  50  5  1 
Arithmetic mean  25.025  2.75  1 
Geometric mean  1.581 . . .  1.581 . . .  1 
Harmonic mean  0.099 . . .  0.909 . . .  1 
In all cases, the ranking given by the geometric mean stays the same as the one obtained with unnormalized values.
However, this reasoning has been questioned.^{[7]} Giving consistent results is not always equal to giving the correct results. In general, it is more rigorous to assign weights to each of the programs, calculate the average weighted execution time (using the arithmetic mean), and then normalize that result to one of the computers. The three tables above just give a different weight to each of the programs, explaining the inconsistent results of the arithmetic and harmonic means (the first table gives equal weight to both programs, the second gives a weight of 1/1000 to the second program, and the third gives a weight of 1/100 to the second program and 1/10 to the first one). The use of the geometric mean for aggregating performance numbers should be avoided if possible, because multiplying execution times has no physical meaning, in contrast to adding times as in the arithmetic mean. Metrics that are inversely proportional to time (speedup, IPC) should be averaged using the harmonic mean.
Applications
Proportional growth
The geometric mean is more appropriate than the arithmetic mean for describing proportional growth, both exponential growth (constant proportional growth) and varying growth; in business the geometric mean of growth rates is known as the compound annual growth rate (CAGR). The geometric mean of growth over periods yields the equivalent constant growth rate that would yield the same final amount.
Suppose an orange tree yields 100 oranges one year and then 180, 210 and 300 the following years, so the growth is 80%, 16.6666% and 42.8571% for each year respectively. Using the arithmetic mean calculates a (linear) average growth of 46.5079% (80% + 16.6666% + 42.8571% divided by 3). However, if we start with 100 oranges and let it grow 46.5079% each year, the result is 314 oranges, not 300, so the linear average overstates the yearonyear growth.
Instead, we can use the geometric mean. Growing with 80% corresponds to multiplying with 1.80, so we take the geometric mean of 1.80, 1.166666 and 1.428571, i.e. ; thus the "average" growth per year is 44.2249%. If we start with 100 oranges and let the number grow with 44.2249% each year, the result is 300 oranges.
Applications in the social sciences
Although the geometric mean has been relatively rare in computing social statistics, starting from 2010 the United Nations Human Development Index did switch to this mode of calculation, on the grounds that it better reflected the nonsubstitutable nature of the statistics being compiled and compared:
 The geometric mean decreases the level of substitutability between dimensions [being compared] and at the same time ensures that a 1 percent decline in say life expectancy at birth has the same impact on the HDI as a 1 percent decline in education or income. Thus, as a basis for comparisons of achievements, this method is also more respectful of the intrinsic differences across the dimensions than a simple average.^{[8]}
Not all values used to compute the HDI (Human Development Index) are normalized; some of them instead have the form . This makes the choice of the geometric mean less obvious than one would expect from the "Properties" section above.
Aspect ratios
The geometric mean has been used in choosing a compromise aspect ratio in film and video: given two aspect ratios, the geometric mean of them provides a compromise between them, distorting or cropping both in some sense equally. Concretely, two equal area rectangles (with the same center and parallel sides) of different aspect ratios intersect in a rectangle whose aspect ratio is the geometric mean, and their hull (smallest rectangle which contains both of them) likewise has aspect ratio their geometric mean.
In the choice of 16:9 aspect ratio by the SMPTE, balancing 2.35 and 4:3, the geometric mean is , and thus ... was chosen. This was discovered empirically by Kerns Powers, who cut out rectangles with equal areas and shaped them to match each of the popular aspect ratios. When overlapped with their center points aligned, he found that all of those aspect ratio rectangles fit within an outer rectangle with an aspect ratio of 1.77:1 and all of them also covered a smaller common inner rectangle with the same aspect ratio 1.77:1.^{[9]} The value found by Powers is exactly the geometric mean of the extreme aspect ratios, 4:3 (1.33:1) and CinemaScope (2.35:1), which is coincidentally close to (). The intermediate ratios have no effect on the result, only the two extreme ratios.
Applying the same geometric mean technique to 16:9 and 4:3 approximately yields the 14:9 (...) aspect ratio, which is likewise used as a compromise between these ratios.^{[10]} In this case 14:9 is exactly the arithmetic mean of and , since 14 is the average of 16 and 12, while the precise geometric mean is but the two different means, arithmetic and geometric, are approximately equal because both numbers are sufficiently close to each other (a difference of less than 2%).
Antireflective coatings
In optical coatings, where reflection needs to be minimised between two media of refractive indices n_{0} and n_{2}, the optimum refractive index n_{1} of the antireflective coating is given by the geometric mean: .
Spectral flatness
In signal processing, spectral flatness, a measure of how flat or spiky a spectrum is, is defined as the ratio of the geometric mean of the power spectrum to its arithmetic mean.
Geometry
In the case of a right triangle, its altitude is the length of a line extending perpendicularly from the hypotenuse to its 90° vertex. Imagining that this line splits the hypotenuse into two segments, the geometric mean of these segment lengths is the length of the altitude.
In an ellipse, the semiminor axis is the geometric mean of the maximum and minimum distances of the ellipse from a focus; it is also the geometric mean of the semimajor axis and the semilatus rectum. The semimajor axis of an ellipse is the geometric mean of the distance from the center to either focus and the distance from the center to either directrix.
Distance to the horizon of a sphere is the geometric mean of the distance to the closest point of the sphere and the distance to the farthest point of the sphere.
Both in the approximation of squaring the circle according to S.A. Ramanujan (1914) and in the construction of the Heptadecagon according to "sent by T. P. Stowell, credited to Leybourn's Math. Repository, 1818", the geometric mean is employed.
Financial
The geometric mean has from time to time been used to calculate financial indices (the averaging is over the components of the index). For example, in the past the FT 30 index used a geometric mean.^{[11]} It is also used in the recently introduced "RPIJ" measure of inflation in the United Kingdom and elsewhere in the European Union.
This has the effect of understating movements in the index compared to using the arithmetic mean.^{[11]}
Image Processing
The geometric mean filter is used as a noise filter in image processing.
See also
 Arithmetic mean
 Arithmeticgeometric mean
 Average
 Generalized mean
 Geometric mean theorem
 Geometric standard deviation
 Harmonic mean
 Heronian mean
 Hyperbolic coordinates
 Lognormal distribution
 Muirhead's inequality
 Multiplicative calculus
 Product
 Pythagorean means
 Quadratic mean
 Quadrature (mathematics)
 Rate of return
 Weighted geometric mean
Notes and references
 ^ Universität Magdeburg, German A.14 Mittelwerte. Mittlere Proportionale, page 2, image: b) (PDFDatei), access date 1 May 2017
 ^ "TPCD – Frequently Asked Questions (FAQ)". Transaction Processing Performance Council. Retrieved 9 January 2012.
 ^ The geometric mean only applies to numbers of the same sign in order to avoid taking the root of a negative product, which would result in imaginary numbers, and also to satisfy certain properties about means, which is explained later in the article. The definition is unambiguous if one allows 0 (which yields a geometric mean of 0), but may be excluded, as one frequently wishes to take the logarithm of geometric means (to convert between multiplication and addition), and one cannot take the logarithm of 0.
 ^ Crawley, Michael J. (2005). Statistics: An Introduction using R. John Wiley & Sons Ltd. ISBN 9780470022986.
 ^ Mitchell, Douglas W. (2004). "More on spreads and nonarithmetic means". The Mathematical Gazette. 88: 142–144.
 ^ Fleming, Philip J.; Wallace, John J. (1986). "How not to lie with statistics: the correct way to summarize benchmark results". Communications of the ACM. 29 (3): 218–221. doi:10.1145/5666.5673.
 ^ Smith, James E. (1988). "Characterizing computer performance with a single number". Communications of the ACM. 31 (10): 1202–1206. doi:10.1145/63039.63043.
 ^ http://hdr.undp.org/en/statistics/faq/
 ^ ^{a} ^{b} "TECHNICAL BULLETIN: Understanding Aspect Ratios" (PDF). The CinemaSource Press. 2001. Retrieved 20091024.
 ^ US 5956091, "Method of showing 16:9 pictures on 4:3 displays", issued September 21, 1999
 ^ ^{a} ^{b} Rowley, Eric E. (1987). The Financial System Today. Manchester University Press. ISBN 0719014875.
External links
 Calculation of the geometric mean of two numbers in comparison to the arithmetic solution
 Arithmetic and geometric means
 When to use the geometric mean
 Practical solutions for calculating geometric mean with different kinds of data
 Geometric Mean on MathWorld
 Geometric Meaning of the Geometric Mean
 Geometric Mean Calculator for larger data sets
 Computing Congressional apportionment using Geometric Mean
 Geometric Mean Definition and Examples