In statistical analysis, the word "average" usually refers to the simple arithmetic mean, yet relying solely on an unweighted additive average can distort results across finance, physics, and data science. Depending on whether your data combines additively, compounds multiplicatively over time, expresses rates per unit of output, or carries unequal importance across observations, different mathematical formulations of the mean are required to identify the true center of the distribution.
Together, the arithmetic, geometric, and harmonic means form the classical Pythagorean means, while weighted, trimmed, and quadratic (Root Mean Square) averages extend central tendency analysis to academic grading, portfolio asset allocation, signal processing, and outlier-resistant econometrics.
Mathematical Formulas for Core Mean Types
Each formulation of the mean corresponds to a distinct algebraic invariant across a dataset of observations .
1. Arithmetic Mean ( or )
The arithmetic mean preserves the additive total of the dataset such that replacing every observation with leaves the total sum unchanged ():
2. Weighted Arithmetic Mean ()
When individual observations carry different frequencies, probabilities, or capital allocations , the weighted mean scales each observation by its relative weight:
3. Geometric Mean ()
The geometric mean preserves the multiplicative product of positive real numbers (). To prevent numerical overflow on large datasets, it can also be evaluated using natural logarithms:
4. Harmonic Mean ()
The harmonic mean preserves the sum of reciprocals for positive observations (), defined as the reciprocal of the arithmetic mean of the reciprocals:
5. Quadratic Mean / Root Mean Square ()
Used extensively in electrical engineering (AC voltage) and error evaluation (RMSE), the quadratic mean preserves the average squared magnitude:
Variable Definitions
- : The -th numerical observation in the sample or population.
- : Total number of observations in the dataset.
- : Non-negative weight or frequency assigned to observation .
- : Product operator indicating multiplication across all terms.
- : Natural logarithm (base ) of observation for .
The Generalized Power Mean Hierarchy (AM-GM-HM Inequality)
All of the classical means belong to the family of generalized power means , where yields the Quadratic Mean, yields the Arithmetic Mean, the limit yields the Geometric Mean, and yields the Harmonic Mean. For any set of positive real numbers, these statistics obey a strict mathematical ordering:
Equality holds across all four metrics () if and only if every observation in the dataset is identical (). The wider the variance of the dataset, the larger the gap between the arithmetic mean and the geometric mean—a phenomenon known in financial economics as volatility drag ().
Step-by-Step Worked Calculation Examples
Example 1: Comparing AM, GM, and HM on an Exponential Dataset
Consider a dataset of five doubling measurements: .
- Arithmetic Mean ():
- Geometric Mean ():
Expressing each number as a power of $2$ ():
- Harmonic Mean ():
Convert all reciprocals to a common denominator of $64$:
Notice the strict inequality ordering: $24.80 > 16.00 > 10.3226$.
Example 2: Compound Investment Returns and Equal-Distance Speeds
Suppose a investment surges by in Year 1 (growing to ) and drops by in Year 2 (falling to ). Averaging and arithmetically gives , falsely implying the investor broke even. Converting each return into a positive growth multiplier yields $1.50$ and $0.50$:
Compounding at annually for two years reproduces the exact ending balance. Similarly, if a vehicle drives outbound at and returns at , the harmonic mean gives the true round-trip speed: .
Benchmark Comparison of Mean Formulations
| Mean Type | Mathematical Formula | Input Domain | Outlier Behavior | Primary Practical Use Case |
|---|---|---|---|---|
| Arithmetic Mean () | All reals () | Sensitive to outliers | Sample means, physical measurements | |
| Weighted Mean () | Driven by high weights | Course GPA, WACC, grouped frequencies | ||
| Geometric Mean () | Positive reals () | Dampens large spikes | Compound annual growth rate (CAGR) | |
| Harmonic Mean () | Positive reals () | Weighted toward minimums | Equal-distance speeds, P/E ratios, F1-score | |
| Quadratic Mean () | ||||
| l0 -0 | ||||
| c4,-6.7,10,-10,18,-10 H400000v40 | ||||
| H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 | ||||
| s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 | ||||
| c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 | ||||
| c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 | ||||
| c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 | ||||
| c53.7,-170.3,84.5,-266.8,92.5,-289.5z | ||||
| M1001 80h400000v40h-400000z"/> | All reals () | Amplifies large values | AC voltage/current, RMSE error tracking | |
| Trimmed Mean | Mean dropping outer | All reals () | Outlier resistant | Judging scores, financial rate benchmarks |