Home Exam Structure Topics Past Papers Resources Homework About Contact
Home Exam Structure Topics Past Papers Resources Homework About Contact

Home / Correlation & Regression / The Regression Line

3.7b · Correlation & Regression · Sub-skill

The Regression Line

Fitting a line of best fit to a scatter graph, and understanding what the gradient and intercept of a regression line mean.

Build it up, step by step

Understanding the regression line

Click each step below to reveal it — work through them in order the first time round.

Step 1 · What a regression line is

1 of 4

A regression line (line of best fit) is a straight line drawn through a scatter graph that best represents the linear trend in the data. It's written in the form $y=a+bx$.

Step 2 · Finding the regression line

2 of 4

In the exam, you'll typically use your calculator's statistical mode to find the equation of the regression line directly from raw data (giving you the values of $a$ and $b$), rather than deriving it by hand. You need to be able to interpret and use the equation once found.

Step 3 · Interpreting the gradient and intercept

3 of 4

The gradient, $b$, tells you how much $y$ changes for every 1 unit increase in $x$. The intercept, $a$, tells you the predicted value of $y$ when $x=0$ — though this may not always be meaningful in context (e.g. if $x=0$ is outside the sensible range of the data).

Step 4 · The regression line and the mean point

4 of 4

The regression line always passes through the mean point, $(\bar{x},\bar{y})$ — the point representing the mean of the x-values and the mean of the y-values. This is a useful fact for checking or sketching a regression line by hand.

Worked example

A regression line for predicting exam score (y) from hours revised (x) is $y=42+5x$. Interpret the gradient and the intercept.

Gradient (5): for every extra hour of revision, exam score is predicted to increase by 5 marks.
Intercept (42): a student who revises for 0 hours is predicted to score 42 marks — though this may not be very meaningful if the data collected didn't actually include students with 0 hours of revision.

Test yourself

Past-paper style question

The regression line for predicting monthly heating cost, y (£), from average outdoor temperature, x (°C), is $y=150-4x$.

(a) Interpret the gradient of this regression line in context.
(b) Use the regression line to predict the heating cost when the average temperature is 8°C. [4 marks]

Show the answer

(a) The gradient (−4) means that for every 1°C increase in average outdoor temperature, the predicted monthly heating cost decreases by £4 — sensible, since warmer weather needs less heating.

(b) y = 150 − 4(8) = 150 − 32 = £118.

Practice

The Regression Line worksheet

Five short questions on the regression line. Work through them, then reveal the mark scheme to check.

  1. A regression line is $y=20+3x$. State the gradient and the y-intercept.
  2. Interpret the gradient of the regression line in Q1 in the context of x = number of items sold and y = total revenue (£).
  3. A regression line predicts delivery time, y (minutes), from distance, x (miles): $y=15+4x$. Use the regression line to predict the delivery time for a distance of 12 miles.
  4. Explain what is meant by saying a regression line ‘passes through the mean point.’
  5. A regression line has equation $y=8+0.5x$, based on data where x ranges from 10 to 50. Explain why using this line to predict y when x = 200 would be unreliable.

Mark scheme

  1. Gradient = 3, y-intercept = 20.
  2. For every extra item sold, revenue is predicted to increase by £3.
  3. y = 15 + 4(12) = 15+48 = 63 minutes.
  4. It means the regression line always passes exactly through the point $(\bar x,\bar y)$, where $\bar x$ is the mean of all the x-values and $\bar y$ is the mean of all the y-values in the data set.
  5. Because x=200 is far outside the range of the original data (10 to 50) used to create the regression line — this is extrapolation, and there's no guarantee the same linear relationship continues to hold that far beyond the data.
← Back to Correlation & Regression