topic badge

6.03 Line of best fit

Lesson

When we display bivariate data that appears to have a linear relationship, we often wish to find a line that best models the relationship so we can see the trend and make predictions. We call this the line of best fit.

 

Exploration

We want to draw a line of best fit for the following scatterplot:

Let's try drawing three lines across the data and consider which is most appropriate.

We can tell straight away that $A$A is not the right line. This data appears to have a positive linear relationship, but $A$A has a negative gradient. $B$B has the correct sign for its gradient, and it passes through three points! However, there are many more points above the line than below it, and we should try to make sure the line of best fit passes through the centre of all the points. The means that line $C$C is the best fit for this data out of the three lines.

 

Drawing a line of best fit by eye

  • One method is to draw an oval around the points on the scatterplot, then cut the oval in half with a line.
  • The line may pass exactly through all of the points, some of the points, or none of the points.
  • It always represents the general trend of the of the data (increasing or decreasing).
  • The number of points above the line should be the same as the number of points below the line.
  • You should generally ignore outliers (points that fall very far from the rest of the data) as they can skew the line of best fit. 

Below is an example of what a good line of best fit might look like.

 

Practice questions

Question 1

The following scatter plot shows the data for two variables, $x$x and $y$y.

  1. Determine which of the following graphs contains the line of best fit.

    A

    B

    C

    D

Question 2

The following scatter plot shows the data for two variables, $x$x and $y$y.

  1. Determine which of the following graphs contains the line of best fit.

    A

    B

    C

    D
  2. Use the line of best fit to estimate the value of $y$y when $x=4.5$x=4.5.

    $4.5$4.5

    A

    $5$5

    B

    $5.5$5.5

    C

    $6$6

    D
  3. Use the line of best fit to estimate the value of $y$y when $x=9$x=9.

    $6.5$6.5

    A

    $7$7

    B

    $8.4$8.4

    C

    $9.5$9.5

    D

Outcomes

3.4.15

fit a trend line by eye

3.4.16

interpret relationships in terms of the variables, for example, describe trend as increasing or decreasing

3.4.17

use the trend line to make predictions, both by interpolation and extrapolation

What is Mathspace

About Mathspace