S4.2StatisticsStretch

Linear Regression

The regression line is the “line of best fit” through bivariate data, written y=a+bxy = a + bx. It lets you predict the response from the explanatory variable — but only safely within the range of the data.

25 min Correlation
Edexcel AS Level Maths: Chapter 4 Correlation (Part 2)Curated by Kepler, not produced by us. Watch it before the notes below.
Open on YouTube

What you'll be able to do

  • Understand the regression line y = a + bx
  • Interpret the gradient and intercept in context
  • Use the line to make predictions
  • Distinguish interpolation from extrapolation
1

The regression line

The least-squares regression line of yy on xx has the form y=a+bxy = a + bx, where bb is the gradient and aa the intercept. It is the line that best fits the data by minimising the vertical distances to the points.

y=a+bxy = a + bx
bb = gradient (change in yy per unit xx), aa = intercept.
2

Interpreting the coefficients

In context, bb is the predicted change in the response\textbf{change in the response} for each one-unit increase in the explanatory variable, and aa is the predicted response when x=0x = 0. Always state units.

Example 1A model is y=5+2xy = 5 + 2x (sales yy in £000s, advert spend xx in £000s). Interpret bb.
1b=2b = 2 is the gradient.
Answereach extra £1000 of advertising predicts £2000 more sales
3

Interpolation vs extrapolation

Predicting within\textbf{within} the data range (interpolation\textbf{interpolation}) is reliable. Predicting outside\textbf{outside} it (extrapolation\textbf{extrapolation}) is unreliable, because the linear pattern may not continue.

Tip — Trust predictions inside the data range; be wary of extrapolating beyond it.

Formula recap

y=a+bxy = a + bx
Regression line of y on x.
b=change in y per unit xb = \text{change in } y \text{ per unit } x
Gradient meaning.
interpolation (safe) vs extrapolation (risky)\text{interpolation (safe) vs extrapolation (risky)}
Prediction validity.

Common mistakes to avoid

Trusting predictions far outside the data range.
Extrapolation is unreliable — the relationship may not hold there.
Using the line to predict x from y.
The y-on-x regression line is for predicting y from x, not the reverse.

Key takeaways

  • Regression line: y = a + bx (best fit).
  • b = change in y per unit x; a = y when x = 0.
  • Interpolation (within data) is reliable; extrapolation (beyond) is not.

Test yourself

Answer a few questions, then review anything you missed.

Next step

Check your understanding

Work through questions on Linear Regression. Use the feedback to decide what needs another look.

3 past-paper questions · 3 marks

Practise this topic

Related lessons

All 2 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.