Five IB Maths AI questions on this topic, straight from the Heptavo app: 3 multiple choice and 2 written, climbing from the basics to exam style. Each one comes with its explanation or mark scheme.
The least-squares regression line of y on x is the line that minimises
Show the answer and why
Answer: D
Vertical distances, because y is the variable being predicted — that is what "y on x" means. Squaring is what makes a point far from the trend count so heavily, which is why a single outlier can drag the whole line.
Question 2 · Rung 2 · 1 mark
For a group of students, y = 6.2x + 41 models the test score y (%) against the number of hours x spent revising. The value 41 represents
Show the answer and why
Answer: A
The intercept is the prediction at x = 0. Add the caution in an exam answer: if nobody in the sample revised for 0 hours, 41 is an extrapolation and should be quoted with that reservation.
Question 3 · Rung 3 · 1 mark
For 10 pairs of data, Σx = 80 and Σy = 250. The regression line of y on x has gradient 1.8. The equation of the line is
Show the answer and why
Answer: A
Turn the totals into means first: x̄ = 8, ȳ = 25, then 25 = 1.8 × 8 + b gives b = 10.6. Option D substitutes the totals straight in, and option C assumes the intercept equals ȳ. The mean point is the only point on the line you are given.
Question 4 · Rung 3 · 2 marks
The mass y kg of a puppy at age x weeks is modelled by y = 0.943x + 3.27, using data from 1 to 6 weeks. (a) Interpret the value 0.943 in context. (b) Give a reason why the model should not be used to estimate the mass at 52 weeks.
Show the mark scheme
Tick each point your answer made: one mark per point, up to 2.
What the examiner is looking for
An interpretation mark needs three things: the number, the units, and "per week". For (b), "it is extrapolation" alone is thin — the strong answer says what the real growth does instead and in which direction the model errs.
Question 5 · Rung 5 · 6 marks
A dealer records the age t years and price $P of six used cars of the same model. For these data r = −0.993. t: 1, 2, 3, 4, 5, 6 · P: 18 000, 15 200, 13 000, 11 100, 9400, 8000 (a) Find the equation of the regression line of P on t. (b) Interpret the gradient and the P-intercept in context. (c) Find the age at which the model predicts a price of $10 000, and comment on how much this estimate can be trusted.
Show the mark scheme
(a) linear regression on the GDC (M1); P = −1980t + 19380 (A1)
(b) the price falls by about $1980 for each additional year of age (A1); $19 380 is the price the model predicts for a car of age 0, i.e. when new (A1)
(c) 10 000 = −1980t + 19380 gives t = 9380 ÷ 1980 = 4.74 years (A1); this is an interpolation (1 ≤ t ≤ 6) and r is close to −1, so the estimate is reasonably reliable (R1)
What the examiner is looking for
Part (c) deliberately asks for a safe prediction, so the comment mark goes to saying why it is safe — inside the range and strongly correlated — rather than reciting the warning about extrapolation. Notice the intercept in (b) is a slight extrapolation too, and a top answer says so.
Your score
0/11
Answer the questions above and your marks add up here.
Heptavo has 45 questions on 4.5 Linear regression: 26 multiple choice and 19 written, each with its mark scheme. Free to start.
Check your answers. Scan the code or open heptavo.com/practice/maths-ai/4-5-linear-regression/ for the mark scheme and an explanation of every answer. More questions on every IB Maths AI topic are in the Heptavo app.
What 4.5 asks
The regression line of y on x and its use for predictions; questions ask you to find the line on a GDC, interpret its gradient and intercept, and judge a prediction.
You need to be able to
Find the regression line y = ax + b of y on x with a GDC.
Interpret a as the change in y per unit of x and b as the predicted y when x = 0, with units.
Decide whether a prediction is reliable: interpolation with strong correlation, not extrapolation.
Key terms
regression line
least squares
gradient
intercept
interpolation
extrapolation
Common trap Trusting a prediction far outside the data because r is close to 1; extrapolation is unreliable however strong the correlation.