Tutorials › AP Statistics › Sign of a Residual: Over- and Underprediction

Residuals · Tutorial 883 of 1000

Sign of a Residual: Over- and Underprediction

Use the sign of a residual to tell whether a regression line’s prediction is lower or higher than an observed response.

Intermediate 8 min read

What You'll Learn

  • Explain why a positive residual places a point above its regression line.
  • Explain why a negative residual places a point below its regression line.
  • Connect positive residuals to underprediction and negative residuals to overprediction.
  • Recognize a zero residual as an observed point on the line.
  • Distinguish residual sign from the slope’s sign and the point’s predictor value.

What a Residual’s Sign Tells You

In “Calculating a Residual by Hand,” you found a residual by subtracting the predicted response from the observed response. The result is not just a measure of how far a point is from the fitted line: its sign tells you which side of the line the point is on, and whether the line’s prediction was too low or too high for that observation.

For an observed case, \(y\) is the actual response and \(\hat{y}\) is the response predicted by the regression line at that case’s \(x\)-value. The residual is \(y-\hat{y}\). Because the subtraction is observed minus predicted, compare those two response values to determine the sign.

Definition: A positive residual means the observed response is greater than the predicted response. The point is above the regression line, and the line underpredicted the response. A negative residual means the observed response is less than the predicted response. The point is below the line, and the line overpredicted the response. A zero residual means the observed response equals the prediction, so the point is on the line.

The geometric explanation follows directly from a scatterplot. At a particular predictor value \(x\), the regression line has height \(\hat{y}\), while the data point has height \(y\). The residual \(y-\hat{y}\) is the signed vertical difference between those heights. If the point is higher, \(y\) is greater and the difference is positive. If the point is lower, \(y\) is smaller and the difference is negative.

$$ \begin{aligned} y>\hat{y} &\Longrightarrow y-\hat{y}>0 &&\text{point above the line; underprediction}\\ y<\hat{y} &\Longrightarrow y-\hat{y}<0 &&\text{point below the line; overprediction}\\ y=\hat{y} &\Longrightarrow y-\hat{y}=0 &&\text{point on the line} \end{aligned} $$

“Underprediction” means the line’s predicted response is less than the observed response for that case. “Overprediction” means its predicted response is greater than the observed response. These words describe the direction of the prediction error relative to the observation; they do not say whether a larger response is good or bad. For example, underpredicting a wait time means the model predicted fewer minutes than the person actually waited.

Read the Sign at the Same Predictor Value

To compare an observation with a line, use the line’s predicted response at the observation’s own \(x\)-value. The comparison is vertical: the point and the line are considered at the same horizontal position. Comparing a point with the line’s height at some other \(x\)-value does not determine that point’s residual.

The size and sign answer different questions. The sign tells which side of the line the point is on; the absolute value tells the vertical distance from the line in response units. For instance, a residual of \(-6\) and a residual of \(+6\) have the same distance from the line, but they lie on opposite sides and indicate opposite prediction directions.

A point’s predictor value does not determine its residual sign. Points to the left or right of the mean can each be above or below the line. Likewise, a positive slope does not mean that every residual is positive, and a negative slope does not mean that every residual is negative. The slope describes the direction of the fitted line; the residual sign describes the position of an individual observed point relative to that line.

Key distinction: The slope’s sign describes whether the line rises or falls as \(x\) increases. A residual’s sign describes whether one observed response is above or below the line at its own \(x\)-value. Do not use one sign to infer the other.

Worked Example: Underpredicting a Trailhead Wait

Worked Example: Underpredicting a Trailhead Wait

A fictional park team uses the line \(\hat{y}=12+1.5x\) to predict a trailhead wait time. Here, \(x\) is the number of tour groups arriving in an hour, and \(y\) is the wait in minutes. One hour has \(x=8\) groups and an observed wait of \(y=28\) minutes. Determine the residual’s sign and explain what it means.

State. The observed response is 28 minutes. The prediction must be found from the line at \(x=8\) groups.

Plan. Calculate \(\hat{y}\), then compare the observed response with that prediction using \(y-\hat{y}\). The sign will show whether the plotted point is above or below the line.

Do. The line predicts:

$$ \hat{y}=12+1.5(8) =12+12 =24\text{ minutes}. $$

The residual is:

$$ y-\hat{y} =28-24 =4\text{ minutes}. $$

Conclude. The residual is positive because the observed wait, 28 minutes, exceeds the predicted wait, 24 minutes. The point is 4 minutes above the line, and the line underpredicted this hour’s wait by 4 minutes. As a check, the prediction plus the residual gives \(24+4=28\) minutes, the observed wait.

Notice that the positive residual does not mean the line has a positive slope, even though this example’s slope happens to be positive. The residual’s sign comes from comparing this observation with the line’s prediction, not from the coefficient of \(x\).

Worked Example: Overpredicting Lantern Charge

Worked Example: Overpredicting Lantern Charge

A fictional equipment team models a lantern’s remaining charge with \(\hat{y}=75-2x\), where \(x\) is operating time in hours and \(y\) is charge in percentage points. At \(x=12\) hours, a lantern’s observed charge is 45 percentage points. Is this observation above or below the line, and did the line overpredict or underpredict?

State. The observed response is \(y=45\) percentage points, and the predictor value for this lantern is \(x=12\) hours.

Plan. Evaluate the fitted line at 12 hours. Then calculate observed minus predicted; a negative result will indicate a point below the line.

Do. The predicted charge is:

$$ \hat{y}=75-2(12) =75-24 =51\text{ percentage points}. $$

Now compare the observed charge with that prediction:

$$ y-\hat{y} =45-51 =-6\text{ percentage points}. $$

Conclude. The residual is negative because 45 is less than 51. The observed point is 6 percentage points below the line, so the line overpredicted the lantern’s charge by 6 percentage points. The check \(51+(-6)=45\) recovers the observed charge.

Here the regression line has a negative slope, but the residual is negative for a separate reason: this particular observed charge is below the fitted value. Another lantern at a different operating time could have a positive residual even when evaluated against this same downward-sloping line.

Worked Example: A Point on the Line

Worked Example: A Point on the Line

A fictional greenhouse uses \(\hat{y}=4+0.8x\) to predict the water used by a seedling tray, where \(x\) is the number of days since planting and \(y\) is water in liters. For one tray at \(x=15\) days, the observed amount is 16 liters. Find the residual and explain the point’s position.

State. The observed response is 16 liters at \(x=15\) days.

Plan. Find the predicted water amount at 15 days and subtract that prediction from the observed amount.

Do. The line predicts:

$$ \hat{y}=4+0.8(15) =4+12 =16\text{ liters}. $$

Therefore:

$$ y-\hat{y} =16-16 =0\text{ liters}. $$

Conclude. The residual is zero, so the observed response matches the line’s prediction exactly. On a scatterplot, the point lies on the line at \(x=15\) days; the line neither underpredicted nor overpredicted this observation.

Common Mistakes and AP Exam Tips

A full-credit explanation connects the arithmetic to both the point’s position and the prediction in context. Give the residual sign, say above or below the line, and identify whether the line underpredicted or overpredicted. Use the response variable and its units when describing the difference.

  • Reversing the subtraction. The residual is observed minus predicted, \(y-\hat{y}\). Reversing it flips the sign and leads to the opposite conclusion about the point’s position.
  • Calling a positive residual an overprediction. If \(y-\hat{y}\) is positive, the observed value is larger than the prediction. The line was too low, so it underpredicted.
  • Confusing residual sign with slope sign. The slope describes the fitted line’s direction, not the side of the line on which every point lies. Use the observed and predicted responses for the specific case.
  • Comparing at different predictor values. A residual measures the vertical difference between the observation and the line at that observation’s \(x\). Do not compare the point with a prediction made for another \(x\).
  • Using “above” or “below” without naming the line. State that the point is above or below the regression line. “The response is high” is less precise because it does not say what it is high relative to.
  • Dropping units or giving an unclear prediction statement. A residual has the response variable’s units. Write, for example, “The line underpredicted the wait by 4 minutes,” rather than only “It was off by 4.”
  • Treating zero as a positive or negative residual. A residual of zero means the observed response equals its prediction. The point is on the line, with no overprediction or underprediction for that observation.

A useful final check is to ask whether the sign agrees with the comparison: if the observation is greater than the prediction, the residual must be positive; if it is smaller, the residual must be negative. When a residual is already calculated, adding it to the prediction should recover the observed response. These checks help catch a reversed subtraction before you write your interpretation.

Key takeaway: A positive residual places an observed point above the regression line and means the line underpredicted. A negative residual places the point below the line and means the line overpredicted. A zero residual places the point on the line.

Check Your Understanding

For each situation, use the observed response and the prediction at the same \(x\)-value to determine the residual’s sign and interpret it.

  1. A line predicts a 36-minute wait, but the observed wait is 40 minutes. Is the residual positive or negative? Is the point above or below the line, and did the line overpredict or underpredict?
  2. A line predicts 72 points for a team’s score, and the observed score is 65 points. Describe the residual’s sign, the point’s position, and the prediction error in context.
  3. At a particular predictor value, the observed response equals the fitted line’s prediction. What is the residual, and where is the point relative to the line?
  4. Can a point with a predictor value greater than \(\bar{x}\) have a negative residual? Explain why or why not.
  5. A fitted line has a negative slope. Does that guarantee all observed points have negative residuals? Explain the difference between the slope’s sign and a residual’s sign.