The Inverse-Variance Weighted Mean
Statement
Given N independent, unbiased measurements xi of a single quantity μ, each with variance σi2, the linear combination x̂ = Σi wi xi that is unbiased and has the smallest possible variance is the one whose weights satisfy wi ∝ 1/σi2. The resulting minimum variance is 1/σ2 = Σi 1/σi2.
Why it matters
Almost every experimental number that carries an error bar is really several numbers averaged together: repeated runs, independent apparatus, or results from different laboratories. The naive equal-weight mean throws away information — it treats a crude reading and a precise one as equals. The inverse-variance weighted mean is the provably optimal way to fuse them, and it is the estimator that underlies world-average constants (particle masses, the gravitational constant, cosmological parameters).
The companion result, that inverse variances (precisions) simply add, is the quantitative statement of "more data helps." It tells you exactly how much a new measurement sharpens your knowledge, and warns you that a sufficiently imprecise measurement contributes essentially nothing.
Assumptions
Derivation
Result
Reading. Weight each measurement by its precision, the reciprocal of its variance, then renormalise. The combined estimate's precision is the sum of the individual precisions — informations add, so the combined uncertainty is always smaller than that of the best single input.
Units check. The weights wi are ratios of quantities with units [x]−2, hence dimensionless, and Σ wi = 1 as required; so x̂ carries the units of x. In 1/σ2 = Σ 1/σi2 every term has units [x]−2, so the reciprocal σ2 has units [x]2, a proper variance.
Limiting cases
- Equal variances σi = σ: all weights become 1/N, recovering the ordinary mean, and σ2 = σ2/N — the standard error of the mean.
- One dominant measurement σk → 0: its weight → 1, all others → 0; the estimate becomes xk and σ → 0. A perfect measurement supersedes the rest.
- One useless measurement σk → ∞: its weight → 0 and it drops out; adding an infinitely noisy datum leaves the estimate and its variance unchanged. A bad measurement can never hurt.
- Two measurements: x̂ = (x1/σ12 + x2/σ22)/(1/σ12 + 1/σ22), with 1/σ2 = 1/σ12 + 1/σ22 — the variances combine like resistors in parallel.
Breaks when
- The measurements are correlated. If Cov(xi,xj) ≠ 0 (shared calibration, common systematic), the diagonal variance sum of step 3 is wrong. The optimal weights become w ∝ C−1 1 using the full covariance matrix C; naive inverse-variance weighting then underestimates the combined uncertainty, sometimes badly.
- The measurements are biased. Minimising variance is not the same as minimising error when ⟨xi⟩ ≠ μ. The mean-squared error is variance + bias2; inverse-variance weighting ignores the bias term and will heavily weight a precise-but-offset value, converging confidently on the wrong answer.
- The variances are estimated from the data themselves. Then the weights are random and correlated with the xi, producing a biased combined estimate (Peelle's Pertinent Puzzle), most severe when the quoted error scales with the measured value.
- The noise is heavy-tailed / non-Gaussian. The minimum-variance linear estimator is no longer efficient; a few outliers dominate the weighted sum, and a robust estimator (median, trimmed mean) outperforms it.
Failure modes
- Weighting by 1/σ instead of 1/σ2. Confusing precision with the reciprocal of the standard deviation; the true weight is the reciprocal of the variance.
- Forgetting to normalise. Using raw weights wi = 1/σi2 without dividing by S, so Σ wi ≠ 1 and the estimate is scaled by S.
- Averaging the uncertainties. Reporting the combined σ as the mean of the σi, rather than combining precisions via 1/σ2 = Σ 1/σi2.
- Combined error larger than the best input. A sanity-check violation: the weighted-mean uncertainty must be ≤ the smallest σi; getting a larger value signals an arithmetic slip.
- Using the scatter of the values as the uncertainty. Substituting the sample standard deviation of the xi for the propagated σi; these answer different questions and coincide only under special conditions.
Discussion
The inverse-variance weighted mean is the best linear unbiased estimator (BLUE) of a constant from independent measurements — a special case of the Gauss–Markov theorem. "Best" here means minimum variance among all unbiased linear estimators, which is exactly the optimisation we carried out with a single Lagrange multiplier. The elegance is that the answer depends only on the second moments σi2, not on the detailed shape of the noise.
The result 1/σ2 = Σ 1/σi2 is best read as a statement about information. For a Gaussian measurement of a mean, the Fisher information is precisely 1/σi2; because independent experiments carry additive Fisher information, the total information is the sum, and the Cramér–Rao bound sets the variance floor at its reciprocal. The weighted mean does not merely combine numbers well — it saturates the fundamental bound, extracting every bit of information the data contain.
The same estimator drops out of maximum likelihood. For Gaussian errors the negative log-likelihood is ½ Σ (xi − μ)2/σi2 (a chi-square); setting its derivative with respect to μ to zero reproduces x̂ exactly. So the least-squares fit, the maximum-likelihood estimate, and the minimum-variance linear estimate all coincide here — a reassuring convergence of three different optimality criteria.
The parallel-resistor analogy is more than a mnemonic. Precisions 1/σi2 add exactly as conductances do, and the combined system is always "stiffer" (more precise) than any component. This additive structure generalises: in a Kalman filter each measurement update adds its precision to the running estimate, and the posterior precision of a Gaussian is the sum of prior and likelihood precisions — Bayesian updating is inverse-variance weighting between a prior and a datum. Common misconceptions: that the weighted mean must lie between the individual values (true here, but only because all weights are positive and sum to one); and that combining many mediocre measurements can beat one excellent one — it can, but only if their errors are genuinely independent, which shared systematics quietly destroy.
Worked examples
Reading. The estimate sits closer to the sharper measurement, and the uncertainty (0.018 m) beats the best single input (0.02 m).
Units check. Precisions in m−2, their reciprocal square-root in m — a length uncertainty, as required.
Reading. Fusing three modest determinations yields an uncertainty (0.022) below the best single one (0.03), because precisions add.
Units check. 1/σi2 in s2 m−2; reciprocal root gives m s−2, an acceleration.
Problems
- Two measurements with equal errors: x1 = 10.0 ± 0.5 and x2 = 11.0 ± 0.5. Show the weighted mean reduces to the ordinary mean, and find the combined uncertainty.
Solution
Equal σ means equal weights w1 = w2 = ½, so x̂ = (10.0 + 11.0)/2 = 10.5. Precisions 1/0.25 = 4 each, S = 8, σ = 1/√8 = 0.354 = σ/√2. Result: 10.50 ± 0.35, matching the standard-error-of-the-mean scaling. - Combine x1 = 100.2 ± 0.3 with x2 = 100.5 ± 0.1.
Solution
1/σ12 = 1/0.09 = 11.11, 1/σ22 = 1/0.01 = 100, S = 111.11. x̂ = (100.2·11.11 + 100.5·100)/111.11 = (1113.3 + 10050)/111.11 = 100.47. σ = 1/√111.11 = 0.095. Result: 100.47 ± 0.09, strongly pulled toward the nine-times-more-precise x2. - To x1 = 5.00 ± 0.10 a colleague adds a very crude value x2 = 4.00 ± 10.0. Show the crude value barely changes the answer.
Solution
1/σ12 = 100, 1/σ22 = 1/100 = 0.01, S = 100.01. x̂ = (5.00·100 + 4.00·0.01)/100.01 = (500 + 0.04)/100.01 = 4.9999, and σ = 1/√100.01 = 0.09999. The estimate shifts by ≈ 10−4 and the uncertainty by ≈ 5×10−6: 5.000 ± 0.100, essentially unchanged — a nearly useless measurement contributes almost nothing. - You have N independent measurements each with the same uncertainty σ. Show the weighted mean's uncertainty is σ/√N, and find how many are needed to reach σ/10.
Solution
Equal variances give S = N/σ2, so the combined variance is 1/S = σ2/N and σcomb = σ/√N — exactly the standard error of the mean. Setting σ/√N = σ/10 gives √N = 10, i.e. N = 100. Tenfold precision costs a hundredfold more data — the familiar diminishing return of independent averaging. - Starting from the Gaussian log-likelihood, prove the inverse-variance weighted mean is the maximum-likelihood estimator of μ from independent Gaussian measurements xi ∼ N(μ, σi2).
Solution
The negative log-likelihood (dropping constants) is χ2(μ) = ½ Σi (xi − μ)2/σi2. Differentiate and set to zero: dχ2/dμ = − Σi (xi − μ)/σi2 = 0, so Σi xi/σi2 = μ Σi 1/σi2, giving μ̂ = Σ(xi/σi2)/Σ(1/σi2) — the inverse-variance weighted mean. The second derivative d2χ2/dμ2 = Σ 1/σi2 = S > 0 confirms a minimum of χ2 (maximum of likelihood), and its reciprocal 1/S is the estimator's variance — matching the minimum-variance result and saturating the Cramér–Rao bound.