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 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
Let be a true value and an approximation. The absolute error is
Derivation hint: This is definitional — the signed or unsigned difference between approximation and truth. The relative error (for ) is
Derivation hint: 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 .
A measurement model decomposes the observed value as
Derivation hint: 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.
Let be a function of measured quantities with independent random errors of standard deviations . Then to first order the standard deviation of is
Derivation hint: 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:
Derivation hint: The variance of a sum includes covariance terms ; independence sets these to zero, recovering [4].
Why It Holds / Derivation
Step 1 — Linearize. Expand about the true point , writing for small deviations:
Derivation hint: 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.
Derivation hint: 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].
∎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.
Worked Examples
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 . ✓
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
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.
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).
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
Historical Development
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