Error Bars and the Uncertainty of a Gradient
A question to start
You found a resistance of from the gradient of a – graph. Every voltage reading was uncertain by , so the line could have been drawn a little steeper or a little shallower. How much could the gradient change? Error bars show the uncertainty of each point, and from them you get the uncertainty of the gradient.
The idea: error bars
An error bar (thanh sai số) is a short line through a plotted point, reaching above and below it (and left and right, if is uncertain too). It says: "the true point is very likely somewhere along here".
- A good best-fit line passes through all, or nearly all, of the error bars. If it misses several of them by a lot, either the uncertainties were underestimated or the relationship is not a straight line.
- An error bar that is too small to draw at the graph's scale is simply left out, and you say so.
Steepest and shallowest lines
Draw two more lines that still pass through the error bars:
- the steepest line: from the bottom of the first error bar to the top of the last one;
- the shallowest line: from the top of the first error bar to the bottom of the last one.
Then
This quick school method uses the ends of the first and last bars. (A more careful version draws the steepest and shallowest lines that still go through every bar; for evenly scattered data the two agree closely.) The intercepts of the same two lines give the uncertainty of the intercept in the same way.
Worked example: a resistor
Given: current and voltage for a resistor, every voltage .
| / A | 0.10 | 0.20 | 0.30 | 0.40 | 0.50 | 0.60 |
|---|---|---|---|---|---|---|
| / V | 0.50 | 1.10 | 1.54 | 1.97 | 2.52 | 2.90 |
Find: with its uncertainty from the gradient. Formula: ; . Solve: the best-fit line (least squares) has gradient . The first point is , the last :
Answer: , a uncertainty. Check: the steepest and shallowest lines cross the axis at and ; zero lies between them, so the data agree with Ohm's law (a line through the origin).
The simulation uses the same points (rounded to two decimal places in the table). Press Play: the points arrive one by one, then the least-squares line and the steepest and shallowest lines appear, with the result . Then change the scatter or the number of points and see how changes.
How to make smaller
- Smaller error bars: better instruments, more repeats.
- A wider range of : the same bars over a longer run allow less tilt.
- More points help the best-fit line, but in the quick method only depends on the first and last bars, so spread the points over the whole range.
Try it: draw your own
On graph paper, plot the table above with error bars of ( a little over one small square if is one small square). Draw your best line by eye, then the steepest and shallowest lines with a ruler. Do you get within about of the numbers above?
Common mistakes
- Error bars of the wrong length: means the bar is long in total.
- A best-fit line that misses most error bars without comment.
- Taking the steepest minus shallowest without halving it.
- Too many figures in the result: should be .
- Forgetting units: the gradient's unit () belongs to the result.
Practice
- On a graph of extension (cm) against load (N), the first point is and the last . Find the steepest and shallowest gradients and . The best-fit gradient is .
Answer
; ; . Result .
- From Practice 1, find the spring constant with its uncertainty, in .
Answer
. A reciprocal has the same relative uncertainty: , so . .
- A best-fit line misses four of six error bars. Give two possible reasons.
Answer
The uncertainties were underestimated (the readings scatter more than the error bars say), or the relationship is not a straight line (a curve would fit, or the law doesn't hold over this range).
Test yourself
A point is plotted at with . Its error bar goes from ...
- to
- to
- to
- to
The steepest line has gradient and the shallowest . What is ?
The steepest line in the quick method joins ...
- the top of the first bar to the bottom of the last
- the bottom of the first bar to the top of the last
- the first and last points
- the origin and the last point
How can you make the uncertainty of a gradient smaller?
- Use a smaller range of
- Draw the graph bigger
- Use a wider range of and smaller error bars
- Round the gradient