Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
3. Propagation of Uncertainty
3.1 Introduction
Suppose that you've measured quantities , , , … with uncertainties , , , …, and you are calculating a function . For example, you might calculate the average speed of an object by dividing the distance covered by the time elapsed. How would you find the uncertainty of the average speed from the uncertainties of the distance and time? The general process of finding the uncertainty of a calculated quantity is called the propagation of uncertainty.
3.2 General Method
If quantity varies by while , , … are held constant, then the function will vary by . There are similar variations in when the other variables are varied individually. If variations in due to each of the quantitiess are independent of each other, the uncertainty of due to the uncertainties of all of the quantities is
In other words, the variations due to each variable combine like the components of a vector do to give the length of the vector. Note that this is based on the assumption that the variations in , , ... are independent of each other.
3.3 Two Frequently-Used Examples
3.3.1 Addition or Subtraction
If the function is a sum or difference, , then the partial derivatives are and . Using equation 3.1, the uncertainty in is
for both addition and subtraction.
If , then equation 3.2 generalizes to
3.3.2 Multiplication or Division
If the function is , then and . Using equation 3.1, the uncertainty in is
This can be rewritten as
or
The same result holds for division (see problem 3.1). The uncertainty of a quantity divided by that quantity (, for example) is called a fractional uncertainty. For multiplication or division, the fractional uncertainties combine the same way as uncertainties commbine for addition or subtraction. Note that equations 3.5 and 3.6 cannot be used to calculate the uncertainty of by setting (see problem 3.2).
If , then equation 3.6 generalizes to
3.4 Examples
Example 3.1: Suppose that you measure the dimensions of the object below as and .
Are your measurements consistent with those of someone who reports ?
In the intermediate steps, we'll keep several digits and display the appropriate number of significant figures in the final step. The area in terms of the measured dimensions and is
which gives
Using equation 3.1, the uncertainty of the area is
which gives
Rounding the uncertainty to two significant figures and the area to the same decimal place, the measured area is . The expected ranges for the area are and , which do not overlap, so they are not consistent.
Example 3.2: Suppose that the number of bacteria in a certain colony at a certain time is . What is ? Your answer should include an uncertainty.
The value of is . The partial derivative of with respect to is , so
Rounding to the same decimal place as the uncertainty, the anwser is .
3.5 Uncertainty Calculations Using Python
You should learn how to perform uncertainty calculations by hand. Once you've done that, you may also use the uncertainties package in Python. This is described in one of the Computation Tutorials.
3.6 Problems
3.1 Show that equation 3.6 also holds for .
3.2 Equations 3.5 and 3.6 cannot be used to calculate the uncertainty of by setting . (a) Explain why those equations can't be used to find . (b) Using equation 3.1, find the correct expression for .
3.3 Find an expression for the uncertainty of , where and are constants.
3.4 Suppose that is measured to be . What are the value and uncertainty of ? It will be helpful to know that
3.5 Suppose that a sample of water with a mass of 1.5 ± 0.1 kg starts at a temperature of 275 ± 4 K and finishes at a temperature of 331 ± 2 K. The specific heat of water is = 4186 J/(kg K) with negligible uncertainty. The amount of energy that must flow into the water to cause this temperature increase is given by , where is the change in temperature. Find the heat flow and its uncertainty. (Hint: First, find and it uncertainty. Treat as a single variable for the final part of the calculation.)