Docsity

Diagnostic Techniques for Model Fitting: Residual Plots and Cook's Distance, Exams of Mathematics

Toggle sidebar
bg1
1
M 374G/384G, Fall 04
DIAGNOSTICS
Questions:
• Does the model fit?
• Is the result unduly influenced by one or a small number of points?
We've discussed some techniques to study these questions. (e.g., __________________)
Some more:
(Caution: These are not guaranteed to catch all problems, but can catch some.)
I. RESIDUAL PLOTS
We've looked at these a little in cases with one or two terms, where arc easily generates
them ("Remove Linear Trend"). Several types of residual plots can also be made fairly
easily when more terms are involved.
Recall the error formulation of the models:
Ordinary Linear:
Y| x = ηTu + e| x
e| x ~ N(0, σ2), independent of x
Weighted linear:
Y| xi = ηTui +
!
ei
wi
ei ~ N(0, σ2), independent of i
Recall the Least Squares fits
OLS:
!
ˆ
y
i
=
!
ˆ
"
Tui
!
ˆ
e
i
= yi -
!
ˆ
y
i
WLS:
!
ˆ
y
i
=
!
ˆ
"
Tui
!
ˆ
e
i
=
!
wi
(yi -
!
ˆ
y
i
)
Intuitively,
!
ˆ
e
i
is an estimate of ei ( = yi - ηTui for the ordinary model.) We know E(ei) and
E(
!
ˆ
e
i
) are both zero, so
!
ˆ
e
i
is an unbiased estimate of E(ei). Thus it seems reasonable to
plot the
!
ˆ
e
i
's against various things to give some check on whether the model assumptions
are reasonable.
pf3

Partial preview of the text

Download Diagnostic Techniques for Model Fitting: Residual Plots and Cook's Distance and more Exams Mathematics in PDF only on Docsity!

M 374G/384G, Fall 04

DIAGNOSTICS

Questions :

  • Does the model fit?
  • Is the result unduly influenced by one or a small number of points?

We've discussed some techniques to study these questions. (e.g., __________________)

Some more:

( Caution : These are not guaranteed to catch all problems, but can catch some.)

I. RESIDUAL PLOTS

We've looked at these a little in cases with one or two terms, where arc easily generates

them ("Remove Linear Trend"). Several types of residual plots can also be made fairly

easily when more terms are involved.

Recall the error formulation of the models :

Ordinary Linear:

Y| x = η

T

u + e| x

e| x ~ N(0, σ

2

), independent of x

Weighted linear:

Y| x

i

= η

T

u

i

e

i

w

i

e

i

~ N(0, σ

2

), independent of i

Recall the Least Squares fits

OLS:

y

i

T

u

i

e

i

= y

i

y

i

WLS:

y

i

T

u

i

e

i

= w

i

(y

i

y

i

Intuitively,

e

i

is an estimate of e

i

( = y

i

  • η

T

u

i

for the ordinary model.) We know E(e

i

) and

E(

e

i

) are both zero, so

e

i

is an unbiased estimate of E(e

i

). Thus it seems reasonable to

plot the

e

i

's against various things to give some check on whether the model assumptions

are reasonable.

However :

Recall : (Section 7.6 of book; also true for WLS)

Var(

e

i

|x

i

) = σ

2

(1 - h

i

), where h

i

is the i

th

leverage (whereas Var(e

i

|x

i

) = σ

2

Thus

  • If the h

i

's are all small, then Var(

e

i

|x

i

) ≈ Var(e

i

|x

i

), so a plot using the

e

i

's

should approximate a plot using the e

i

's.

  • If the h

i

's are all approximately equal, then Var(ˆ e

i

|x

i

) is approximately a

constant times Var(e

i

|x

i

), so a plot using the

e

i

's should approximate a

rescaled plot using the e

i

's

  • If the h

i

's vary noticeably, then a plot using the

e

i

's will not give a good

approximation of a plot using the e

i

's. In this case, use instead studentized

residuals

e

i

" 1 # h

i

. (These are automatic in some software; not in arc.)

  • Note that standardized residuals are expected to have something like a normal

distribution, so they are also helpful in identifying extreme cases.

Types of Residual Plots (roughly in order of importance)

  • Against fitted values

y

i

  • Against individual or pairs of predictors
  • Against other possible predictors not in the model (especially time, location)
  • Against individual terms other than predictors
  • Against linear combinations of terms

Suggestions for Residual Plots for Specific Purposes

Checking linearity

Plot against fitted values

y

i

. (Like "remove linear trend")

Checking constant variance

Plot against fitted values, predictors, pairs of predictors, other possible predictors.

Caution : What looke l ike non-constant variance can sometimes be caused

by non-linearity.

Checking independence

Plot against other possible predictors (especially time, location)

Checking normality

Use a normal probability plot.

Cautions:

  • The usual cautions re residuals and leverage.
  • The usual cautions in interpreting normal plots
  • Since

e

i

= 0, the

e

i

's are not independent.