Why the Sign Matters
A fitted regression line gives a predicted response for each predictor value. Comparing that fitted value with the response actually observed for the same case tells us the direction of the discrepancy. The sign of the residual gives this direction: it indicates whether the observed point lies above, below, or exactly on the fitted line.
For example, if a model predicts a quiz score of 72 points and a student’s observed score is 76 points, the observed response is greater than the fitted value. The residual is positive. If the observed score is 68 points instead, the residual is negative. This interpretation is about the position of an observation relative to a model’s fitted value; by itself, it does not say whether the model is good overall or why the difference occurred.
Reading the Sign Geometrically
In a scatterplot, the horizontal axis represents the predictor and the vertical axis represents the response. At a case’s predictor value, compare the observed point’s vertical position with the fitted line. A point above the line has a response greater than the fitted value, so its residual is positive. A point below the line has a response smaller than the fitted value, so its residual is negative. A point on the line has a residual of zero.
The residual is a vertical difference, measured in response units. It is not the shortest distance from the point to the line, which could run diagonally. The subtraction order matters: observed minus fitted. Reversing the order would reverse every sign and would no longer follow the residual definition.
This schematic scatterplot shows observations (filled circles, \(\bullet\)) and fitted values (open circles, \(\circ\)) for the line \(\hat{y}=x+2\). The fitted line is the straight line through the open circles. At \(x=1\), the observation is above its fitted value; at \(x=2\), it is below; at \(x=3\), it is below; and at \(x=4\), it is above. Where a filled and open circle occupy the same position, the observation and fitted value would coincide; there is no such case in this particular schematic.
The vertical comparisons in the plot make the sign visible, while calculation gives its numerical size. For instance, at \(x=2\), the fitted value is 4 and the observed response is 3, so the residual is \(3-4=-1\). It is one response unit below the line.
Worked Examples
Worked Example: A Score Above Its Fitted Value
Suppose a hypothetical regression relating hours studied, \(x\), to a quiz score in points gives the fitted value \(\hat{y}=52+4x\). One student studied 5 hours and scored 76 points. Find and interpret the residual.
First calculate the fitted score at \(x=5\): $$ \hat{y}=52+4(5)=52+20=72\text{ points}. $$
Then subtract the fitted value from the observed score: $$ e= y-\hat{y}=76-72=4\text{ points}. $$
The residual is positive because the observed score is greater than the fitted score. In this hypothetical example, the student scored 4 points above the value predicted by the fitted line for 5 hours of study. This describes a difference from the fitted value; it does not establish that studying caused the score or that the prediction was unusually inaccurate.
Worked Example: A Response Below Its Fitted Value
In a hypothetical analysis, a fitted line predicts a patient’s systolic blood pressure in millimeters of mercury from age in years. For a person aged 60 years, the fitted value is 132 mmHg; the observed value is 125 mmHg. Calculate the residual and interpret its sign.
Using observed minus fitted: $$ e= y-\hat{y}=125-132=-7\text{ mmHg}. $$
The residual is negative because the observed blood pressure, 125 mmHg, is lower than the fitted value, 132 mmHg. The observed response is 7 mmHg below the line at age 60 years. The negative sign gives the direction of the difference; the number 7 gives its size in the response units.
The comparison is valid because both numbers are blood pressures in mmHg and refer to the same predictor value. Subtracting a fitted value for a different age would not give the residual for this case.
Worked Example: Interpreting Several Points on a Scatterplot
Consider the schematic plot above, whose fitted line is \(\hat{y}=x+2\). Here \(x\) is a predictor measured in units and \(y\) is a response measured in response units. The observed responses at \(x=1,2,3,4\) are respectively 4, 3, 4, and 7. Find the residual at each predictor value and use the plot to check each sign.
At \(x=1\), the fitted value is \(1+2=3\), so $$ e_1=4-3=1. $$ The point is above the fitted line, and the residual is positive.
At \(x=2\), the fitted value is \(2+2=4\), so $$ e_2=3-4=-1. $$ The point is below the fitted line, and the residual is negative.
At \(x=3\), the fitted value is \(3+2=5\), so $$ e_3=4-5=-1. $$ This point is also below the line, so its residual is negative.
At \(x=4\), the fitted value is \(4+2=6\), so $$ e_4=7-6=1. $$ The point is above the line, and the residual is positive. Each arithmetic result agrees with the point’s vertical position in the plot. All four residuals are expressed in the units of \(y\), not in units of \(x\).
Why the Sign Interpretation Follows
The geometric rule is a direct consequence of the definition, not a separate assumption about the data. At a fixed predictor value, the fitted line’s vertical coordinate is \(\hat{y}_i\), and the observed point’s vertical coordinate is \(y_i\). Their signed vertical difference is observed coordinate minus fitted coordinate.
At case \(i\), identify the observed response \(y_i\) and the fitted response \(\hat{y}_i\) at that same predictor value.
Compute \(e_i=y_i-\hat{y}_i\), keeping the observed response first.
If \(y_i>\hat{y}_i\), their difference is positive and the point is above the line. If \(y_i<\hat{y}_i\), the difference is negative and the point is below. If they are equal, the difference is zero and the point lies on the line.
Thus, for every case, the algebraic sign and the graphical position agree. The units also follow directly: subtracting two response values measured in the same units leaves a difference in those units. For a response measured in points, residuals are in points; for a response measured in millimeters of mercury, residuals are in mmHg.
There are no probability assumptions needed to determine the sign of a calculated residual. The essential requirements are that the observed response and fitted value refer to the same case, use the same response scale, and be compared using the definition \(y_i-\hat{y}_i\). Assumptions may matter for other regression goals, but they are not needed for this arithmetic and geometric interpretation.
What a Residual’s Sign Does and Does Not Say
The sign tells the direction of the observed response relative to the fitted value. The residual’s magnitude, \(\lvert e_i\rvert\), tells how far apart the two values are vertically. A residual of \(+1\) and a residual of \(-1\) have equal magnitudes but opposite directions. A residual of \(+10\) has a larger vertical discrepancy than one of \(+1\), assuming the same response units and context.
A positive residual does not mean the response is “good,” and a negative residual does not mean it is “bad.” Those judgments depend on the application and cannot be read from the sign alone. Nor does one positive or negative residual show that the fitted line systematically overpredicts or underpredicts across a whole data set. It describes one case’s response relative to its own fitted value.
A residual is calculated from an observed response and its fitted value. It is not itself a probability, a measure of causal effect, or a guarantee of what another case’s response will be. In particular, a point above the line says only that its observed response is greater than the fitted value at that predictor value. The plot and subtraction do not identify the reason for the difference.
Common Mistake: Reversing the Subtraction
A frequent error is to calculate fitted minus observed and then interpret that result using the usual residual rules. For the 76-point score with fitted value 72, that reversed calculation gives \(72-76=-4\), which might incorrectly be described as a negative residual. But the residual is defined as observed minus fitted, so the correct calculation is \(76-72=4\): positive, with the point above the line.
A second, related mistake is to call every positive residual an “overprediction.” The fitted value is below the observed response in that case, so the model has underpredicted that observation. A negative residual means the fitted value is above the observed response, so the model has overpredicted it for that case. A useful check is to say the comparison in words: “observed minus fitted.” If the verbal description and the sign disagree, check the subtraction order.
Check Your Understanding
For each question, use observed minus fitted and explain the sign in context.
- A fitted value for a commute time is 28 minutes, and the observed commute is 34 minutes. What is the residual, and is the point above or below the fitted line?
- A model predicts a response of 15 units, while the observed response is 19 units. What does the sign say about the observed response relative to the fitted value?
- An observed response and its fitted value are both 42 points. What is the residual, and where does the point lie relative to the line?
- Explain why a residual measured in kilograms cannot be interpreted as a difference in predictor units such as years.
- A learner calculates fitted minus observed and gets \(-3\). Why is that not the residual under the standard definition?