Professional Documents
Culture Documents
Chapter 7
Inferences Based on a Single Sample:
Tests of Hypotheses
Content
Learning Objectives
Learning Objectives
3.
4.
Hypothesis Testing
Population
J
J
J J
J
J
I believe the
population mean
age is 50
(hypothesis).
Reject
hypothesis!
Not close.
Random
sample
Mean
JX = 20J
Whats a Hypothesis?
7.1
A statistical hypothesis is
a statement about the
numerical value of a
population parameter.
The Elements of
a Test of Hypothesis
Null Hypothesis
Alternative Hypothesis
11
Identifying Hypotheses
Alternative Hypothesis
10
12
13
15
14
16
Test Statistic
Type I Error
A Type I error occurs if the researcher
rejects the null hypothesis in favor of the
alternative hypothesis when, in fact, H0 is
true.
The probability of committing a Type I error
is denoted by .
17
19
Rejection Region
18
20
Type II Error
21
H0 True
Accept H0
(Assume H0 True)
Reject H0
(Assume Ha True)
Type I error
(probability )
2011 Pearson Education, Inc
23
Ha True
Correct decision
22
24
25
27
Determining the
Target Parameter
26
Parameter
Type of Data
Mean; average
Quantitative
Proportion; percentage;
fraction; rate
Qualitative
Variance; variability;
spread
Quantitative
28
7.2
Formulating Hypotheses and Setting
Up the Rejection Region
29
31
One-Tailed Test
A one-tailed test of hypothesis is one in which
the alternative hypothesis is directional and
includes the symbol < or >.
30
32
Rejection Region
(One-Tail Test)
Two-Tailed Test
A two-tailed test of hypothesis is one in which
the alternative hypothesis does not specify
departure from H0 in a particular direction and is
written with the symbol .
Sampling Distribution
Rejection
Region
H 0: = 0
Ho
Value
Ha: < 50
Sampling Distribution
= 50
H0
2011 Pearson Education, Inc
H 0 : = 0
Level of Confidence
Ha: 0
Rejection
Region
... therefore, we
reject the
hypothesis that
= 50.
Rejection
Region
1/2
1/2
Fail to Reject
Region
35
Rejection Regions
(Two-Tailed Test)
Sampling Distribution
H0: = 50
Sample Statistic
33
Basic Idea
It is unlikely
that we would
get a sample
mean of this
value ...
Ha: < 0
Fail to Reject
Region
Critical
Value
2011 Pearson Education, Inc
Level of Confidence
Critical
Value
Sample Means
34
Ho
Value
Critical
Value
Sample Statistic
36
Rejection Regions
p-Value
Alternative Hypotheses
LowerTailed
= .10 z < 1.28
UpperTailed
z > 1.28
Two-Tailed
z > 2.33
37
p-Value
7.3
38
39
40
41
42
43
44
Two-Tailed z Test
p-Value Example
Two-Tailed Z Test
p-Value Solution
1/2 p-Value
.4251
1.44
368 gm.
45
Two-Tailed z Test
p-Value Solution
1.44
From z table:
lookup 1.44
.5000
.4251
.0749
z
z value of sample
statistic (observed)
47
Two-Tailed z Test
p-Value Solution
p-value is P(z 1.50 or z 1.50) = .1498
1/2 p-Value
.0749
1.44
1.44
1/2 p-Value
.0749
1.44
z value of sample
statistic (observed)
46
48
Two-Tailed z Test
p-Value Solution
One-Tailed z Test
p-Value Solution
Reject H0
Reject H0
1/2 = .025
1/2 = .025
1.44
1.44
49
z value of sample
statistic
One-Tailed z Test
p-Value Example
Does an average box of cereal
contain more than 368 grams
of cereal? A random sample
of 64 boxes showed x = 372.5.
The company has specified
to be 25 grams. Find the pValue. How does it compare
to = .05?
1.44
51
One-Tailed z Test
p-Value Solution
p-Value is P(z 1.44)
Use
alternative
hypothesis
to find
direction
p-Value
.4251
0
368 gm.
50
From z table:
lookup 1.44
1.44
.5000
.4251
.0749
z
z value of sample
statistic
52
One-Tailed z Test
p-Value Solution
p-Value
Thinking Challenge
p-Value
.0749
Use
alternative
hypothesis
to find
direction
.4251
0
From z table:
lookup 1.44
.5000
.4251
.0749
1.44
z value of sample
statistic
53
One-Tailed z Test
p-Value Solution
p-Value
Solution*
p-Value = .0749
Use
alternative
hypothesis
to find
direction
Reject H0
= .05
1.44
p-Value
.004
54
.5000
.4960
.0040
.4960
2.65 0
55
z value of sample
statistic
2011 Pearson Education, Inc
From z table:
lookup 2.65
56
Converting a Two-Tailed
p-Value from a Printout to a OneTailed p-Value
if Ha is of the form > and z is positive
or Ha is of the form < and z is negative
if Ha is of the form > and z is negative
Ha is of the form < and z is positive
2011 Pearson Education, Inc
57
Two-Tailed Test
H 0 : = 0
Ha : 0
Test Statistic:
Test Statistic:
59
7.4
One-Tailed Test
Rejection region:
z < z
(or z > z when Ha: > 0)
where z is chosen so that
P(z > z) =
One-Tailed Test
H0: = 0
Ha: < 0
(or Ha: > 0)
58
60
Two-Tailed Test
Rejection region:
|z| > z/2
where z/2 is chosen so that
P(|z| > z/2) = /2
Note: 0 is the symbol for the numerical value assigned
to under the null hypothesis.
2011 Pearson Education, Inc
61
63
62
64
65
Reject H 0
.025
1.96
.025
0 1.96
Test Statistic:
Reject H 0
Decision:
Do not reject at = .05
Conclusion:
No evidence average
is not 368
67
H0: = 70
Ha: 70
= .05
n = 36
Critical Value(s):
Decision:
Reject H 0
Reject H 0
.025
.025
1.96 0 1.96 z
66
Test Statistic:
Conclusion:
No evidence average is not 70
2011 Pearson Education, Inc
68
One-Tailed z Test
Example
368 gm.
2011 Pearson Education, Inc
69
H0: = 368
Ha: > 368
= .05
n = 25
Critical Value(s):
Reject
.05
0 1.645
Test Statistic:
Decision:
Do not reject at = .05
H0: = 32
Ha: < 32
= .01
n = 60
Critical Value(s):
Reject
.01
Conclusion:
No evidence average is
more than 368
2011 Pearson Education, Inc
71
-2.33
70
Test Statistic:
Decision:
Reject at = .01
Conclusion:
There is evidence average
is less than 32
2011 Pearson Education, Inc
72
7.5
Two-Tailed Test
H0: = 0
H a: 0
Test statistic:
Rejection region: |t| > t/2
73
75
One-Tailed Test
H0: = 0
Ha: < 0 (or Ha: > 0)
Test statistic:
Rejection region: t < t
(or t > t when Ha: > 0)
where t and t/2 are based on (n 1) degrees of
freedom
2011 Pearson Education, Inc
74
76
Two-Tailed t Test
Example
Does an average box of
cereal contain 368 grams of
cereal? A random sample
of 36 boxes had a mean of
372.5 and a standard
deviation of 12 grams. Test
at the .05 level of
significance.
Two-Tailed t Test
Thinking Challenge
You work for the FTC. A manufacturer
of detergent claims that the mean
weight of detergent is 3.25 lb. You
take a random sample of 64
containers. You calculate the sample
average to be 3.238 lb. with a
standard deviation of .117 lb. At the
.01 level of significance, is the
manufacturer correct?
368 gm.
3.25 lb.
77
Two-Tailed t Test
Solution*
Two-Tailed t Test
Solution
H0: = 368
Ha: 368
= .05
df = 36 1 = 35
Critical Value(s):
Reject H0
.025
.025
-2.030
0 2.030
Test Statistic:
Reject H 0
Decision:
Reject at = .05
Conclusion:
There is evidence population
average is not 368
79
78
H0: = 3.25
Ha: 3.25
= .01
df = 64 1 = 63
Critical Value(s):
Test Statistic:
Reject H 0
Reject H0
.005
.005
-2.656
0 2.656
Decision:
Do not reject at = .01
Conclusion:
There is no evidence
average is not 3.25
80
One-Tailed t Test
Example
One-Tailed t Test
Thinking Challenge
81
One-Tailed t Test
Solution*
One-Tailed t Test
Solution
H0: = 140
Ha: < 140
= .05
df = 20 1 = 19
Critical Value(s):
.05
-1.729
Test Statistic:
Decision:
Since t = -2.57 < -1.729, reject
H0 at = .05
Reject H0
H 0: = 5
H a: > 5
= .05
df = 10 1 = 9
Critical Value(s):
Test Statistic:
Reject H0
.05
Conclusion:
0
83
82
0 1.833
Decision:
Do not reject at = .05
Conclusion:
There is no evidence
average is more than 5
84
7.6
Two-Tailed Test
H0: p = p0
H a: p p 0
Test statistic:
Rejection region: |z| > z /2
Note: p0 is the symbol for the numerical value of p
assigned in the null hypothesis
85
87
One-Tailed Test
H0: p = p0
Ha: p < p0 (or Ha: p > p0)
Test statistic:
Rejection region:
z < z (or z > z when Ha: p > p0)
Note: p0 is the symbol for the numerical value of p
assigned in the null hypothesis
2011 Pearson Education, Inc
86
88
One-Proportion z Test
Example
89
H0: p = .10
Ha: p < .10
= .05
n = 200
Critical Value(s):
Reject H0
.05
-1.645 0
Test Statistic:
Decision:
Since z = -2.12 < -1.645
Reject at = .05
Conclusion:
There is evidence new
z
system < 10% defective 90
2011 Pearson Education, Inc
91
H0: p = .04
Ha: p .04
= .05
n = 500
Critical Value(s):
Test Statistic:
Reject H 0
Reject H 0
.025
.025
-1.96 0 1.96 z
Decision:
Do not reject at = .05
Conclusion:
There is evidence
proportion is not 4%
92
7.7
One-Tailed Test
H0: 2 = 02
Ha: 2 < 02 (or Ha: 2 > 02)
Test statistic:
Rejection region:
(or 2 > 2 when Ha: 2 > 02 )
where 02 is the hypothesized variance and the
distribution of 2 is a chi-square distribution with (n 1)
degrees of freedom.
93
95
Variance
Two-Tailed Test
H0: 2 = 02
H a: 2 0 2
Test statistic:
Rejection region:
where 02 is the hypothesized variance and the
distribution of 2 is a chi-square distribution with (n 1)
degrees of freedom.
94
96
97
Several 2 probability
Distributions
99
98
DF .995
1
...
2 0.010
5.991
.95
0.004
0.103
.05
3.841
5.991
100
101
0 .103
DF .995
1
...
2 0.010
.95
0.004
0.103
103
H0: 2 = 15
Ha: 2 15
= .05
df = 25 1 = 24
Test Statistic:
(n 1) s 2 (25 1) 17.7 2
=
=
02
152
= 28.32
2
Critical Value(s):
/2 = .025
.05
3.841
5.991
0 12.401
102
39.364
Decision:
Since 12.401<28.32<39.364
Do not reject at = .05
Conclusion:
There is no evidence
2 is not 15
104
7.8
105
107
Type II Error
The Type II error probability is calculated assuming
that the null hypothesis is false because it is defined
as the probability of accepting H0 when it is false.
The situation corresponding to accepting the null
hypothesis, and thereby risking a Type II error, is not
generally as controllable.
For that reason, we adopted a policy of nonrejection
of H0 when the test statistic does not fall in the
rejection region, rather than risking an error of
unknown magnitude.
2011 Pearson Education, Inc
106
Upper-tailed test:
Lower-tailed test:
Two-tailed test:
108
Equal to 1
Affected by
109
110
111
Power of Test
368 gm.
112
Finding Power
Step 1
Finding Power
Step 4
Reject H0
Hypothesis:
H0: 368
Ha: < 368
Do Not
Draw
Reject H0
= .05
0 = 368
= .05
True
Situation:
a = 360 (Ha)
360Education,
363.065
a2011=Pearson
Inc
Finding Power
Steps 2 & 3
Reject H0
Do Not
Draw
Reject H0
Specify
Draw
1
360
a2011= Pearson
Education, Inc
115
Reject H0
Hypothesis:
H0: 368
Ha: < 368
Do Not
Draw
Reject H0
= .05
0 = 368
x
True
Situation:
a = 360 (Ha)
Specify
Finding Power
Step 5
0 = 368
True
Situation:
a = 360 (Ha)
113
= .05
Draw
Specify
Hypothesis:
H0: 368
Ha: < 368
Do Not
Draw
Reject H0
0 = 368
Reject H0
Hypothesis:
H0: 368
Ha: < 368
114
Draw
z Table
1 =.846
= .154
363.065
360Education,
a2011=Pearson
Inc
116
Properties of
and Power
117
Properties
of and
Power
119
Key Ideas
Key Words for Identifying the Target Parameter
Mean, Average
118
120
Key Ideas
Key Ideas
Upper-tailed : Ha : > 50
4. Significance level ()
Two-tailed : Ha : 50
5. p-value
6. Conclusion
121
Key Ideas
123
Key Ideas
122
124
Assignments
#97,#121,#130, #132, #133, #142
125