← Statistics and probability

Residuals

Actual minus predicted.

Start this lesson

A residual is how far a real data point is from the line of best fit: residual = actual y − predicted y. A positive residual means the point is above the line (the model underestimated); a negative residual means it is below.

Example: ŷ = 10 + 3x; the point (4, 25)

  1. predicted: 10 + 3(4) = 22
  2. 25 − 22 = 3 — Residual: the point is 3 above the line

Why it works: A residual is the miss: actual minus predicted. Positive means the point is above the line.

Tip: Remember the order with “actual minus predicted”: A comes before P in the alphabet.