Phase 1: Prepare
Step 1 Warm-up recall
From Module 1: what is the label in a table of examples?
Private: nothing you type here is sent or stored.
Step 2 Learning goal
By the end of this lesson you can:
- compute the error of a prediction (Foundation);
- tell over-prediction from under-prediction (Core);
- explain why the sign and the size matter separately (Core).
Phase 2: Teach
Step 3 A familiar example
A delivery firm quotes 30 minutes and the parcel takes 40. The quote was ten minutes too short. Whether the quote was too short or too long, and by how much, are two separate facts.
Step 4 Clear explanation
The error of one prediction is the gap between what the model predicted and what actually happened: error = predicted − actual. A positive error means the model over-predicted; a negative error means it under-predicted.
| Home | Actual price (£k) | Predicted (£k) | Error = predicted − actual | Absolute error |
|---|---|---|---|---|
| A | 200 | 210 | +10 | 10 |
| B | 240 | 230 | −10 | 10 |
| C | 280 | 300 | +20 | 20 |
The absolute error drops the sign and keeps the size: 10, 10 and 20. The sign still matters. A model that always over-predicts is biased in a known direction, which may be fixable, and a house-price model that is too high costs a buyer, while one that is too low costs a seller. If we simply added the signed errors (+10, −10, +20) the first two would cancel out, which hides the fact that two of three predictions were wrong. So summaries use absolute or squared errors, as the next lesson shows.
Step 5 Worked example (4 marks)
A model predicts a delivery time of 32 minutes and the actual time is 40. Give the error and the absolute error, and say which way the model missed.
- Error = predicted − actual = 32 − 40 = −8. (1 mark)
- Absolute error = 8. (1 mark)
- The sign is negative, so the model under-predicted. (1 mark)
- Answer: −8, 8 and under-predicted. (1 mark)
Go deeper: the professor's notes
Positive.
Negative.
Absolute.
Signs
| Error | Meaning |
|---|---|
| +10 | over-predicted |
| −10 | under-predicted |
At work: Delivery times
A parcel is quoted at 32 minutes and takes 40.
- Compute predicted minus actual.
- Note the sign.
What a careful practitioner decides. Report both the size and the direction of the miss.
Phase 3: Practise
Step 6 Learner practice (instant-marked)
1. Error is defined here as:
Predicted minus actual.
2. A negative error means the model:
Predicted below actual.
3. The absolute error of −15 is:
The size without the sign.
4. Adding signed errors can hide mistakes because:
Cancellation.
Phase 4: Close
Step 7 Recap
- Error = predicted − actual.
- The sign gives direction; the absolute error gives size.
- Signed errors can cancel, so summaries use absolute or squared errors.
Step 8 Exit ticket (ungraded)
A model predicts 55 and the actual value is 50. Give the error and say which way it missed.
Private: nothing you type here is sent or stored.
Step 9 Go further (Extension)
Find a forecast you rely on and note one occasion it was too high and one too low.
In industry: Netflix Prize: a trivial predictor sets the bar
A trivial predictor that gives each film its average rating scored an RMSE of 1.0540 on the quiz set. The company's own system scored 0.9514, roughly a 10 percent improvement. To win the million-dollar prize a team had to improve on the company's system by a further 10 percent, reaching 0.8572 on the test set.
Link to this lesson. Prizes, like products, are set as an improvement on a stated baseline, and RMSE was the measure.
Source: Netflix Prize, Wikipedia, citing Bennett and Lanning (2007); Feuerverger, He and Khatri (2012)
Common mistakes
| Mistake | Why it fails |
|---|---|
| Mixing up the order | Use predicted minus actual every time. |
| Averaging signed errors | They cancel; use absolute or squared errors. |
| Ignoring the sign | Direction can be as costly as size. |
Limits. This lesson treats numeric predictions; errors for categories are covered in Lesson 3.