top of page

4.2 Linear Regression

A-level Maths Statistics and Mechanics Year 1 (AS) · Edexcel 9MA0 · Chapter 4: Correlation

A free A-level Maths Stats and Mechanics Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: interpreting the regression line y = a + bx and using it to make estimates. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Know that the regression line of y on x has the form y = a + bx
  • Interpret the gradient b and the intercept a in context
  • Use a given regression line to estimate the response variable
  • Explain the difference between interpolation and extrapolation, and when estimates are reliable

Key words

  • Regression line: The line of best fit y = a + bx that is used to model a linear relationship. It is often called the least squares regression line.
  • Gradient b: The change in y for each increase of 1 in x.
  • Intercept a: The value of y when x = 0. It may not have a sensible meaning in context.
  • Interpolation: Estimating a value inside the range of the data. Usually reliable when the correlation is strong.
  • Extrapolation: Estimating a value outside the range of the data. Unreliable, because the pattern may not continue.

The regression line

When a scatter diagram shows linear correlation, a straight line can model the relationship. The regression line of y on x is the line that makes the sum of the squares of the vertical distances from the points to the line as small as possible. You will not have to calculate it in this course, but you must be able to interpret and use it.

Key fact: Regression line of y on x: y = a + bx x is the explanatory variable and y is the response variable.

Worked example: setting up the model

A coach wants to estimate a swimmer's 100 m time from the number of hours the swimmer trains each week.
Training could affect the time, so training hours is the explanatory variable, x, and the 100 m time is the response variable, y.

Answer: use the regression line of time on training hours, y = a + bx

Interpreting a and b

The gradient b tells you how much y changes, on average, when x increases by 1. A positive b goes with positive correlation and a negative b with negative correlation. The intercept a is the value of y when x = 0; check whether x = 0 makes sense in the context.

Worked example: sunshine and temperature

For summer days at a UK station, the regression line of daily maximum temperature, y °C, on daily total sunshine, x hours, is y = 12.4 + 0.85x.
b = 0.85: for every extra hour of sunshine, the maximum temperature rises by about 0.85 °C.
a = 12.4: on a day with no sunshine, the model gives a maximum temperature of 12.4 °C.

Answer: each extra hour of sunshine adds about 0.85 °C; a dull day is about 12.4 °C

Worked example: a negative gradient

The regression line of the price, p (£1000s), of a model of car on its age, t years, is p = 18.6 − 1.45t, for cars aged 1 to 10 years.
Gradient −1.45: the price falls by about £1450 for each extra year of age.
Intercept 18.6: the model gives £18 600 for a car aged 0 years (new). This is outside the data, so treat it with care.

Answer: loses about £1450 a year; about £18 600 when new

Exam tip: In an exam, interpret the gradient with the words "for every extra ..., the ... increases (decreases) by ...", using the units in the question.

Making estimates

Substitute the value of x into the equation. The estimate is reliable when the correlation is strong and the x value is inside the range of the data (interpolation). Outside the range (extrapolation) the pattern may not continue.

Worked example: interpolation

Estimate the maximum temperature on a day with 8 hours of sunshine.
y = 12.4 + 0.85 × 8 = 12.4 + 6.8 = 19.2
8 hours is inside the data range and the correlation is strong, so this is reliable.

Answer: 19.2 °C

Worked example: extrapolation

Using p = 18.6 − 1.45t, estimate the price of a car aged 15 years.
p = 18.6 − 1.45 × 15 = 18.6 − 21.75 = −3.15
A negative price is impossible: 15 years is outside the range 1 to 10 years, so the model does not apply.

Answer: the estimate is meaningless (extrapolation)

Using regression lines sensibly

The regression line of y on x is designed to estimate y from a given x. It should not be rearranged to estimate x from y, because it was built to fit vertical distances only. A regression line is also only useful when there is clear linear correlation, and only for the population the data came from.

Worked example: should the line be used?

A regression line y = 2 + 0.5x is drawn on a scatter diagram that shows weak positive correlation. Estimate y when x = 6 and comment.
y = 2 + 0.5 × 6 = 5
The points are widely scattered about the line, so the estimate is not very reliable.

Answer: y = 5, but unreliable because the correlation is weak

Common mistakes

  • Interpreting b without context or units. Say "for each extra hour of sunshine, the temperature increases by 0.85 °C".
  • Trusting an estimate made by extrapolation.
  • Using the line of y on x to estimate x from a given y.
  • Giving a meaning to a when x = 0 is impossible or far outside the data.
  • Forgetting that a regression line is only useful when there is clear linear correlation.

Revision questions

Try these, then check your answers below each one.

Question 1. The regression line of daily maximum temperature, y °C, on daily sunshine, x hours, is y = 12.4 + 0.85x. Estimate the maximum temperature on a day with 6 hours of sunshine.

Answer: 17.5 °C

Working: 12.4 + 0.85 × 6 = 12.4 + 5.1 = 17.5 °C.

Question 2. For the line y = 12.4 + 0.85x above, what does 0.85 mean? (Choose from: Each extra hour of sunshine adds about 0.85 °C to the maximum temperature; The maximum temperature on a day with no sunshine is 0.85 °C; The sunshine increases by 0.85 hours for each extra degree; The correlation is 0.85.)

Answer: Each extra hour of sunshine adds about 0.85 °C to the maximum temperature

Working: For each extra hour of sunshine, the maximum temperature increases by about 0.85 °C.

Question 3. A regression line was found from data with x between 5 and 30. Sam uses it to estimate y when x = 80 and says the estimate is reliable. Is Sam correct?

Answer: No

Working: No. 80 is far outside the data range, so this is extrapolation and the estimate is unreliable.

Related lessons

Continue in the full course

This lesson is section 4.2 of our free A-level Maths Statistics and Mechanics Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Statistics and Mechanics Year 1 (AS) course.

 

 

 

 

 

 

 

bottom of page