9  Diagnostics for Leverage and Influence

Sometimes a small subset of the data exerts a disproportionate influence on the fitted model: the parameter estimates, their standard errors, the predicted values and the summary statistics may depend more on these few points than on the bulk of the data. The location of the observations in \(x\)-space plays an important role in determining this. It is important to locate such points, to assess their impact, and then to decide (from subject-matter knowledge, never automatically) whether they are errors to be corrected, special cases to be studied separately, or valuable information to be kept (Belsley, Kuh, and Welsch 1980; Cook 1977; Montgomery, Peck, and Vining 2021).

9.1 Leverage points and influence points

Figure 9.1: (a) A leverage point A: remote in x-space but lying almost on the line through the rest of the data. (b) An influence point A: unusual in both x and y; it pulls the fitted line (solid) away from the line fitted without it (dashed).

In Figure 9.1(a), point A is in a remote region of \(x\)-space, but it lies almost on the regression line passing through all the other points. This is a leverage point: an unusual \(x\) value. Such a point

  • does not affect the estimates of the regression coefficients much,
  • but does affect the summary statistics, such as \(R^2\) (inflated) and the standard errors of the regression coefficients (reduced).

In Figure 9.1(b), the \(y\) value of A is also unusual, as well as its \(x\) coordinate. This is an influence point. It

  • affects the model coefficients, and
  • pulls the regression model in its own direction.

9.2 Leverage

The hat matrix plays an important role in identifying influential points, because leverage points in \(x\)-space affect model properties such as parameter estimates, standard errors, predicted values and summary statistics. Recall

\[\mathbf H=\underset{n\times p}{\mathbf X}\ \underset{p\times p}{(\mathbf X'\mathbf X)^{-1}}\ \underset{p\times n}{\mathbf X'},\qquad V(\hat{\mathbf y})=\sigma^2\mathbf H,\qquad V(\mathbf e)=\sigma^2(\mathbf I-\mathbf H).\]

Since \(\hat y_i=\sum_jh_{ij}y_j=h_{ii}y_i+\sum_{j\neq i}h_{ij}y_j\), the diagonal element \(h_{ii}\) of \(\mathbf H\) may be interpreted as the amount of leverage exerted by the \(i\)th observation \(y_i\) on the \(i\)th fitted value \(\hat y_i\):

\[h_{ii}=\mathbf x_i'(\mathbf X'\mathbf X)^{-1}\mathbf x_i, \tag{9.1}\]

where \(\mathbf x_i'\) is the \(i\)th row of \(\mathbf X\) (written as a column vector \(\mathbf x_i\)). \(h_{ii}\) is a standardized measure of the distance of the \(i\)th observation from the centre (centroid) of the \(x\)-space; for simple regression \(h_{ii}=\frac1n+\frac{(x_i-\bar x)^2}{S_{xx}}\). Large \(h_{ii}\) indicates a potential leverage (and potentially influential) point.

Average size of the hat diagonal

\[\bar h=\frac{\sum_{i=1}^nh_{ii}}n=\frac{\operatorname{tr}(\mathbf H)}n=\frac{\operatorname{rank}(\mathbf H)}n=\frac{\operatorname{rank}(\mathbf X)}n=\frac pn. \tag{9.2}\]

If

\[h_{ii}>2\bar h=\frac{2p}n,\]

the point is remote enough from the rest of the data to be considered a leverage point. Care is needed in using the cut-off \(2p/n\): if \(2p/n>1\) the cut-off does not apply, because \(h_{ii}\le1\) always. When \(n\) is small relative to \(p\), some authors use \(3p/n\).

Note

All leverage points are not influential. The hat diagonals examine only the location of observations in \(x\)-space, so we look at the studentized residual or R-student in conjunction with \(h_{ii}\). Observations with

  • large hat diagonal, and
  • large residuals

are likely to be influential.

9.3 Measures of influence

9.3.1 Cook’s \(D\) statistic

Cook’s \(D\) is a measure of the squared distance between the least squares estimate based on all \(n\) points, \(\hat{\boldsymbol\beta}\), and the estimate obtained by deleting the \(i\)th point, say \(\hat{\boldsymbol\beta}_{(i)}\) (Cook 1977):

\[D_i=\frac{(\hat{\boldsymbol\beta}_{(i)}-\hat{\boldsymbol\beta})'\mathbf X'\mathbf X(\hat{\boldsymbol\beta}_{(i)}-\hat{\boldsymbol\beta})}{p\,MS_{Res}},\qquad i=1,2,\ldots,n, \tag{9.3}\]

where \(MS_{Res}=\mathbf e'\mathbf e/(n-p)\) and \(\mathbf e=\mathbf y-\hat{\mathbf y}=\left(\mathbf I-\mathbf X(\mathbf X'\mathbf X)^{-1}\mathbf X'\right)\mathbf y\). Equivalently \(D_i=(\hat{\mathbf y}_{(i)}-\hat{\mathbf y})'(\hat{\mathbf y}_{(i)}-\hat{\mathbf y})/(p\,MS_{Res})\): the squared change in all \(n\) fitted values when point \(i\) is deleted. Equation 9.3 has the form of the joint confidence region Equation 7.7; \(D_i=1\) means that deleting point \(i\) moves \(\hat{\boldsymbol\beta}\) to the edge of (approximately) a 50% confidence region.

Computing \(\hat{\boldsymbol\beta}_{(i)}\) without refitting

Using the Sherman–Morrison result of Section 8.2.3 and \(\mathbf X_{(i)}'\mathbf y_{(i)}=\mathbf X'\mathbf y-\mathbf x_iy_i\),

\[\hat{\boldsymbol\beta}-\hat{\boldsymbol\beta}_{(i)}=\frac{(\mathbf X'\mathbf X)^{-1}\mathbf x_ie_i}{1-h_{ii}}. \tag{9.4}\]

Substituting into Equation 9.3 and using \(\mathbf x_i'(\mathbf X'\mathbf X)^{-1}\mathbf x_i=h_{ii}\), Cook’s \(D\) can also be represented as

\[D_i=\frac{r_i^2}p\cdot\frac{h_{ii}}{1-h_{ii}}, \tag{9.5}\]

where \(h_{ii}\) is the hat matrix diagonal (the measure of leverage) and \(r_i^2\) is the square of the studentized residual \(r_i=e_i/\sqrt{MS_{Res}(1-h_{ii})}\). Thus \(D_i\) is the product of a residual part \(r_i^2/p\) and a leverage part \(h_{ii}/(1-h_{ii})\): it is large only when both are appreciable.

If \(D_i>1\), that point is considered influential. (Some authors use \(4/n\) or the median of \(F_{p,n-p}\) as cut-offs.)

9.3.2 DFBETAS

Cook’s distance is a deletion diagnostic: it measures the influence of the \(i\)th observation if it is removed from the sample, on all coefficients together. To see how deleting the \(i\)th observation changes each coefficient separately, Belsley, Kuh and Welsch (Belsley, Kuh, and Welsch 1980) proposed

\[DFBETAS_{j,i}=\frac{\hat\beta_j-\hat\beta_{j(i)}}{\sqrt{S_{(i)}^2C_{jj}}}, \tag{9.6}\]

where \(\hat\beta_{j(i)}\) is the \(j\)th coefficient estimated after removing the \(i\)th observation (a scalar, not a vector), \(C_{jj}\) is the \(j\)th diagonal element of \((\mathbf X'\mathbf X)^{-1}\), and \(S_{(i)}^2\) is the \(MS_{Res}\) obtained after removing the \(i\)th observation (Equation 8.6). A large value of \(DFBETAS_{j,i}\) indicates that the \(i\)th observation is influential on the \(j\)th regression coefficient.

The values of \(DFBETAS_{j,i}\) can be expressed as an \(n\times p\) matrix; it conveys similar information to Cook’s \(D\), coefficient by coefficient. If

\[\left|DFBETAS_{j,i}\right|>\frac2{\sqrt n},\]

then the \(i\)th observation warrants examination.

9.3.3 DFFITS

The deletion influence of the \(i\)th observation on the predicted or fitted value can be investigated using the diagnostic of Belsley, Kuh and Welsch:

\[DFFITS_i=\frac{\hat y_i-\hat y_{(i)}}{\sqrt{S_{(i)}^2h_{ii}}},\qquad i=1,2,\ldots,n, \tag{9.7}\]

where \(\hat y_{(i)}\) is the fitted value of \(y_i\) obtained without the \(i\)th observation. Using Equation 9.4, \(\hat y_i-\hat y_{(i)}=h_{ii}e_i/(1-h_{ii})\), so

\[DFFITS_i=\left(\frac{h_{ii}}{1-h_{ii}}\right)^{1/2}t_i, \tag{9.8}\]

where \(t_i\) is the R-student residual (Equation 8.7). As with Cook’s \(D\), the first factor is the leverage part and \(t_i\) the prediction error part. Any observation with

\[\left|DFFITS_i\right|>2\sqrt{\frac pn}\]

warrants attention.

9.4 A measure of model performance: COVRATIO

\(D_i\), DFBETAS and DFFITS do not provide any information about the overall precision of estimation. The generalized variance, the determinant of the covariance matrix, is a convenient scalar measure of precision:

\[GV(\hat{\boldsymbol\beta})=\left|V(\hat{\boldsymbol\beta})\right|=\left|\sigma^2(\mathbf X'\mathbf X)^{-1}\right|.\]

The role of the \(i\)th observation on the precision of estimation is measured by

\[COVRATIO_i=\frac{\left|(\mathbf X_{(i)}'\mathbf X_{(i)})^{-1}S_{(i)}^2\right|}{\left|(\mathbf X'\mathbf X)^{-1}MS_{Res}\right|},\qquad i=1,2,\ldots,n. \tag{9.9}\]

  • If \(COVRATIO_i>1\), the \(i\)th observation improves the precision of estimation.
  • If \(COVRATIO_i<1\), inclusion of the \(i\)th observation degrades the precision.

Using \(|\mathbf X_{(i)}'\mathbf X_{(i)}|=|\mathbf X'\mathbf X|(1-h_{ii})\), it can also be written as

\[COVRATIO_i=\frac{\left(S_{(i)}^2\right)^p}{\left(MS_{Res}\right)^p}\left(\frac1{1-h_{ii}}\right). \tag{9.10}\]

A high-leverage point (\(h_{ii}\) large) tends to increase COVRATIO; a large residual (making \(S_{(i)}^2<MS_{Res}\)) tends to decrease it.

Cut-off values for COVRATIO

If

\[COVRATIO_i>1+\frac{3p}n\qquad\text{or}\qquad COVRATIO_i<1-\frac{3p}n,\]

the \(i\)th point is considered influential. These cut-offs are recommended for large samples (the lower one is meaningful only when \(n>3p\)).

Table 9.1: Summary of leverage and influence diagnostics
Diagnostic Measures influence on Formula Flag if
\(h_{ii}\) location in \(x\)-space \(\mathbf x_i'(\mathbf X'\mathbf X)^{-1}\mathbf x_i\) \(>2p/n\)
Cook’s \(D_i\) all coefficients jointly \(\frac{r_i^2}p\frac{h_{ii}}{1-h_{ii}}\) \(>1\)
\(DFBETAS_{j,i}\) coefficient \(\hat\beta_j\) \(\frac{\hat\beta_j-\hat\beta_{j(i)}}{\sqrt{S_{(i)}^2C_{jj}}}\) \(>2/\sqrt n\)
\(DFFITS_i\) fitted value \(\hat y_i\) \(t_i\sqrt{h_{ii}/(1-h_{ii})}\) \(>2\sqrt{p/n}\)
\(COVRATIO_i\) precision \(\lvert V(\hat{\boldsymbol\beta})\rvert\) \(\frac{(S_{(i)}^2/MS_{Res})^p}{1-h_{ii}}\) outside \(1\pm3p/n\)

Example 9.1 Examine the paddy model \(\text{yield}=\beta_0+\beta_1N+\beta_2P+\beta_3K+\varepsilon\) (csv/paddy.csv, \(n=30\), \(p=4\)) for leverage and influence.

Solution

The cut-offs are: \(h_{ii}>2p/n=0.267\); \(D_i>1\); \(|DFBETAS|>2/\sqrt{30}=0.365\); \(|DFFITS|>2\sqrt{4/30}=0.730\); COVRATIO outside \(1\pm3p/n=(0.600,\ 1.400)\). Table 9.2 lists the farms flagged by at least one measure.

Table 9.2: Influence diagnostics for farms flagged by at least one measure
Farm N Yield \(h_{ii}\) \(r_i\) \(t_i\) \(D_i\) DFBETAS (N) DFFITS COVRATIO
2 96 43.4 0.135 2.457 2.749 0.236 0.430 1.087 0.470
6 43 31.3 0.173 -1.161 -1.169 0.070 0.245 -0.534 1.143
15 55 33.0 0.181 -0.240 -0.235 0.003 0.022 -0.110 1.415
17 190 40.0 0.471 -2.646 -3.035 1.560 -2.507 -2.866 0.631
20 42 31.8 0.131 -1.722 -1.794 0.111 0.333 -0.695 0.829
24 46 38.9 0.208 0.304 0.298 0.006 -0.075 0.153 1.456
29 41 39.7 0.215 1.777 1.859 0.216 -0.550 0.973 0.887

Farm 17 stands out on every measure. It received far more nitrogen (190 kg/ha) than any other farm, so it has high leverage (\(h=0.471\)); its yield is much lower than the model predicts, so its R-student residual is large (\(t=-3.035\)). Consequently \(D_{17}=1.560>1\), its DFFITS is -2.866, and it has a large DFBETAS for the nitrogen coefficient (-2.507). Deleting farm 17 changes the nitrogen coefficient from 0.0478 to 0.0778 and \(R^2\) from 0.487 to 0.614.

The statistics do not tell us what to do. Farm 17 might be a recording error, a farm where heavy nitrogen caused lodging (a real biological effect that a linear model cannot represent), or a farm affected by pests. The field records must be checked. If the observation is valid, the appropriate response is to change the model (for example add a quadratic N term) or to use a robust method (Chapter 16), not simply to delete the point.

9.5 R practical

pd  <- read.csv("csv/paddy.csv")
fit <- lm(yield ~ N + P + K, data = pd)
n <- nrow(pd); p <- length(coef(fit))

h   <- hatvalues(fit)          # leverage
D   <- cooks.distance(fit)     # Cook's D
dfb <- dfbetas(fit)            # n x p matrix
dff <- dffits(fit)
cvr <- covratio(fit)

which(h > 2 * p / n)
#> 17 
#> 17
which(D > 1)
#> 17 
#> 17
which(abs(dfb) > 2 / sqrt(n), arr.ind = TRUE)
#>    row col
#> 6    6   1
#> 17  17   1
#> 2    2   2
#> 17  17   2
#> 29  29   2
#> 2    2   3
#> 17  17   3
#> 29  29   3
#> 2    2   4
#> 6    6   4
#> 17  17   4
#> 20  20   4
#> 29  29   4
which(abs(dff) > 2 * sqrt(p / n))
#>  2 17 29 
#>  2 17 29
which(cvr > 1 + 3 * p / n | cvr < 1 - 3 * p / n)
#>  2 15 24 
#>  2 15 24
summary(influence.measures(fit))      # all measures, flagged cases marked
#> Potentially influential observations of
#>   lm(formula = yield ~ N + P + K, data = pd) :
#> 
#>    dfb.1_  dfb.N   dfb.P dfb.K dffit   cov.r   cook.d  hat    
#> 2  -0.14    0.43   -0.62  0.58  1.09    0.47_*  0.24    0.14  
#> 17  1.74_* -2.51_* -0.60 -0.52 -2.87_*  0.63    1.56_*  0.47_*
# Check Cook's D from its definition for farm 17
f17 <- lm(yield ~ N + P + K, data = pd[-17, ])
db  <- coef(f17) - coef(fit)
X   <- model.matrix(fit)
drop(t(db) %*% crossprod(X) %*% db) / (p * sigma(fit)^2)   # equals D[17]
#> [1] 1.560234
car::influencePlot(fit, id = list(n = 2))
#>      StudRes       Hat     CookD
#> 2   2.748920 0.1351717 0.2358061
#> 17 -3.034943 0.4713295 1.5602343
#> 29  1.859475 0.2148740 0.2161421
Figure 9.2: Influence plot: R-student against leverage, with circle area proportional to Cook’s D
Historical Insights

The birth of regression diagnostics

Regression diagnostics became a field of its own in the late 1970s, when computers made it feasible to refit a model \(n\) times. R. Dennis Cook, then a young statistician at the University of Minnesota, published his distance measure in a four-page note in Technometrics in 1977 (Cook 1977); it became one of the most cited papers in statistics. In 1978 Hoaglin and Welsch explained the central role of the hat matrix (Hoaglin and Welsch 1978), and in 1980 Belsley, Kuh and Welsch, working on econometric models at MIT, published Regression Diagnostics, introducing DFBETAS, DFFITS and COVRATIO together with tools for detecting collinearity (Belsley, Kuh, and Welsch 1980).

Quotes to Inspire

“Data that are not very well behaved deserve to be heard, not silenced.”
- Adapted from R. Dennis Cook

9.6 Practical exercises

9.6.1 Practical 9.1: A farm with an unusual irrigation level

Paddy yield (t/ha) and number of irrigations for nine farms are given below. Farm 9 used far more irrigations than the others. Compute \(h_{ii}\), Cook’s \(D\), DFFITS, DFBETAS for the slope and COVRATIO, and decide whether farm 9 is a leverage point, an influential point, or both.

Table 9.3: Irrigations and paddy yield
Farm 1 2 3 4 5 6 7 8 9
Irrigations (\(x\)) 1 2 3 4 5 6 7 8 20
Yield (\(y\)) 3.1 3.4 3.6 4.0 4.1 4.5 4.6 5.0 4.2

Solution

Cut-offs with \(n=9\), \(p=2\): \(h>2p/n=0.444\); \(D>1\); \(|DFFITS|>2\sqrt{2/9}=0.943\); \(|DFBETAS|>2/3=0.667\); COVRATIO outside \(1\pm6/9\).

Table 9.4: Influence measures for the irrigation data
Farm \(h_{ii}\) \(r_i\) \(D_i\) DFFITS DFBETAS (slope) COVRATIO
1 0.218 -1.358 0.257 -0.773 0.541 0.944
2 0.181 -0.846 0.079 -0.388 0.241 1.339
3 0.152 -0.549 0.027 -0.220 0.114 1.469
4 0.130 0.113 0.001 0.041 -0.016 1.560
5 0.117 0.202 0.003 0.068 -0.015 1.524
6 0.111 0.849 0.045 0.294 -0.012 1.232
7 0.113 0.940 0.057 0.333 0.048 1.172
8 0.123 1.598 0.180 0.696 0.220 0.627
9 0.854 -2.627 20.174 -49.898 -46.539 0.002

Farm 9 has \(h_{99}=0.854\), far above 0.444: it is a leverage point. Its Cook’s distance is \(D_9=20.174\) >1, DFFITS \(-49.898\) and DFBETAS for the slope \(-46.539\): it is also highly influential. With farm 9 the slope is 0.0520 t/ha per irrigation; without it the slope is 0.2631. The yield of the heavily irrigated farm does not follow the trend of the others (perhaps waterlogging), and a straight line through all nine farms misrepresents both.

Doing it in R

irr <- data.frame(x = c(1:8, 20), y = c(3.1, 3.4, 3.6, 4.0, 4.1, 4.5, 4.6, 5.0, 4.2))
fi <- lm(y ~ x, data = irr)
round(data.frame(h = hatvalues(fi), D = cooks.distance(fi), dffits = dffits(fi),
                 dfb_slope = dfbetas(fi)[, 2], covratio = covratio(fi)), 3)
#>       h      D  dffits dfb_slope covratio
#> 1 0.218  0.257  -0.773     0.541    0.944
#> 2 0.181  0.079  -0.388     0.241    1.339
#> 3 0.152  0.027  -0.220     0.114    1.469
#> 4 0.130  0.001   0.041    -0.016    1.560
#> 5 0.117  0.003   0.068    -0.015    1.524
#> 6 0.111  0.045   0.294    -0.012    1.232
#> 7 0.113  0.057   0.333     0.048    1.172
#> 8 0.123  0.180   0.696     0.220    0.627
#> 9 0.854 20.174 -49.898   -46.539    0.002
summary(influence.measures(fi))
#> Potentially influential observations of
#>   lm(formula = y ~ x, data = irr) :
#> 
#>   dfb.1_   dfb.x    dffit    cov.r    cook.d   hat     
#> 9  23.64_* -46.54_* -49.90_*   0.00_*  20.17_*   0.85_*
rbind(all = coef(fi), without9 = coef(lm(y ~ x, data = irr[-9, ])))
#>          (Intercept)         x
#> all         3.732000 0.0520000
#> without9    2.853571 0.2630952
plot(y ~ x, data = irr, pch = 19); abline(fi); abline(lm(y ~ x, data = irr[-9, ]), lty = 2)

9.7 Chapter Summary

Fill in the blanks

Answers are given at the end of the chapter.

  1. A point remote in \(x\)-space that lies close to the regression line is a __________ point.

  2. A point unusual in both \(x\) and \(y\) that pulls the fitted line towards itself is an __________ point.

  3. The leverage of the \(i\)th observation is \(h_{ii}=\) __________.

  4. The average hat value is __________.

  5. A point with \(h_{ii}>\) __________ is considered a leverage point.

  6. Cook’s \(D_i\) can be written as \(\frac{r_i^2}p\times\) __________.

  7. An observation with \(D_i>\) __________ is considered influential.

  8. The cut-off for \(|DFBETAS_{j,i}|\) is __________.

  9. The cut-off for \(|DFFITS_i|\) is __________.

  10. If \(COVRATIO_i<1\), the \(i\)th observation __________ the precision of estimation.

Short-answer questions

  1. Distinguish between a leverage point and an influence point with sketches.

  2. Why is \(h_{ii}\) called the leverage? Interpret it geometrically.

  3. Show that the average of the hat diagonals is \(p/n\).

  4. Why are all leverage points not influential?

  5. Define Cook’s \(D\) and derive its alternative form.

  6. Derive \(\hat{\boldsymbol\beta}-\hat{\boldsymbol\beta}_{(i)}=(\mathbf X'\mathbf X)^{-1}\mathbf x_ie_i/(1-h_{ii})\).

  7. Define DFBETAS and explain how it differs from Cook’s \(D\).

  8. Define DFFITS and show its relation to R-student.

  9. What is generalized variance? Define COVRATIO and interpret values above and below 1.

  10. What should be done when an influential observation is detected?

Numerical and conceptual questions

Answers are given at the end of the chapter.

  1. A model with \(p=5\) is fitted to \(n=40\) observations. Find the cut-offs for \(h_{ii}\), DFBETAS, DFFITS and COVRATIO.

  2. An observation has \(r_i=2.5\), \(h_{ii}=0.4\), \(p=3\). Compute Cook’s \(D\).

  3. For Question 2, if \(t_i=2.8\), compute DFFITS.

  4. An observation has \(r_i=0.5\) and \(h_{ii}=0.8\), \(p=2\). Is it influential by Cook’s \(D\)? Is it a leverage point if \(n=10\)?

  5. For \(n=6\) and \(p=4\), can the cut-off \(2p/n\) be used? Why?

  6. \(S^2_{(i)}=2.0\), \(MS_{Res}=2.5\), \(h_{ii}=0.2\), \(p=3\). Compute COVRATIO and interpret.

  7. In simple regression with \(n=12\), \(\bar x=10\), \(S_{xx}=400\), find the leverage of a point at \(x=24\). Is it a leverage point?

  8. Why does a point with \(h_{ii}\) close to 1 have a residual close to 0?

Important formulae

Leverage:

\[ h_{ii}=\mathbf x_i'(\mathbf X'\mathbf X)^{-1}\mathbf x_i,\qquad\bar h=\frac pn \]

Change in coefficients on deleting point \(i\):

\[ \hat{\boldsymbol\beta}-\hat{\boldsymbol\beta}_{(i)}=\frac{(\mathbf X'\mathbf X)^{-1}\mathbf x_ie_i}{1-h_{ii}} \]

Cook’s distance:

\[ D_i=\frac{(\hat{\boldsymbol\beta}_{(i)}-\hat{\boldsymbol\beta})'\mathbf X'\mathbf X(\hat{\boldsymbol\beta}_{(i)}-\hat{\boldsymbol\beta})}{p\,MS_{Res}}=\frac{r_i^2}p\cdot\frac{h_{ii}}{1-h_{ii}} \]

DFBETAS and DFFITS:

\[ DFBETAS_{j,i}=\frac{\hat\beta_j-\hat\beta_{j(i)}}{\sqrt{S^2_{(i)}C_{jj}}},\qquad DFFITS_i=\frac{\hat y_i-\hat y_{(i)}}{\sqrt{S^2_{(i)}h_{ii}}}=t_i\sqrt{\frac{h_{ii}}{1-h_{ii}}} \]

COVRATIO:

\[ COVRATIO_i=\frac{\left|(\mathbf X_{(i)}'\mathbf X_{(i)})^{-1}S^2_{(i)}\right|}{\left|(\mathbf X'\mathbf X)^{-1}MS_{Res}\right|}=\frac{(S^2_{(i)})^p}{(MS_{Res})^p}\cdot\frac1{1-h_{ii}} \]

Quick revision

  • Leverage → unusual \(x\); influence → unusual \(x\) and \(y\), changes the fit.
  • \(h_{ii}\) → distance from centroid of \(x\)-space; flag \(>2p/n\).
  • Cook’s \(D\) → overall change in \(\hat{\boldsymbol\beta}\); residual part × leverage part; flag \(>1\).
  • DFBETAS → change in each \(\hat\beta_j\); flag \(>2/\sqrt n\).
  • DFFITS → change in \(\hat y_i\); flag \(>2\sqrt{p/n}\).
  • COVRATIO → change in precision; flag outside \(1\pm3p/n\).
  • Diagnose, investigate, then decide; never delete automatically.

Answers to fill in the blanks

1. Leverage 2. Influence 3. \(\mathbf x_i'(\mathbf X'\mathbf X)^{-1}\mathbf x_i\) 4. \(p/n\) 5. \(2p/n\) 6. \(h_{ii}/(1-h_{ii})\) 7. 1 8. \(2/\sqrt n\) 9. \(2\sqrt{p/n}\) 10. Degrades

Solutions to numerical and conceptual questions

  1. \(h_{ii}>2(5)/40=0.25\); \(|DFBETAS|>2/\sqrt{40}=0.316\); \(|DFFITS|>2\sqrt{5/40}=0.707\); COVRATIO outside \(1\pm15/40=(0.625,\ 1.375)\).

  2. By Equation 9.5, \(D_i=\frac{6.25}3\cdot\frac{0.4}{0.6}=1.389>1\); influential.

  3. By Equation 9.8, \(DFFITS=2.8\sqrt{0.4/0.6}=2.286\).

  4. \(D_i=\frac{0.25}2\cdot\frac{0.8}{0.2}=0.5<1\), not influential by Cook’s \(D\). \(2p/n=0.4<0.8\), so it is a leverage point: remote but consistent with the model.

  5. \(2p/n=8/6>1\), and since \(h_{ii}\le1\) the cut-off cannot be exceeded; it does not apply.

  6. By Equation 9.10, \(COVRATIO=(2.0/2.5)^3/0.8=0.64\); inclusion of the point degrades precision (and \(0.64<1-9/n\) for moderate \(n\) would flag it).

  7. \(h=\frac1{12}+\frac{(24-10)^2}{400}=0.083+0.490=0.573>2p/n=4/12=0.333\); yes, it is a leverage point.

  8. \(V(e_i)=\sigma^2(1-h_{ii})\to0\): the fitted surface is forced through the point, which then determines its own fitted value.