Tutorials › Regression Analysis (Undergraduate) › Large Residual With Low Leverage

Leverage and Influential Observations · Tutorial 558 of 991

Large Residual With Low Leverage

Learn to recognize a large residual at an ordinary predictor position and assess whether it substantially changes the fitted regression.

Intermediate 10 min read

What You'll Learn

  • Distinguish residual size from leverage and influence
  • Interpret what an ordinary predictor position means for leverage
  • Calculate residuals and leverage in simple regression examples
  • Use case-deletion identities to assess changes to a fitted model
  • Explain why a large residual alone does not establish strong influence
  • Identify common errors when screening observations

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.

Definition: In a regression with an intercept, the residual for case \(i\) is \(e_i=y_i-\hat{y}_i\), the observed response minus the fitted response. Its leverage is the diagonal hat value \(h_i\), which measures how unusual that case’s predictor values are in the fitted design. A case has low leverage when its predictor position is ordinary relative to the other cases. A case is influential when omitting it produces a consequential change in the fitted model.

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

$$ h_i=\frac{1}{n}+\frac{(x_i-\bar{x})^2}{\sum_{j=1}^{n}(x_j-\bar{x})^2}. $$

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

$$ r_i=\frac{e_i}{s\sqrt{1-h_i}}, $$

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

$$ e_{(i)}=\frac{e_i}{1-h_i}. $$

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

$$ X^\mathsf{T}X(\hat{\beta}-\hat{\beta}_{(i)}) =\mathbf{x}_i\bigl(y_i-\mathbf{x}_i^\mathsf{T}\hat{\beta}_{(i)}\bigr) =\mathbf{x}_i e_{(i)}. $$

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,

$$ \hat{y}_i-\hat{y}_{(i),i} =\frac{h_i e_i}{1-h_i}. $$

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

$$ h_5=\frac{1}{9}+\frac{(5-5)^2}{60} =\frac{1}{9}\approx 0.1111. $$

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:

$$ \frac{h_5e_5}{1-h_5} =\frac{(1/9)(16)}{8/9}=2\text{ minutes}. $$

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

$$ h_{10}=\frac{1}{20}+\frac{(10-10.5)^2}{665} =0.05038. $$

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

$$ r_{10}= \frac{18.9925}{4.5938\sqrt{1-0.05038}} \approx 4.24. $$

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

$$ D_i=\frac{e_i^2h_i}{p\,s^2(1-h_i)^2}. $$

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

$$ r_A=\frac{20}{5\sqrt{0.94}}\approx4.12, \qquad r_B=\frac{3}{5\sqrt{0.70}}\approx0.717. $$

Using the Cook’s distance formula, with \(p\,s^2=3(25)=75\), gives

$$ D_A=\frac{20^2(0.06)}{75(0.94)^2}\approx0.362, \qquad D_B=\frac{3^2(0.30)}{75(0.70)^2}\approx0.0735. $$

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.

Key takeaway: A case can have a large residual and low leverage when its predictor values are ordinary but its response is far from the fitted value. Such a case may be unusual without dominating the regression. Judge outcome discrepancy, predictor position, and fitted-model change as distinct features.

Check Your Understanding

Use the definitions and relationships in this tutorial to answer the following questions.

  1. In simple linear regression, why does a case at \(x_i=\bar{x}\) have leverage \(1/n\)?
  2. 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?
  3. 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.
  4. Why can a large raw residual look less extreme after internal studentization?
  5. What additional diagnostic information would you examine before concluding that a low-leverage case substantially affects a fitted regression?