3 minute read

A short comparison of Pythagorean Means: the arithmetic mean (AM), the geometric mean (GM), and the harmonic mean (HM).
Arithmetic Mean (AM)
Geometric Mean (GM)
Harmonic Mean (HM)
Initial Value
Growth Factor (e.g., 180%)
Growth Rate (e.g., 80%)
Time Elapsed (e.g., Years)

A short comparison of Pythagorean Means: the arithmetic mean (AM), the geometric mean (GM), and the harmonic mean (HM).

This is an experimental post for the mathjax-tooltips script to illustrate the possible benefits by including annotations for mathematical equations that appears on mouse hover.

ComparisonPermalink

Use casesPermalink

Type Value Property Application Example
Arithmetic mean linear average statistics mean
Geometric mean multiplicative, exponential growth proportional growth
Harmonic mean reciprocal rate, ratio speed, density, resistance

Special case of two variablesPermalink

Type First Value Second Value Mean Note
Arithmetic mean x y x+y2  
Geometric mean ex ey (exey)12 =exey=ex+y2
Harmonic mean x1 y1 (x1+y12)1 =21x+1y=2xyx+y

General form of n variablesPermalink

Type General form Note
Arithmetic mean 1ni=1nxi =x1+x2++xnn
Geometric mean (i=1nxi)1n =x1x2xnn
Harmonic mean (i=1nxi1n)1 =ni=1nxi1=n1x1+1x2++1xn

Assuming all values are positive, the following relationship holds:

minHMGMAMmax

See Proof on Wikipedia

ExamplesPermalink

Arithmetic MeanPermalink

Statistics mean:

Three people with monthly income: 1000, 2000, 3000

The arithmetic mean is 1000+2000+30003=2000

Geometric MeanPermalink

Proportional growth:

An orange tree yields 100, 180, 210, 300 in each year within a 4 year time frame.

The growth factors are: 180100=180%, 210180116.67%, 300210142.86%.

The arithmetic mean is 180%+116.67%+142.86%3146.51%


Simulate an orange tree that grows 146.51% for 3 years:

Initial 100
1st Year 100146.51%147
2nd Year 100(146.51%)2215
3rd Year 100(146.51%)3314

The result 314 has |314300300|=4.67% overestimation.


The geometric mean is 180%116.66%142.86%3144.22%

Simulate an orange tree that grows 144.22% for 3 years:

Initial 100
1st Year 100144.22%144
2nd Year 100(144.22%)2208
3rd Year 100(144.22%)3300

The result 300 accurately describes the final yield.


The intuition behind this is that the growth factors are multiplied together: 180%116.67%142.86%300%, and the final yield is calculated as exponential growth f(t)=a(1+r)t.

Your goal is to find x in 100(x)3=100(180%116.67%142.86%), therefore x=GM is the natural fit.

Harmonic MeanPermalink

Speed:

Speed (km/hr)=Distance (km)Time (hr)

Starting at home, you travel with 60 (km/hr) to a location and return with 20 (km/hr). We denote the travel distance as d (km).

Assume d=120 (km), the total time spent is 120 (km)60 (km/hr)+120 (km)20 (km/hr)=2 (hr)+6 (hr)=8 (hr).


The arithmetic mean is 60+202=40 (km/hr). However, this also overestimates the mean.

The overestimation of speed causes underestimation of time 1202 (km)40 (km/hr)=6 (hr).


The harmonic mean is (601+2012)1=2160 (km/hr)+120 (km/hr)=30 (km/hr).

The estimation 1202 (km)30 (km/hr)=8 (hr) accurately describes the total time spent.


The intuition behind this is that the speeds are ratios, and the total time is calculated as t (hr)=d (km)s1 (km/hr)+d (km)s2 (km/hr). The multiplicative inverse of speed can be interpreted as “slowness”.

Your goal is to find x in 2d (km)x (km/hr)=d (km)60 (km/hr)+d (km)20 (km/hr), therefore x=HM is the natural fit.

Side Note: If the problem is modified to traveling with two speeds given the same elapsed time. Then arithmetic mean is the correct method to use.


Density:

Density (g/m3)=Mass (g)Volume (m3)

Assume we combine 2 objects with the same mass, and the volume will add up (does not hold in most cases). We can use x=HM to find the combined density x in 2mx=md1+md2.

Side Note: If the problem is modified to combining two objects with the same volume. Then arithmetic mean is the correct method to use.


Resistance:

  • (V)=(kgm2s3A1).
  • (I)=(A).
  • (Ω)=(kgm2s3A2).
Resistance (Ω)=Voltage (V)Current (I)

To calculate the equivalent resistance of two resistors connect in parallel (Same voltage difference), we can use x=HM to find the equivalent resistance 2Vx=Vx+Vx=VR1+VR2. The equivalent resistance 2x indicates that if we replace the resistors with 2 new resistors with resistance x, the resulting resistance will be equivalent.

Side Note: If the problem is modified to connect two resistors in serial. Then arithmetic mean is the correct method to use.

ReferencesPermalink

Tags:

Updated:

Posted:

Comments are configured with provider: disqus, but are disabled in non-production environments.