Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Statistics · Unit 5 · Step-Through Animation

Residuals

Actual Minus Predicted, in That Order

You'll learnthe residual as actual minus predicted and what its sign means, how to read one in context, what a residual plot is for, why random scatter is the good case, and how a curve in the residuals overrules any correlation.

A residual is what the model missed for one student, and it is computed in one order: actual minus predicted. Reverse the subtraction and every sign flips, so over-prediction and under-prediction trade places — this page draws both plots side by side and checks that each pair is an exact negation. Collected against the hours, the residuals answer a question the scatterplot answers less sharply and the correlation cannot answer at all: is a straight line the right shape. A cloud built from a curve still earns r = 0.925 here, and its residuals arch 8.9 points from ends to middle. The residual plot wins that argument every time. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · THE ORDER · THE SIGN · THE PLOT · PATTERNS · v2

Actual minus predicted; a curve gives r = 0.925 and an 8.9-point arch
Before you start
What you're looking at
The eight students and their fitted line, and then the same eight numbers with the line subtracted out — which is all a residual plot is.
The question
The scatterplot and the correlation both say the fit is good. What can the residual plot see that neither of them can?
Step 1 / 12

Read all 12 steps as text
Step 1

The gap between a student and the line

The line offers a score for every number of study hours, and the student who studied seven of them did not land on it: the dot floats above, joined to the line by a short vertical stem.

Step 2

Residual = actual minus predicted

The residual is \(y - \hat{y}\), and the order is not negotiable: the actual value comes first, so a student above the line comes out positive and the sign says the model came in low.

Step 3

One above the line, one below

The student at eight hours went the other way, landing under the line instead of over it, and the same subtraction in the same order now returns a negative number.

Step 4

Below the line means the model aimed high

A negative residual says the prediction was too big for that student, which is over-prediction; the positive case, where the model came in low, is under-prediction.

Step 5

All eight at once, and they cancel

Draw every stem together and the misses go both ways, and they do more than roughly balance: for a least-squares line the residuals add to exactly zero, which is the arithmetic check the lesson names.

Step 6

Now subtract the line out

Watch the eight points fall onto a flat rule at zero: nothing is added and nothing is recomputed, the fitted line is simply subtracted out, and what is left is the part the model could not explain — at a scale where a two-point miss is a quarter of the picture instead of invisible.

Step 7

Subtract the other way and every sign flips

The right-hand plot is the same eight students with the subtraction reversed, and it is the left-hand plot turned upside down about the rule: every student who was above zero is now below it, so under-prediction and over-prediction swap names.

Step 8

No pattern is the good news

These residuals bend nowhere, fan nowhere and drift nowhere, and that is the verdict rather than the absence of one: a straight line that suits the data is supposed to leave behind misses with no structure at all.

Step 9

A cloud built from a curve

These points come from a formula that rises steeply and then flattens, and a straight line fitted to them scores a large correlation — so put that cloud beside its own residual plot and see what the line left behind.

Step 10

A curved residual plot outranks a big r

The misses are not scattered at all: the four middle points sit high and the two ends sit low, an arch the correlation has no way to report, and the residual plot settles the question of shape whatever the correlation says.

Step 11

A different shape: the spread grows

This cloud really is straight — the trend is a fixed number of points per hour — but the students scatter further from the line the more hours they study, which is a shape of its own.

Step 12

Growing spread is its own finding

Nothing bends here — the arch is flat — but the predictions are far more precise at low hours than at high ones, and that is reported as its own finding rather than as a curve.