Steply

Residuals

Statistics · 20 problems, easy to harder

▶ Watch the first one solved

How we do it

  1. Predict
  2. Actual minus predicted
  3. Check

The steps for Line of best fit y = 2x + 1, point (3, 8), find the residual. Every solution names its steps, so you always know what comes next.

Worked examples

Line of best fit y = 2x + 1, point (3, 8), find the residual Easy

The question

Question: find the residual for the line of best fit y = 2x + 1 and the point (3, 8).

The point is the real data.

y = 2x + 1; (3, 8)

A residual tells how far a point is from the line.

Residual = actual minus predicted.

Actual is the real y.

Predicted is the y the line gives.

residual = actual − predicted

1 Predict

We put x = 3 into the line.

It predicts y = 7.

predicted = 2(3) + 1 = 6 + 1 = 7

2 Actual minus predicted

Careful!

Not predicted minus actual.

That flips the sign.

Actual comes first.

Careful: not 7 − 8 = −1 ✗

The actual y is 8.

8 minus 7 is 1.

residual = 8 − 7 = 1

So the residual is 1.

It is positive: the point is 1 above the line.

3 Check

Let's check with a picture.

The line of best fit.

The point.

The residual is the distance up or down from the line to the point.

And predicted plus residual gives the actual y: 8.

So the answer is right!

7 + 1 = 8

Let's look back.

First: predict.

Then: actual minus predicted.

Last: check.

Answer
residual = 8 − 7 = 1

▶ Watch it solved

Line of best fit y = 1.5x + 2, point (4, 9), find the residual Medium

The question

Question: find the residual for the line of best fit y = 1.5x + 2 and the point (4, 9).

The point is the real data.

y = 1.5x + 2; (4, 9)

A residual tells how far a point is from the line.

Residual = actual minus predicted.

Actual is the real y.

Predicted is the y the line gives.

residual = actual − predicted

1 Predict

We put x = 4 into the line.

It predicts y = 8.

predicted = 1.5(4) + 2 = 6 + 2 = 8

2 Actual minus predicted

Careful!

Not predicted minus actual.

That flips the sign.

Actual comes first.

Careful: not 8 − 9 = −1 ✗

The actual y is 9.

9 minus 8 is 1.

residual = 9 − 8 = 1

So the residual is 1.

It is positive: the point is 1 above the line.

3 Check

Let's check with a picture.

Each square up is 2.

The line of best fit.

The point.

The residual is the distance up or down from the line to the point.

And predicted plus residual gives the actual y: 9.

So the answer is right!

8 + 1 = 9

Let's look back.

First: predict.

Then: actual minus predicted.

Last: check.

Answer
residual = 9 − 8 = 1

▶ Watch it solved

Line of best fit y = 0.5x + 2, points (2, 4), (4, 3), (6, 6), find… Harder

The question

Question: find the residuals for the line of best fit y = 0.5x + 2 and the points (2, 4), (4, 3) and (6, 6).

The points are the real data.

y = 0.5x + 2; (2, 4), (4, 3), (6, 6)

A residual tells how far a point is from the line.

Residual = actual minus predicted.

Actual is the real y.

Predicted is the y the line gives.

residual = actual − predicted

1 Predict

First we predict each y: x = 2 into the line gives 3.

x = 2 : 0.5(2) + 2 = 1 + 2 = 3

Next: x = 4 into the line gives 4.

x = 4 : 0.5(4) + 2 = 2 + 2 = 4

Next: x = 6 into the line gives 5.

x = 6 : 0.5(6) + 2 = 3 + 2 = 5

2 Actual minus predicted

Careful!

Not predicted minus actual.

That flips the sign.

Actual comes first.

Careful: not 3 − 4 = −1 ✗

Actual minus predicted.

4 minus 3 is 1: 1 above the line.

x = 2 : 4 − 3 = 1

3 minus 4 is −1: 1 below the line.

x = 4 : 3 − 4 = −1

6 minus 5 is 1: 1 above the line.

x = 6 : 6 − 5 = 1

So the residuals are 1, −1, 1.

Positive means above the line, negative means below.

3 Check

Let's check with a picture.

The line of best fit.

The points.

The residual is the distance up or down from the line to the point.

And predicted plus residual gives the actual y: 4, 3, 6.

So the answer is right!

3 + 1 = 4, 4 − 1 = 3, 5 + 1 = 6

Let's look back.

First: predict.

Then: actual minus predicted.

Last: check.

Answer
x = 6 : 6 − 5 = 1

▶ Watch it solved

Practice

Try each one, then open the answer. Stuck? Open the problem to watch every step.

Easy

  1. line of best fit y = 2x + 1, point (3, 8), find the residual
    Answer
    residual = 8 − 7 = 1
  2. line of best fit y = 3x - 2, point (4, 7), find the residual
    Answer
    residual = 7 − 10 = −3
  3. line of best fit y = -x + 9, point (4, 2), find the residual
    Answer
    residual = 2 − 5 = −3
  4. line of best fit y = x + 4, point (2, 9), find the residual
    Answer
    residual = 9 − 6 = 3
  5. line of best fit y = 2x + 3, point (5, 10), find the residual
    Answer
    residual = 10 − 13 = −3
  6. line of best fit y = 4x - 1, point (2, 7), find the residual
    Answer
    residual = 7 − 7 = 0
  7. line of best fit y = 0.5x + 3, point (4, 6), find the residual
    Answer
    residual = 6 − 5 = 1

Medium

  1. line of best fit y = 1.5x + 2, point (4, 9), find the residual
    Answer
    residual = 9 − 8 = 1
  2. line of best fit y = -2x + 12, point (3, 8), find the residual
    Answer
    residual = 8 − 6 = 2
  3. line of best fit y = 3x + 5, point (2, 13), find the residual
    Answer
    residual = 13 − 11 = 2
  4. line of best fit y = 0.5x + 1, point (6, 2), find the residual
    Answer
    residual = 2 − 4 = −2
  5. line of best fit y = 2x - 3, point (5, 4), find the residual
    Answer
    residual = 4 − 7 = −3
  6. line of best fit y = 2.5x, point (2, 7), find the residual
    Answer
    residual = 7 − 5 = 2
  7. line of best fit y = -x + 6, point (1, 3), find the residual
    Answer
    residual = 3 − 5 = −2
  8. line of best fit y = x + 2, point (6, 10), find the residual
    Answer
    residual = 10 − 8 = 2

Harder

  1. line of best fit y = 0.5x + 2, points (2, 4), (4, 3), (6, 6), find the residuals
    Answer
    x = 6 : 6 − 5 = 1
  2. line of best fit y = 2x + 1, points (1, 4), (2, 4), (3, 8), find the residuals
    Answer
    x = 3 : 8 − 7 = 1
  3. line of best fit y = -x + 10, points (2, 9), (4, 5), (6, 5), find the residuals
    Answer
    x = 6 : 5 − 4 = 1
  4. line of best fit y = 3x - 1, points (1, 1), (2, 7), (3, 8), find the residuals
    Answer
    x = 3 : 8 − 8 = 0
  5. line of best fit y = x + 3, points (1, 5), (3, 5), (5, 9), (7, 9), find the residuals
    Answer
    x = 7 : 9 − 10 = −1