Professional Documents
Culture Documents
Likelihood Ratio Tests
Likelihood Ratio Tests
n
ii Argue that L( p0 )/L( pa ) < k if and only if i=1 yi > k ∗ for some constant k ∗ .
iii Give the rejection region for the most powerful test of H0 versus Ha .
n
b Recall that i=1 Yi has a binomial distribution with parameters n and p. Indicate how
to determine the values of any constants contained in the rejection region derived in part
[a(iii)].
c Is the test derived in part (a) uniformly most powerful for testing H0 : p = p0 versus
Ha : p > p0 ? Why or why not?
*10.103 Let Y1 , Y2 , . . . , Yn denote a random sample from a uniform distribution over the interval (0, θ).
a Find the most powerful α-level test for testing H0 : θ = θ0 against Ha : θ = θa , where
θa < θ0 .
b Is the test in part (a) uniformly most powerful for testing H0 : θ = θ0 against Ha : θ < θ0 ?
*10.104 Refer to the random sample of Exercise 10.103.
a Find the most powerful α-level test for testing H0 : θ = θ0 against Ha : θ = θa , where
θa > θ0 .
b Is the test in part (a) uniformly most powerful for testing H0 : θ = θ0 against Ha : θ > θ0 ?
c Is the most powerful α-level test that you found in part (a) unique?
It can be shown that 0 ≤ λ ≤ 1. A value of λ close to zero indicates that the likeli-
hood of the sample is much smaller under H0 than it is under Ha . Therefore, the data
suggest favoring Ha over H0 . The actual value of k is chosen so that α achieves the
desired value. We illustrate the mechanics of this method with the following example.
Solution In this case, = (µ, σ 2 ). Notice that 0 is the set {(µ0 , σ 2 ) : σ 2 > 0}, a =
{(µ, σ 2 ) : µ > µ0 , σ 2 > 0}, and hence that = 0 ∪ a = {(µ, σ 2 ) : µ ≥ µ0 ,
σ 2 > 0}. The constant value of the variance σ 2 is completely unspecified. We must
now find L( ˆ 0 ) and L().
ˆ
For the normal distribution, we have
n n/2
1 1 n
(y i − µ) 2
L() = L(µ, σ 2 ) = √ exp − .
2π σ2 i=1
2σ 2
10.11 Likelihood Ratio Tests 551
n n 1 n
ln[L(µ, σ 2 )] = − ln σ 2 − ln 2π − 2
(yi − µ)2 .
2 2 2σ i=1
Thus,
L(ˆ 0 ) σ̂ 2 n/2
λ= =
L()ˆ σ̂02
n/2
n
(y − y)2
i=1 i
, if y > µ0
n
= i=1 (yi − µ0 )
2
1, if y ≤ µ0 .
Notice that λ is always less than or equal to 1. Thus, “small” values of λ are those
less than some k < 1. Because
n n
(yi − µ0 )2 = [(yi − y) + (y − µ0 )]2
i=1 i=1
n
= (yi − y)2 + n(y − µ0 )2
i=1
if k < 1, it follows that the rejection region, λ ≤ k, is equivalent to
n
(yi − y)2
ni=1 < k 2/n = k
i=1 (yi − µ 0 )2
n
i=1 i − y)
(y 2
n < k
i=1 (yi − y) + n(y − µ0 )
2 2
1
< k.
n(y − µ0 )2
1 + n
i=1 (yi − y)
2
n(y − µ0 )2
> (n − 1)k
1 n
(yi − y) 2
n − 1 i=1
or, because y > µ0 when λ < k < 1,
√
n(y − µ0 ) (
> (n − 1)k ,
s
where
1 n
s2 = (yi − y)2 .
n − 1 i=1
√
Notice that n(Y − µ0 )/S is the t statistic employed in previous sections. Conse-
quently, the likelihood ratio test is equivalent to the t test of Section 10.8.
10.11 Likelihood Ratio Tests 553
Situations in which the likelihood ratio test assumes a well-known form are not
uncommon. In fact, all the tests of Sections 10.8 and 10.9 can be obtained by the
likelihood ratio method. For most practical problems, the likelihood ratio method
produces the best possible test, in terms of power.
Unfortunately, the likelihood ratio method does not always produce a test statistic
with a known probability distribution, such as the t statistic of Example 10.24. If the
sample size is large, however, we can obtain an approximation to the distribution of λ
if some reasonable “regularity conditions” are satisfied by the underlying population
distribution(s). These are general conditions that hold for most (but not all) of the
distributions that we have considered. The regularity conditions mainly involve the
existence of derivatives, with respect to the parameters, of the likelihood function.
Another key condition is that the region over which the likelihood function is positive
cannot depend on unknown parameter values.
THEOREM 10.2 Let Y1 , Y2 , . . . , Yn have joint likelihood function L(). Let r0 denote the num-
ber of free parameters that are specified by H0 : ∈ 0 and let r denote the
number of free parameters specified by the statement ∈ . Then, for large
n, −2 ln(λ) has approximately a χ 2 distribution with r0 − r df.
The proof of this result is beyond the scope of this text. Theorem 10.2 allows us
to use the table of the χ 2 distribution to find rejection regions with fixed α when n
is large. Notice that −2 ln(λ) is a decreasing function of λ. Because the likelihood
ratio test specifies that we use RR: {λ < k}, this rejection may be rewritten as
RR : {−2 ln(λ) > −2 ln(k) = k ∗ }. For large sample sizes, if we desire an α-level
test, Theorem 10.2 implies that k ∗ ≈ χα2 . That is, a large-sample likelihood ratio test
has rejection region given by
−2 ln(λ) > χα2 , where χα2 is based on r0 − r df.
The size of the sample necessary for a “good” approximation varies from application
to application. It is important to realize that large-sample likelihood ratio tests are
based on −2 ln(λ), where λ is the original likelihood ratio, λ = L( ˆ 0 )/L().
ˆ
EXAMPLE 10.25 Suppose that an engineer wishes to compare the number of complaints per week filed
by union stewards for two different shifts at a manufacturing plant. One hundred
independent observations on the number of complaints gave means x = 20 for shift
1 and y = 22 for shift 2. Assume that the number of complaints per week on the ith
shift has a Poisson distribution with mean θi , for i = 1, 2. Use the likelihood ratio
method to test H0 : θ1 = θ2 versus Ha : θ1 =
θ2 with α ≈ .01.
Solution The likelihood of the sample is now the joint probability function of all xi ’s and y j ’s
and is given by
1
θ1 i e−nθ1 θ2 j e−nθ2 ,
x y
L(θ1 , θ2 ) =
k
where k = x1 ! · · · xn !y1 ! · · · yn !, and n = 100. In this example, = (θ1 , θ2 ) and
0 = {(θ1 , θ2 ) : θ1 = θ2 = θ}, where θ is unknown. Hence, under H0 the likelihood
554 Chapter 10 Hypothesis Testing
Exercises
10.105 Let Y1 , Y2 , . . . , Yn denote a random sample from a normal distribution with mean µ (unknown)
and variance σ 2 . For testing H0 : σ 2 = σ02 against Ha : σ 2 > σ02 , show that the likelihood ratio
test is equivalent to the χ 2 test given in Section 10.9.
10.106 A survey of voter sentiment was conducted in four midcity political wards to compare the
fraction of voters favoring candidate A. Random samples of 200 voters were polled in each of
the four wards, with the results as shown in the accompanying table. The numbers of voters
favoring A in the four samples can be regarded as four independent binomial random variables.
Exercises 555
Construct a likelihood ratio test of the hypothesis that the fractions of voters favoring candidate
A are the same in all four wards. Use α = .05.
Ward
Opinion 1 2 3 4 Total
Favor A 76 53 59 48 236
Do not favor A 124 147 141 152 564
Total 200 200 200 200 800
10.107 Let S12 and S22 denote, respectively, the variances of independent random samples of sizes n
and m selected from normal distributions with means µ1 and µ2 and common variance σ 2 . If
µ1 and µ2 are unknown, construct a likelihood ratio test of H0 : σ 2 = σ02 against Ha : σ 2 = σa2 ,
assuming that σa2 > σ02 .
10.108 Suppose that X 1 , X 2 , . . . , X n 1 , Y1 , Y2 , . . . , Yn 2 , and W1 , W2 , . . . , Wn 3 are independent random
samples from normal distributions with respective unknown means µ1 , µ2 , and µ3 and vari-
ances σ12 , σ22 , and σ32 .
a Find the likelihood ratio test for H0 : σ12 = σ22 = σ32 against the alternative of at least one
inequality.
b Find an approximate critical region for the test in part (a) if n 1 , n 2 , and n 3 are large and
α = .05.
*10.109 Let X 1 , X 2 , . . . , X m denote a random sample from the exponential density with mean θ1 and
let Y1 , Y2 , . . . , Yn denote an independent random sample from an exponential density with
mean θ2 .
a Find the likelihood ratio criterion for testing H0 : θ1 = θ2 versus Ha : θ1 =
θ2 .
b
Show that the test in part (a) is equivalent to an exact F test [Hint: Transform X i and
Y j to χ random variables.]
2
*10.110 Show that a likelihood ratio test depends on the data only through the value of a sufficient
statistic. [Hint: Use the factorization criterion.]
10.111 Suppose that we are interested in testing the simple null hypothesis H0 : θ = θ0 versus the
simple alternative hypothesis Ha : θ = θa . According to the Neyman–Pearson lemma, the test
that maximizes the power at θa has a rejection region determined by
L(θ0 )
< k.
L(θa )
In the context of a likelihood ratio test, if we are interested in the simple H0 and Ha , as stated,
then 0 = {θ0 }, a = {θa }, and = {θ0 , θa }.
a Show that the likelihood ratio λ is given by
L(θ0 ) 1
λ= = $ ).
max{L(θ0 ), L(θa )} L(θa )
max 1,
L(θ0 )
b Argue that λ < k if and only if, for some constant k ,
L(θ0 )
< k.
L(θa )
c What do the results in parts (a) and (b) imply about likelihood ratio tests when both the
null and alternative hypotheses are simple?