12.2. Error Propagation#
Further Reading: §3.2, §3.3, and §3.4 in Navidi (2015)
12.2.1. Learning Objectives#
After studying this notebook, completing the activities, engaging in class, and reading the book, you should be able to:
Apply error propagation formulas to predict uncertainty in calculations using experimental data
Derive linear error propagation formulas from definitions of expected value and variance
Derive general nonlinear error propagation formulas from Taylor series approximation
Use multivariate error propagation formula
import numpy as np
import matplotlib.pyplot as plt
As engineers, we are rarely interested in simply characterizing the uncertainty in measurements. Instead, we often use the measurement values to perform calculations. Naturally, we want to propagate the uncertainty from the measures through to the calculation. This is known as error propagation. I promise you will use it in multiple laboratory classes at Notre Dame and as practicing engineers after graduation.
Recall, we will model the outcome of measurements with random variables. As such, I will write the error propagation formulas as random variables. The formulas that follow are given for two measured quantities \(X\) and \(Y\), but generalize to any dimensions. We assume we know the measurement uncertainties \(\sigma_X\) and \(\sigma_Y\) as well as the covariance \(\sigma_{X,Y}\). We want to estimate the uncertainty \(\sigma_Z\) for the computed quantity \(Z\).
First, let’s consider either adding or subtracting two measured quantities.
12.2.2. Addition Rule#
Consider \(Z = c_1 X + c_2 Y\):
12.2.3. Subtraction Rule#
Consider \(Z = c_1 X - c_2 Y\):
12.2.4. Derivation#
Notice these formulas are exact. We’ll explore that more during class.
Note
Home Activity (Video): Derive the addition/subtraction error propagation rules from the properties of random variables.
12.2.5. Multiplication Rule#
Consider \(Z = X \cdot Y\):
12.2.6. Division Rule#
Consider \(Z = X / Y\):
12.2.7. Derivation#
Notice these formulas are approximations. We’ll see these formulas come from the more general differentiable function rule.
Note
Study Activity: Derive the multiplication and division rules from the differentiable function rule.
Next, let’s consider any differentiable function.
12.2.8. Differentiable Function Rule#
Consider \(Z = g(X,Y)\):
12.2.9. Derivation#
Notice this formula is an approximation. We’ll see it comes from a Taylor series approximation.
Taylor Series: $\(Z = g(X,Y) \approx g(\mu_X,\mu_Y) + \frac{\partial g}{\partial X} * (X-\mu_X) + \frac{\partial g}{\partial Y} * (Y-\mu_Y)\)$
Apply linear error propagation rule.
Note
Home Activity (Video): Derive the differential function error propagation rule from the properties of random variables and a truncated Taylor series expansion.
12.2.10. Multivariate Case#
Tying this in to the error propogation formula…