Error Analysis

Error analysis is the systematic study of uncertainty in measured and computed quantities. Every measurement and every numerical calculation carries error; the discipline quantifies how these errors arise, combine, and propagate so results can be reported with honest, defensible precision. It applies across experimental science, statistics, and numerical computation. Foundational ideas trace to Gauss and Laplace (early 1800s), with the modern numerical strand consolidated by Wilkinson in the 1960s. Error analysis is the body of methods used to characterize the discrepancy between a measured or computed value and the true (often unknowable) value of a quantity. It encompasses both the classification of errors (systematic vs. random, absolute vs. relative, rounding vs. truncation) and the quantitative machinery for propagating them through functions and algorithms. Its importance is fundamental: a number without an uncertainty is scientifically meaningless, and an algorithm without an error bound cannot be trusted. A surprising fact is that two algorithms computing the same mathematical quantity in exact arithmetic can differ by many orders of magnitude in accuracy when run in floating-point — error is a property of the method, not just the problem.

The Core Insight

Error is not a nuisance to be ignored but a measurable, propagable quantity obeying its own algebra. If you know how much uncertainty enters at each step, you can predict — often to leading order — how much exits. The central tool is the linearization of a function about the measured point: small input errors map to output errors through derivatives. The central distinction is between the conditioning of a problem (how sensitive the true answer is to input changes) and the stability of an algorithm (how much extra error the computation introduces).

Formal Statement

Absolute and Relative Error

Let be a true value and an approximation. The absolute error is

1
⟳This is definitional — the signed or unsigned difference between approximation and truth.

The relative error (for ) is

2
⟳Normalize the absolute error by the magnitude of the true value to obtain a scale-independent, often percentage-expressed, quantity.

Here is the exact value, the estimate. Relative error is dimensionless; absolute error carries the units of .

Random and Systematic Error

A measurement model decomposes the observed value as

3
⟳Additively separate the deterministic bias (systematic) from the zero-mean fluctuation (random); is the true value.

where is the systematic error (bias, constant under repetition) with , and is the random error with and variance . Random error is reduced by averaging; systematic error is not.

General Error Propagation Formula

Let be a function of measured quantities with independent random errors of standard deviations . Then to first order the standard deviation of is

4
⟳Take the first-order Taylor expansion of , compute the variance of the resulting linear combination, and use independence to kill cross terms.

If the variables are correlated, add the covariance terms:

5
⟳The variance of a sum includes covariance terms ; independence sets these to zero, recovering [4].

Why It Holds / Derivation

Derivation of the Propagation Formula

Step 1 — Linearize. Expand about the true point , writing for small deviations:
6
⟳First-order multivariate Taylor expansion; second-order terms are dropped assuming errors are small relative to curvature scales.
Step 2 — Subtract the mean. Since , the deviation of from its mean is . Step 3 — Take the variance.
7
⟳Expand the square of the sum into a double sum; linearity of expectation moves the constant partial derivatives outside.
Step 4 — Apply independence. For independent variables , collapsing the double sum to the diagonal and giving [4]. Retaining off-diagonal terms gives [5].

Carl Friedrich Gauss | 1777–1855

Gauss developed the method of least squares and, crucially, the theory of the normal ("Gaussian") distribution as the law governing random observational errors, motivated by astronomical and geodetic measurements. His 1809 Theoria Motus and later work established that the arithmetic mean is the optimal estimator under normally distributed errors and laid the groundwork for the entire propagation-of-uncertainty apparatus. Independently, Laplace contributed the central limit theorem, explaining why errors so often follow the normal law.

Building Intuition

Think of error propagation geometrically. A function near a point is a tilted plane (its tangent); an input uncertainty is a little cloud of points. The output cloud is the input cloud passed through the tangent plane — stretched by the slope in each direction. A steep slope amplifies error; a flat slope suppresses it.

Two rules of thumb fall out immediately:

  • For sums and differences, absolute errors add (in quadrature). Subtracting two nearly-equal numbers is dangerous: the absolute error stays fixed while the result shrinks, so the relative error explodes — this is catastrophic cancellation.
  • For products and quotients, relative errors add (in quadrature). Multiplying by an exact constant scales both value and error equally, leaving relative error unchanged.

Error propagation through a function: input uncertainty maps to output uncertainty via the local slope

x q=f(x) σ_x σ_q slope = f '(x) σ_q ≈ |f '(x)| σ_x

Worked Examples

Propagating Error Through a Product

Given. The area of a rectangle from cm and cm. Find and its uncertainty. Step 1 — Central value. . Step 2 — Partial derivatives. , . Step 3 — Apply [4].
Step 4 — Check via relative errors. , ; in quadrature , times gives . ✓

Catastrophic Cancellation in Floating Point

Given. Compute at in double precision ( digits). True value . Step 1 — Naive evaluation. . Stored to 16 digits, , but the leading 9 significant digits of are lost in the subtraction — only digits survive. Step 2 — Divide. , but with corrupted trailing digits; relative error instead of . Step 3 — Stable reformulation. Use the identity :
No subtraction of near-equal numbers; full precision retained.

Common Misconceptions

Errors Add Linearly — They Usually Don't

A frequent mistake is to add uncertainties directly: . This is the worst-case bound, correct only for fully correlated errors. For independent random errors, uncertainties combine in quadrature (sum of squares), per [4], which is smaller. Using linear addition overestimates uncertainty; using quadrature when errors are correlated underestimates it.

More Digits ≠ More Accuracy

Reporting when the uncertainty is is dishonest: the trailing digits are noise. Significant figures must match the uncertainty. A computed quantity is only as accurate as its least accurate input (for products, the largest relative error dominates).

A Stable-Looking Algorithm That Is Unstable

Consider computing the variance of data via the "one-pass" formula . Mathematically exact, but if the data are large and clustered (e.g., with spread ), then and are huge and nearly equal — their difference suffers catastrophic cancellation and can even come out negative. The mathematically identical two-pass formula is numerically stable. Same problem, same answer in exact arithmetic, vastly different floating-point behavior.

Connections

Error analysis is the meeting point of several fields. The random-error strand is pure Probability Theory and Statistics: error propagation is just the variance of a function of random variables, and the Central Limit Theorem explains the ubiquity of the normal error law. The numerical strand connects to Floating-Point Arithmetic, Numerical Linear Algebra, and the theory of Condition Number and Numerical Stability. The optimization of estimators under error links to Least Squares and Maximum Likelihood Estimation. The Taylor-expansion core ties directly to Taylor's Theorem and Differential Calculus.

Real-World Applications

  1. Particle physics (CERN/LHC). Discovery thresholds are stated as "5σ" — error analysis quantifies the probability that a signal is a statistical fluctuation; the Higgs boson announcement (2012) hinged on rigorous combination of systematic and statistical uncertainties.
  2. Metrology (NIST, BIPM). The Guide to the Expression of Uncertainty in Measurement (GUM) standardizes propagation of uncertainty for all calibrated instruments worldwide.
  3. Numerical weather prediction. Ensemble forecasting perturbs initial conditions within their uncertainty to estimate forecast error growth in chaotic systems.
  4. Engineering tolerance stacking. Mechanical assemblies sum component tolerances in quadrature (per [4]) to predict whether parts will fit.
  5. GPS positioning. Position error is propagated from clock, ephemeris, and atmospheric-delay uncertainties; the "dilution of precision" is a condition-number-like amplification factor.
  6. Finite-element simulation. A posteriori error estimators bound the discretization error of PDE solutions and drive adaptive mesh refinement.
  7. Analytical chemistry. Concentration results from spectrophotometry carry propagated uncertainties from absorbance, path length, and calibration-curve fit.

Historical Development

  • 1632 — Galileo discusses observational errors in Dialogo, noting they cluster symmetrically about the true value and that small errors are more probable than large ones.
  • 1755 — Thomas Simpson formally analyzes the arithmetic mean, showing averaging reduces error — an early statistical argument.
  • 1805 — Adrien-Marie Legendre publishes the method of least squares in an appendix on comet orbits.
  • 1809 — Gauss publishes Theoria Motus, deriving the normal distribution as the error law and justifying least squares; sparks a priority dispute with Legendre.
  • 1810–1812 — Laplace proves the central limit theorem, explaining why summed errors tend to normality.
  • 1900s–1920s — Development of statistical error theory by Pearson, Student (Gosset), and Fisher; the t-distribution handles small-sample uncertainty.
  • 1947 — von Neumann and Goldstine give the first rigorous rounding-error analysis of matrix inversion.
  • 1961–1965 — James H. Wilkinson founds modern backward error analysis; his Rounding Errors in Algebraic Processes (1963) and The Algebraic Eigenvalue Problem (1965) become canonical.
  • 1993 — Publication of the international GUM (Guide to Uncertainty in Measurement), standardizing experimental error reporting globally.

Subtleties & Limits

The linear propagation formula [4] is only first-order: it fails when is strongly nonlinear over the scale of the uncertainties, or when partial derivatives vanish (e.g., near an extremum, where second-order terms dominate). Quantifying error for such cases requires higher Taylor terms, full distributional propagation, or Monte Carlo methods. Deeper open questions persist:

  • Tight average-case stability bounds. Worst-case backward-error bounds (e.g., for Gaussian elimination with partial pivoting) are often pessimistic by orders of magnitude; explaining the typical observed accuracy remains an active research area in random-matrix-based analysis.
  • Systematic error. There is no general theory for unknown systematic errors — they cannot be reduced by repetition and are fundamentally limited by understanding of the apparatus; their treatment is partly an art.
  • Interval and probabilistic arithmetic seek rigorous guaranteed enclosures, but interval methods often overestimate error severely (the "dependency problem"), and reconciling rigor with tightness is unsolved in general.

See Also

Numerical Stability · Condition Number · Floating-Point Arithmetic · Least Squares · Central Limit Theorem · Taylor's Theorem · Monte Carlo Methods · Backward Error Analysis · Probability Theory

Before this

Where this leads