Understand the idea
Picture a seesaw: a child sitting far from the middle tips the board more than one sitting near it. In a regression, a row whose predictor values are far from the typical ones sits far out on the seesaw. Leverage measures how far out: rows near the middle of the predictor values have low leverage, and rows at the edges, or off on their own, have high leverage.
Leverage looks only at the predictors, never at the response. So high leverage is not a problem by itself: if the row's response lands where the line through the other rows would put it, the row sits right on the line and changes little. It becomes influential when it is far out and also far from the line, which is what Cook's distance combines Cook's distance.
Every row's leverage is between 0 and 1, and the leverages of all the rows add up to the number of coefficients in the model, p, counting the intercept. So the average leverage is p divided by the number of rows, n. KernelStats calls a row high leverage when its leverage is more than twice the average, above 2p/n; some textbooks use the stricter three times the average, 3p/n.
On the penguin regression of body mass on flipper length (342 penguins, p = 2), the average leverage is 2/342 ≈ 0.0058 and the card's cut-off 2p/n is 0.0117; 18 penguins are above it, and none is above 3p/n ≈ 0.0175. The highest leverage, 0.0163, belongs to the Gentoo penguin with the longest flippers, 231 mm; its body mass, 5,650 g, is only about 47 g below its fitted value, so it sits on the line and barely moves it.
High leverage is not an error. It says a row is unusual in its predictor values, which may be real and informative, and such rows often tell you the most about the slope. A row far from the line is an outlier, which is a different thing Outliers. A row's leverage is also called its hat value, and a row with high leverage is called a high-leverage point.
Practitioner explanation
Leverage is the diagonal element h_ii of the hat matrix H = X(XᵀX)⁻¹Xᵀ, the weight of y_i in its own fitted value: ŷ_i = h_ii y_i + Σ_{j≠i} h_ij y_j. H is the orthogonal projection onto the column space of X, so 0 ≤ h_ii ≤ 1 (1/n ≤ h_ii with an intercept), Σ h_ii = p and the mean leverage is p/n. In simple regression h_ii = 1/n + (x_i − x̄)²/Σ(x_j − x̄)²; with several predictors and an intercept h_ii = 1/n + MD_i²/(n − 1), where MD_i is the Mahalanobis distance of row i's predictors from their means, so leverage sees unusual combinations of predictors that no single predictor flags.
Var(e_i) = σ²(1 − h_ii): the fit is pulled toward a high-leverage row, so its raw residual is mechanically small, which is why raw residuals understate how unusual such rows are and why studentized residuals divide by s√(1 − h_ii). As h_ii approaches 1 the row is fitted almost exactly whatever its response. Leverage also sets the standard error of the fitted mean at that row, s√h_ii, and enters the prediction interval at new predictor values through h₀ = x₀ᵀ(XᵀX)⁻¹x₀ Prediction interval.
The cut-offs are conventions, not tests: 2p/n (Hoaglin and Welsch, 1978) and the stricter 3p/n, the rule R's influence.measures() uses to mark a hat value. With a categorical predictor, a row from a rare level always has high leverage: in a one-way layout h_ii = 1/n_g for a group of size n_g. A high-leverage row deserves a check for an entry error in its predictors and a reminder that the model is least supported out where it sits, not deletion.
The KernelStats linear regression card flags a row as high leverage when h_ii > 2p/n, with p the number of coefficients including the intercept and n the rows used. It is one of the three rules behind the Unusual obs tile and the Unusual observations table, with Cook's distance > 4/n and |externally studentized residual| > 3; a row that breaks several rules counts once in the total. The Residuals vs Leverage panel plots leverage against the internally studentized residual (labeled Std. residuals), colored by Cook's distance, and Save Columns writes each row's leverage as "Linear regression leverage", whose description quotes the card's 2p/n value.
When to use it
Consider it when
With every fitted regression, to find rows whose predictor values give them unusual pull on the fit, before trusting the slopes; read it together with the residual and Cook's distance.
Use caution when
Not as a test of whether a row is wrong or an outlier: leverage ignores the response, so a high-leverage row can fit perfectly well, and the 2p/n and 3p/n cut-offs are screening conventions, not significance tests.
Formulas and symbols
Leverage (hat value)
x_i is row i's predictor vector (with a leading 1 for the intercept) and X the design matrix of all rows used.
Leverage in simple regression
x-bar is the mean of the predictor over the n rows used.
Average leverage and the card's cut-off
p is the number of coefficients including the intercept, n the number of rows used.
Worked example
Scenario
The linear regression of body mass on flipper length for the 342 penguins with both values (p = 2 coefficients).
Result
Average leverage 2/342 = 0.0058; cut-off 2p/n = 0.0117, exceeded by 18 penguins; highest leverage 0.0163 for the Gentoo penguin with 231 mm flippers: body mass 5,650 g, fitted value 5,697 g, residual −47 g, externally studentized residual −0.12, Cook's distance 0.0001.
Interpretation
The longest-flippered penguin has almost three times the average leverage, so it could pull the line hard, but its body mass is where the line through the other penguins already puts it: a high-leverage point that is neither an outlier nor influential, and nothing about it suggests an error.
Dataset: penguins.csv
Common misconceptions
Misconception
A row with high leverage is an outlier.
Correction
Leverage only measures how unusual a row's predictor values are; an outlier is a row far from the fitted line. A high-leverage row can sit right on the line, where it barely changes the fit, and an outlier can have low leverage. A row matters most when it has both, which is what Cook's distance measures.
Misconception
A high-leverage point is always influential.
Correction
Only if it is also far from the line. A high-leverage point whose response lands where the other rows put the line barely changes the fit; influence needs both leverage and a sizable residual, and Cook's distance measures the two together. On the penguin regression the highest-leverage penguin has a Cook's distance of 0.0001.
Misconception
High-leverage rows are mistakes and should be deleted.
Correction
High leverage says a row is unusual in its predictor values, not that it is wrong, and such rows often carry the most information about the slope. Check the row for an entry error; if it is real, keep it, and remember that the model is least supported out where it sits.
References
- Applied Linear Statistical Models, 5th edition, Kutner, M. H., Nachtsheim, C. J., Neter, J. and Li, W. (2004), Chapter 10 (identifying outlying X observations: hat matrix leverage values).
- The hat matrix in regression and ANOVA, Hoaglin, D. C. and Welsch, R. E. (1978), The American Statistician, 32(1), 17-22.
- KernelStats linear regression card (engine code, Learn More and Save Columns descriptions), KernelStats documentation (2026).
