The Three Classical Pythagorean Means
In mathematics, there are many different types of “mean”. The most common type of mean is the arithmetic mean (AM), which along with the geometric mean (GM) and the harmonic mean (HM), form the three classical Pythagorean means. They are called the Pythagorean means because they were studied by Pythagoras and later generations of Greek mathematicians with their use in geometry and music1.
Arithmetic Mean (AM)
For a set of positive, real numbers , the arithmetic mean is defined by2:
For example, the arithmetic mean of the numbers is:
The arithmetic mean is the most commonly used form of mean, and is typically just referred to as the “mean” of a set of numbers.
Geometric Mean (GM)
For a set of positive, real numbers , the geometric mean is defined by2:
where:
is the product of the terms
For example, the geometric mean of the numbers is:
The geometric mean is named so because it happens to be the middle number in a geometric progression. A geometric progression
The geometric means of 2 and 3 numbers can be intuitively visualized:
- In 2D, it two numbers were the width and height of a rectangle, the geometric mean gives you the length of the side of a square (equal sided rectangle) which would have the same area as the rectangle.
- Similarly, in 3D if the three numbers were the width, height and depth of a rectangular cuboid (box), the geometric mean gives you the length of the side of a cube (equal sided cuboid) which would have the same volume.
Uses
The geometric mean is really useful when we want to compare things, where each “thing” has multiple properties which have different ranges. For example:
- Car 1 has a mileage of 25km/l and a user rating of 6/10
- Car 2 has a mileage of 20km/l and a user rating of 9/10
If we calculate the geometric mean of the mileage and rating for each car:
- Car 1:
- Car 2:
The geometric mean suggests that Car 2 may be better! The geometric mean does now skew the results like the arithmetic mean would due to the larger values for the mileage compared with the user rating. The arithmetic mean would of given for Car 1 and a lower for Car 2. Instead it is influenced by the proportional change of each feature, such that the larger percentage increase in the user rating for Car 2 was weighted better than the smaller percentage decrease in mileage.
The geometric mean is also useful in calculating compound interest. Let’s pretend you have 3 of interest in the first year and 4. However, if you used the geometric mean you would get 3 you made at the end of the first year (so that you had $103 earning interest for the second year).
Harmonic Mean (HM)
For a set of positive, real numbers , the harmonic mean is defined by12:
For example, the harmonic mean of the numbers is:
For all positive data sets containing at least one pair of non-equal values, the harmonic mean is always the least of the three means2.
The harmonic and arithmetic means are reciprocal duals of each other, when all of the values in the set are positive:
Uses
The harmonic mean is used to calculate the when performing classification. This is useful in classification algorithms such as logistic regression.