Docsity

Likelihood Ratio Test for Linear Models: Estimating Parameters with Constraints - Prof. Go, Study notes of Biostatistics

Toggle sidebar
bg1
STAT 5124 Linear Models
Likelihood Ratio Test
Let L0be the likelihood function assuming that the null hypothesis is true, and let
Labe the likelihood function assuming that the alternative hypothesis is true. A
likelihood ratio test rejects the null hypothesis if
L0
La
< a,
where ais some constant less than 1. In practice, we evaluate both L0and Lausing
the maximum likelihood estimates of the parameters given the constraints imposed by
the appropriate hypothesis. Typically, Lauses the usual (unconstrained) maximum
likelihood estimators.
Consider the hypotheses
H0:Hβ =h0
Ha:Hβ 6=h0,
under the assumptions that var[²] = σ2Iand that Hhas full row rank. First,
consider La. In this case there are no constraints; as a result, we use the usual
maximum likelihood estimates for βand σ2. Thus,
ˆ
βa= (X0X)−1X0yand
ˆσ2
a=1
ny0hI−X(X0X)−1X0iy.
The likelihood function then becomes
La= (2π)−n
2(ˆσ2
a)−n
2exp "−1
2ˆσ2
a³y−Xˆ
βa´0³y−Xˆ
βa´#
= (2π)−n
2(ˆσ2
a)−n
2exp "−y0[I−X(X0X)−1X0]y
2
ny0[I−X(X0X)−1X0]y#
= (2π)−n
2(ˆσ2
a)−n
2exp ·−n
2¸.
Next, consider L0. We need to find ˆ
β0, which is the maximum likelihood estimate of
βsubject to H β =h0. Our approach uses LaGrangian multipliers.
Let λbe the vector of LaGrangian multipliers. Our objective function, L, is
1
pf3
pf4
pf5

Partial preview of the text

Download Likelihood Ratio Test for Linear Models: Estimating Parameters with Constraints - Prof. Go and more Study notes Biostatistics in PDF only on Docsity!

STAT 5124 Linear Models

Likelihood Ratio Test

Let L 0

be the likelihood function assuming that the null hypothesis is true, and let

L

a

be the likelihood function assuming that the alternative hypothesis is true. A

likelihood ratio test rejects the null hypothesis if

L 0

L

a

< a,

where a is some constant less than 1. In practice, we evaluate both L 0

and L a

using

the maximum likelihood estimates of the parameters given the constraints imposed by

the appropriate hypothesis. Typically, L a

uses the usual (unconstrained) maximum

likelihood estimators.

Consider the hypotheses

H

0

: Hβ = h 0

Ha : Hβ 6 = h 0 ,

under the assumptions that var[≤ ] = σ

2 I and that H has full row rank. First,

consider L a

. In this case there are no constraints; as a result, we use the usual

maximum likelihood estimates for β and σ

2

. Thus,

β a

= (X

′

X)

− 1

X

′

y and

σˆ

2

a

n

y

′

[

I − X(X

′

X)

− 1

X

′

]

y.

The likelihood function then becomes

L

a

= (2π)

−

n

2 (ˆσ

2

a

−

n

2 exp

[

2ˆσ

2

a

(

y − X

β a

) ′

(

y − X

β a

)

]

= (2π)

−

n

2 (ˆσ

2

a

−

n

2 exp

[

y

′ [I − X(X

′

X)

− 1 X

′

] y

2

n

y

′ [I − X(X

′

X)

− 1 X

′

] y

]

= (2π)

−

n

2 (ˆσ

2

a

−

n

2 exp

[

n

]

Next, consider L 0

. We need to find

β 0

, which is the maximum likelihood estimate of

β subject to Hβ = h 0

. Our approach uses LaGrangian multipliers.

Let λ be the vector of LaGrangian multipliers. Our objective function, L, is

L = L

0

− λ

′

[

H

β 0

− h 0

]

= (2π)

−

n

2 (ˆσ

2

0

−

n

2 exp

[

2ˆσ

2

0

(

y − X

β 0

) ′

(

y − X

β 0

)

]

− λ

′

[

H

β 0

− h 0

]

Consider the derivative with respect to ˆσ

2

0

∂L

∂ ˆσ

2

0

(

n

)

(2π)

−

n

2 (ˆσ

2

0

−

n

2

− 1

exp

[

2ˆσ

2

0

(

y − X

β 0

) ′

(

y − X

β 0

)

]

(2π)

−

n

2 (ˆσ

2

0

−

n

2

(

2ˆσ

4

0

)

(

y − X

β 0

) ′

(

y − X

β 0

)

exp

[

2ˆσ

2

0

(

y − X

β 0

) ′

(

y − X

β 0

)

]

which simplifies to

∂L

∂ σˆ

2

0

n

(

ˆσ

2

0

)

L 0 +

ˆσ

4

0

(

y − X

β 0

) ′

(

y − X

β 0

)

L 0.

Setting this derivative to zero and solving, we obtain

n

(

σˆ

2

0

)

L

0

2ˆσ

4

0

(

y − X

β 0

) ′

(

y − X

β 0

)

L

0

n

2ˆσ

2

2ˆσ

4

0

(

y − X

β 0

) ′

(

y − X

β 0

)

n

ˆσ

2

(ˆσ

2

0

2

(

y − X

β 0

) ′

(

y − X

β 0

)

σ ˆ

2

0

n

(

y − X

β 0

) ′

(

y − X

β 0

)

Substituting this result into L 0

, we obtain

L

0

= (2π)

−

n

2 (ˆσ

2

0

−

n

2 exp

[

2ˆσ

2

0

(

y − X

β 0

) ′

(

y − X

β 0

)

]

= (2π)

−

n

(^2) (ˆσ

2

0

−

n

(^2) exp

(

y − X

β 0

) ′

(

y − X

β 0

)

2

n

(

y − X

β 0

) ′

(

y − X

β 0

)

= (2π)

−

n

(^2) (ˆσ

2

0

−

n

(^2) exp

[

n

]

As a result, our likelihood ratio statistics becomes

We note that H

β 0

= h 0 implies that

H

β 0

= h 0

H

[

β a

− (X

′

X)

− 1

H

′

λ

∗

]

= h 0

H

β a

− h 0

[

H(X

′

X)

− 1

H

′

]

λ

∗

.

Recall, H has full row rank. As a result, H(X

′

X)

− 1 H

′

has an inverse. Thus,

λ

∗

=

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

Consequently,

β 0

β a

− (X

′

X)

− 1

H

′

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

Let

C = (X

′

X)

− 1

H

′

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

As a result,

β 0

β a

− C.

Note

σˆ

2

0

n

(

y − X

β 0

) ′

(

y − X

β 0

)

n

[

y − X

(

β a

− C

)] ′

[

y − X

(

β a

− C

)]

n

[(

y − X

β a

)

+ XC

] ′

[(

y − X

β a

)

+ XC

]

n

(

y − X

β a

) ′

(

y − X

β a

)

n

[ (

y − X

β a

) ′

XC + C

′

X

′

(

y − X

β a

)

+ C

′

X

′

XC

]

= ˆσ

2

a

n

[ (

y − X

β a

) ′

XC + C

′

X

′

(

y − X

β a

)

+ C

′

X

′

XC

]

Note that

y

′

XC = y

′

X(X

′

X)

− 1

H

′

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

β a

H

′

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

Note next that

β

′

a

X

′

XC =

β

′

a

X

′

X(X

′

X)

− 1

H

′

[

H(X

′

X)

− 1

H

′

] − 1

[

H

β a

− h 0

]

β a

H

′

[

H(X

′

X)

− 1 H

′

] − 1

[

H

β a

− h 0

]

= y

′ XC.

In a similar manner,

C

′

X

′

XC =

(

H

β a

− h 0

) ′

[

H(X

′

X)

− 1

H

′

] − 1

(

H −

β a

− h 0

)

As a result,

σˆ

2

0

= ˆσ

2

a

n

(

H

β a

− h 0

) ′

[

H(X

′

X)

− 1

H

′

] − 1

(

H

β a

− h 0

)

Our likelihood ratio statistic becomes

L

0

La

[

σˆ

2

a

σ ˆ

2

0

] n

2

ˆσ

2

a

σ ˆ

2

a

1

n

(

H

β a

− h 0

) ′

[H(X

′

X)

− 1 H

′

]

− 1

(

H

β a

− h 0

)

n

2

1

n

(

H

ˆ

β a

−h 0

) ′

[

H(X

′

X)

− 1 H

′

] − 1

(

H

ˆ

β a

−h 0

)

σ ˆ

2 a

n

2

Finally, we note that the likelihood ratio is small when the test statistic

(

H

β a

− h 0

) ′

[H(X

′

X)

− 1

H

′

]

− 1

(

H

β a

− h 0

)

/rank ofH

y

′ [I − X(X

′

X)

− 1 X

′

] y/(n − p)

is large. As a result, this test statistic produces a likelihood ratio procedure.