Assume that the weight X in ounces of a ’10-pound’ bag of sugar is
N(
μ,5
)
N(
μ,5
)
. We shall test the hypothesis
H
0
:μ=162
H
0
:μ=162
against the alternative hypothesis
H
1
:μ≠162
H
1
:μ≠162
. Thus
Ω={
μ:−∞<μ<∞
}
Ω={
μ:−∞<μ<∞
}
and
ω={
162
}
ω={
162
}
.
To find the likelihood ratio, we need
L(
ω
^
)
L(
ω
^
)
and
L(
Ω
^
)
L(
Ω
^
)
. When
H
0
H
0
is true,
μ
μ
can take on only one value, namely
μ
μ
=162. Thus
L(
ω
^
)=L(
162
)
L(
ω
^
)=L(
162
)
. To find
L(
Ω
^
)
L(
Ω
^
)
, we must find the value of
μ
μ
that minimizes
L(
μ
)
L(
μ
)
. We recall that
μ
^
=
x
¯
μ
^
=
x
¯
is the maximum likelihood estimate of
μ
μ
. Thus
L(
Ω
^
)=L(
x
¯
)
L(
Ω
^
)=L(
x
¯
)
and the likelihood ratio
λ=
L(
ω
^
)
L(
Ω
^
)
λ=
L(
ω
^
)
L(
Ω
^
)
is given by:
λ=
(
10π
)
−n/2
exp[
−(
1
10
)
∑
1
n
(
x
i
−162
)
2
]
(
10π
)
−n/2
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
]
=
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
−(
n
10
)
(
x
¯
−162
)
2
]
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
]
=exp[
−(
n
10
)
(
x
¯
−162
)
2
].
λ=
(
10π
)
−n/2
exp[
−(
1
10
)
∑
1
n
(
x
i
−162
)
2
]
(
10π
)
−n/2
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
]
=
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
−(
n
10
)
(
x
¯
−162
)
2
]
exp[
−(
1
10
)
∑
1
n
(
x
i
−
x
¯
)
2
]
=exp[
−(
n
10
)
(
x
¯
−162
)
2
].
A value of
x
¯
x
¯
close to 162 would tend to support
H
0
H
0
and in that case
λ
λ
is close to 1. On the other hand, an
x
¯
x
¯
that differs from 162 by too much would tend to support
H
1
H
1
. A likelihood ratio critical region is given by
λ≤k
λ≤k
, where k is selected so that the significance level of the test is
α
α
. Using this criterion and simplifying the inequality as we do using the Neyman-Person lemma, we have that
λ≤k
λ≤k
is equivalent to each of the following inequalities:
−(
n
10
)
(
x
¯
−162
)
2
≤k,
(
x
¯
−162
)
2
≥−(
10
n
)lnk,
|
x
¯
−162
|
σ/
n
≥
−(
10/n
)lnk
σ/
n
=c.
−(
n
10
)
(
x
¯
−162
)
2
≤k,
(
x
¯
−162
)
2
≥−(
10
n
)lnk,
|
x
¯
−162
|
σ/
n
≥
−(
10/n
)lnk
σ/
n
=c.
Since
Z=
X
¯
−162
σ/
n
Z=
X
¯
−162
σ/
n
is
N(
0,1
)
N(
0,1
)
when
H
0
:μ=162
H
0
:μ=162
is true, let
c=
z
α/2
c=
z
α/2
. Thus the critical region is
C={
x
¯
:
|
x
¯
−162
|
σ/
n
≥
z
α/2
}
C={
x
¯
:
|
x
¯
−162
|
σ/
n
≥
z
α/2
}
and, for illustration, if
α
α
=0.05, we have that
z
0.025
=1.96.
z
0.025
=1.96.