Why a Large Residual Does Not Automatically Mean High Influence
A data point can be surprising in its outcome without being unusual in its predictor values. For example, a clinic might have a typical staffing level for the clinics in a data set but a much longer-than-expected wait time. In a regression, this case may have a large residual while having low leverage. Those are different features of the observation, and neither one alone tells the whole story about its effect on the fitted model.
The distinction matters because a large residual describes the vertical discrepancy between an observed response and a fitted response. Leverage describes how unusual the predictor values are relative to the predictor values used to fit the model. Influence describes how much the fitted model changes when a case is removed. A case with ordinary predictors can be far from the fitted line, yet the fitted line may change only modestly when that case is omitted.
Model and Key Relationships
For the calculations below, assume an ordinary least-squares regression with an intercept and \(p\) fitted coefficients. In simple linear regression, the model for the conditional mean is \(E(Y_i\mid x_i)=\beta_0+\beta_1x_i\). The standard regression model assumes a correctly specified conditional mean, independent errors with mean zero and constant variance, and a full-rank predictor design. Normal errors are additionally used for exact small-sample inference, but are not needed for the algebraic identities below.
Leverage is determined by the predictor values, not by the observed responses. In simple linear regression, it has the form
Thus a predictor value near \(\bar{x}\) has leverage near \(1/n\), the minimum possible value in this setting. In a regression with \(p\) coefficients and an intercept, the average leverage is \(p/n\). “Low” should therefore be understood relative to the design and the other cases; it is not a judgment about the response.
A residual can be standardized to account for its estimated scale and leverage. The internally studentized residual is
where \(s=\sqrt{\text{SSE}/(n-p)}\) is the residual standard error from the full fit. A large raw residual may or may not be large on this standardized scale. Also, because \(s\) is estimated using all cases, an extreme residual can itself increase \(s\); the externally studentized deleted residual instead estimates the error scale after omitting the case.
How Leverage Limits a Case’s Fitted-Value Change
The exact case-deletion identity makes the leverage-residual distinction concrete. Let \(\hat{\beta}\) be the full-sample coefficient vector and \(\hat{\beta}_{(i)}\) the coefficient vector after case \(i\) is omitted. Write \(\mathbf{x}_i\) for the predictor vector of case \(i\), including its intercept term. Provided that deleting the case leaves the design full rank, the deleted residual \(e_{(i)}=y_i-\mathbf{x}_i^\mathsf{T}\hat{\beta}_{(i)}\) satisfies
Here is a justification. The full-sample normal equations are \(X^\mathsf{T}X\hat{\beta}=X^\mathsf{T}y\). Removing case \(i\) subtracts \(\mathbf{x}_i\mathbf{x}_i^\mathsf{T}\) from the left-hand design cross-product and subtracts \(\mathbf{x}_iy_i\) from the right-hand side. Subtracting the deleted normal equations from the full ones gives
Multiplying by \((X^\mathsf{T}X)^{-1}\) and then by \(\mathbf{x}_i^\mathsf{T}\) shows that the full-fit prediction at case \(i\) minus the deleted-fit prediction there is \(h_i e_{(i)}\). Since \(e_i=e_{(i)}-h_i e_{(i)}\), rearranging yields the identity. In particular,
When \(h_i\) is low, this change in the fitted value at the case’s own predictor position is a relatively small fraction of its residual. That does not guarantee that every coefficient or every prediction changes negligibly, but it explains why a large vertical discrepancy need not pull the fit strongly. Influence also depends on the model’s scale and the direction of the predictor vector.
Worked Examples
Worked Example: A Large Residual at the Center of the Predictor Values
Suppose nine hypothetical clinics have staffing values \(x=1,2,\ldots,9\). Their wait times follow \(y=50+4x\), except that the clinic at \(x=5\) has an observed wait time 18 minutes above that pattern. Find its leverage and residual, then compare the full fit with the fit excluding that clinic.
Check the setup. The predictor values are fixed and symmetric around \(\bar{x}=5\). The other eight responses follow a straight-line pattern exactly. This construction illustrates the OLS geometry; it cannot establish real-world independence or constant error variance.
The unperturbed wait time at \(x=5\) is \(50+4(5)=70\) minutes, so its observed wait time is \(88\) minutes. For \(x=1,\ldots,9\), the sum of squared deviations is \(60\). Its leverage is therefore
The response increase of 18 minutes at the central predictor value changes the fitted intercept by \(18/9=2\) minutes and leaves the slope unchanged: the centered predictor deviation is zero, so the perturbation contributes nothing to the slope. The full fitted line is consequently \(\hat{y}=52+4x\). At \(x=5\), the fitted value is \(72\) minutes, giving residual \(e_5=88-72=16\) minutes. The other eight residuals are each \(-2\) minutes.
If the unusual clinic is omitted, the original line \(\hat{y}_{(5)}=50+4x\) is recovered. Its fitted value at \(x=5\) is 70 minutes, so the full and deleted fits differ there by 2 minutes. The identity gives the same result:
The 16-minute residual is large compared with the other residuals, but the case has low leverage and changes the fitted value at its own predictor position by only 2 minutes. The full fit still moves: “low leverage” does not mean “no effect.”
Worked Example: A Large Standardized Residual with Low Leverage
Consider 20 hypothetical observations with predictor values \(x=1,\ldots,20\) and baseline responses \(y=10+2x\). At \(x=10\), increase the response by 20 units, from 30 to 50. Calculate the leverage, residual, internally studentized residual, and Cook’s distance for that case.
The predictor mean is \(\bar{x}=10.5\), and \(\sum (x_j-\bar{x})^2=665\). Thus
This is low leverage relative to the average leverage \(p/n=2/20=0.1\) for this simple regression. The response perturbation is 20 units. Its effect on the fitted slope is \(20(10-10.5)/665=-0.01504\), and its effect on the intercept is \(20/20-10.5(-0.01504)=1.1579\). The fitted value at \(x=10\) therefore increases by \(1.1579-10(0.01504)=1.0075\) units from the baseline value of 30. The full-fit residual is \(e_{10}=50-31.0075=18.9925\) units.
The residual sum of squares contributed by the perturbation after fitting is \(20^2(1-h_{10})=379.8496\). With \(n-p=18\) residual degrees of freedom, \(s^2=379.8496/18=21.1028\), so \(s=4.5938\). The internally studentized residual is
This is large on the internally studentized scale, as well as in the response’s units. Yet the fitted coefficients have changed only modestly: over the observed predictor range, the fitted line is shifted from the baseline by about \(1.14\) units at \(x=1\) and \(0.8571\) units at \(x=20\). Omitting this case restores the baseline line exactly.
For a numerical summary of influence, Cook’s distance for a case in a model with \(p\) coefficients is
Here \(p=2\), so \(D_{10}=(18.9925^2)(0.05038)/[2(21.1028)(0.94962)^2]\approx 0.478\). This value is not a universal pass/fail verdict. It summarizes fitted-model change on a scale that combines residual size and leverage; interpretation depends on the model and the diagnostic context.
Worked Example: Comparing Residual Size and Leverage Together
Suppose a hypothetical regression with \(n=30\), \(p=3\) coefficients, and \(s^2=25\) reports two cases. Case A has \(h_A=0.06\) and \(e_A=20\) response units. Case B has \(h_B=0.30\) and \(e_B=3\) response units. Compare their internally studentized residuals and Cook’s distances.
The average leverage is \(p/n=0.10\), so A’s leverage is low relative to the average and B’s is higher. The common residual standard error is \(s=5\) response units. Hence
Using the Cook’s distance formula, with \(p\,s^2=3(25)=75\), gives
In this example, A has both a much larger standardized residual and the larger Cook’s distance, despite having lower leverage. The comparison demonstrates why residual size and leverage should be considered together: low leverage does not erase a very large residual, and high leverage does not by itself guarantee strong influence. These hypothetical diagnostics describe possible patterns, not a rule that one number automatically determines whether a case should be removed.
What to Conclude—and What Not to Conclude
A large residual at low leverage is evidence that the observed response is far from the fitted conditional mean at an ordinary predictor position. It can flag an unusual outcome, a data-recording problem, omitted structure in the model, or ordinary random variation. The residual alone cannot distinguish among these explanations. Nor does it show that the observation is invalid or should be deleted.
The effect on the fitted model depends on more than whether the residual looks large. Leverage enters the exact fitted-value change, while the model’s residual scale affects standardized diagnostics and Cook’s distance. A careful interpretation therefore keeps three questions separate:
- Is the outcome unusual? Inspect the residual in context and, where appropriate, on a standardized scale.
- Are the predictors unusual? Assess leverage from the predictor design, not from the response.
- Does the case change the fit? Examine a suitable influence measure or compare the full fit with the case-deleted fit.
A common mistake is to reason, “This point has the largest residual, so it must control the regression.” That confuses vertical discrepancy with influence. The correction is to check the predictor leverage and a measure of fitted-model change as well. The reverse mistake is also possible: “Its leverage is low, so it cannot matter.” A sufficiently large residual can still produce meaningful influence, so low leverage is not a guarantee of negligible effect.
Check Your Understanding
Use the definitions and relationships in this tutorial to answer the following questions.
- In simple linear regression, why does a case at \(x_i=\bar{x}\) have leverage \(1/n\)?
- A case has a large residual but leverage below the average. What does that tell you about its response and predictor position, and what does it not tell you about influence?
- For \(e_i=12\) response units and \(h_i=0.10\), calculate the difference between the full-fit and deleted-fit predictions at that case’s predictor values.
- Why can a large raw residual look less extreme after internal studentization?
- What additional diagnostic information would you examine before concluding that a low-leverage case substantially affects a fitted regression?