A1136 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 n 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 n. 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?

Name it

Reporting a measurement

From n readings x1,…,xn:

  • the sample mean x¯=1n∑xi, the best estimate of the true value;
  • the sample standard deviation s=1n−1∑(xi−x¯)2, how much individual readings scatter. (Dividing by n−1 instead of n corrects for measuring the spread around x¯, which sits closer to the data than the true mean does.);
  • the standard error s/n, 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

x¯±1.96sn

with 95% confidence. With only a few readings, s 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 f is calculated from independent measured quantities, small errors propagate through the partial derivatives (A9.6) and add like independent noise (lesson 9):

σf2=(∂f∂x)2σx2+(∂f∂y)2σy2

For products and quotients this becomes a rule for relative uncertainties: for P=VI or R=V/I, (σPP)2=(σVV)2+(σII)2.

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
  1. Standard error. 10mV25=2mV
  2. 95% half-width. 1.96×2=3.9mV

Answer report 5.012±0.004 V (95%).

Worked example

Power is computed as P=V2/R with V=5.00±0.02 V and R=100±1 Ω, independent. What is P with its uncertainty?

Show the solution
  1. Relative errors. 0.4% in V, which counts twice because it's squared, and 1% in R.
  2. Combine them. 0.82+12=1.28%
  3. The power. P=0.250 W, and 1.28% of that is 0.003 W.

Answer P=0.250±0.003 W.

Worked example

A current is computed as I=V/R, with V known to 1% and R to 0.5%, independently. How uncertain is I?

Show the solution
  1. Add in squares. For products and quotients, relative uncertainties add in squares: 12+0.52=1.12%
  2. The larger term dominates. The larger term dominates again: improving the resistor to 0.1% would only bring it to 1.005%.

Answer I 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 P=VI. 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

I=V/R with V uncertain by 0.5% and R by 0.2%, independently.

(a)

What is the relative uncertainty of I?

Check

P=V2/R with relative uncertainties a in V and b in R (percent).

Step 1

What is the relative uncertainty of P?

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?

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.