KS Maths
Topic 4.4 · teacher page

Running correlation and regression

Answers, where the four marks sit, and the forty seconds that changes how a class reads a correlation coefficient for good.

Set this lesson for a class, then see every answer and the mistake behind it.

The one thing to do with the widget

Ask them to predict, then drag one point a long way out. Most will say the line moves. Few will predict how far r falls.

A convincing 0.989 becomes a number they would never quote, from moving a single student. Forty seconds, and afterwards a class treats a correlation coefficient as something that can be broken rather than a fact handed down by the calculator.

The data and the answers

Means are exactly 5 and 62, chosen so the hand calculation agrees with the readout to the digit rather than inviting a rounding argument.

Starting valuesSxx = 60, Sxy = 276, so b = 4.6 exactly and a = 39. The line is y = 4.60x + 39.0, with r = 0.989 and r² = 0.978.
1. Sales at 31 degrees136. 8.2 × 31 − 118 = 136.2, and coffees are whole.
2. Why refuse at 5 degreesB. Outside the 26 to 36 degree range of the data, and the model returns minus 77 coffees.
3. Same r, different gradientsB. Equally tight fit; B simply changes faster per unit of x.
4. Water stall, on the GDC3.33. The line is w = 3.33t − 21.4 with r = 0.975: each extra degree is associated with about 3.3 more bottles, inside 24 to 35 degrees. The intercept has no meaning here, since t = 0 is far outside the data.

The page also teaches two pieces the exam asks for that are not calculation: describing r in words (direction, strength and “linear”, with a common guide to the cut-offs, stated as a guide), and interpreting the intercept, including saying when it has no sensible meaning.

Where the four marks go

2 marksThe regression line. Almost nobody loses these, because the calculator produces them. Do not spend the lesson here.

1 markInterpreting the gradient in context, with units. "Each extra hour of revision is associated with about 4.6 more marks." Writing "the gradient is 4.60" restates the answer and earns nothing.

1 markKnowing the limit. 4.6 × 40 + 39 = 223, a mark above 100. The impossible value is the strongest form of the answer, stronger than naming extrapolation alone.

What each wrong answer tells you

They chooseWhat it means
372 (Q1)Added 118 rather than subtracting. Sign slip, not a method problem.
136.2 (Q1)Correct arithmetic, and the page accepts it while noting coffees are whole. Do not mark this as wrong; it is a presentation point.
"Too cold" (Q2)The one that matters. This is reasoning about coffee rather than about mathematics and earns nothing, yet it is the first thing most of the class writes. The mathematical answer is extrapolation beyond the data range.
"r would differ" (Q2)Close, and worth praising. They have the right instinct and the wrong vocabulary. Steer to the word extrapolation.
"B is stronger" (Q3)Confusing gradient with strength, which is the central confusion of the sub-topic. r says how tightly, the gradient says how much. Draw both on the board.
0.29 (Q4)Lists the wrong way round, so the GDC fitted t on w. r is the same either way, which is why nobody notices. The fix is the read-back check under On the calculator.
0.98 or −21.38 (Q4)Read r, or the intercept, off the output instead of the gradient. A labelling problem: ask them to say which number multiplies t.

Other things they will say

"97.8% correlation." They have quoted r² as if it were r. Keep r for strength. r² needs the phrase "proportion of the variation explained", said carefully or not at all at this level.

"Revising more causes higher marks." Do not just reply with the slogan. Make them produce a rival explanation, which they can: a student who revises nine hours is probably different in several other ways too. The slogan labels the problem; producing the alternative is what teaches it.

Rounding the gradient then using it. Harmless with this data because 4.6 is exact, which is why it was chosen. Flag it anyway: with real data it loses accuracy marks.

On the calculator

DemonstrateEnter the data live, run the regression, then predict inside the data and well outside it on the same screen.
Where they stickPutting the two lists in the wrong way round. r comes back as 0.963 either way, so the check they trust passes while the gradient is 0.230 instead of 4.033.
The checkHave one student read back which list holds the hours and which holds the marks, before anybody quotes a gradient.

Ask which machine each student has before the lesson, not during it. The steps on the student page cover the TI-Nspire CX II and the Casio fx-CG50. Both courses allow a calculator on Paper 2, which is the style of the calculator questions here. Analysis and Approaches students must also be able to do this without one, because their Paper 1 allows no calculator, so in a mixed class say out loud which method also works by hand.

A possible order

 What is happening
1Let them conclude "revise more, score more" out loud and leave it standing. You come back for it at the end.
2The widget. Predict, drag, watch r collapse, then talk about outliers in bivariate data.
3What r measures and does not. The parabola point is worth a quick sketch: r near zero means not linear, not unrelated.
4The hand calculation, checked against the readout. Insist on the check.
5Questions 1 to 4, with question 2 as the one that matters and question 4 on the GDC.
6Return to the opening claim. Does the data support it? This is where the lesson finishes rather than stops.

Two things not to say

Do not give them the calculator sequence before they have sketched a scatter. Once they can produce a line in four keystrokes they stop looking at the data, and every mark on this sub-topic that is worth having comes from looking at the data.

Do not use "strong correlation" and "steep line" in the same breath. It is the exact pairing that produces the question 3 error, and it is very easy to say without noticing.

Questions to set

Three tiers, ramping the way practice should: the method on its own, then the method inside something real, then a challenge. Set the tier the class in front of you needs rather than one undifferentiated sheet. Answers are given so these can go straight onto a board.

1Fluency

The method on its own, with friendly numbers. Set these first and move on quickly once they are secure.

  1. Compute rRevision hours 2, 3, 5, 6, 8, 9, 11, 12 give marks 34, 45, 44, 58, 63, 59, 74, 78. Find r.
    r = 0.963, a strong positive linear correlation.
  2. Regression lineFor the same data find the line of y on x.
    y = 4.033x + 28.65.

2In context

The same skill inside a real situation, where the first job is working out what is being asked.

  1. Predict inside the dataUse that line to predict the mark after 7 hours of revision, and say why this prediction is reasonable.
    56.9. Seven hours sits inside the range 2 to 12, so the line is being used where there is evidence for it.
  2. Interpret the gradientState what the gradient 4.03 means in context, in a sentence a student would get the mark for.
    Each extra hour of revision is associated with about 4 more marks. Associated, not causes: the data cannot separate revision from whatever else the keen students also did.

3Challenge

Reasoning, working backwards, or spotting an error. These are where the top grades are decided.

  1. Break the modelUse the line to predict the mark after 20 hours. What does the answer tell you about extrapolation?
    109.3, which is impossible on a test marked out of 100. The line has no knowledge of the ceiling, so outside the data it will happily return nonsense.
  2. Correlation is not causeIce cream sales and swimming accidents in Bangkok both rise together. Give the likely explanation and the general lesson.
    Both rise with temperature, which is a confounder driving each. A strong r tells you two things move together, never that one moves the other.

Warm-up, check and stretch: the answers

The student page opens with a refresher panel, a warm-up and a words box, has a faded second example, a hinge question and a context question just before Your turn, and ends with a what-if, a ladder to an original exam-style question, and a panel of where the idea goes next. Every question is marked on the page with a reason for each common wrong answer. Your turn questions 2 and 3 had their correct option far the longest; the wording of the four options in each was rebalanced and no value changed.

PartAnswer, and what it tells you
Warm-up 1Find the gradient of the line through (2, 7) and (6, 19).
(19 − 7) ÷ (6 − 2) = 12 ÷ 4 = 3. Change in y over change in x, with the points in the same order top and bottom. A regression gradient is a rate of change: the same arithmetic as the gradient between two points.
Warm-up 2A line has equation y = 3x + 4. In words, what does the 3 tell you?
For every 1 unit increase in x, y increases by 3 units. Saying the gradient is 3 only restates it: the meaning is the “for every 1 more …” sentence. Interpreting a gradient in a sentence is one of the two marks the lesson says separate the grades.
Warm-up 3Find the mean of 4, 7, 9, 12.
(4 + 7 + 9 + 12) ÷ 4 = 32 ÷ 4 = 8. A regression line always passes through the point made from the two means. The means are what the line passes through, which is how the intercept is found by hand.
Warm-up 4A line was fitted using values of x from 2 to 8. Is an estimate at x = 5 interpolation or extrapolation? What about x = 11?
x = 5 is inside the range of the data, so interpolation. x = 11 is outside it, so extrapolation, which is much less reliable. Interpolation and extrapolation retrieved before Your turn question 2 asks for the reason.
Second example (faded)54.05 (−1.95 × 7 + 67.7). Typed 81.35 lost the sign of b; 67.7 gave the intercept; 55.49 inverted Sxy ÷ Sxx; 54 rounded b to −2 first.
Check before you go onC. The seven points are symmetric, so Sxy = 0 and r = 0. Ask for fingers (one to four) before Check. Option b is the dangerous one: it has the number right and the conclusion wrong.
A: equates “perfect relationship” with “r = 1”. Sketch the points and ask if they lie on a line.
B: has computed r correctly but reads r = 0 as no relationship: the single most examined misreading.
D: has looked at the left half only. Treat each half as its own small data set and combine.
Where it decides something19.8 minutes (36 − 16.2). Under 21, but 18 weeks is well beyond the 12 weeks of data, so it is extrapolation and the coach should not promise it. Slips: 52.2 (sign of the gradient), 16.2 (no intercept), 631.8 (order of operations). Ask the class why the coach should not instead solve T = 21 for w: a line of T on w is built to predict T from w, not the other way round.
Something to think aboutEvery mark is halved, so the whole line is halved: y = 2.3x + 19.5. The mean point becomes (5, 31), and 2.3 × 5 + 19.5 = 31 checks it. r is unchanged, because the points sit exactly as tightly on the line as before: r is unaffected by multiplying either variable by a positive number (a negative one would flip its sign), which is why it is a pure measure of tightness. This links to the lesson on averages and spread, where scaling data scales the spread.

Students learning in English as an additional language

The words box is closed by default so it does not crowd fluent readers. With students still building their English, open it together at the start and ask each pair to use two of the words in a sentence about the cyclists. Command terms matter as much as maths words: “find”, “interpret” and “estimate” each ask for something different.

WordPlain meaningExample
correlationhow closely two variables follow a straight line togetherhours of sunshine and sales of ice cream have a positive correlation
positive / negativey goes up as x goes up / y goes down as x goes upthe more kilometres cycled, the lower the resting heart rate: negative
correlation coefficient (r)a number from −1 to 1 for how tightly the points sit on a liner near 1 means the points lie close to a rising line
regression linethe straight line that best fits the pointsy = 2x + 5 can be a regression line of y on x
gradienthow much y changes when x increases by 1in y = 2x + 5 the gradient is 2
interceptthe value of y where the line crosses the y-axis, when x = 0in y = 2x + 5 the intercept is 5
interpolationestimating inside the range of the datadata from 1 to 9 hours: an estimate at 4 hours
extrapolationestimating outside the range of the data, which is unreliablean estimate at 20 hours from data going up to 9
outliera point far from the restone student who revised 9 hours and scored very low
interpretsay in words what a result means in the situation“interpret the gradient” wants a sentence about y per unit of x, with units

Sentence starters for explaining aloud or in writing:

Exam ladder: the answers

The student page ends with a ladder of steps that climb from the lesson's basics to an original exam-style question. Each step is marked on the page; this table gives the answer and what each common wrong answer tells you.

StepWhat it addsAnswer, and what it tells you
Step 1find the correlation coefficientr = 0.992. 0.984 is r²; 2.78 is the gradient read from the same screen.
Step 2describe the correlationC. Strong positive linear correlation. d is the correlation-is-not-causation slip.
A: reads a value near 1 as weak: has not linked the size of r to strength.
B: has the sign of r backwards, or has read the strength and ignored the direction.
D: treats correlation as causation, the most examined slip in this lesson.
Step 3find the gradient of the regression liney = 2.78x + 9.03, gradient 2.78. 0.354 swaps the variables; 9.03 is the intercept.
Step 4estimate a value inside the data17 (2.78 × 3 + 9.03 = 17.4). 8 forgot the intercept; 12 added the two coefficients.
Step 5judge whether an estimate can be trustedB. Extrapolation: 15 is outside 1 to 9. a is the strong-r-so-safe slip.
A: trusts r for any value of x: has not met the idea that the range of the data limits the line.
C: says a correlation less than 1 stops the line being used at all: confuses strength with range.
D: assumes the trend continues without limit; ask what a score has to stay below.

The exam question: markscheme

An original question written for this site in the IB style (Paper 2 style · calculator (GDC) allowed, 9 marks). It is not taken or adapted from any past paper, so it is safe to set as unseen practice.

Paper 2 style · calculator (GDC) allowed · 9 marks · about 10 minutes

A biologist records the air temperature, T degrees Celsius, and the number of chirps per minute, n, made by a cricket on eight evenings. The temperatures were 18, 21, 23, 26, 28, 31, 33 and 36. The numbers of chirps per minute were 42, 55, 58, 71, 74, 88, 90 and 104.

(a) Find the product moment correlation coefficient, r, for these data. Give your answer correct to three significant figures. [2]

(b) Describe the correlation between T and n. [1]

(c) Find the equation of the regression line of n on T. Give both the gradient and the intercept correct to three significant figures. [2]

(d) Hence estimate the number of chirps per minute on an evening when the air temperature is 30 degrees Celsius. Give your answer to the nearest whole number. [2]

(e) Interpret the gradient of the regression line in this context. [1]

(f) Explain why the equation should not be used to estimate the number of chirps per minute on an evening when the air temperature is 45 degrees Celsius. [1]

PartWorkingMarks
(a)use of a regression or correlation function in technology with both lists entered(M1)
r = 0.995 (0.99543)A1
(b)strong (accept very strong) positive (linear) correlationA1
(c)use of a regression function, n on T(M1)
n = 3.32T − 17.0 (accept 3.3246 and −17.015)A1
(d)substitutes T = 30 into their equation(M1)
83 (82.7)A1
(e)for each 1 degree increase in the air temperature, the cricket makes about 3.32 more chirps per minuteR1
(f)45 is outside the range of the data (18 to 36): extrapolation, so the linear relationship may not continue (a cricket cannot chirp faster for ever)R1
Total[9]

Notes for marking:

Common errors

Practicalities

Works on a phone, though dragging points is easier with a mouse or on a larger screen. The library is served from this site rather than a public CDN, so it works behind a school firewall that blocks third-party scripts. Nothing a student does is saved or sent anywhere.