Lably
Skip to content

Propagation of uncertainty

Effect of variables' uncertainties on the uncertainty of a function based on them

  • 7 min read
  • 4 chapters

Related on Lably

Through Statistics, Variable (mathematics) and Uncertainty

The uncertainty u can be expressed in a number of ways. It may be defined by the absolute error Δx. Uncertainties can also be defined by the relative error (Δx)/x, which is usually written as a percentage. Most commonly, the uncertainty on a quantity is quantified in terms of the standard deviation, σ, which is the positive square root of the variance. The value of a quantity and its error are then expressed as an interval x ± u. However, the most general way of characterizing uncertainty is by specifying its probability distribution. If the probability distribution of the variable is known or can be assumed, in theory it is possible to get any of its statistics. In particular, it is possible to derive confidence limits to describe the region within which the true value of the variable may be found. For example, the 68% confidence limits for a one-dimensional variable belonging to a normal distribution are approximately ± one standard deviation σ from the central value x, which means that the region x ± σ will cover the true value in roughly 68% of cases.

If the uncertainties are correlated then covariance must be taken into account. Correlation can arise from two different sources. First, the measurement errors may be correlated. Second, when the underlying values are correlated across a population, the uncertainties in the group averages will be correlated.

In a general context where a nonlinear function modifies the uncertain parameters (correlated or not), the standard tools to propagate uncertainty, and infer resulting quantity probability distribution/statistics, are sampling techniques from the Monte Carlo method family. For very large datasets or complex functions, the calculation of the error propagation may be very expensive so that a surrogate model or a parallel computing strategy may be necessary.

In some particular cases, the uncertainty propagation calculation can be done through simplistic algebraic procedures. Some of these scenarios are described below.

Linear combinations

Let {fk(x1,x2,…,xn)} be a set of m functions, which are linear combinations of n variables x1,x2,…,xn with combination coefficients Ak1,Ak2,…,Akn,(k=1,…,m): fk=∑i=1nAkixi, or in matrix notation, f=Ax.

Also let the variance–covariance matrix of x = (x1, ..., xn) be denoted by Σx and let the mean value be denoted by μ: Σx=E⁡[(x−μ)⊗(x−μ)]=(σ12σ12σ13⋯σ21σ22σ23⋯σ31σ32σ32⋯⋮⋮⋮⋱)=(Σ11xΣ12xΣ13x⋯Σ21xΣ22xΣ23x⋯Σ31xΣ32xΣ33x⋯⋮⋮⋮⋱). ⊗ is the outer product.

Then, the variance–covariance matrix Σf of f is given by Σf=E⁡[(f−E⁡[f])⊗(f−E⁡[f])]=E⁡[A(x−μ)⊗A(x−μ)]=AE⁡[(x−μ)⊗(x−μ)]AT=AΣxAT.

In component notation, the equation Σf=AΣxAT reads Σijf=∑kn∑lnAikΣklxAjl.

This is the most general expression for the propagation of error from one set of variables onto another. When the errors on x are uncorrelated, the general expression simplifies to Σijf=∑knAikΣkxAjk, where Σkx=σxk2 is the variance of k-th element of the x vector. Note that even though the errors on x may be uncorrelated, the errors on f are in general correlated; in other words, even if Σx is a diagonal matrix, Σf is in general a full matrix.

The general expressions for a scalar-valued function f are a little simpler (here a is a row vector): f=∑inaixi=ax, σf2=∑in∑jnaiΣijxaj=aΣxaT.

Each covariance term σij can be expressed in terms of the correlation coefficient ρij by σij=ρijσiσj, so that an alternative expression for the variance of f is σf2=∑inai2σi2+∑in∑j(j≠i)naiajρijσiσj.

In the case that the variables in x are uncorrelated, this simplifies further to σf2=∑inai2σi2.

In the simple case of identical coefficients and variances, we find σf=n|a|σ.

For the arithmetic mean, a=1/n, the result is the standard error of the mean: σf=σn.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics