Paper ZeroSign in

Regression on the GDC

The line, r, a prediction and what they mean

  • In 12 of 20 recent exams
  • 2% of the marks
  • Paper 2, calculator
  • 1 to 3 marks
How it is set in the exam

Paper 2 (calculator) only, 1–3 marks a part (usually 2), in a Section A question of 4–7 marks; once inside a Section B question. Very common (12 of 20 exam versions, 32 logged parts). A question usually runs line → rr → prediction, sometimes with an interpretation or a reliability mark at the end.

Spot it in the exam
Exam phrases to spot (6)
  • “find the equation of the regression line of yy on xx”

  • “the regression line has equation y=ax+by = ax + b; find aa and bb”

  • “write down the value of rr”

  • “use your equation to estimate …”

  • “interpret the gradient in context”

  • “explain why the estimate may be unreliable”

In disguise (5)
  • the variables have names instead of xx and yy: "the regression line of TT on hh" predicts TT from hh, so hh goes in the xx-list
  • the xx-values are years: code them as years since the start, or use the year itself (Example 1.3)
  • a change in the predictor with no starting value ("she adds 10 km a week to her training"): the change in yy is aa times it, and bb is not needed
  • "what does the value of aa represent?": the gradient in context
  • a second model (a percentage growth) to be compared with the line's prediction (Example 1.4)
Variants (4)
  • given: the data (the usual case, on the GDC), or the line itself in the stem, with only a prediction, a change or an interpretation asked (Your turn 2)
  • asked: the line, rr, a prediction, the change for an increase in xx, the gradient (or intercept) in context, the reliability of a prediction, a comparison with another model
  • xx = a year, coded as the year or as years since the start; any consistent coding is accepted
  • the prediction uses a value from an earlier part (follow-through from the student's own line)
Looks like it, but isn't (5)
  • xx is estimated from a value of yy: Predict x from y
  • both regression lines are given and either variable is estimated: Predict x from y (choose the line by its subject)
  • both regression lines are given and the means are asked for: The mean point
  • a value is missing from the table and the line is given: Work backwards from the mean or median, with the mean from the line first (The mean point)
  • a line through two exact points, with no data set: Equation of a straight line
Worked example

The line, r and an estimate

Paper 2 (calculator)
Question

Eight weather stations in a mountain region are at altitudes hh metres. The mean July temperature at each is TT °C.

hh (m)TT (°C)
15015023.423.4
32032023.123.1
48048021.221.2
65065021.021.0
87087019.619.6
1040104018.118.1
1230123017.517.5
1410141016.216.2

The regression line of TT on hh is T=ah+bT = ah + b.
(a) Find aa and bb. [2]
(b) Write down Pearson's product-moment correlation coefficient, rr, for these data. [1]
(c) Estimate the mean July temperature at a station 900900 m above sea level. [2]

Try it yourself first, then compare.

Now try one like it

Write your working on paper or on screen. Paper Zero marks it step by step, like the worked example, and shows where each mark went. Free, with no account.

A handwritten page as Paper Zero marks it: ticks at the two lines that earned a mark, a cross on line 3 where +7 was copied as −7, and a short note beside that line.123456f′(x) = 4x − 124x − 12 = 0, so x = 3f(3) = 2(3)² − 12(3) − 7= 18 − 36 − 7 = −25minimum at (3, −25)M1 ✓A1 ✓A1 ✗11The +7 became −7: 18 − 36 + 7 = −11.
See it move: Drag a point, the line follows
  • The line of TT on hh: a=−0.0058337…a = -0.0058337\ldots and b=24.497…b = 24.497\ldots, so T=−0.00583h+24.5T = -0.00583h + 24.5. It passes through the mean point (hˉ,Tˉ)=(768.75,20.01)(\bar{h}, \bar{T}) = (768.75, 20.01) and makes the squares of the dashed gaps as small as they can be.
  • r=−0.99183…≈−0.992r = -0.99183\ldots \approx -0.992: strong negative correlation. aa and rr always have the same sign.
  • At h=900h = 900: T=−0.0058337…×900+24.497…=19.246…≈19.2T = -0.0058337\ldots \times 900 + 24.497\ldots = 19.246\ldots \approx 19.2 °C. 900 m is inside the data, 150 to 1410 m: an interpolation.
  • (a) and (b) Three significant figures, with the sign: a=−0.00583a = -0.00583 (not −0.006-0.006), b=24.5b = 24.5 and r=−0.992r = -0.992. The temperature falls as the altitude rises, so both are negative.
  • (c) Predict with the unrounded line: 19.246…≈19.219.246\ldots \approx 19.2 °C, between the stations either side, 19.6 at 870 m and 18.1 at 1040 m. The rounded line gives −0.00583×900+24.5=19.253-0.00583 \times 900 + 24.5 = 19.253, which rounds to 19.319.3.
Steps
  1. Decide which variable is predicted:

    that one is yy. Enter the other as the xx-list and run a linear regression (linear regression). Code years first if the question says how.

  2. Write the line

    with the question's variables and each coefficient to 3 s.f., labelled (a=…a = \ldots, b=…b = \ldots), and rr to 3 s.f. with its sign. Sign check: aa and rr always have the same sign.

  3. Predict:

    substitute into the unrounded line, written out in full with its inputs, then the value (keep full-accuracy values). Check that the value you substitute is inside the range of the data. A count may be given as a whole number or to 3 s.f.

  4. Interpret:

    aa is the change in yy per one-unit increase in xx, in context, with units and a direction. A change in xx changes yy by aa times that change: an increase of 1010 in xx changes yy by 10a10a, whatever the starting value.

  5. Reliability:

    name the reason (How far to trust a prediction): extrapolation (with the value that is outside the data), weak correlation, or the wrong line.

Common mistakes
  • The lists the wrong way round.

    The predicted variable is the yy-list. Swapped lists give the line of xx on yy, a different line.

  • Data entered wrongly,

    or a gap in the years closed up: for the coefficients and rr, even when the rounded values happen to be close.

  • Dropping the sign of rr

    , or giving r2r^2 instead of rr.

More mistakes (8)
  • Rounding a small gradient to 3 decimal places

    −0.006-0.006 instead of −0.00583-0.00583. Three significant figures, for rr too: 0.980.98 for 0.9810.981 scores .

  • aa and bb unlabelled or swapped

    one mark lost. Write a=…a = \ldots, b=…b = \ldots, or the whole equation with the question's letters.

  • An expression when the equation is asked for

    −0.176d+33.1-0.176d + 33.1 is not an equation; write t=−0.176d+33.1t = -0.176d + 33.1. (When the question asks for aa and bb, labelled values are enough.)

  • A prediction with only the final number.

    The () is for substituting into your line, and the follows through from it: write the substitution out in full, even if you doubt (a). A bare wrong value scores nothing.

  • Predicting with rounded coefficients.

    It can change the third significant figure (Example 1.1), and with years as xx it ruins the answer (Example 1.3). Use the stored line.

  • An interpretation with no context

    "aa is the gradient" or "yy goes up by 0.1760.176". Say what changes, by how much, per one unit of what, and the direction ("decreases", not "changes").

  • A reliability answer with no reason

    "the model may not be accurate" scores nothing. Name extrapolation and the value outside the data.

  • Writing "correlation does not imply causation"

    when the question asks about something else: .

Next typeThe mean point