The three means 2.0
About this app
Rebuild 2.0 (preview): which constant value replaces them all? Returns, speed, savings plan, P/E and semicircle — AM, GM, HM in the replacement test, HM ≤ GM ≤ AM on the number line.
Every mean answers a question
A mean is the constant value that can replace all individual values without changing a particular total. If the sum stays the same, it is the arithmetic mean (AM); if the product does, the geometric mean (GM); if the sum of reciprocals does, the harmonic mean (HM). So which mean fits depends on what is held fixed. Compounded returns are averaged through growth factors 1 + r: +40 % and −30 % give 1.4 · 0.7 = 0.98, a loss, even though the AM shows +5 %.
What the app shows
Five scenarios are available: returns, speed, savings plan, P/E ratio and semicircle. Under “What is fixed?” you choose the rule, for example compounding or payout, equal distances or equal times, equal amounts or equal earnings. Dashed outlines show all values replaced by the substitute m, and next to them the total appears both real and with m. A number line shows HM ≤ GM ≤ AM, and formulas are typeset with KaTeX.
Things to try
Pick a different mean as the substitute m: the real and substituted columns drift apart and the app states the gap. For P/E ratios, check that with equal amounts per stock the harmonic mean gives the portfolio P/E. In the semicircle, drag the split point: the radius is the AM, the perpendicular is the GM (altitude theorem) and its projection is the HM. Leg ≤ hypotenuse yields the inequality.
Frequently asked questions
- How do you calculate the average return over several years?
- With reinvested returns you take the geometric mean of the growth factors 1 + r and subtract 1. The arithmetic mean of the returns overstates actual growth as soon as returns fluctuate. If income is paid out on constant capital, the arithmetic mean is the right choice.
- How do you calculate the P/E ratio of a portfolio?
- The portfolio P/E is total value divided by total earnings. If the same amount is invested in each stock, it equals the harmonic mean of the individual P/E ratios. With unequal amounts you use the weighted harmonic mean.
- How can HM ≤ GM ≤ AM be shown geometrically?
- Draw a semicircle over the segment a + b. Its radius is (a + b)/2, the AM; by the altitude theorem the perpendicular at the split point has length √(ab), the GM. Projecting it onto the radius gives the HM by the leg theorem, and since a leg is never longer than the hypotenuse, the inequality follows.
- How does this differ from the first three means app?
- This version presents each mean as a substitution test: one constant replaces all values and you see whether the total stays the same. It adds the returns, P/E and semicircle scenarios as well as weighted means. Speed and savings plan are included too.
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
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps