Docsity

Regression Diagnostics: Analyzing Residuals in Statistical Regression - Prof. Joseph Glaz, Study notes of Statistics

Toggle sidebar
bg1
Statistics 3115/5315
Handout 4
Regression Diagnostics - Analysis of the Residuals.
Most of the regression diagnostics is based on the analysis of various types
of residuals. We proceed to de…ne these residuals and discuss their properties
and applications.
The raw residuals or just residuals have been de…ned as
ei=Yic
Yi:
1. e=1
nPn
i=1 ei= 0:
2. This immediately implies the raw residuals are dependent. If n is large
this dependence can be ignored.
3. The estimate of the variance of the random errors, Ei;is based on the
residuals:
S2
YjX=1
n2
n
X
i=1
e2
i=MSE;
and
E(S2
YjX) = 2:
To simplify the presentation of the results we adopt the following notation:
S2=S2
YjX:
4. Since the range of the raw residuals varies from one data set to another,
depending on the units of the data set, it makes sense to standardize the
residuals. One approach is to de…ne the standardized residuals
zi=ei
S:
The standardized residuals have unit sample variance in the sense that
1
n2
n
X
i=1
z2
i=1
n2
n
X
i=1
e2
i
S2= 1:
1
pf3
pf4
pf5

Partial preview of the text

Download Regression Diagnostics: Analyzing Residuals in Statistical Regression - Prof. Joseph Glaz and more Study notes Statistics in PDF only on Docsity!

Statistics 3115/ Handout 4

Regression Diagnostics - Analysis of the Residuals.

Most of the regression diagnostics is based on the analysis of various types of residuals. We proceed to deÖne these residuals and discuss their properties and applications. The raw residuals or just residuals have been deÖned as

ei = Yi Yci:

  1. e = (^) n^1

Pn i=1 ei^ = 0:

  1. This immediately implies the raw residuals are dependent. If n is large this dependence can be ignored.
  2. The estimate of the variance of the random errors, Ei; is based on the residuals:

S Y^2 jX =

n 2

X^ n

i=

e^2 i = M SE;

and E(S Y^2 jX ) = ^2 :

To simplify the presentation of the results we adopt the following notation:

S^2 = S^2 Y jX :

  1. Since the range of the raw residuals varies from one data set to another, depending on the units of the data set, it makes sense to standardize the residuals. One approach is to deÖne the standardized residuals

zi =

ei S

The standardized residuals have unit sample variance in the sense that

1 n 2

X^ n

i=

z i^2 =

n 2

X^ n

i=

e^2 i S^2

  1. One can show that for i = 1; ::::; n

E(ei) = 0

and V ar(ei) = ^2 (1 hi);

where for a straight line model with the intercept

hi =

n

(Xi X)

2 Pn i=1(Xi^ ^ X)

2

is called the leverage of the ith observation. Also, one can show that the e^0 is are linear combination of Y 1 ; ::::; Yn and therefore have a normal distribution.

  1. Since the e^0 is do not have the same population variance a better way to standardize the residuals is to consider the studentized residuals deÖned as follows: ri =

ei S

p 1 hi

In some books these are called internally studentized residuals. The reason for that is that S is a function of ei and therefore not independent of it. Studentized residuals have a mean that is close to zero and its variance can be estimated by 1 n 2

X^ n

i=

r^2 i ;

which slightly greater than 1. For large n ri have an approximate t-distribution with n 2 degrees of freedom. Also, r^2 i =(n 1) have a beta distribution with parameters 1 = 2 and (n 2)= 2.

  1. Analogously one can deÖne the so called jacknife residuals:

r(i) =

ei S(i)

p 1 hi

= ri

s n 3 n 2 r^2 i

where S^2 (i) is the residual variance computed with the ith observation deleted, i.e.

S^2 (i) =

n 3

X^ n

j=1;j 6 =i

e^2 j :

jacknifed residuals to detect ináuential observations that may corrupt the e§ectiveness of the Ötted model.

Outliers. Outliers are extreme observations that do not belong to the data set. To detect outliers one examines the various residuals. For example, if we decide to examine the jacknifed residuals the fact that they have a t distribution with n 3 degrees of freedom is helpful. For example if we have a data set of n = 10 observations and we want to test if any of these observations are outliers, then we have to perform 10 tests simultaneously. The critical values are given in Table A-8A on page 729.

Outliers detection based on the leverages has been discussed by Hoaglin and Welsch (1978). They recommend to look carefully at any observation with an leverage hi > 4 =n:

In Table A-9 provides leverage critical values for the following statistics

Fi =

hi 1 =n (1 hi)=(n 2)

adjusted for the multiple testing of the n leverages.

Ináuential Observations. One of the most popular measures for evaluating ináuence of an obser- vation is Cookís distance. It measures the extent of change in the estimates of the regression coe¢ cients if a particular observation is deleted. Cookís distance for the ith observation is given by

di =

r i^2

hi 1 hi

e^2 i hi 2 S^2 (1 hi)^2

One can show that di is proportional to [c 0 d 0(i)]^2 + [c 1 d 1(i)]^2 : Cook and Weisberg (1982) recommend to scrutinize any observation with di > 1 : In Table A-10 critical values for examining the maximum of a set of Cookís distances for di(n 2):

Another measure to examine ináuence of observations is

DF F IT Si =

Ybi Yd(i) S(i)

p hi

S

S(i)

p 2 di = ri

r hi 1 hi

If jDF F IT Si)j > 2 the observation has to be scrutinized.