Docsity

Stat 511 Homework Solution - Equivalence of Hypotheses in Linear Regression, Assignments of Data Analysis & Statistical Methods

Toggle sidebar
bg1
1
Stat 511 HW#2 Spring 2009
1. In class Vardeman claimed that hypotheses of the form 0
H:
=
Cβ0 can be written as
()
00
H:E C∈YX for 0
X a suitable matrix (and
(
)
(
)
0
CC⊂XX). Let’s investigate this
notion in the context of Problem 10 of Homework 1. Consider
01 10 0.5 .5 .5 .5
00 0 1 1.5 .5 .5 .5
−
−−
⎛⎞
=⎜⎟
−
−−
⎝⎠
C
and the hypothesis 0
H: =Cβ0.
a) Find a matrix A such that
=
CAX.
b) Let
0
11111111
11111111
⎛⎞
′=⎜⎟
−−−−
⎝⎠
X
Argue that the hypothesis under consideration is equivalent to the hypothesis
()
00
H:E C∈YX. (Note: One clearly has
(
)
(
)
0
CC⊂XX. To show that
() ()
0
CC
⊥
′
⊂XA
it suffices to show that 0
′
=
A
PX 0 and you can use R to do this. Then
the dimension of
()
0
CX is clearly 2, i.e.
(
)
0
rank 2
=
X. So
(
)
0
CX is a subspace of
() ( )
CC
⊥
′
XA∩ of dimension 2. But the dimension of
() ( )
CC
⊥
′
XA∩ is itself
() ()
rank rank 4 2 2− =−=XC .)
c) Interpret the null hypothesis under discussion here in Stat 500 language.
2. Suppose we are operating under the (common Gauss-Markov) assumptions that
E=ε0 and 2
Var
=εI.
a) Use fact 1. of Appendix 7.1 of the 2008 class outline to find
() ()
ˆˆ
E and Var−−YY YY. (Use the fact that
(
)
ˆ
−=−
X
YY IPY.) Then write
ˆ
ˆ
⎛⎞
⎛⎞
=
⎜⎟
⎜⎟
⎜⎟
−
−⎝⎠
⎝⎠
X
X
P
Y
Y
IP
YY
and use fact 1 of Appendix 7.1 to argue that every entry of ˆ
−
YY is uncorrelated with
every entry of ˆ
Y.
b) Theorem 5.2.a of Rencher and Schaalje or Theorem 1.3.2 of Christensen say that if
E=Y
μ
and Var =YΣ and A is a symmetric matrix of constants, then
(
)
Etr
′
′
=+YAY AΣμAμ
Use this fact and argue carefully that
pf3

Partial preview of the text

Download Stat 511 Homework Solution - Equivalence of Hypotheses in Linear Regression and more Assignments Data Analysis & Statistical Methods in PDF only on Docsity!

Stat 511 HW#2 Spring 2009

  1. In class Vardeman claimed that hypotheses of the form H : 0 Cβ = 0 can be written as

H : E 0 Y ∈ C ( X 0 )for X 0 a suitable matrix (and C ( X 0 ) ⊂ C ( X )). Let’s investigate this

notion in the context of Problem 10 of Homework 1. Consider 0 1 1 0 0 .5 .5 .5. 0 0 0 1 1 .5 .5 .5.

= ⎛^ −^ −^ − ⎞

C

and the hypothesis H : 0 Cβ = 0.

a) Find a matrix A such that C = AX.

b) Let

0

′ =^ ⎛^ ⎞

X

Argue that the hypothesis under consideration is equivalent to the hypothesis

H : E 0 Y ∈ C ( X 0 ). (Note: One clearly has C ( X 0 ) ⊂ C ( X ). To show that

C ( X 0 ) ⊂ C ( A ′ )⊥it suffices to show that P XA ′ 0 = 0 and you can use R to do this. Then

the dimension of C ( X 0 )is clearly 2, i.e. rank ( X 0 )= 2. So C ( X 0 )is a subspace of

C ( X ) ∩ C ( A ′)⊥of dimension 2. But the dimension of C ( X ) ∩ C ( A ′)⊥is itself

rank ( X ) − rank ( C ) = 4 − 2 = 2 .)

c) Interpret the null hypothesis under discussion here in Stat 500 language.

  1. Suppose we are operating under the (common Gauss-Markov) assumptions that E ε = 0 and Var ε = σ^2 I.

a) Use fact 1. of Appendix 7.1 of the 2008 class outline to find

E ( Y − Y ˆ^ ) and Var( Y − Y ˆ ). (Use the fact that Y − Y ˆ = ( I − PX ) Y .) Then write

⎝ −^ ⎠ ⎝^ − ⎠

X X

Y P

Y

Y Y I^ P

and use fact 1 of Appendix 7.1 to argue that every entry of Y − Y ˆ is uncorrelated with every entry of Y ˆ.

b) Theorem 5.2.a of Rencher and Schaalje or Theorem 1.3.2 of Christensen say that if E Y = μ and Var Y = Σ and A is a symmetric matrix of constants, then

E Y AY ′ = tr ( AΣ )+ μ ′ Aμ

Use this fact and argue carefully that

E ( ˆ^ ) ( ˆ) σ^2 ( n rank( ))

Y − Y ′ Y − Y = − X

  1. a) In the context of Problem 3 of HW 1 and the fake data vector used in Problem 4 of HW 1, use R and generalized least squares to find appropriate estimates for 1 1 0 0 0 E and 1 0 1 0 0 0 0 0 1 1 1 .25 .25 .25.

Y β

in the Aitken models with

1 (^ ) 2

first diag 1, 4, 4,1,1,1, 4 and then 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 4

= = ⎢^ − ⎥

V V

(Do the necessary matrix calculations in R.)

b) For both of the above covariance structures, compare the (Aitken model) covariance matrices for generalized least squares estimators to (Aitken model) covariance matrices for the OLS estimators of E Y and the Cβ above.

  1. a) The basic lm function in R allows one to automatically do weighted least squares,

i.e. minimize ∑ wi ( yi − y ˆ i )^2 for positive weights wi. For the V 1 case of the Aitken

model of Problem 3, find the BLUEs of the 4 cell means using lm and an appropriate vector of weights. (Type > help(lm) in R in order to get help with the syntax.)

b) The lm.gls() function in the R contributed package MASS allows one to do generalized least squares as described in class. For the V 2 case of the Aitken model of Problem 3, find the BLUEs of the 4 cell means using lm.gls. (After loading the MASS package, Type > help(lm.gls) in order to get help with the syntax.)

  1. In the context of Problems 3 and 4 of HW #1, use R matrix calculations to do the following in the (non-full-rank) Gauss-Markov normal linear model.

a) Find 90% two-sided confidence limits for σ.

b) Find 90% two-sided confidence limits for 1 ( 1 2 3 4 )

c) Find 90% two-sided confidence limits for τ 1 − τ 2.