More

# Propagation of Error

Propagation of Error (or Propagation of Uncertainty) is defined as the effects on a function by a variable's uncertainty. It is a calculus derived statistical calculation designed to combine uncertainties from multiple variables, in order to provide an accurate measurement of uncertainty.

### Introduction

Every measurement has an air of uncertainty about it, and not all uncertainties are equal.  Therefore, the ability to properly combine uncertainties from different measurements is crucial.  Uncertainty in measurement comes about in a variety of ways: instrument variability, different observers, sample differences, time of day, etc.  Typically, error is given by the standard deviation ($$\sigma_x$$) of a measurement.

Anytime a calculation requires more than one variable to solve, propagation of error is necessary to properly determine the uncertainty.  For example, lets say we are using a UV-Vis Spectrophotometer to determine the molar absorptivity of a molecule via Beer's Law: A = ε l c. Since at least two of the variables have an uncertainty based on the equipment used, a propagation of error formula must be applied to measure a more exact uncertainty of the molar absorptivity.  This example will be continued below, after the derivation (see Example Calculation).

### Derivation of Exact Formula

Suppose a certain experiment requires multiple instruments to carry out.  These instruments each have different variability in their measurements.  The results of each instrument are given as: a, b, c, d... (For simplification purposes, only the variables a, b, and c will be used throughout this derivation). The end result desired is x, so that x is dependent on a, b, and c.  It can be written that x is a function of these variables:

$$x=f(a,b,c)$$    (1)

Because each measurement has an uncertainty about its mean, it can be written that the uncertainty of dxi of the ith measurement of x depends on the uncertainty of the ith measurements of a, b, and c:

$$dx_i=f(da_i,db_i,dc_i)$$    (2)

The total deviation of x is then derived from the partial derivative of x with respect to each of the variables:

$$dx=\left(\frac{\delta{x}}{\delta{a}}\right)_{b,c}da$$,$$\left(\frac{\delta{x}}{\delta{b}}\right)_{a,c}db$$,$$\left(\frac{\delta{x}}{\delta{c}}\right)_{a,b}dc$$    (3)

A relationship between the standard deviations of x and a, b, c, etc... is formed in two steps: i) by squaring Equation 3, and ii) taking the total sum from i = 1 to i = N, where N is the total number of measurements.

In the first step - squaring - two unique terms appear on the right hand side of the equation: square terms and cross terms.

Square Terms: $$(\frac{\delta{x}}{\delta{a}})^2(da)^2$$,$$(\frac{\delta{x}}{\delta{b}})^2(db)^2$$,$$(\frac{\delta{x}}{\delta{c}})^2(dc)^2$$     (4)

Cross Terms: $$\left(\frac{\delta{x}}{da}\right)\left(\frac{\delta{x}}{db}\right)da\;db$$,$$\left(\frac{\delta{x}}{da}\right)\left(\frac{\delta{x}}{dc}\right)da\;dc$$,$$\left(\frac{\delta{x}}{db}\right)\left(\frac{\delta{x}}{dc}\right)db\;dc$$    (5)

Square terms, due to the nature of squaring, are always positive, and therefore never cancel each other out.  By contrast, cross terms may cancel each other out, due to the possibility that each term may be positive or negative.  If da, db, and dc represent random and independent uncertainties, about half of the cross terms will be negative and half positive (this is primarily due to the fact that the variables represent uncertainty about a mean).  In effect, the sum of the cross terms should approach zero, especially as N increases.  However, if the variables are correlated rather than independent, the cross term may not cancel out.

Assuming the cross terms do cancel out, then the second step - summing from i = 1 to i = N - would be:

$$\sum{(dx_i)^2}=\left(\frac{\delta{x}}{\delta{a}}\right)^2\sum(da_i)^2 + \left(\frac{\delta{x}}{\delta{b}}\right)^2\sum(db_i)^2$$    (6)

Dividing both sides by N - 1:

$$\frac{\sum{(dx_i)^2}}{N-1}=\left(\frac{\delta{x}}{\delta{a}}\right)^2\frac{\sum(da_i)^2}{N-1} + \left(\frac{\delta{x}}{\delta{b}}\right)^2\frac{\sum(db_i)^2}{N-1}$$    (7)

The previous step created a situation where Equation 7 could mimic the standard deviation equation. This is desired, because it creates a statistical relationship between the variable x, and the other variables a, b, c, etc... as follows:

The standard deviation equation can be rewritten as the variance ($$\sigma_x^2$$) of x:

$$\frac{\sum{(dx_i)^2}}{N-1}=\frac{\sum{(x_i-\bar{x})^2}}{N-1}=\sigma^2_x$$    (8)

Rewriting Equation 7 using the statistical relationship created yields the Exact Formula for Propagation of Error:

$$\sigma^2_x=\left(\frac{\delta{x}}{\delta{a}}\right)^2\sigma^2_a+\left(\frac{\delta{x}}{\delta{b}}\right)^2\sigma^2_b+\left(\frac{\delta{x}}{\delta{c}}\right)^2\sigma^2_c$$    (9)

Thus, the end result is achieved.  Equation 9 shows a direct statistical relationship between multiple variables and their standard deviations.  In the next section, derivations for common calculations are given, with an example of how the derivation was obtained.

### Arithmetic Error Propagation

Table I - Arithmetic Calculations of Error Propagation

 Type1 Example Standard Deviation ($$\sigma_x$$) Addition or Subtraction x = a + b - c $$\sigma_x= \sqrt{ {\sigma_a}^2+{\sigma_b}^2+{\sigma_c}^2}$$     (10) Multiplication or Division x = a x b/c $$\frac{\sigma_x}{x}=\sqrt{\left(\fracEOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[1], line 1, column 1 (click for details)MindTouch.Deki.Script.Compiler.DekiScriptParserException: EOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[1], line 1, column 1 at MindTouch.Deki.Script.Compiler.Errors.SynErr (System.String origin, Int32 line, Int32 col, Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.SynErr (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Expect (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Parse () [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (Location location, System.IO.Stream source) [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (System.Xml.XmlElement current, System.Collections.Generic.List1 list) [0x00000] {a}\right)^2+\left(\fracEOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[2], line 1, column 1 (click for details)MindTouch.Deki.Script.Compiler.DekiScriptParserException: EOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[2], line 1, column 1 at MindTouch.Deki.Script.Compiler.Errors.SynErr (System.String origin, Int32 line, Int32 col, Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.SynErr (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Expect (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Parse () [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (Location location, System.IO.Stream source) [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (System.Xml.XmlElement current, System.Collections.Generic.List1 list) [0x00000] {b}\right)^2+\left(\fracEOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[3], line 1, column 1 (click for details)MindTouch.Deki.Script.Compiler.DekiScriptParserException: EOF expected: /content/body/div[3]/table/tbody/tr[3]/td[3]/p/span[3], line 1, column 1 at MindTouch.Deki.Script.Compiler.Errors.SynErr (System.String origin, Int32 line, Int32 col, Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.SynErr (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Expect (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Parse () [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (Location location, System.IO.Stream source) [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (System.Xml.XmlElement current, System.Collections.Generic.List1 list) [0x00000] {c}\right)^2}$$ Exponential x = ay $$\frac{\sigma_x}{x}=y(\frac{\sigma_a}{a})$$     (12) Logarithmic x = log(a) $$\sigma_x=0.434({\frac{\sigma_a}{a}})$$     (13) Anti-logarithmic x = antilog(a) $$\frac{\sigma_x}{x}=2.303(EOF expected: /content/body/div[3]/table/tbody/tr[6]/td[3]/p/span, line 1, column 1 (click for details)MindTouch.Deki.Script.Compiler.DekiScriptParserException: EOF expected: /content/body/div[3]/table/tbody/tr[6]/td[3]/p/span, line 1, column 1 at MindTouch.Deki.Script.Compiler.Errors.SynErr (System.String origin, Int32 line, Int32 col, Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.SynErr (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Expect (Int32 n) [0x00000] at MindTouch.Deki.Script.Compiler.Parser.Parse () [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (Location location, System.IO.Stream source) [0x00000] at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (System.Xml.XmlElement current, System.Collections.Generic.List1 list) [0x00000] )$$     (14)

Where a, b, and c are measured variables from an experiment; and $$\sigma_a$$, $$\sigma_b$$, and $$\sigma_c$$ are the standard deviations of those variables.

Note that addition, subtraction, and logarithmic equations leads to an absolute standard deviation, while multiplication, division, exponential, and anti-logarithmic equations lead to relative standard deviations.

#### Derivation of Arithmetic Example

Equation 9, the Exact Formula for Propagation of Error, can be used to derive the arithmetic examples noted in Table I.  Starting with a simple equation:

x = a x b/c        (15)

where x is the desired results with a given standard deviation, and a, b, and c are experimental variables, each with a difference standard deviation.

Taking the partial derivative of each experimental variable, a, b, and c:

$$\left(\frac{\delta{x}}{\delta{a}}\right)=\frac{b}{c}$$, $$\left(\frac{\delta{x}}{\delta{b}}\right)=\frac{a}{c}$$, $$\left(\frac{\delta{x}}{\delta{a}}\right)=-\frac{ab}{c^2}$$        (16)

Plugging these partial derivatives into Equation 9 gives:

$$\sigma^2_x=\left(\frac{b}{c}\right)^2\sigma^2_a+\left(\frac{a}{c}\right)^2\sigma^2_b+\left(-\frac{ab}{c^2}\right)^2\sigma^2_c$$         (17)

Dividing Equation 17 by Equation 15 squared yields:

$$\frac{\sigma^2_x}{x^2}=\frac{\left(\frac{b}{c}\right)^2\sigma^2_a}{\left(\frac{ab}{c}\right)^2}+\frac{\left(\frac{a}{c}\right)^2\sigma^2_b}{\left(\frac{ab}{c}\right)^2}+\frac{\left(-\frac{ab}{c^2}\right)^2\sigma^2_c}{\left(\frac{ab}{c}\right)^2}$$    (18)

Canceling out terms and square-rooting both sides yields Equation 11 from Table I:

$$\frac{\sigma_x}{x}={\sqrt{\left(\frac EOF expected: /content/body/div[3]/div/p[11]/span[1], line 1, column 1 (click for details) {a}\right)^2+\left(\frac EOF expected: /content/body/div[3]/div/p[11]/span[2], line 1, column 1 (click for details) {b}\right)^2+\left(\frac EOF expected: /content/body/div[3]/div/p[11]/span[3], line 1, column 1 (click for details) {c}\right)^2}}$$      (11)

 Example

Continuing the example from the introduction (where we are calculating the molar absorptivity of a molecule), suppose we have a concentration of 13.7(±0.3) moles/L, a path length of 1.0(±0.1) cm, and an absorption of 0.172807(±0.000008). The equation for molar absorptivity is  ε = A/(lc)

Since Beer's Law deals with multiplication/division, we'll use Equation 11:

$$\frac{\sigma_{\epsilon}}{\epsilon}={\sqrt{\left(\frac8E-06{0.172807}\right)^2+\left(\frac0.1{1.0}\right)^2+\left(\frac0.3{13.7}\right)^2}}$$

$$\frac{\sigma_{\epsilon}}{\epsilon}=0.10237$$

As stated in the note above, Equation 11 yields a relative standard deviation, or a percentage of the ε variable.  Using Beer's Law, ε = 0.012614 L moles-1 cm-1 Therefore, the $$\sigma_{\epsilon}$$ for this example would be 10.237% of ε, which is 0.001291.

Accounting for significant figures, the final answer would be:

ε = 0.013 ± 0.001 L moles-1 cm-1

 Example

If you are given an equation that relates two different variables and given the relative uncertainties of one of the variables, it is possible to determine the relative uncertainty of the other variable by using calculus. In problems, the uncertainty is usually given as a percent. Let's say we measure the radius of a very small object. The problem might state that there is a 5% uncertainty when measuring this radius.

To actually use this percentage to calculate unknown uncertainties of other variables, we must first define what uncertainty is. Uncertainty, in calculus, is defined as:

(dx/x)=(∆x/x) = uncertainty

 Example

Let's look at the example of the radius of an object again. If we know the uncertainty of the radius to be 5%, the uncertainty is defined as (dx/x)=(∆x/x)= 5% = 0.05.

Now we are ready to use calculus to obtain an unknown uncertainty of another variable. Let's say we measure the radius of an artery and find that the uncertainty is 5%. What is the uncertainty of the measurement of the volume of blood pass through the artery? Le's say the equation relating radius and volume is:

V(r) = c(r^2)

Where c is a constant, r is the radius and V(r) is the volume.

The first step to finding the uncertainty of the volume is to understand our given information. Since we are given the radius has a 5% uncertainty, we know that (∆r/r) = 0.05. We are looking for (∆V/V).

Now that we have done this, the next step is to take the derivative of this equation to obtain:

(dV/dr) = (∆V/∆r)= 2cr

We can now multiply both sides of the equation to obtain:

∆V = 2cr(∆r)

Since we are looking for (∆V/V), we divide both sides by V to get:

(∆V/V) = [2cr(∆r)] / V

We are given the equatin of the volume to be V = c(r)^2, so we can plug this back into our previous equation for V to get:

(∆V/V) = [2cr(∆r)] / [c(r)^2]

Now we can cancel variables that are in both the numerator and denominator to get:

(∆V/V) = (2∆r)/r = 2 (∆r/r)

We have now narrowed down the equation so that ∆r/r is left. We know the value of uncertainty for ∆r/r to be 5%, or 0.05. Plugging this value in for ∆r/r we get:

(∆V/V) = 2 (0.05) = 0.1 = 10%

The uncertainty of the volume is 10%

This method can be used in chemistry as well, not just the biological example shown above.

### Caveats and Warnings

• Error propagation assumes that the relative uncertainty in each quantity is small.3
• Error propagation is not advised if the uncertainty can be measured directly (as variation among repeated experiments).
• Uncertainty never decreases with calculations, only with better measurements.

### Disadvantages of Propagation of Error Approach

In an ideal case, the propagation of error estimate above will not differ from the estimate made directly from the measurements. However, in complicated scenarios, they may differ because of:

• unsuspected covariances
• errors in which reported value of a measurement is altered, rather than the measurements themselves (usually a result of mis-specification of the model)
• mistakes in propagating the error through the defining formulas (calculation error)

### Treatment of Covariance Terms

Covariance terms can be difficult to estimate if measurements are not made in pairs. Sometimes, these terms are omitted from the formula. Guidance on when this is acceptable practice is given below:

1. If the measurements of a and b are independent, the associated covariance term is zero.
2. Generally, reported values of test items from calibration designs have non-zero covariances that must be taken into account if b is a summation such as the mass of two weights, or the length of two gage blocks end-to-end, etc.
3. Practically speaking, covariance terms should be included in the computation only if they have been estimated from sufficient data. See Ku (1966) for guidance on what constitutes sufficient data2.

### Sensitivity coefficients

The partial derivatives are the sensitivity coefficients for the associated components.

#### Specific formulas

Formulas for specific functions can be found in the following sections:

### References

1. Skoog, D., Holler, J., Crouch, S. Principles of Instrumental Analysis; 6th Ed., Thomson Brooks/Cole: Belmont, 2007.
2. Harry Ku (1966). Notes on the Use of Propagation of Error Formulas, J Research of National Bureau of Standards-C. Engineering and Instrumentation, Vol. 70C, No.4, pp. 263-273.
3. Young, V. Propagation of Error http://webche.ent.ohiou.edu/che408/S...lculations.ppt (accessed Nov 20, 2009).
4. Claudia Neuhauser. Calculus for Biology and Medicine; 3rd Ed. Pearson: Boston, 2011,2004,2000.