Lesson 5: Residuals and residual plots

Calculate and interpret a residual

SkillCalculating residuals

Worked example

  • Simple familiar

For the café data, the least-squares line is

coffees sold=3.23×temperature−21.86\text{coffees sold} = 3.23 \times \text{temperature} - 21.86

On a 30 °C day the café sold 82 iced coffees. Calculate the residual for this day and explain what it tells you.

1 of 3 steps
  1. Step 1: Find the predicted value

    3.23×30−21.86=75.043.23 \times 30 - 21.86 = 75.04
    75.0475.04

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Substitute the explanatory value to find the predicted value.

  2. Residual = actual − predicted.

  3. Positive: above the line (under-predicted). Negative: below (over-predicted).

Watch out for

  • Calculating predicted − actual, which gives −6.96-6.96.

Save your progress with a free account