Slope, intercept and their uncertainties
- Builds on
- Section D2
- Reading time
- 50 min
- Exercises
- 6
- Olympiad problems
- 1
The Hubble constant tells us how fast the Universe is expanding today. In 2022 a team that measures the distances of galaxies with Cepheids and supernovae found 73.0 ± 1.0 kilometres per second per megaparsec, while the Planck satellite, working from the faint glow left over from the Big Bang, had found 67.4 ± 0.5. The two values differ by 5.6, about five times the uncertainty of their difference, and so astronomers now argue about whether something is missing from our picture of the Universe. Without its uncertainty a value says little, because we cannot tell whether two measurements agree. In the data-analysis round almost every result is asked for with its uncertainty, and for a graph that means the uncertainty of the slope and intercept of the line. In this section we find both from the line drawn in Section D2, and we learn to write a result with the right number of figures.
D3.1The intercept
The best line through the five Cepheids crosses
The intercept of a straight line
For the line through (0.60, −2.93) with slope −2.48 this gives
D3.2The steepest and shallowest lines
Every line through the centre of five points that also passes through all their error bars has a slope between −2.8 and −2.1. Roughly how uncertain is the slope?
The error bars show how far each point could be from its true place, so they also show how far the line could tilt. We put a ruler along the best line, hold it at the centre of the points, which we called C in Section D2, and turn it. As it turns, the line moves through the error bars until, at some angle, it touches the end of one of them. The line at that angle is the steepest line that the data allow, and turning the other way gives the shallowest. The uncertainty of the slope is half the difference between the two, and the uncertainty of the intercept comes from the intercepts of the same two lines. On paper the two lines are drawn dashed and labelled, and the slope of each is read from its own large triangle, as in Section D2.
| the slopes of the steepest and shallowest lines through C that still pass through every error bar | |
| the intercepts of the same two lines | |
| the uncertainties of the slope and of the intercept |
For the five Cepheids the steepest line through C that still passes through every error bar has a slope of −2.80, and the shallowest a slope of −2.10. By (D.2) the uncertainty of the slope is
| Star | P (day) | log P | MV (mag) | σ (mag) |
|---|---|---|---|---|
| RT Aur | 3.728 | 0.571 | −2.83 | 0.17 |
| FF Aql | 4.471 | 0.650 | −3.02 | 0.14 |
| X Sgr | 7.013 | 0.846 | −3.64 | 0.13 |
| ζ Gem | 10.151 | 1.007 | −3.93 | 0.14 |
| l Car | 35.551 | 1.551 | −5.27 | 0.22 |
- 1 Line
- 2 Extreme lines
- 3 Result
The best line through the Cepheids has a slope of −2.48 and an intercept of −1.44. The steepest line through C has a slope of −2.80 and an intercept of −1.15, and the shallowest a slope of −2.10 and an intercept of −1.79. Find the slope and intercept with their uncertainties.
By (D.2),
Both uncertainties round to 0.3, so the slope and intercept are given to one decimal place.
D3.3Writing a result
A slope is worked out as −2.4774 with an uncertainty of 0.3453. How should it be written?
An uncertainty is itself only an estimate, good to about one figure, so we quote it to one significant figure. When that figure would be a 1, rounding loses too much, since rounding 0.14 to 0.1 changes it by nearly a third, and we keep two. The value is then rounded to the same decimal place as its uncertainty, and the unit is written once after both, as in (−1.4 ± 0.3) mag. In the working before the end we keep a figure or two more than this, so that rounding errors do not pile up, and only the final answer is rounded.
A result comes out as 0.015732 with an uncertainty of 0.00148. To what value should 0.015732 be rounded?
D3.4How far the points stray
The points of a graph lie much closer to the best line than the length of their error bars. What does this suggest?
The residual of a point is how far it lies above or below the line, its value minus the value of the line at the same
For the five Cepheids the largest residual is 0.10 magnitudes, and the typical one, the square root of the mean of their squares, is 0.05, while the error bars are 0.13 to 0.22 magnitudes long. The points lie closer to the line than their bars suggest. With only five points, error bars of the right size would leave the points this close to the line about one time in eight, so we would keep the uncertainties as they are. A data-analysis answer still earns marks for a sentence that points out the difference.
The steepest Cepheid line has an intercept of −1.15 and the shallowest an intercept of −1.79. What is the uncertainty of the intercept?
By (D.2) the uncertainty is half the difference between the two intercepts, which differ by
Rounded to one figure this is 0.3, so the intercept is written as −1.4 ± 0.3 magnitudes.
- The best slope comes from the best line. The average of the steepest and shallowest slopes is close to it when the points are evenly spread, but it is not the same, and the extreme lines are there only to give the uncertainty.
- An extreme line that misses one of the error bars is steeper or shallower than the data allow, and it makes the uncertainty too large.
- The intercept is the value of
at . Reading it where the line meets the left edge of the sheet is wrong whenever the horizontal axis does not start at zero. - A result written as −2.4774 ± 0.3453 shows more figures than its uncertainty allows. The uncertainty takes one significant figure, or two when the first is a 1, and the value is rounded to match.
- A slope or intercept without its unit cannot be used. The slope has the units of the vertical axis divided by those of the horizontal axis, and the intercept those of the vertical axis.
- D3.1
The steepest line through a set of points has a slope of −1.84 and the shallowest a slope of −1.52. What is the uncertainty of the slope?
By (D.2), . It starts with a 1, so it keeps two figures. - D3.2
The best line of the Cepheid relation in the K band passes through (0.60, −4.27) and has a slope of −3.39. What is its intercept?
magThe intercept is magnitudes. - D3.3
How should 12.3456 with an uncertainty of 0.0789 be written?
The answer is (b). The uncertainty rounds to one figure, 0.08, in the second decimal place, so the value is rounded to the second decimal place as well. - D3.4
The two values of the Hubble constant in the opening of this section are 73.0 ± 1.0 and 67.4 ± 0.5. Their uncertainties are independent. What is the uncertainty of their difference?
km/s/MpcFor a difference the uncertainties combine in quadrature ((S.16)), so the difference of 5.6 is uncertain by . The difference is about five times its uncertainty. - D3.5
On a graph the points lie above the best straight line at both ends and below it in the middle. What does this pattern show?
The answer is (c). Random errors scatter the points on both sides of the line in no particular order. A run of points above, then below, then above again follows a curve, and the variables should be changed to make it straight (Section D5). - D3.6
Two lines turned about the centre of the points C, at
, have slopes that differ by 0.20, so the slope is uncertain by 0.10. How uncertain is the intercept?Both lines pass through C, so at they are separated by times the difference of their slopes, and half of that is .
2017A Cepheid relation free of dust14.5 points
Adapted from IOAA 2017 (Phuket), data-analysis problem 1, part 2. We have restated it in our own words and kept the original data. The solution was last checked on 20 October 2026.
Dust between us and a star makes it fainter and redder. Astronomers remove the dimming without measuring it by using the Wesenheit magnitude, which for the V and I bands is
| Star | |||||
|---|---|---|---|---|---|
| RT Aur | 3.728 | 5.464 | 4.778 | 2.40 | 0.19 |
| FF Aql | 4.471 | 5.372 | 4.510 | 2.81 | 0.18 |
| X Sgr | 7.013 | 4.556 | 3.661 | 3.00 | 0.18 |
| ζ Gem | 10.151 | 3.911 | 3.085 | 2.78 | 0.18 |
| l Car | 35.551 | 3.732 | 2.557 | 2.01 | 0.20 |
Work out the absolute Wesenheit magnitude
- For RT Aur,
, so , and . The other stars have = 3.26, 2.36, 1.89 and 0.85, and = −4.50, −5.25, −5.89 and −7.63. - The uncertainty of
comes only from the parallax, as for , so it is 0.17, 0.14, 0.13, 0.14 and 0.22 magnitudes for the five stars. - We plot
against , which runs from 0.571 to 1.551, with the brighter magnitudes at the top and the error bars drawn. The centre of the points is at (0.925, −5.52). - A best line through C passes, for example, through (0.60, −4.40) and (1.50, −7.49), which gives a slope of
. - Turning a ruler about C, the steepest line that still passes through every error bar has a slope of −3.72 and the shallowest a slope of −3.21. By (D.2) the uncertainty is
, which rounds to 0.3.
AnswerThe slope of the Wesenheit relation is −3.4 ± 0.3 magnitudes for each unit of