The three means
About this app
Arithmetic, geometric, harmonic — which one when? The speed paradox (the second lap is never fast enough for a 120 km/h average), the inequality AM ≥ GM ≥ HM on a number line, and the cost-averaging effect in a savings plan.
Three ways to the middle
The arithmetic mean (AM) is the sum divided by n. The geometric mean (GM) is the n-th root of the product, and the harmonic mean (HM) is n divided by the sum of the reciprocals. For the same positive values AM ≥ GM ≥ HM always holds, with equality only when all values are equal. Rule of thumb: sums call for the AM, growth rates for the GM, and ratios such as speed or price per share for the HM.
What the app shows
The app has three modes. “Speed”: two laps of equal length, the first at 60 km/h. The average is v̄ = 2 / (1/60 + 1/v₂) and only approaches 120 km/h asymptotically. “Compare”: values on a number line with AM, GM and HM as markers. “Savings plan”: two strategies on the same monthly prices, 10 shares a month versus 100 € a month. The average price of the fixed-amount strategy is the harmonic mean of the prices.
Things to try
In speed mode, raise the speed of the second lap: the average climbs but never reaches 120 km/h. In compare mode, drag the points apart and watch AM, GM and HM spread; when all values are equal, the markers coincide. In the savings plan, change the monthly prices by dragging the bars and read how many euros cheaper per share the fixed amount buys.
Frequently asked questions
- When should you use the harmonic mean?
- The harmonic mean fits when you average ratios with a fixed numerator, such as speeds over equal distances. Another example is the average purchase price in a savings plan with a fixed monthly amount. It equals n divided by the sum of the reciprocals.
- Why can you never average 120 km/h if the first lap was 60 km/h?
- For laps of equal length the average speed is the harmonic mean: v̄ = 2 / (1/60 + 1/v₂). Reaching 120 would require 1/v₂ to be zero, meaning an infinitely fast second lap. The first lap already used all the time the whole distance may take at 120 km/h.
- What is the cost averaging effect?
- Investing a fixed amount regularly buys more shares when prices are low and fewer when they are high. The average purchase price is then the harmonic mean of the prices and lies below their arithmetic mean. This says nothing about whether the investment makes a profit overall.
- Which modes does the app have?
- The app offers speed, compare and savings plan modes. In compare mode you drag values on a number line and choose how many there are; in the savings plan you change the monthly prices with bars. A formula panel shows the calculations for each mode.
Subject: Data & decisions
More from Data & decisions
- Anchoring effect
- Benford's law
- Berkson's paradox
- Cherry-picking: base period
- Cherry-picking: base period 2.0
- The three-cowboy duel (truel)
- The three-cowboy duel 2.0
- The three means 2.0
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps