Girish Mahajan (Editor)

Cook's distance

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, Cook's distance or Cook's D is a commonly used estimate of the influence of a data point when performing a least-squares regression analysis. In a practical ordinary least squares analysis, Cook's distance can be used in several ways: to indicate influential data points that are particularly worth checking for validity; or to indicate regions of the design space where it would be good to be able to obtain more data points. It is named after the American statistician R. Dennis Cook, who introduced the concept in 1977.

Contents

Definition

Data points with large residuals (outliers) and/or high leverage may distort the outcome and accuracy of a regression. Cook's distance measures the effect of deleting a given observation. Points with a large Cook's distance are considered to merit closer examination in the analysis. For the algebraic expression, first define

y n × 1 = X n × p β p × 1 + ϵ n × 1

where ϵ N ( 0 , σ 2 I ) is the error term, β = [ β 0 β 1 β p 1 ] T is the coefficient matrix, and X is the design matrix including a constant. The least squares estimator then is b = ( X T X ) 1 X T y , and consequently the fitted (predicted) values for the mean of y are

y ^ = X b = X ( X T X ) 1 X T y = H y

where H X ( X T X ) 1 X T is the projection matrix (or hat matrix). The i -th diagonal element of H , given by h i x i T ( X T X ) 1 x i , is known as the leverage of the i -th observation. Similarly, the i -th element of the residual vector e = y y ^ = ( I H ) y is denoted by e i . With this, we can define Cook's distance as

D i = e i 2 s 2 p [ h i ( 1 h i ) 2 ] ,

where s 2 ( n p ) 1 e e is the mean squared error of the regression model.

Detecting highly influential observations

There are different opinions regarding what cut-off values to use for spotting highly influential points. A simple operational guideline of D i > 1 has been suggested. Others have indicated that D i > 4 / n , where n is the number of observations, might be used.

Interpretation

Specifically D i can be interpreted as the distance one's estimates move within the confidence ellipsoid that represents a region of plausible values for the parameters. This is shown by an alternative but equivalent representation of Cook's distance in terms of changes to the estimates of the regression parameters between the cases, where the particular observation is either included or excluded from the regression analysis.

References

Cook's distance Wikipedia