Arithmetic Geometric Harmonic Mean Calculator
Computes arithmetic, geometric and harmonic means simultaneously for a list of positive numbers separated by comma.
ā
Arithmetic, geometric and harmonic means
These are the three classical averages of n positive numbers xā, ā¦, xā. The arithmetic mean adds everything up and divides: AM = (xā + xā + ⦠+ xā) / n. The geometric mean multiplies the values and takes the n-th root: GM = āæā(xā Ā· xā Ā· ⦠· xā). The harmonic mean inverts each value, averages those, then inverts the result: HM = n / (1/xā + 1/xā + ⦠+ 1/xā). The classical AMāGMāHM inequality says AM ā„ GM ā„ HM, and the three coincide only when every xįµ¢ is identical. Run the numbers on 2, 4, 8, 16, 32: AM = 62/5 = 12.4, GM = āµā32768 = 8, and HM = 5 / (1/2 + 1/4 + 1/8 + 1/16 + 1/32) = 5 / (31/32) ā 5.161, which confirms 12.4 ā„ 8 ā„ 5.161.
Applications
Reach for the arithmetic mean with additive quantities, like grades, daily temperatures, or sample means in statistics. The geometric mean suits multiplicative growth ā the Compound Annual Growth Rate (CAGR) of an investment, average inflation, and ratios or indices, where GM = (final/initial)^(1/n) ā 1 + 1. The harmonic mean fits rates and ratios measured against a fixed quantity: average speed when the distances are equal, the F1-score in machine learning that combines precision and recall, or resistors wired in parallel in electronics.
FAQ
Which mean for a round-trip at 60 km/h going and 40 km/h coming back? The harmonic one. HM = 2 / (1/60 + 1/40) = 48 km/h. It's not the arithmetic 50, because you spend longer at the slower speed.
Why does GM require positive numbers? If the product includes a zero, its real n-th root is zero and the mean collapses. A negative value makes the root complex when n is even. So by convention the GM is defined only for strictly positive data.
Why is the geometric mean the right choice for average returns? Returns compound rather than add. Gain 10%, then lose 10%, and you land at 0.99, not 1. The GM captures that compounding faithfully, whereas the AM overstates what you actually earned.
Related Tools
Rent Adjustment Calculator
Compute annual rent adjustment by IGP-M or IPCA accumulated in the last 12 months (manually configurable).
Pregnancy Calculator
Compute estimated due date (EDD), gestational age and trimester from the last menstrual period (LMP).
Fertile Period Calculator
Compute fertile window and ovulation day from the first day of the last cycle and the average cycle length.