Академический Документы
Профессиональный Документы
Культура Документы
JOHN S. LOUCKS
St. Edwards University
Chapter 9
Hypothesis Testing
Chapter 9
Hypothesis Testing
H0: < 0
H0: = 0
Ha: < 0
Ha: > 0
H :
a
Ha True
Conclusion
( )
Accept H0
Correct
(Conclude
Reject H0
(Conclude
( )
Type II
Conclusion
Type I
rror
Error
Correct
Conclusion
12
13
14
Hypotheses
H0:
Ha:
or H0:
Ha:
Test Statistic
Known Unknown
x 0
x 0
z
z
s/ n
/ n
Rejection Rule
Reject H0 if z > zReject H0 if z < -z
15
Sampling distribution
of x (assuming H0 is
true and = 12)
Reject H0
Do Not Reject H0
1.645x
12
c
(Critical value)
16
2. 47
/ n 3. 2 / 40
estimate the population standard deviation
.)
17
p-value
1.645 2.47
z
18
Hypotheses
H0:
Ha:
Known Unknown
x 0
x 0
z
z
/ n
s/ n
Test Statistic
Rejection Rule
Reject H0 if |z| > z
19
Ha:
Rejection Rule
ssuming a .05 level of significance,
Reject H0 if z < -1.96 or if z > 1.96
21
Reject H0
Do Not Reject H0
-1.96
1.96
22
2.74
.2 / ounces,
30
Let n = 30, s / n= 6.1
s = .2
ounces
23
25
x z / 2
6.1 1. 96(. 2 30 ) 6.1. 0716
n
or 6.0284 to 6.1716
Since the hypothesized value for the
population mean, 0 = 6, is not in this interval,
the hypothesis-testing conclusion is that the
null hypothesis,
H0: = 6, can be rejected.
26
Known Unknown
x 0
x 0
t
t
s/ n
/ n
This test statistic has a t distribution with n - 1
degrees of freedom.
Rejection Rule
One-Tailed
Two-Tailed
Test Statistic
H0:
Reject H0 if t > t
H0:
Reject H0 if t < -t
H0:
27
28
x 0 68.2 65
t
3.37
s / n 3.8 / 16
n > 30 ?
No
Yes
Use s to
estimate s
s known ?
Yes
x
/ n
No
x
z
s/ n
x
z
/ n
No
Popul.
approx.
normal
?
No
Use s to
estimate s
x
t
s/ n
Increase n
to > 30
31
H0: p < p0
Ha: p > p0
0: p = p0
H
Ha: p
p0
32
Test Statistic
where:
p p0
z
p
p0 (1 p0 )
n
Rejection Rule
One-Tailed
Two-Tailed
H0: pp
Reject H0 if z > z
H0: pp
Reject H0 if z < -z
H0: pp
Example: NSC
34
Example: NSC
Ha: p
.5
Test Statistic
p0(1 p0 )
.5(1 .5)
p
.045644
n
120
p p0 (67/ 120) .5
z
1.278
p
.045644
35
Example: NSC
Conclusion
Do not reject H0.
For z = 1.278, the p-value is .201. If we
reject
H0, we exceed the maximum allowed risk
of committing a Type I error (p-value > .
050).
36
37
39
41
42
( z z ) 2 2
( 0 a )2
where
z = z value providing an area of in the
tail
z = z value providing an area of in the
tail
= population standard deviation
0 = value of the population mean in H0
a = value of the population mean used for
the
Type II error
Note: In a two-tailed hypothesis test, use z /2 not
z
43
44
End of Chapter 9
45