Professional Documents
Culture Documents
1 Introduction
1 Introduction
Definition
A statistical hypothesis is an assertion or conjecture concerning
one or more populations.
Plan
1 Introduction
H0 : Θ = Θ0 (Null Hypothesis).
Definition
Nonrejection of the null hypothesis when it is false is called a type
II error.
The probability of committing a type II error, denoted by β, is
impossible to compute unless we have a specific alternative
hypothesis.
1 Introduction
H0 : µ = µ 0 ,
H1 : µ 6= µ0 .
Two-sided alternative
Test statistic (T.S.)
X − µ0
Z= √ ∼ N(0, 1)
σ/ n
and
X − µ0
Pr −zα /2 ≤ √ ≤ zα /2 =1−α
σ/ n
Theorem Test Procedure for a Single Mean (Variance Known)
If −zα /2 < z < zα /2, do not reject H0 . Rejection of H0 , of
course, implies acceptance of the alternative hypothesis µ 6= µ0 .
With this definition of the critical region, it should be clear that
there will be probability α of rejecting H0 (falling into the critical
region) when, indeed, µ = µ0 .
Tests of one-sided hypotheses on the mean
H0 : µ = µ 0 ,
H1 : µ > µ0 .
one-sided alternative
X − µ0
Z= √ ∼ N(0, 1)
σ/ n
and
X − µ0
Pr √ ≤ zα =1−α
σ/ n
Tests of one-sided hypotheses on the mean
H0 : µ = µ 0 ,
H1 : µ < µ0 .
one-sided alternative
X − µ0
Z= √ ∼ N(0, 1)
σ/ n
and
X − µ0
Pr √ ≥ −zα =1−α
σ/ n
Conclusion
Test Procedure
Example
A random sample of 100 recorded deaths in the United States
during the past year showed an average life span of 71.8 years.
Assuming a population standard deviation of 8.9 years, does this
seem to indicate that the mean life span today is greater than 70
years? Use a 0.05 level of significance.
Solution
1) 3) Test statistic:
√
z = (x − µ0 )/(σ/√ n) =
H0 : µ = 70years,
(71.8 − 70)/(8.9/ 100) = 2.02.
H1 : µ > 70years.
4) Critical region: z > zα ,where
2) α = 0.05. zα = z0.05 = 1.645.
P-value = P(Z > |2.83|) = 2P(Z > 2.83) = 0.0046 < 0.01
X − µ0
T = √
S/ n
1 Introduction
X1 − X2
Z=q
σ12 /n1 + σ22 /n2
H 0 : µ1 = µ2
H1 : µ1 6= µ2 ,
X − X2
T = p 1
Sp 1/n1 + 1/n2
where
S12 (n1 − 1) + S22 (n2 − 1)
Sp2 =
n1 + n2 − 2
exceeds tα/2,n1 +n2 −2 or is less than −tα/2,n1 +n2 −2 .
For H1 : µ1 > µ2 , reject H0 : µ1 = µ2 when t > tα,n1 +n2 −2 . For
H1 : µ1 < µ2 , reject H0 : µ1 = µ2 when t < −tα,n1 +n2 −2 .
Example
An experiment was performed to compare the abrasive wear of two
materials. Twelve pieces of material 1 were tested and ten pieces
of material 2 were similarly tested. The samples of material 1 gave
an average (coded) wear of 85 units with a sample standard
deviation of 4, while the samples of material 2 gave an average of
83 with a sample standard deviation of 5. Can we conclude at the
0.05 level of significance that the abrasive wear of material 1
exceeds that of material 2? Assume the populations to be
approximately normal with equal variances.
Solution
Let µ1 and µ2 represent the population means of the abrasive wear
for material 1 and material 2, respectively. 1)
H0 : µ 1 = µ 2 ,
H1 : µ1 > µ2 .
2) α = 0.05.
3) Critical region: t > tα,n1 +n2 −2 , where
X − X2
T = p 1
Sp 1/n1 + 1/n2
X 1 = 58 S1 = 4 n1 = 12
X 2 = 81 S2 = 5 n2 = 10
Hence
r
(11)(16) + (9)(25)
Sp = = 4.478
12 + 10 − 2
(85 − 83)
t = p = 1.04 < 1.725
4.478 1/12 + 1/10
P-value = Pr(T > 1.04) ≈ 0.16.(See Table A.4.)
D − µD
T = √
SD / n
1 Introduction
p < p0 p > p0 or p 6= p0
pb − p0
z=p
p0 (1 − p0 )/n
0.7 − 0.6
z = q = 2.04
(0.6)(0.4)
100
z = 2.04 > 1.645
P-value = Pr(Z > 2.04) < 0.0207.
1 Introduction
Pb1 − Pb2
Z=p
pq(1/n1 + 1/n2 )
pb1 − pb2
z=p
pbqb(1/n1 + 1/n2 )
1 Introduction
(n − 1)s 2
χ2 =
σ02
where n is the sample size, s 2 is the sample variance, and σ02 is the
value of σ 2 given by the null hypothesis. If H0 is true, χ2 is a value
of the chi-squared distribution with ν = n − 1 degrees of freedom.
Hence, for a two-tailed test at the α-level of significance, the
critical region is χ2 < χ21−α/2 or χ2 > χ2α/2 (see figure 5.2). For
the one-sided alternative σ 2 < σ02 , the critical region is χ2 < χ21−α ,
and for the one-sided alternative σ 2 > σ02 , the critical region is χ2
> χ2α .
Example
A manufacturer of car batteries claims that the life of the
company’s batteries is approximately normally distributed with a
standard deviation equal to 0.9 year. If a random sample of 10 of
these batteries has a standard deviation of 1.2 years, do you think
that σ > 0.9 year? Use a 0.05 level of significance.
Solution
1) 4) Computations: s 2 = 1.44,
n = 10, and
H0 : σ 2 = 0.81,
s12
f =
s22
where s12 and s22 are the variances computed from the two samples.
If the two populations are approximately normally distributed and
the null hypothesis is true, then the ratio f = s12 /s22 is a value of
the F -distribution with ν1 = n1 − 1 and ν2 = n2 − 1 degrees of
freedom. Therefore, the critical regions of size α corresponding to
the one-sided alternatives σ12 < σ22 and σ12 > σ22 are, respectively,
f < f1−α (ν1, ν2) and f > fα (ν1, ν2). For the two-sided alternative
σ12 6= σ22 , the critical region is f < f1−α/2 (ν1, ν2) or
f > fα/2 (ν1, ν2).
Example
In testing for the difference in the abrasive wear of the two
materials in Example 166, we assumed that the two unknown
population variances were equal. Were we justified in making this
assumption? Use a 0.10 level of significance.
Solution
Let σ12 and σ22 be the population variances for the abrasive wear of
material 1 and material 2, respectively.
1)
H0 : σ12 = σ22 ,
H1 : σ12 6= σ22 .
2) α = 0.10.
3) Critical region: We have f0.05 (11, 9) = 3.11, and, by using
1
Theorem 99, we find f0.95 (11, 9) = f 0.05(9,11) = 0.34. Therefore,
the null hypothesis is rejected when f < 0.34 or f > 3.11, where
f = s12 /s22 with ν1 = 11 and ν2 = 9 degrees of freedom.
4) Computations: s12 = 16, s22 = 25, hence f = 16/25 = 0.64.
5) Decision: Do not reject H0 . Conclude that there is insufficient
evidence that the variances differ.