Leverage (statistics)

1

In statistics and in particular in regression analysis, leverage is a measure of how far away the independent variable values of an observation are from those of the other observations. High-leverage points, if any, are outliers with respect to the independent variables. That is, high-leverage points have no neighboring points in space, where {p} is the number of independent variables in a regression model. This makes the fitted model likely to pass close to a high leverage observation. Hence high-leverage points have the potential to cause large changes in the parameter estimates when they are deleted i.e., to be influential points. Although an influential point will typically have high leverage, a high leverage point is not necessarily an influential point. The leverage is typically defined as the diagonal elements of the hat matrix.

Definition and interpretations

Consider the linear regression model,. That is,, where, \mathbf{X} is the n\times p design matrix whose rows correspond to the observations and whose columns correspond to the independent or explanatory variables. The leverage score for the {i}^{th} independent observation is given as: Thus the {i}^{th} leverage score can be viewed as the 'weighted' distance between to the mean of 's (see its relation with Mahalanobis distance). It can also be interpreted as the degree by which the {i}^{th} measured (dependent) value (i.e., y_i) influences the {i}^{th} fitted (predicted) value (i.e., ): mathematically, Hence, the leverage score is also known as the observation self-sensitivity or self-influence. Using the fact that (i.e., the prediction is ortho-projection of onto range space of \mathbf{X}) in the above expression, we get. Note that this leverage depends on the values of the explanatory variables of all observations but not on any of the values of the dependent variables (y_i).

Properties

Determination of outliers in X using leverages

Large leverage { h_{ii}} corresponds to an that is extreme. A common rule is to identify whose leverage value {h}_{ii} is more than 2 times larger than the mean leverage (see property 2 above). That is, if, shall be considered an outlier. Some statisticians prefer the threshold of 3p/{n} instead of 2p/{n}.

Relation to Mahalanobis distance

Leverage is closely related to the Mahalanobis distance (proof ). Specifically, for some n\times p matrix \mathbf{X}, the squared Mahalanobis distance of (where is {i}^{th} row of \mathbf{X}) from the vector of mean of length p, is, where is the estimated covariance matrix of 's. This is related to the leverage h_{ii} of the hat matrix of \mathbf{X} after appending a column vector of 1's to it. The relationship between the two is: This relationship enables us to decompose leverage into meaningful components so that some sources of high leverage can be investigated analytically.

Relation to influence functions

In a regression context, we combine leverage and influence functions to compute the degree to which estimated coefficients would change if we removed a single data point. Denoting the regression residuals as, one can compare the estimated coefficient to the leave-one-out estimated coefficient using the formula Young (2019) uses a version of this formula after residualizing controls. To gain intuition for this formula, note that captures the potential for an observation to affect the regression parameters, and therefore captures the actual influence of that observations' deviations from its fitted value on the regression parameters. The formula then divides by (1-h_{ii}) to account for the fact that we remove the observation rather than adjusting its value, reflecting the fact that removal changes the distribution of covariates more when applied to high-leverage observations (i.e. with outlier covariate values). Similar formulas arise when applying general formulas for statistical influences functions in the regression context.

Effect on residual variance

If we are in an ordinary least squares setting with fixed \mathbf{X} and homoscedastic regression errors , then the {i}^{th} regression residual, has variance In other words, an observation's leverage score determines the degree of noise in the model's misprediction of that observation, with higher leverage leading to less noise. This follows from the fact that is idempotent and symmetric and, hence,. The corresponding studentized residual—the residual adjusted for its observation-specific estimated residual variance—is then where is an appropriate estimate of \sigma.

Partial leverage

Partial leverage (PL) is a measure of the contribution of the individual independent variables to the total leverage of each observation. That is, PL is a measure of how h_{ii} changes as a variable is added to the regression model. It is computed as: where j is the index of independent variable, i is the index of observation and are the residuals from regressing against the remaining independent variables. Note that the partial leverage is the leverage of the {i}^{th} point in the partial regression plot for the {j}^{th} variable. Data points with large partial leverage for an independent variable can exert undue influence on the selection of that variable in automatic regression model building procedures.

Software implementations

Many programs and statistics packages, such as R, Python, etc., include implementations of Leverage.

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article