Definitioncore
Cook's distance
Also called Cook's D.
A measure of the influence of one observation: how far all fitted values move when it is deleted, scaled by p times the residual variance.
Cook's distance measures the influence of observation on a least squares fit: how much all the fitted values move when that observation is deleted, in units of times the estimated error variance. It combines the two ingredients of influence, the size of the studentized residual (is the point off the line?) and the leverage (can the point move the line?). R. Dennis Cook introduced it in 1977. It is computed from one fit, without refits. It is a descriptive measure, not a test, and it looks at one point at a time.
Definition
Let with an matrix of rank (intercept included in the columns) and the coefficient vector. Let be the least squares estimate, , and . Let be the estimate without observation and , the fitted values of all points from that fit. Assume . Cook's distance of observation is
The two forms agree because .
One-fit formula. By the Sherman-Morrison formula, . Substituting, with ,
where is the internally studentized residual. The first factor measures the outlyingness of ; the second, , grows without bound as . All distances cost for the QR factorization and after it.
Reading the size. The confidence ellipsoid for under normal errors is . So means that deleting observation moves the estimate to the boundary of that ellipsoid. Cook proposed to judge by the percentile of that it reaches; for example, near the median of (about 1 for moderate ) moves the estimate to the edge of a 50% confidence region. His paper gives no fixed cutoff. The rules and , common in software, are later conventions. does not have an F distribution: the F percentiles are a ruler, not a null law, so " is significant" has no meaning.
Scale. does not change when is multiplied by a constant or when is replaced by for a nonsingular : it depends only on the fitted values.
Examples and non-examples
Six points, one far in . For and , , . With the leverages and residuals of the studentized residual example:
| percentile of | ||||
|---|---|---|---|---|
| 1 | 0.3639 | 0.4434 | 0.33 | |
| 2 | 0.2590 | 0.0426 | 0.04 | |
| 3 | 0.1934 | 0.9267 | 0.1030 | 0.10 |
| 4 | 0.1672 | 0.0223 | 0.00005 | 0.00 |
| 5 | 0.1803 | 1.4114 | 0.2191 | 0.19 |
| 6 | 0.8361 | 7.8947 | 0.96 |
For the CDF is , which gives the last column. Exact arithmetic gives . Refitting without point 6 gives the line instead of ; the sum of squared changes of the six fitted values divided by is again , exactly. Deleting point 6 moves the estimate to just outside the 95% confidence ellipse of the full fit. Point 1 has the second largest leverage and a moderate residual; is about half the median of , which is .
High leverage, no influence. If is changed to 10.3, which lies on the line through the other five points, then and although .
Masking: two far points hide each other. Duplicate the far point: , . Each copy now has , below , and , a small value, because deleting one copy leaves the other in place. Deleting both copies at once moves the fitted values by a generalized Cook's distance . One-at-a-time diagnostics miss clusters of influential points.
Non-example: the largest residual. In the six-point example the largest is at , whose is modest. The most influential point has only the third largest residual.
Non-example: a test for outliers. has no null distribution to compare with. An outlier test uses the externally studentized residual with a Bonferroni cutoff.
Related definitions
- DFFITS. , the change of the own fitted value divided by . It uses instead of , and . Belsley, Kuh and Welsch suggest the cutoff .
- DFBETAS. The change of one coefficient, , with the cutoff .
- Leverage and residual. is the product of a function of and a function of ; the hat matrix gives both.
- Influence function. The infinitesimal version: the derivative of an estimator with respect to the weight of one point. For least squares it is unbounded in both and , which is why robust fits such as the Huber M-estimator (bounded in ) and least trimmed squares (bounded in both) exist.
- Generalized Cook's distance. For a set of deleted points, , as in the masking example. The number of subsets grows exponentially, which is why multiple-case diagnostics use robust fits instead of enumeration.
References
- R. Dennis Cook, Detection of influential observation in linear regression, Technometrics 19(1), 1977, pp. 15 to 18, The whole paper (the definition of D_i through the confidence ellipsoid, the closed form in the studentized residual and the leverage, and the comparison with percentiles of F(p, n - p))
- R. Dennis Cook and Sanford Weisberg, Residuals and Influence in Regression, Chapman and Hall, 1982, Chapter 3 (the assessment of influence, Cook's distance and the deletion of several cases)
- David A. Belsley, Edwin Kuh and Roy E. Welsch, Regression Diagnostics, Wiley, 1980, Chapter 2 (the deletion diagnostics DFBETAS and DFFITS and their cutoffs)
- George A. F. Seber and Alan J. Lee, Linear Regression Analysis, second edition, Wiley, 2003, Section 10.6.3 (leave-one-out case diagnostics, including Cook's D)
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 AX73CB Edit this page History Report an error Markdown