
9.4 Testing the Normal Mean 329
pp = 0.0001:0.001:0.15
plot(pp, pp, ’:’, ’linewidth’,lw)
hold on
plot(pp, sbb(pp), ’r-’,’linewidth’,lw)
plot(pp, alph(pp), ’-’,’linewidth’,lw)
The interested reader is directed to Berger and Sellke (1987), Schervish
(1996), and Goodman (1999a,b, 2001), among many others, for a constructive
criticism of p-values.
9.4 Testing the Normal Mean
In testing the normal mean we will distinguish two cases depending on
whether the population variance is known (z-test) or not known (t-test).
9.4.1 z-Test
Let us assume that we are interested in testing the null hypothesis H
0
: µ =µ
0
on the basis of a sample X
1
,... , X
n
from a normal distribution N (µ , σ
2
), where
the variance
σ
2
is assumed known. Situations in which the population mean
is unknown but the population variance is known are rare, but not unrealis-
tic. For example, a particular measuring equipment has well-known precision
characteristics but might not be calibrated.
We know that
X ∼ N (µ,σ
2
/n) and that Z =
X −µ
0
σ/
p
n
is the standard normal
distribution if the null hypothesis is true, that is, if
µ = µ
0
. This statistic, Z,
is used to test H
0
, and the test is called a z-test. Statistic Z is compared to
quantiles of the standard normal distribution.
The test can be performed using either (i) the rejection region or (ii) the
p-value.
(i) The rejection region depends on the level
α and the alternative hy-
pothesis. For one-sided hypotheses the tail of the rejection region follows
the direction of H
1
. For example, if H
1
: µ > 2 and the level α is fixed,
the rejection region is [z
1−α
,∞). For the two-sided alternative hypothesis
H
1
: µ 6= µ
0
and significance level of α, the rejection region is two-sided,
(
−∞, z
α/2
] ∪[z
1−α/2
,∞). Since the standard normal distribution is symmetric
about 0 and z
α/2
= −z
1−α/2
, the two-sided rejection region is sometimes given
as (
−∞,−z
1−α/2
] ∪[z
1−α/2
,∞).
The test is now straightforward. If statistic Z is calculated from the ob-
servations X
1
,... , X
n
falls within the rejection region, the null hypothesis is
rejected. Otherwise, we say that hypothesis H
0
is not rejected.
(ii) As discussed earlier, the p-value gives a more refined analysis in testing
than the “reject–do not reject” decision rule. The p-value is the probability of