Definitioncore
Leverage
Also called hat value, leverage score.
The i-th diagonal entry of the hat matrix, which measures how far x_i lies from the other predictors and how much y_i pulls its own fitted value.
The leverage of observation in a linear regression is the -th diagonal entry of the hat matrix. It depends only on the predictors, not on the response. It measures two things at once: how far the predictor row lies from the bulk of the rows, and how strongly pulls its own fitted value, since . A point with high leverage can move the fitted line a lot, but whether it does depends on its response; that combined effect is influence, measured by Cook's distance. In numerical linear algebra the same numbers are called leverage scores.
Definition
Let be an design matrix of rank , with rows (the intercept, if any, is one of the columns). The leverage (or hat value) of observation is
where is row of in a thin QR factorization . The second form is how it is computed: for the factorization and for all leverages.
Basic facts. From and :
- , because .
- , so the average leverage is .
- With an intercept, .
- if and only if for every , which happens if and only if for every response vector. Then always and ; the model spends one parameter on fitting that point exactly. An indicator column for one observation does this, and so does a group of size 1 in a one-way layout.
- and when the errors are uncorrelated with variance .
Distance form. With an intercept, write for row without its leading 1, for the mean of these rows, and for their sample covariance matrix (divisor ). Then
with the Mahalanobis distance of from . So leverage is a distance from the center of the predictor cloud, measured in the units of its own spread. The proof: centering the predictors does not change , and the centered design has orthogonal blocks, so with .
High leverage. A common rule flags , twice the average (Hoaglin and Welsch 1978; Belsley, Kuh and Welsch use the same cutoff). Some authors use for small . These are conventions, not tests. For a design whose rows (without the intercept) are iid multivariate normal, has the Beta law, which shows how often the rule fires by chance, but designs are rarely random normal.
Examples and non-examples
Simple regression. For , with . Leverage grows with the squared distance of from and is smallest, , at .
A far point. For , and , the leverages are , with sum 2. Only the last exceeds . Check by the distance form: , the sample variance is , so and .
High leverage without influence. Fit the first five points of that example with : the line is , which predicts 10.3 at . If the sixth response is , the six-point fit is the same line, and Cook's distance of the point is 0. Its leverage is still 0.836. If instead , the line tilts to slope 0.177 and Cook's distance is 7.89. Leverage is potential; the response decides whether it is used.
A balanced design. In a one-way layout with observations per group, every point in group has leverage . In a factorial design with all effects and replicates, every point has leverage . Balanced designs have equal leverages, which is one reason they are robust.
Non-example: a large residual. A point with a large residual and leverage near is an outlier in but has low leverage. It changes the intercept a little and the slope hardly at all.
Non-example: leverage in generalized linear models. For a generalized linear model fitted by iteratively reweighted least squares, the hat matrix is at the fitted weights. Its diagonal depends on the fitted means, so it depends on , and a point far out in can have small leverage when its weight is small (a fitted probability near 0 or 1 in logistic regression).
Related definitions
- Hat matrix. itself; leverage is its diagonal.
- Studentized residual. Divides by an estimate of , so residuals of high-leverage points, which are small by construction, are scaled up.
- Cook's distance and DFFITS. Combine leverage with the residual: .
- Leave-one-out residual. ; the closed form of leave-one-out cross-validation for least squares uses it.
- Leverage scores and coherence. In randomized numerical linear algebra, is the leverage score of row , and is the coherence of the column space. Sampling rows with probability proportional to gives a small subproblem whose least squares solution approximates the full one; Drineas and coauthors show how to approximate all scores faster than a QR factorization.
- Robust alternatives. Leverage uses the mean and covariance of the predictors, which are themselves pulled by a cluster of far points (masking). Robust distances from a minimum covariance determinant fit, or least trimmed squares, avoid this.
References
- David C. Hoaglin and Roy E. Welsch, The hat matrix in regression and ANOVA, The American Statistician 32(1), 1978, pp. 17 to 22, The whole paper (the bounds 0 <= h_ii <= 1, the average p/n and the rule of thumb 2p/n for high leverage)
- George A. F. Seber and Alan J. Lee, Linear Regression Analysis, second edition, Wiley, 2003, Section 10.2 (hat matrix diagonals) and Section 10.6.2 (high-leverage points)
- David A. Belsley, Edwin Kuh and Roy E. Welsch, Regression Diagnostics, Wiley, 1980, Chapter 2 (the diagonal of the hat matrix as a measure of leverage, and its cutoff 2p/n)
- Petros Drineas, Malik Magdon-Ismail, Michael W. Mahoney and David P. Woodruff, Fast approximation of matrix coherence and statistical leverage, Journal of Machine Learning Research 13, 2012, pp. 3475 to 3506, Section 1 (statistical leverage scores as the squared row norms of an orthonormal basis of the column space, and coherence as their maximum)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag K2W5YS Edit this page History Report an error Markdown