What is Geometric mean?
The nth root of the product of n positive values, used to average performance ratios because the comparison does not depend on the reference chosen.
Japanese name: 幾何平均
The nth root of the product of n positive values, used to average performance ratios because the comparison does not depend on the reference chosen.
Japanese name: 幾何平均
The geometric mean of n positive values is the nth root of their product. For 2 and 8, the product is 16 and its square root, 4, is the geometric mean. The arithmetic mean is (2 + 8) ÷ 2 = 5, so the geometric mean is smaller. Unless all the values are equal, the geometric mean is smaller than the arithmetic mean. In practice it is often computed by taking the arithmetic mean of the logarithms and applying the exponential function.
Suppose two programs take 1 s and 4 s on machine A and 2 s each on machine B. With A as the reference, B's speed ratios are 1 ÷ 2 = 0.5 and 4 ÷ 2 = 2. Their arithmetic mean is 1.25, so B looks faster than A. With B as the reference, A's ratios are 2 and 0.5, the arithmetic mean is again 1.25, and now A looks faster. The geometric mean is √(0.5 × 2) = 1 with either reference, so the conclusions do not conflict.
The geometric mean does not represent the total time of running the programs one after another. In the example above the total is 5 s on A and 4 s on B, so B finishes earlier. The geometric mean nevertheless rates the two as equal. When the total time is meaningful, comparing the sums of the times themselves is more appropriate. If any value is 0 the product becomes 0, so it cannot be used for data containing 0 or negative values. The SPEC CPU score is a value combined with this geometric mean.
Answer: C. The relative ranking and ratio between two machines do not change regardless of which machine is chosen as the reference
Averaging speed ratios arithmetically can flip the conclusion about which of two machines is faster depending on the reference chosen. With the geometric mean, the ratio between two machines does not depend on the reference, enabling fair comparison. However, the geometric mean does not represent the total time to run all programs, so for some purposes comparing summed times is more appropriate.
Because the geometric mean of ratios equals the ratio of the geometric means. When two machines are compared, the values of the reference machine cancel between numerator and denominator.
Use the geometric mean to combine ratios against a reference, and the harmonic mean to combine rates measured over equal amounts of work. The harmonic mean equals total work divided by total time, whereas the geometric mean has no such correspondence to total time.
Geometric mean appears in 2 practice questions across 1 topic, including Performance Analysis.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.