Propagation of uncertainty

From Wikipedia, the free encyclopedia

In statistics, propagation of uncertainty (or propagation of error) is the effect of variables' uncertainties (or errors) on the uncertainty of a function based on them. When the variables are the values of experimental measurements they have uncertainties due to measurement limitations (e.g. instrument precision) which propagate to the the combination of variables in the function.

The uncertainty is usually defined by the absolute error. Uncertainties can also be defined by the relative error Δx/x, which is usually written as a percentage.

Most commonly the error on a quantity, Δx, is given as the standard deviation, σ, . Standard deviation is the positive square root of variance, σ2. The value of a quantity and its error are often expressed as x\pm \Delta x. If the statistical probability distribution of the variable is known or can be assumed, 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 variable belonging to a normal distribution are ± one standard deviation from the value, that is, there is a 68% probability that the true value lies in the region x \pm \sigma.

If the variables are correlated, then covariance must be taken into account.

Contents

[edit] 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 A1k,A2k,...,Ank,(k = 1 − m).

f_k=\sum_i^n A_{ik} x_i: \mathbf {f=A^Tx}\,

and let the variance-covariance matrix on x be denoted by \mathbf {M^x}\,.


{\mathbf{M^x}} = 
\begin{pmatrix}
   \sigma^2_1 & COV_{12} & COV_{13} & ... \\ 
   COV_{12} & \sigma^2_2 & COV_{23} & ...\\ 
   COV_{13} & COV_{23} & \sigma^2_3 & ... \\
...& & &\\
\end{pmatrix}

Then, the variance-covariance matrix \mathbf M^f\,, of f is given by

M^f_{ij}= \sum_k^n \sum_l^n A_{ik} M^x_{kl} A_{lj}: \mathbf{ M^f=A^T M^x A}

This is the most general expression for the propagation of error from one set of variables onto another. When the errors on x are un-correlated the general expression simplifies to

M^f_{ij}= \sum_k^n  A_{ik} \left(\sigma^2_k \right)^x A_{kj}

Note that even though the errors on x may be un-correlated, their errors on f are always correlated. The general expressions for a single function, f, are a little simpler.

f=\sum_i^n a_i x_i: f=\mathbf {a^Tx}\,
\sigma^2_f= \sum_i^n \sum_j^n a_i M^x_{ij} a_j= \mathbf{a^T M^x a}

Each covariance term, Mij can be expressed in terms of the correlation coefficient \rho_{ij}\, by M_{ij}=\rho_{ij}\sigma_i\sigma_j\,, so that an alternative expression for the variance of f is

\sigma^2_f= \sum_i^n a_i^2\sigma^2_i+\sum_i^n \sum_{j (j \ne i)}^n a_i a_j\rho_{ij} \sigma_i\sigma_j

In the case that the variables x are uncorrelated this simplifies further to

\sigma^2_f= \sum_i^n a_i^2\sigma^2_i

[edit] Non-linear combinations

See also: Taylor expansions for the moments of functions of random variables

When f is a set of non-linear combination of the variables x, it must usually be linearlized by approximation to a first-order Maclaurin series expansion, though in some cases, exact formulas can be derived that do not depend on the expansion [1].

f_k \approx f^0_k+  \sum_i^n \frac{\partial f_k}{\partial {x_i}} x_i

where \frac{\partial f_k}{\partial x_i} denotes the partial derivative of fk with respect to the i-th variable. Since f0k is a constant it does not contribute to the error on f. Therefore, the propagation of error follows the linear case, above, but replacing the linear coefficients, Aik and Ajk by the partial derivatives, \frac{\partial f_k}{\partial x_i} and \frac{\partial f_k}{\partial x_j}.

[edit] Example

Any non-linear function, f(a,b), of two variables, a and b, can be expanded as

f\approx f^0+\frac{\partial f}{\partial a}a+\frac{\partial f}{\partial b}b

Whence

\sigma^2_f=\left(\frac{\partial f}{\partial a}\right)^2\sigma^2_a+\left(\frac{\partial f}{\partial b}\right)^2\sigma^2_b+2\frac{\partial f}{\partial a}\frac{\partial f}{\partial b}COV_{ab}

In the particular case that f=ab\!, \frac{\partial f}{\partial a}=b, \frac{\partial f}{\partial b}=a. Then

\sigma^2_f=b^2\sigma^2_a+a^2 \sigma_b^2+2abCOV_{ab}

or

\left(\frac{\sigma_f}{f}\right)^2=\left(\frac{\sigma_a}{a}\right)^2+\left(\frac{\sigma_b}{b}\right)^2+2\left(\frac{\sigma_a}{a}\right)\left(\frac{\sigma_b}{b}\right)\rho_{ab}

[edit] Caveats and warnings

Error estimates for non-linear functions are biased on account of using a truncated series expansion. The extent of this bias depends on the nature of the function. For example, the bias on the error calculated for log x increases as x increases since the expansion to 1+x is a good approximation only when x is small.

In data-fitting applications it is often possible to assume that measurements errors are uncorrelated. Nevertheless, parameters derived from these measurements, such as least-squares parameters, will be correlated. For example, in linear regression, the errors on slope and intercept will be correlated and this correlation should be taken into account when deriving the error on a calculated value.

y=mz+c: \sigma^2_y=z^2\sigma^2_m+\sigma^2_c+2z\rho \sigma_m\sigma_c

In the special case of the inverse 1 / B where B = N(0,1), the distribution is a Cauchy distribution and there is no definable variance. For such ratio distributions, there can be defined probabilities for intervals which can be defined either by Monte Carlo simulation, or, in some cases, by using the Geary-Hinkley transformation [2].

[edit] Example formulas

This table shows the variances of simple functions of the real variables A,B\, with standard deviations \sigma_A, \sigma_B\,, and precisely-known real-valued constants a,b\,.

Function
f = aA\, \sigma_f^2 = a^2 \sigma_A^2\,
f = aA \pm bB \sigma_f^2 = a^2\sigma_A^2 +b^2 \sigma_B^2\pm2abCOV_{AB}\,
f = aAB\, \left(\frac{\sigma_f}{f}\right)^2 = \left(\frac{\sigma_A}{A}\right)^2 + \left(\frac{\sigma_B}{B}\right)^2+2 \frac{\sigma_a}{A} \frac{\sigma_b}{B} \rho_{AB}
f = a\frac{A}{B} \left(\frac{\sigma_f}{f}\right)^2 = \left(\frac{\sigma_A}{A}\right)^2 + \left(\frac{\sigma_B}{B}\right)^2-2 \frac{\sigma_a}{A} \frac{\sigma_b}{B} \rho_{AB}
f = aA^{\pm b} \, \frac{\sigma_f}{f} = b \frac{\sigma_A}{A}
f = a \ln(\pm bA) \, \sigma_f = a \frac{\sigma_A}{A}
f = a e^{\pm bA} \, \frac{\sigma_f}{f} =b\sigma_A
f = a^{\pm bA} \, \frac{\sigma_f}{f} =b \ln a \sigma_A

For uncorrelated variables the covariance terms are zero. Expressions for more complicated functions can be derived by combining simpler functions. For example, repeated multiplication, assuming no correlation gives,

f = AB(C): \left(\frac{\sigma_f}{f}\right)^2 = \left(\frac{\sigma_A}{A}\right)^2 + \left(\frac{\sigma_B}{B}\right)^2+ \left(\frac{\sigma_C}{C}\right)^2

[edit] Partial derivatives

Given X=f(A, B, C, \cdots)

Absolute Error Variance
\Delta X=\left |\frac{\partial f}{\partial A}\right |\cdot \Delta A+\left |\frac{\partial f}{\partial B}\right |\cdot \Delta B+\left |\frac{\partial f}{\partial C}\right |\cdot \Delta C+\cdots \sigma_X^2=\left (\frac{\partial f}{\partial A}\sigma_A\right )^2+\left (\frac{\partial f}{\partial B}\sigma_B\right )^2+\left (\frac{\partial f}{\partial C}\sigma_C\right )^2+\cdots[3]

[edit] Example calculation: Inverse tangent function

We can calculate the uncertainty propagation for the inverse tangent function as an example of using partial derivatives to propagate error.

Define

f(θ) = arctanθ,

where σθ is the absolute uncertainty on our measurement of θ.

The partial derivative of f(θ) with respect to θ is

\frac{\partial f}{\partial \theta} = \frac{1}{1+\theta^2}.

Therefore, our propagated uncertainty is

\sigma_{f} = \frac{\sigma_{\theta}}{1+\theta^2},

where σf is the absolute propagated uncertainty.

[edit] Example application: Resistance measurement

A practical application is an experiment in which one measures current, I, and voltage, V, on a resistor in order to determine the resistance, R, using Ohm's law, R = V / I.

Given the measured variables with uncertainties, I±ΔI and V±ΔV, the uncertainty in the computed quantity, ΔR is

\Delta R = \left( \left(\frac{\Delta V}{I}\right)^2+\left(\frac{V}{I^2}\Delta I\right)^2\right)^{1/2} = R\sqrt{\left(\frac{\Delta V}{V}\right)^2+\left(\frac{\Delta I}{I}\right)^2}.

Thus, in this simple case, the relative error ΔR/R is simply the square root of the sum of the squares of the two relative errors of the measured variables.

[edit] Notes

  1. ^ Leo Goodman (1960). "On the Exact Variance of Products". Journal of the American Statistical Association 55 (292): 708-713. 
  2. ^ Jack Hayya, Donald Armstrong and Nicolas Gressis (July 1975). "A Note on the Ratio of Two Normally Distributed Variables". Management Science 21 (11): 1338-1341. 
  3. ^ [Lindberg] (2000-07-01). Uncertainties and Error Propagation (eng). Uncertainties, Graphing, and the Vernier Caliper 1. Rochester Institute of Technology. Archived from the original on 2004-11-12. Retrieved on 2007-04-20. “The guiding principle in all cases is to consider the most pessimistic situation.”

[edit] External links

[edit] See also