Definitioncore
Studentized residual
Also called externally studentized residual, deleted residual.
A residual divided by an estimate of its standard deviation that accounts for its leverage. With the point left out of the variance estimate it has a t distribution.
A studentized residual is a regression residual divided by an estimate of its own standard deviation. Raw residuals do not have equal variances even when the errors do: , where is the leverage, so residuals at high-leverage points are small by construction. Dividing by puts all residuals on one scale. The internal version uses the usual ; the external version uses , computed without observation , and under normal errors it has the t distribution with degrees of freedom exactly. Both come from one fit, without refitting.
Definition
Let with an matrix of rank (intercept included in the columns), the coefficient vector and with uncorrelated entries of mean 0 and variance . Let be the least squares estimate, the residuals, the diagonal of the hat matrix, and . Assume .
Internally studentized residual (also called the standardized residual):
Deleted variance. Let be the residual variance estimate of the fit without observation , with degrees of freedom. One fit gives it:
Externally studentized residual (also called the deleted studentized residual, or RSTUDENT):
The deleted residual and why is a t statistic. Let be the prediction of from the fit without . By the Sherman-Morrison formula, the deleted (or PRESS) residual is , and . So is the prediction error of a point not used in the fit, divided by its estimated standard error. Under iid errors, is independent of the other observations, and from those, and are independent with . So is normal with mean 0, independent of , and
The for different are not independent. This needs the fit without to have rank , that is, .
The internal version is bounded. Under the same model, has the Beta law, so always. A single wild point cannot have a large in a small sample, because it also inflates . This is the reason to prefer for outlier detection: is a monotone function of , but its scale is unbounded and its law is the familiar .
Mean shift outlier model. Add to the indicator column of observation . The t statistic of its coefficient is exactly . So is the level test that observation , chosen in advance, is shifted. For the largest , chosen after looking, the Bonferroni bound gives the cutoff , which is conservative.
Examples and non-examples
Six points, one far in . Take and with . The fit is , and . Exact arithmetic, checked by refitting without each point:
| 1 | 1 | 0.3639 | 1.7165 | |||
| 2 | 2 | 0.2590 | 2.6313 | |||
| 3 | 3 | 0.1934 | 1.2066 | 0.9267 | 2.2005 | 0.9057 |
| 4 | 4 | 0.1672 | 0.0295 | 0.0223 | 2.8018 | 0.0193 |
| 5 | 5 | 0.1803 | 1.8525 | 1.4114 | 1.4067 | 1.7252 |
| 6 | 10 | 0.8361 | 0.6333 |
The sixth raw residual is the third smallest in size, yet its studentized residuals are the largest: scales it up by 2.5, and leaving it out drops the variance estimate from 2.10 to 0.63. Its internal value is close to the bound . Its external value has two-sided p-value 0.049 against , just under 0.05 for a point chosen in advance. Chosen as the largest of six, the Bonferroni p-value is , and the Bonferroni cutoff is . With the data cannot prove an outlier, which is the honest answer.
The identity between and . For point 6, , which agrees with the refit value up to the rounding of .
Non-example: . Dividing by alone ignores . For point 6 it gives , which hides the point. Some software calls the standardized residual, so check the definition before reading a plot.
Non-example: residuals of a robust fit. For an M-estimator such as the Huber M-estimator, divided by a robust scale is a useful residual, but it has neither of the exact laws above.
Naming. The terms vary between books and programs. "Studentized" usually means (external) and "standardized" means (internal), but some texts call studentized. "Deleted residual" can mean or the unscaled .
Related definitions
- PRESS statistic. , the leave-one-out prediction error sum of squares; leave-one-out cross-validation for least squares is PRESS. For the example it is 52.85, against the in-sample .
- Cook's distance. , the internal residual times a leverage factor.
- DFFITS. , the external residual times the same kind of factor.
- Q-Q plot of residuals. Plotting the ordered against or normal quantiles checks the normality of the errors; the raw have unequal variances and are less suited.
- Studentization. Dividing a statistic by an estimate of its standard deviation, after Student, as in the t-test. The residuals are "studentized" in the same sense.
References
- George A. F. Seber and Alan J. Lee, Linear Regression Analysis, second edition, Wiley, 2003, Section 10.2 (residuals, their variances and the internally and externally studentized residuals) and Section 10.6.3 (leave-one-out diagnostics)
- R. Dennis Cook and Sanford Weisberg, Residuals and Influence in Regression, Chapman and Hall, 1982, Chapter 2 (diagnostic methods using residuals, the studentized residuals, the mean shift outlier model and the Bonferroni outlier test)
- David A. Belsley, Edwin Kuh and Roy E. Welsch, Regression Diagnostics, Wiley, 1980, Chapter 2 (the studentized residual RSTUDENT with the deleted variance estimate s(i))
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 NDSGPG Edit this page History Report an error Markdown