Tutorials › Regression Analysis (Undergraduate) › Why Robust Residual Weights Do Not Fix High Leverage

Outliers and Robust Fitting · Tutorial 835 of 991

Why Robust Residual Weights Do Not Fix High Leverage

See why bounding residual influence is not the same as controlling leverage, and learn what a residual-only robust fit can and cannot protect against.

Advanced 11 min read

What You'll Learn

  • Write the estimating equation for a residual-based M-estimator and identify the predictor value in each case’s contribution.
  • Explain why bounded residual scores do not guarantee bounded influence when predictor values are extreme.
  • Distinguish a large predictor-space distance from a large response residual.
  • Calculate classical leverage in a simple regression design and interpret it as a diagnostic.
  • Compare residual downweighting with approaches that explicitly account for leverage.
  • Describe practical checks to make before relying on a robust regression fit.

Why a Robust Residual Rule Is Not a Complete Protection

A robust regression method may limit how much a very large response residual can affect a fitted line. That is useful when an observation is unusual in its response given its predictors. It does not automatically protect the fit from an observation whose predictor values are far from the rest of the data. Such a case can have substantial influence on the fitted coefficients even when its residual is modest—or zero.

The distinction is between two ways a case can be unusual. A response outlier has a response value that is far from the pattern described by the predictors. A high-leverage case has predictor values that are unusual relative to the other cases. One observation can be either kind, both kinds, or neither. Residual-based weighting responds to residual size; by itself, it does not assess how unusual the predictors are.

Definition: In a residual-based M-estimator, coefficients are chosen to minimize a sum of losses applied to the response residuals, often after scaling them by a robust estimate of residual scale. The case’s contribution to the coefficient estimating equation includes both its residual score and its predictor vector. Bounding the residual score does not, by itself, bound the contribution when predictor values can be arbitrarily large.

Where the Predictor Values Enter

For a regression with \(p\) coefficients, write the model for case \(i\) as \(y_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}+\varepsilon_i\). Here \(\mathbf{x}_i\) is the predictor vector, including a 1 for the intercept when the model has an intercept. The fitted residual is \(r_i=y_i-\mathbf{x}_i^\mathsf{T}\hat{\boldsymbol{\beta}}\). A residual-based M-estimator minimizes

$$ \sum_{i=1}^{n}\rho\left(\frac{r_i}{s}\right), $$

where \(\rho\) is a chosen residual loss and \(s\) is a positive residual scale. Let \(\psi=\rho'\). At a differentiable minimum, the coefficient estimating equation is

$$ \sum_{i=1}^{n}\mathbf{x}_i \psi\left(\frac{r_i}{s}\right)=\mathbf{0}. $$

The quantity \(\psi(r_i/s)\) is the residual score. For losses such as Huber loss, this score is bounded: once the standardized residual is sufficiently large, increasing its magnitude does not increase the score’s magnitude. But the case contributes the product of that score and \(\mathbf{x}_i\). A bounded score multiplied by an unbounded predictor value need not be bounded.

Many implementations express the same estimating equation using residual weights. When \(r_i\ne 0\), define \(w_i=\psi(r_i/s)/(r_i/s)\). Then the case contributes \(\mathbf{x}_i w_i(r_i/s)\), up to the common scale factor. This notation can make the protection seem stronger than it is: a small residual weight does not alone determine the coefficient contribution. The predictor vector and the residual both matter.

A Short Justification Using Influence

The same issue appears in a local measure of how a fitted coefficient changes when a small amount of contamination is introduced. Consider the population estimating equation \(E[\mathbf{X}\psi\{(Y-\mathbf{X}^\mathsf{T}\boldsymbol{\beta})/s\}]=\mathbf{0}\), with fixed scale \(s\). Assume the equation has a solution at the uncontaminated distribution, the relevant expectations exist, and the matrix below is nonsingular. For differentiable \(\psi\), define

$$ A=E\left[ \mathbf{X}\mathbf{X}^\mathsf{T} \frac{\psi'\{(Y-\mathbf{X}^\mathsf{T}\boldsymbol{\beta})/s\}}{s} \right]. $$

Now add a small fraction \(\epsilon\) of cases at a point \((\mathbf{x}_0,y_0)\). The estimating equation becomes a mixture: a fraction \(1-\epsilon\) from the original distribution and a fraction \(\epsilon\) at the added point. Differentiate that equation at \(\epsilon=0\). The change in the original-distribution part from a coefficient change is \(-A\) times that change; the added point contributes \(\mathbf{x}_0\psi(e_0/s)\), where \(e_0=y_0-\mathbf{x}_0^\mathsf{T}\boldsymbol{\beta}\). Setting the derivative of the equation to zero gives

$$ \operatorname{IF}((\mathbf{x}_0,y_0)) = A^{-1}\mathbf{x}_0\psi(e_0/s). $$

This is the influence function under the stated differentiability and fixed-scale conditions. If \(\psi\) is bounded, the residual factor is bounded. But if \(\mathbf{x}_0\) can grow without bound in a direction that affects the coefficients, the product need not be bounded. This argument does not say every high-leverage case must distort every robust fit; it shows why bounded residual scores alone cannot guarantee protection against leverage.

Worked Example: Comparing the Score Contributions

Consider a simple regression with an intercept, residual scale \(s=1\), and Huber score with cutoff \(c=1.345\): \(\psi(u)=u\) when \(|u|\le c\), and \(\psi(u)=c\,\operatorname{sign}(u)\) otherwise. At a particular fitting step, compare a regular case at \(x=2\) with residual \(r=2\) to a high-\(x\) case at \(x=100\) with residual \(r=10\). The values are hypothetical and are used only to illustrate the estimating equation.

For the regular case, \(u=2\), so \(\psi(u)=1.345\). Its slope-equation contribution is \(x\psi(u)=2(1.345)=2.690\). For the high-\(x\) case, \(u=10\), so its residual score is also capped at \(1.345\), but its slope contribution is \(100(1.345)=134.5\).

The high-\(x\) case’s residual score is no larger than the regular case’s score. Nonetheless, its slope contribution is 50 times as large because its predictor value is 50 times as large: \(134.5/2.690=50.0\). This does not calculate a completed fit; it isolates the two cases’ contributions at the specified fitting step. It shows precisely why bounding the residual score is not the same as bounding leverage-related influence.

Leverage and Residual Size Are Different Diagnostics

In ordinary least squares, leverage has a precise design-based definition. For a design matrix \(X\), the hat matrix is \(H=X(X^\mathsf{T}X)^{-1}X^\mathsf{T}\), when the inverse exists. The diagonal entry \(h_{ii}\) is the leverage of case \(i\). In simple linear regression with an intercept and one predictor,

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

This formula depends on the predictor values, not on whether a case has a large response residual. It is an ordinary least-squares design diagnostic; robust estimators need not have this same hat-matrix interpretation. Still, it illustrates the central distinction: a case can be far out in predictor space even if its response lies exactly on a fitted line.

Worked Example: High Leverage With No Response Residual

Suppose a hypothetical data set has five predictor values \(x=0,1,2,3,10\), with responses exactly on the line \(y=1+2x\). The five responses are therefore \(1,3,5,7,21\). Calculate the ordinary least-squares leverage of the case at \(x=10\), and compare it with the case at \(x=2\).

The predictor mean is \(\bar{x}=(0+1+2+3+10)/5=3.2\). The sum of squared deviations is \(S_{xx}=(-3.2)^2+(-2.2)^2+(-1.2)^2+(-0.2)^2+(6.8)^2=62.8\). For \(x=10\), \(h=1/5+(10-3.2)^2/62.8=0.2+46.24/62.8\approx0.9363\). For \(x=2\), \(h=1/5+(2-3.2)^2/62.8=0.2+1.44/62.8\approx0.2229\).

Every response is exactly on the line, so every residual is zero. A method that assigns full residual weight to a zero residual has no residual-based reason to downweight the case at \(x=10\). Yet its ordinary least-squares leverage is much higher than that of the case at \(x=2\). This example is not evidence that the \(x=10\) observation is erroneous: it demonstrates that residual size and predictor extremeness answer different questions.

How Residual-Based Weights Can Miss a Problem

Residual weights are calculated from residuals relative to the current fit. That creates two important possibilities. First, a high-leverage case can help pull the fitted line toward itself, reducing its own residual. Second, a high-leverage case may genuinely follow the response pattern, in which case a large predictor value is not a response outlier at all. In either situation, a rule that looks only at residual size does not independently identify whether the predictor location deserves scrutiny.

A redescending residual score, such as one used with Tukey’s bisquare loss, does not remove this limitation. Such a score can go back to zero for extremely large residuals, which can reject some severe response outliers. But a high-leverage case with a small residual can still receive a substantial score, potentially the full score near zero. The residual rule cannot downweight a case for a predictor-space feature it does not use.

Worked Example: A Small Residual Weight Can Still Matter

Use the same Huber score and scale \(s=1\). Compare a case with \(x=100\) and residual \(r=10\) with a case at \(x=2\) and residual \(r=2\). Both residuals exceed the cutoff, so both have weight \(w=\psi(u)/u=1.345/u\).

For the high-\(x\) case, \(u=10\) and \(w=1.345/10=0.1345\). Its weighted slope-equation contribution is \(xwr=100(0.1345)(10)=134.5\). For the other case, \(u=2\) and \(w=1.345/2=0.6725\). Its contribution is \(2(0.6725)(2)=2.690\).

The high-\(x\) case has a much smaller residual weight, but its contribution is still 50 times as large. Algebraically, for a positive residual beyond the cutoff, \(wr=\psi(u)=1.345\), so the slope contribution is \(1.345x\). The residual weight reduces the residual’s effect to a capped score; it does not remove the multiplier \(x\). These are contributions at the stated residuals, not a claim that the values are the final fitted residuals of an iterative algorithm.

What Leverage-Focused Methods Add

Methods designed to address leverage use information about the predictor values, rather than relying only on response residuals. Depending on the method and the setting, they may use a measure of predictor-space distance, a leverage weight in the estimating equation, or a high-breakdown initial fit intended to reduce the chance that a few unusual cases dictate the starting pattern. Their goal is different from merely bounding residual scores.

This distinction is not a license to automatically delete extreme predictors or to assume that every high-leverage case is bad. A rare but valid predictor value may be essential to the scientific question. Any adjustment that downweights cases based on predictor values can change the fit and what it represents. The method, the reason for using it, and the treatment of valid cases therefore need to be considered together.

ApproachWhat it uses to limit influenceWhat it does not guarantee by itself
Residual-based M-estimationA residual score or residual weight based on distance from the fitted response patternProtection from extreme predictor values when their residual scores remain nonzero
Leverage-aware robust fittingPredictor-space information in addition to residual informationThat every downweighted predictor value is erroneous or irrelevant
Case review and sensitivity analysisRefits, diagnostics, and knowledge about how observations aroseA single automatic rule that resolves whether a case should be removed

A practical analysis can examine predictor ranges and design diagnostics, check whether influential cases are data errors or valid observations, and compare an appropriate robust fit with alternative fits. A robust method’s name is not a substitute for identifying which part of the data it is robust to. For example, RANSAC can seek a fit supported by a subset of cases when responses are contaminated, but the fact that a method is resistant to response contamination does not establish general protection against unusual predictor configurations.

Common Mistake and Key Takeaway

Wrong reasoning: “The estimator caps the effect of large residuals, so no single observation can strongly affect the slope.” This overlooks the predictor multiplier in the estimating equation. A bounded residual score can still be multiplied by a very large predictor value.

Correction: Ask what the method bounds and what remains in the case’s contribution. Residual-based M-estimation controls the residual-score component. To assess leverage, examine predictor-space information as well, and interpret the result in light of whether extreme predictor values are valid and relevant. Neither high leverage nor a large residual alone proves that a record should be removed.

Key takeaway: Robustness to response outliers and control of leverage are distinct properties. Bounded residual weights can reduce the effect of extreme residuals, but they do not generally bound a case’s influence when its predictor vector is extreme.

Check Your Understanding

For each question, distinguish what the residual rule tells you from what the predictor values tell you.

  1. In the M-estimating equation, which two quantities determine a case’s contribution to the coefficient equation?
  2. Why can a bounded Huber score still produce a large slope contribution for a case with an extreme predictor value?
  3. Can a case have high ordinary least-squares leverage and a zero residual? Explain how both can be true.
  4. For the five predictor values \(0,1,2,3,10\), why is the case at \(x=10\) more leveraged than the case at \(x=2\), even when all responses lie on one line?
  5. What additional information does a leverage-aware method use that a residual-only weighting rule does not?