



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




STAT 5124 Linear Models
Likelihood Ratio Test
Let L 0
be the likelihood function assuming that the null hypothesis is true, and let
a
be the likelihood function assuming that the alternative hypothesis is true. A
likelihood ratio test rejects the null hypothesis if
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
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)
− 1
X
′
y and
σˆ
2
a
n
y
′
[
′
X)
− 1
X
′
]
y.
The likelihood function then becomes
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
0
− λ
′
[
β 0
− h 0
]
= (2π)
−
n
2 (ˆσ
2
0
−
n
2 exp
[
2ˆσ
2
0
(
y − X
β 0
) ′
(
y − X
β 0
)
]
− λ
′
[
β 0
− h 0
]
Consider the derivative with respect to ˆσ
2
0
∂ ˆσ
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
∂ σˆ
2
0
n
(
ˆσ
2
0
)
ˆσ
4
0
(
y − X
β 0
) ′
(
y − X
β 0
)
Setting this derivative to zero and solving, we obtain
n
(
σˆ
2
0
)
0
2ˆσ
4
0
(
y − X
β 0
) ′
(
y − X
β 0
)
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
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
β 0
= h 0
[
β a
′
X)
− 1
H
′
λ
∗
]
= h 0
β a
− h 0
[
′
X)
− 1
H
′
]
λ
∗
.
Recall, H has full row rank. As a result, H(X
′
X)
− 1 H
′
has an inverse. Thus,
λ
∗
=
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
Consequently,
β 0
β a
′
X)
− 1
H
′
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
Let
′
X)
− 1
H
′
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
As a result,
β 0
β a
Note
σˆ
2
0
n
(
y − X
β 0
) ′
(
y − X
β 0
)
n
[
y − X
(
β a
)] ′
[
y − X
(
β a
)]
n
[(
y − X
β a
)
] ′
[(
y − X
β a
)
]
n
(
y − X
β a
) ′
(
y − X
β a
)
n
[ (
y − X
β a
) ′
′
X
′
(
y − X
β a
)
′
X
′
XC
]
= ˆσ
2
a
n
[ (
y − X
β a
) ′
′
X
′
(
y − X
β a
)
′
X
′
XC
]
Note that
y
′
XC = y
′
X(X
′
X)
− 1
H
′
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
β a
′
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
Note next that
β
′
a
′
XC =
β
′
a
′
X(X
′
X)
− 1
H
′
[
′
X)
− 1
H
′
] − 1
[
β a
− h 0
]
β a
′
[
′
X)
− 1 H
′
] − 1
[
β a
− h 0
]
= y
′ XC.
In a similar manner,
′
X
′
XC =
(
β a
− h 0
) ′
[
′
X)
− 1
H
′
] − 1
(
β a
− h 0
)
As a result,
σˆ
2
0
= ˆσ
2
a
n
(
β a
− h 0
) ′
[
′
X)
− 1
H
′
] − 1
(
β a
− h 0
)
Our likelihood ratio statistic becomes
0
La
[
σˆ
2
a
σ ˆ
2
0
] n
2
ˆσ
2
a
σ ˆ
2
a
1
n
(
β a
− h 0
) ′
′
X)
− 1 H
′
]
− 1
(
β a
− h 0
)
n
2
1
n
(
ˆ
β a
−h 0
) ′
[
′
X)
− 1 H
′
] − 1
(
ˆ
β a
−h 0
)
σ ˆ
2 a
n
2
Finally, we note that the likelihood ratio is small when the test statistic
(
β a
− h 0
) ′
′
X)
− 1
H
′
]
− 1
(
β 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.