Mistake Master
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.
Read all 12 steps as text
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.