Resources For Teachers For Tutors For Students & Parents Pricing
Algebra Data and statistics

Residuals

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Introduction to residuals and least squares regression Watch
  • Residuals (2.3) Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A residual measures how far a data point is from the line:

\[\text{residual}=\text{actual}-\text{predicted}.\]

It is the vertical distance from the point to the line.

Small, randomly scattered residuals mean the line fits well.
Residuals A residual is the vertical distance from a data point to the line of best fit. residuals
Residuals are the vertical gaps to the line.
Residuals Residuals Residuals residual = actual - predicted vertical distance to the line small residuals β†’ good fit a random pattern β†’ good model
Understanding residuals.

The residual:

\[\text{residual}=y_{\text{actual}}-y_{\text{predicted}}\]
residual is actual minus predicted
Positive above the line, negative below.

How to use residuals

  1. Predict \(y\) from the line.
  2. Subtract: actual minus predicted.
  3. Small residuals mean a good fit.
  4. A random residual plot supports a linear model.
Example 1 β€” Compute a residual
The actual value is \(7\); the line predicts \(5\). Find the residual.
Solution

Residual is actual minus predicted.

\(7-5\)\(=\)\(2\)
the residual is 2
Example 2 β€” Negative residual
Actual \(4\), predicted \(6\). Find the residual.
Solution

Below the line gives a negative residual.

\(4-6\)\(=\)\(-2\)
the residual is negative 2
Example 3 β€” Good fit
What do small residuals indicate?
Solution

A line that fits the data closely.

a good fit
Example 4 β€” Residual plot
What does a random residual plot suggest?
Solution

A linear model is appropriate.

a linear model fits well

Common pitfalls

Residual is actual minus predicted, in that order.
A patterned residual plot means a poor model.
Residuals can be negative (below the line).

Frequently asked questions

What is a residual?

Actual value minus the value predicted by the line.

What do small residuals mean?

The line fits the data well.

Can a residual be negative?

Yes β€” when the point is below the line.

What does a residual plot show?

Whether a linear model is appropriate.