How Leverage Identifies Observations With Unusual Combinations of Values

Introduction

In regression, an observation can stand out not because any single value is extraordinary, but because its values form an unusual combination. Leverage measures how far a case’s predictor values sit from the patterns represented by the other cases. It helps identify observations that could have a strong effect on a fitted model, but it does not by itself show that a case is wrong or influential.

What leverage means in regression

Regression uses predictor variables, also called explanatory variables or features, to estimate an outcome. For example, a model might use a building’s floor area and age to estimate its energy use. Each observation has a set of predictor values, and together those values determine where it sits in the model’s predictor space.

Leverage describes how unusual an observation’s position is in that space compared with the positions of the other observations. A case with high leverage has a combination of predictor values that is relatively uncommon in the data used to fit the model. Because regression chooses a line, plane, or more general surface to fit the observations, such a case can have an especially strong role in determining that surface.

Leverage is a property of the predictor values and the model structure. It is not calculated from how far the observed outcome is above or below the model’s prediction. That distinction is essential: an observation can have high leverage and a small prediction error, or ordinary leverage and a large prediction error.

How leverage is calculated

In ordinary least squares regression, each fitted value is a weighted combination of the observed outcomes. These weights are represented by a mathematical object called the hat matrix, so named because it maps observed outcomes to fitted outcomes: fitted values are often written as “y-hat.”

The diagonal entry of the hat matrix for a particular observation is its leverage. It is commonly written as hii. A larger value means that the observation’s own outcome receives a relatively strong weight in determining its fitted value, given the model’s predictors and the full dataset. The leverage values are calculated from the predictor matrix, not from the observed outcome values.

For a standard linear regression with an intercept and a set of predictors, the leverage scores add up to the number of estimated model coefficients. This includes the intercept. Consequently, their average is the number of coefficients divided by the number of observations. Adding predictors while keeping the sample size fixed generally raises the average leverage, because the model has more parameters to estimate.

Leverage values are usually between zero and one in ordinary least squares. Their precise interpretation depends on the model and data, so there is no universal cutoff that establishes that an observation is “high leverage.” Analysts often compare scores with a rule of thumb based on the average leverage, but such a rule is a screening aid—not a verdict. Sample size, the number of predictors, and the structure of the data all matter.

Why combinations matter more than isolated extremes

Imagine a dataset describing homes by floor area and age. A home may be unusually large but have an age that is common among large homes. Another may be unusually old but have a size that is common among older homes. Neither case must have high leverage simply because one value is extreme.

Now consider a very large, very new home when the dataset mostly contains smaller homes or large older homes. The combination may be rare even if the area and age values, considered separately, do not look especially extreme. This case may have high leverage because it occupies a sparsely represented part of the two-predictor space.

The same idea applies with more predictors. A person’s recorded values for several ordinary measurements might jointly form an uncommon profile. Leverage can reveal that multivariable pattern, whereas checking each variable separately may miss it. This is one reason it is useful to examine the predictor combination rather than looking only for the largest or smallest value in each column.

A geometric picture

With one predictor, the data can be pictured along a line. Observations far from the predictor’s central cluster tend to have higher leverage, because they help determine the slope of the fitted line. With two predictors, each case becomes a point on a plane, and regression fits a surface through that space. With several predictors, the same idea extends to a space that cannot be easily drawn.

In a simple model with an intercept and one predictor, leverage is higher for predictor values farther from their mean. In models with multiple predictors, the relevant distance is more complicated. It reflects how far a case lies from the overall predictor pattern, including how predictors relate to one another. A combination can be unusual even when its individual values are not far from their separate averages.

This geometric view also explains why leverage is relative to the dataset. A point may look unusual in one sample but ordinary in a broader dataset that includes many similar cases. Leverage does not label a value as strange in every possible context; it describes its position among the observations and predictors used for a particular model.

Leverage, residuals, and influence are different

A residual is the difference between an observed outcome and the outcome predicted by the model. Residuals help show how closely the model fits the outcome values. Leverage, by contrast, describes the position of predictor values. Keeping these concepts separate prevents a common misreading of regression diagnostics.

A high-leverage case may lie close to the fitted model and have a small residual. It is unusual in predictor space, but its outcome follows the pattern the model estimates. Another high-leverage case may have a large residual, meaning its outcome departs from the fitted pattern. That combination deserves closer attention because the case both occupies an unusual predictor position and is poorly predicted.

Influence describes how much a case changes model results, such as estimated coefficients, when it is included rather than left out. High leverage creates the potential for influence, but does not guarantee it. A case with high leverage and a small residual may change the fitted model less than one with both high leverage and a substantial residual.

Measures such as Cook’s distance combine information about leverage and residual size to help screen for potentially influential observations. They are diagnostic signals, not automatic instructions to delete a case. A flagged observation may be valid and important, or it may point to a data-entry issue, a missing predictor, or a model that does not describe the data well.

How analysts identify high-leverage observations

A typical analysis begins by fitting a model and calculating the leverage for each observation. Analysts then inspect the scores relative to the number of observations and estimated coefficients, often using a reference threshold as a prompt for investigation. The threshold should not replace judgment: a score that merits attention in one dataset may be less remarkable in another.

It is useful to examine the predictor values of flagged cases and compare them with the rest of the data. Scatterplots can reveal unusual pairings for two predictors. For more predictors, tables, pairwise plots, or other multivariable summaries may help show which values make a case distinctive. The goal is to understand the pattern, not just identify a large number in a diagnostic column.

Analysts should also verify that the model and data have been specified sensibly. They can check for coding errors, confirm that categorical variables were represented appropriately, and consider whether important predictors or interactions are missing. A high score may be a genuine feature of the sample rather than evidence of an error. If the observation is valid, it may represent a group or situation that the study needs to include.

When appropriate, analysts can compare the fitted results with and without a flagged observation, while reporting the reason for any difference. This sensitivity check helps show whether the main conclusions depend heavily on a particular case. It should be interpreted carefully: removing a valid observation merely because it changes the answer can produce a misleading analysis.

Why leverage can be difficult to interpret

Leverage depends on the model’s predictors. If an analyst adds or removes variables, changes transformations, or includes interaction terms, the geometry of predictor space changes and leverage scores can change too. A score therefore belongs to a specified model; it is not a permanent label attached to an observation.

Correlated predictors also complicate interpretation. When two or more predictors tend to move together, a case that breaks that usual relationship may occupy an unusual position even if its values do not seem extreme one at a time. Conversely, a predictor combination can be poorly represented in the data in ways that are hard to see from simple one-variable summaries.

In datasets with many predictors and relatively few observations, leverage can be elevated for a larger share of cases. The model may have limited information for estimating relationships across the full predictor space. This is one reason to interpret scores alongside the sample size, model complexity, plots, and the purpose of the analysis.

Different model types also use different diagnostic methods. The familiar hat-matrix explanation applies directly to ordinary least squares regression. Other methods may have related concepts, but their calculations and interpretations can differ. Analysts should use diagnostics that match the model rather than assuming that a rule from one type of regression applies unchanged to another.

What leverage can and cannot tell you

Leverage can identify observations whose predictor combinations are unusual in the fitted dataset. It can help analysts find cases that may have substantial ability to shape a regression line or surface, and it can guide a closer review of model assumptions and data quality.

On its own, leverage cannot establish that an observation is erroneous, prove that the model is unsuitable, or show that the case has changed the results. It says nothing directly about whether the outcome is surprising. Those questions require other evidence, including residuals, influence measures, data checks, and knowledge of how the observations were collected.

Conclusion

Leverage measures how unusual an observation’s combination of predictor values is within a regression dataset. Because such a case can help determine the fitted model, high leverage deserves attention, especially when paired with a large residual. But leverage is a diagnostic clue, not a reason by itself to discard data. Interpreting it alongside the model, the sample, and other diagnostics leads to more careful conclusions.