There are two regression lines.
They cross at the mean point, they are not the same line, and using the wrong one is a mark.
The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.
Four quick ones from earlier work. Try each on paper before you open the answer.
x = (y + 2)/3. Add 2 first, then divide everything by 3. The slip is x = y/3 + 2, which divides only one term.
(2 + 4 + 9 + 11 + 14) ÷ 5 = 40 ÷ 5 = 8. The mean point of a data set is built from two means like this.
y = 0.5(4) + 7 = 2 + 7 = 9. Substitute for x, then work out the multiplication before the addition.
r² = (−0.8)² = 0.64. Squaring a negative number gives a positive one; r² is never negative.
Predict first. Before you sweep: for each value of y the page shows two predicted values of x, one from the correct line and one from rearranging the other. Do you think there is a value of y where the two predictions are the same? Say where, and why, before you look.
Now sweep y across its whole range and watch the “apart” readout. Where is it smallest, and what happens as you move away from that place? Which feature of the picture explains it?
The same eight points, with both least squares lines drawn. Slide the value of y you want to predict x from, and watch the two answers separate.
Both lines are correct. They answer different questions.
y on x minimises the vertical distances. Use it to predict y from a known x.
x on y minimises the horizontal distances. Use it to predict x from a known y. It is a different line because it is minimising different gaps.
Multiply the two gradients together and you get r². Here 1.405 × 0.4917 = 0.691 = r². So when r = ±1 the product is 1, the lines are inverses of each other, and they coincide. The weaker the correlation, the wider they open. The gap between the two lines is a picture of how much r is missing.
Both lines pass through (x̅, y̅). So at the mean they agree exactly, and the disagreement grows the further out you go. That is the same reason extrapolation is unsafe, arriving from a different direction.
The machine will give you either line, and choosing the wrong one is the examinable mistake.
When you may use it. Analysis. Paper 1 is non-calculator; Papers 2 and 3 allow one. So this is the Paper 2 route and the by-hand method is the one that has to be secure.
The mark people lose. Swapping the lists is not the same as rearranging the line. Rearranging y on x minimises the wrong distances and gives a different, wrong prediction. The two gradients multiply to r², which is the quickest check you did it properly.
Both regression lines pass through the mean point, so two lines are enough to find it. The first steps are written out with a reason each; the last one is yours.
A set of data has y on x line y = 1.5x + 3 and x on y line x = 0.4y + 0.4. Find the mean point, and check that r² is a sensible value.
Your answer. Type the x-coordinate of the mean point.
One question that tells you whether the main idea has landed. Each wrong option is a different common slip, so the reply tells you which one you made.
For a data set r = 0.6 and the line of y on x has gradient 0.9. The line of x on y is written x = my + c. What is m?
A club coach has records of x, weekly training hours, and y, the 10 km time in minutes, for its runners. The mean point is (6, 52.5). The y on x line is y = −2.2x + 65.7 and the x on y line is x = −0.3y + 21.75. A new runner finished a 10 km race in 45 minutes. The coach wants to estimate the weekly training hours of such a runner. Choosing the right line is the whole question.
Estimate the weekly training hours (x) of a runner with a 10 km time of 45 minutes. Give your answer to 2 decimal places.
1. A different data set has mean point (4.2, 13.6). Its x on y line is x = 0.35y + c. Find the value of c.
2. For another data set the y on x line has gradient 1.96 and the x on y line has gradient 0.25. Find the correlation coefficient r.
3. A question gives you a height and asks for the predicted arm span. You should use:
Choosing the line by what you are predicting, not by what the question mentions first. The thing you want is on the left of the "on".
Not rearranging one line to do the other's job. It is the commonest error here and it produces a plausible, wrong number.
Saying when a prediction is unreliable: weak r, or a value well outside the data.
What happens to the two regression lines if r = 0, so there is no linear correlation at all? Use the fact that the two gradients multiply to give r² to decide what each line must look like, and then say how the two lines meet.
Put r = 0 into the product of the gradients. What must at least one gradient be? Then think about each line separately: if the y on x line has no tilt at all, what does it predict for y at every x? And what must the x on y line do? Sketch the mean point and both lines.
Four steps, each one a little harder than the last, on one pair of regression lines: y = 3.2x + 12 and x = 0.2y + 1.2. Every step is a piece of the exam question at the end. Use your calculator as you would in the exam.
Step 1 of 4: choose the right line. A sample gives the regression line of y on x as y = 3.2x + 12 and the regression line of x on y as x = 0.2y + 1.2. Estimate x when y = 50, to 2 decimal places.
Step 2 of 4: find the mean point. Both lines pass through the mean point. For the same two lines, y = 3.2x + 12 and x = 0.2y + 1.2, find the x-coordinate of the mean point, to 2 decimal places.
Step 3 of 4: the correlation coefficient. The two gradients are 3.2 (y on x) and 0.2 (x on y), and both are positive. Which statement gives the value of r?
Step 4 of 4: how far to trust it. The y values in the sample ran from 20 to 80, and r = 0.8. The line of x on y is used to estimate x when y = 95. Which statement is best?
Written for this site in the style of the real papers. Do it on paper first, as you would in the exam, and show your working: most of the marks are for method. Give answers to 3 significant figures unless the question says otherwise. Then check each part below.
Paper 2 style · calculator (GDC) allowed · 13 marks · about 14 minutes
A researcher records x, the hours of sunlight per day, and y, the height in cm after six weeks, for a sample of seedlings. The regression line of y on x is y = 4.4x + 4 and the regression line of x on y is x = 0.16y + 0.84.
(a) Find the mean height of the seedlings in the sample. [3]
(b) Find the value of r, the correlation coefficient. Give your answer correct to three significant figures. [3]
(c) A seedling has height 32 cm. Estimate the hours of sunlight per day it received. Give your answer correct to three significant figures. [3]
(d) Interpret the value 0.16 in the equation of the regression line of x on y, in the context of the question. [2]
(e) The heights of the seedlings in the sample ranged from 14 cm to 38 cm. Comment on the reliability of your estimate in part (c). [2]
Check (a). Type the mean value of y.
Check (b). Type r, correct to 3 decimal places.
Check (c). Type the estimate, to 2 decimal places.
Say what changes and by how much, using the quantities named in the stem, and say that this is what the line estimates on average for the sample, not an exact rule for every seedling.
Use two pieces of evidence: how strong the linear correlation is, from your value of r, and whether a height of 32 cm lies inside the heights that were measured. Then give a conclusion about the estimate.
This is a free sample lesson. The IB Diploma plan opens every other Diploma lesson, AA and AI, SL and HL, and every lesson from Year 7 for the refreshers. It covers every child in the family and includes all seven revision packs.
$99 for 12 months, or $149 for 2 years
That is $8.25 a month for the whole family.
Student without a card? Send this to a parent in one tap.
One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Already paid? Type the email you paid with in the sign-in box, then click the link we send. See every price, including $19 revision packs.
Every lesson here has a teacher page beside it: worked answers, what each common wrong answer tells you about a student's thinking, and questions at three levels for the board. Every unit has a free sample lesson for students, and a plan opens every other lesson.