A11 · Lesson 36 · Confidence and error bars
How sure are you of a measured number?
You measure a reference voltage ten times and get readings that scatter around 5.002 V. What should you write down? "5.002 V" claims too much; "about 5 V" throws away information. The honest answer is a value with an uncertainty, like 5.002 ± 0.003 V, where the ± has a precise meaning. Getting that number right, and combining uncertainties when measured values go into a calculation, is everyday engineering.
Play
- Each press of New samples takes readings of a true 5 V reference, each with random noise σ = 20 mV. The readouts give their mean, their standard deviation, and a 95% confidence interval for the true value.
- Press New samples a dozen times. How often does the interval miss 5 V?
- Raise . What happens to the interval's width? To the standard deviation of the readings themselves?
Predict
You report a 95% confidence interval from your ten readings. What does "95%" mean?
It's a statement about the method. Each experiment gives a slightly different interval; 95% of them catch the true value and 5% miss. The second sim repeats the experiment 20,000 times and counts. The interval is much narrower than the scatter of individual readings, since it describes the mean, which is times steadier.
Name it
Reporting a measurement
From readings :
- the sample mean , the best estimate of the true value;
- the sample standard deviation , how much individual readings scatter. (Dividing by instead of corrects for measuring the spread around , which sits closer to the data than the true mean does.);
- the standard error , how much the mean itself would scatter from one experiment to the next (lesson 33's averaging rule).
Confidence interval. For many readings with Gaussian noise, the true value lies within
with 95% confidence. With only a few readings, is itself uncertain, and the 1.96 is replaced by a larger factor from Student's t distribution: 2.26 for 10 readings, 2.78 for 5, 12.7 for 2.
Error bars on a graph must say what they show: ±1 standard deviation (the spread of readings), ±1 standard error, or a 95% interval. They differ by large factors, so an error bar with no label means very little.
Combining uncertainties. If a result is calculated from independent measured quantities, small errors propagate through the partial derivatives (A9.6) and add like independent noise (lesson 9):
For products and quotients this becomes a rule for relative uncertainties: for or , .
How to write it. Round the uncertainty to one or two significant figures, and round the value to the same decimal place: 5.0021 V with an uncertainty of 0.0034 V is written 5.002 ± 0.003 V. And keep in mind that all of this covers only random error. A systematic error, like a miscalibrated meter, shifts every reading and has to be estimated separately.
Worked example
25 readings average 5.012 V with a sample standard deviation of 10 mV. Report the result with a 95% interval.
Show the solution
- Standard error.
- 95% half-width.
Answer report V (95%).
Worked example
Power is computed as with V and Ω, independent. What is with its uncertainty?
Show the solution
- Relative errors. 0.4% in , which counts twice because it's squared, and 1% in .
- Combine them.
- The power. W, and 1.28% of that is 0.003 W.
Answer W.
Worked example
A current is computed as , with known to 1% and to 0.5%, independently. How uncertain is ?
Show the solution
- Add in squares. For products and quotients, relative uncertainties add in squares:
- The larger term dominates. The larger term dominates again: improving the resistor to 0.1% would only bring it to 1.005%.
Answer is uncertain by 1.12%.
Check
Readings scatter with a standard deviation of 5 mV. What is the standard error of the mean of 4 of them?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
From 25 readings with standard deviation 10 mV, what is the half-width of the 95% confidence interval for the mean?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
Three readings: 4, 7 and 14 mV.
(a)
What is their mean?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
What is their sample standard deviation?
Check
A power is calculated as . V is known to 2% and I to 2%, independently. How well is P known?
Check
Readings scatter with σ = 20 mV. About how many must you average for a 95% interval of ±1 mV?
Check
with uncertain by 0.5% and by 0.2%, independently.
(a)
What is the relative uncertainty of ?
Check
with relative uncertainties in and in (percent).
Step 1
What is the relative uncertainty of ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Explain why
Why is the uncertainty of an averaged measurement smaller than the scatter of the individual readings, and why doesn't averaging fix everything?
Each reading has a random error, and those errors partly cancel when you average them, so the mean scatters from experiment to experiment by only , much less than single readings do. That's what the confidence interval describes. But averaging only cancels errors that change from reading to reading. A systematic error, like an offset in the meter or a wrong calibration, is the same in every reading, so it survives the average untouched and has to be found and corrected by other means.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.