Tutorials › Calculus III › Propagating Measurement Uncertainty

Differentiability and Linearization · Tutorial 339 of 999

Propagating Measurement Uncertainty

Use partial derivatives and input-error bounds to estimate the largest first-order change in a computed quantity.

Intermediate 10 min read

What You'll Learn

  • Represent bounded measurement errors as maximum absolute deviations from measured input values
  • Calculate each input’s first-order contribution using the corresponding partial derivative
  • Combine contributions with absolute values to estimate worst-case first-order output uncertainty
  • Interpret units and signs in a total-differential uncertainty calculation
  • Distinguish a first-order estimate from a guaranteed bound on the actual error

Why Measurement Errors Propagate

A computed quantity often depends on several measured inputs. For instance, an area depends on measured lengths, and a density depends on measured mass and volume. Since each measurement may differ from its true value, the output may differ from the value computed using the recorded measurements.

The total differential gives a local, first-order way to estimate this effect. When input errors are bounded, the absolute contributions from the individual inputs combine to estimate the largest first-order output change. The absolute values matter: if the errors can vary independently, their effects might reinforce rather than cancel.

Measurement Errors and the Total Differential

Suppose a quantity is modeled by a differentiable function \(f:\mathbb{R}^n\to\mathbb{R}\). Let \(\mathbf{a}=(a_1,\ldots,a_n)\) be the recorded input values, and let the actual inputs be \(a_i+\Delta x_i\). Assume the measurement errors satisfy \(|\Delta x_i|\leq\varepsilon_i\), where each \(\varepsilon_i\geq 0\) is a stated error bound. The recorded output is \(f(\mathbf{a})\); the actual modeled output is \(f(\mathbf{a}+\Delta\mathbf{x})\).

Definition: The total differential of \(f\) at \(\mathbf{a}\), applied to the input increments \(\Delta x_1,\ldots,\Delta x_n\), is \(df=\sum_{i=1}^n \frac{\partial f}{\partial x_i}(\mathbf{a})\,\Delta x_i\). For small input errors, \(df\) approximates the output change \(\Delta f=f(\mathbf{a}+\Delta\mathbf{x})-f(\mathbf{a})\).

Using the given error bounds, the absolute contribution from input \(x_i\) is estimated by \(\left|\frac{\partial f}{\partial x_i}(\mathbf{a})\right|\varepsilon_i\). Adding these contributions gives the standard first-order estimate of the largest output uncertainty:

$$ |\Delta f|\ \approx\ \sum_{i=1}^n \left|\frac{\partial f}{\partial x_i}(\mathbf{a})\right|\varepsilon_i. $$

Each partial derivative is evaluated at the recorded inputs. Its absolute value measures the local sensitivity of the output to that input, while \(\varepsilon_i\) measures the size of the allowed input error. Their product has the units of the output.

Why the Absolute Contributions Add

Differentiability at \(\mathbf{a}\) means the output change can be written as a linear part plus a remainder that becomes negligible compared with the size of the input change as that change approaches zero. In precise terms, with the Euclidean norm \(\|\cdot\|\), there is a remainder \(r(\Delta\mathbf{x})\) such that

$$ \Delta f = \sum_{i=1}^n \frac{\partial f}{\partial x_i}(\mathbf{a})\,\Delta x_i +r(\Delta\mathbf{x}), \qquad \lim_{\Delta\mathbf{x}\to\mathbf{0}} \frac{r(\Delta\mathbf{x})}{\|\Delta\mathbf{x}\|}=0. $$

For the linear part, the triangle inequality and the error bounds give

$$ \left| \sum_{i=1}^n \frac{\partial f}{\partial x_i}(\mathbf{a})\,\Delta x_i \right| \leq \sum_{i=1}^n \left|\frac{\partial f}{\partial x_i}(\mathbf{a})\right| |\Delta x_i| \leq \sum_{i=1}^n \left|\frac{\partial f}{\partial x_i}(\mathbf{a})\right|\varepsilon_i. $$

This explains the sum of absolute contributions. If the errors are allowed to vary independently, the bound for the linear part is attained by choosing each \(\Delta x_i\) at an endpoint of its allowed interval, with sign chosen to make its term have the same sign as the other terms. Thus the sum gives the worst case for the linearized change, not a prediction that every error will reach its maximum.

Important qualification: The sum of absolute contributions is a first-order estimate, not automatically a guaranteed bound on the actual output error. The remainder \(r\) can make the actual error slightly larger or smaller. A guaranteed bound for specified finite input errors requires additional control of that remainder.

A Reliable Calculation Procedure

1
Record the nominal inputs and their bounds.
Write each measured value \(a_i\) and the corresponding maximum absolute error \(\varepsilon_i\), with units.
2
Differentiate the output model.
Find each partial derivative and evaluate it at the recorded input values.
3
Calculate the individual contributions.
Multiply the absolute value of each evaluated partial derivative by its input-error bound.
4
Add and interpret.
Add the contributions, report the output units, and describe the result as a first-order estimate.

Worked Examples

Worked Example: Uncertainty in the Area of a Rectangle

A rectangle has measured length \(l=12.0\text{ cm}\) with error bound \(0.1\text{ cm}\), and measured width \(w=5.0\text{ cm}\) with error bound \(0.2\text{ cm}\). Estimate the first-order uncertainty in its area \(A(l,w)=lw\).

The partial derivatives are

$$ \frac{\partial A}{\partial l}=w, \qquad \frac{\partial A}{\partial w}=l. $$

At the recorded dimensions, these are \(5.0\text{ cm}\) and \(12.0\text{ cm}\). The two absolute contributions are therefore

$$ (5.0\text{ cm})(0.1\text{ cm})=0.50\text{ cm}^2, \qquad (12.0\text{ cm})(0.2\text{ cm})=2.40\text{ cm}^2. $$

The total-differential estimate is \(0.50+2.40=2.90\text{ cm}^2\). The recorded area is \((12.0)(5.0)=60.0\text{ cm}^2\). To check the first-order calculation, \(dA=w\,dl+l\,dw\); at the maximum positive errors this gives \((5.0)(0.1)+(12.0)(0.2)=2.90\text{ cm}^2\), matching the sum of the contributions. This is an estimate of the output uncertainty, not a guarantee that the actual error cannot exceed \(2.90\text{ cm}^2\).

Worked Example: Uncertainty in a Distance Calculated from Two Coordinates

A point has measured coordinates \(x=3.00\text{ m}\) and \(y=4.00\text{ m}\), each with error bound \(0.03\text{ m}\) and \(0.04\text{ m}\), respectively. Its distance from the origin is \(s(x,y)=\sqrt{x^2+y^2}\). Estimate the first-order uncertainty in \(s\).

The measured distance is \(s(3,4)=\sqrt{9+16}=5.00\text{ m}\). The partial derivatives are

$$ \frac{\partial s}{\partial x}=\frac{x}{\sqrt{x^2+y^2}}, \qquad \frac{\partial s}{\partial y}=\frac{y}{\sqrt{x^2+y^2}}. $$

At \((3,4)\), they are \(3/5\) and \(4/5\). The contributions are

$$ \left|\frac{3}{5}\right|(0.03\text{ m})=0.018\text{ m}, \qquad \left|\frac{4}{5}\right|(0.04\text{ m})=0.032\text{ m}. $$

Adding gives an estimated uncertainty of \(0.018+0.032=0.050\text{ m}\). As a check, the total differential is \(ds=(3/5)\,dx+(4/5)\,dy\). Taking both coordinate errors at their positive bounds gives \(ds=(3/5)(0.03)+(4/5)(0.04)=0.050\text{ m}\). The units are metres, as required for a distance.

Worked Example: Uncertainty in a Density

A sample has measured mass \(m=250\text{ g}\), with error bound \(1\text{ g}\), and measured volume \(V=100\text{ cm}^3\), with error bound \(2\text{ cm}^3\). The density is \(\rho(m,V)=m/V\). Estimate its first-order uncertainty and compare it with the actual endpoint values.

The recorded density is \(250/100=2.5\text{ g/cm}^3\). The partial derivatives are

$$ \frac{\partial\rho}{\partial m}=\frac{1}{V}, \qquad \frac{\partial\rho}{\partial V}=-\frac{m}{V^2}. $$

At the recorded values, these are \(0.01\text{ cm}^{-3}\) and \(-0.025\text{ g/cm}^6\). Multiplying their absolute values by the corresponding bounds gives

$$ (0.01\text{ cm}^{-3})(1\text{ g})=0.01\text{ g/cm}^3, \qquad (0.025\text{ g/cm}^6)(2\text{ cm}^3)=0.05\text{ g/cm}^3. $$

The first-order uncertainty estimate is \(0.01+0.05=0.06\text{ g/cm}^3\). For a check on how this estimate compares with the actual values at the allowed endpoints, the density increases with mass and decreases with volume. Its largest endpoint value is \(251/98\approx2.561224\text{ g/cm}^3\), a change of about \(0.061224\text{ g/cm}^3\) from the recorded value. Its smallest endpoint value is \(249/102\approx2.441176\text{ g/cm}^3\), a change of about \(0.058824\text{ g/cm}^3\). These endpoint calculations show why the differential result is an estimate rather than a guaranteed bound: in this case the actual maximum endpoint change is slightly greater than \(0.06\text{ g/cm}^3\).

Common Pitfall: Letting Signs Cancel

Suppose \(q(x,y)=x-y\), with measured values \(x=10\), \(y=4\), and error bounds \(0.1\) for both inputs. The partial derivatives are \(q_x=1\) and \(q_y=-1\). A signed calculation that assumes both errors are positive gives \(dq=(1)(0.1)+(-1)(0.1)=0\). That does not estimate the worst-case effect: the errors might have opposite signs. The correct first-order uncertainty estimate uses absolute contributions:

$$ |q_x|(0.1)+|q_y|(0.1)=0.1+0.1=0.2. $$

Indeed, choosing \(\Delta x=0.1\) and \(\Delta y=-0.1\) gives \(\Delta q=\Delta x-\Delta y=0.2\). The signed differential is useful when particular input changes are known; for worst-case bounded errors that can vary independently, take the absolute value of each contribution before adding.

How to Interpret the Estimate

The method estimates the effect of small, bounded input errors on a smooth local model. It is useful when a computed quantity depends on several measurements and one needs to identify which inputs contribute most to the output uncertainty. A large partial derivative indicates that small changes in that input can have a relatively strong local effect; a small error bound can still make its total contribution small.

Keep the assumptions and limits in view. Evaluate partial derivatives at the recorded inputs, use consistent units, and use absolute contributions when estimating the worst-case first-order change. If errors are not small, or if the function changes rapidly over the allowed input range, the linear estimate may be less accurate. The differential alone does not establish a rigorous bound for finite errors; that would require an additional estimate of the nonlinear remainder.

Check Your Understanding

For each question, consider both the calculation and what its result does—and does not—assert.

  1. For \(f(x,y)=xy\), measured values \(x=6\), \(y=2\), and error bounds \(0.1\) and \(0.2\), what is the first-order output uncertainty estimate?
  2. Why are the absolute values of partial derivatives used when estimating worst-case first-order uncertainty from independently varying bounded errors?
  3. For \(g(x,y)=x-y\), why can the signed differential be zero for one choice of errors even though the worst-case first-order uncertainty is positive?
  4. What are the units of each contribution \(\left|\frac{\partial f}{\partial x_i}\right|\varepsilon_i\) relative to the units of \(f\)?
  5. Does the total-differential estimate automatically guarantee an upper bound on the actual output error for specified finite input bounds? Explain.