Chapter 6 - Hypothesis Testing
Chapter 6 - Hypothesis Testing
Chapter 6
population mean
Example: The mean monthly cell phone bill
of this city is μ = $52
population proportion
Example: The proportion of adults in this
city with cell phones is P = .88
H0 : μ 3 H0 : x 3
Claim: the
population
mean age is 50.
(Null Hypothesis:
Population
H0: μ = 50 )
Now select a
random sample
Is x 20 likely if μ = 50?
If not likely, Suppose
the sample
REJECT mean age Sample
Null Hypothesis is 20: x = 20
Copyright © 2013 Pearson Education Ch. 9-7
Reason for Rejecting H0
Sampling Distribution of X
X
20 μ = 50
If H0 is true
... then we
If it is unlikely that
reject the null
we would get a
... if in fact this were hypothesis that
sample mean of
the population mean… μ = 50.
this value ...
Copyright © 2013 Pearson Education Ch. 9-8
Reason for Rejecting H0
Sampling Distribution of X
X
20 μ = 30 μ = 40 μ = 50
If H0 is true
H0: μ ≥ 3
H1: μ < 3
Lower-tail test 0
Copyright © 2013 Pearson Education Ch. 9-11
Errors in Making Decisions
Type I Error
Reject a true null hypothesis
Type II Error
Fail to reject a false null hypothesis
Actual Situation
Decision H0 True H0 False
Fail to Correct
Decision Type II Error
Reject
Key:
H0 (1 - ) (β)
Outcome
(Probability) Reject Type I Error Correct
H0 () Decision
(1-β)
( 1 - β ) is called the
power of the test
Copyright © 2013 Pearson Education Ch. 9-14
Hypothesis Tests for the Mean
Hypothesis
Tests for
Known Unknown
σ Known σ Unknown
Alternate rule:
Reject H0 if x μ0 Z ασ/ n
= .10
x μ0
Reject H0 if z 1.28
σ/ n
Copyright © 2013 Pearson Education Ch. 9-21
Example: Sample Results
(continued)
x μ0 53.1 52
z 0.88
σ 10
n 64
Copyright © 2013 Pearson Education Ch. 9-22
Example: Decision
(continued)
Reach a decision and interpret the result:
Reject H0
= .10
x μ
Critical value x c
μ x
Critical value x c
/2 /2
There are two
critical values,
3 x
defining the two
Reject H0 Do not reject H0 Reject H0
regions of
-z/2 0 +z/2 z
rejection
Lower Upper
critical value critical value
Copyright © 2013 Pearson Education Ch. 9-28
Hypothesis Testing Example
Test the claim that the true mean # of TV
sets in US homes is equal to 3.
(Assume σ = 0.8)
State the appropriate null and alternative
hypotheses
H0: μ = 3 , H1: μ ≠ 3 (This is a two tailed test)
Specify the desired level of significance
Suppose that = .05 is chosen for this test
= .05/2 = .05/2
-z = -1.96 0 +z = +1.96
-2.0
Since z = -2.0 < -1.96, we reject the null hypothesis
and conclude that there is sufficient evidence that the
mean number of TVs in US homes is not equal to 3
Copyright © 2013 Pearson Education Ch. 9-32
Example: p-Value
Example: How likely is it to see a sample mean of
2.84 (or something further from the mean, in either
direction) if the true mean is = 3.0?
x = 2.84 is translated to
a z score of z = -2.0
P(z 2.0) .0228 /2 = .025 /2 = .025
.0228 .0228
P(z 2.0) .0228
p-value
= .0228 + .0228 = .0456 -1.96 0 1.96 Z
-2.0 2.0
Copyright © 2013 Pearson Education Ch. 9-33
Example: p-Value
(continued)
Compare the p-value with
If p-value < , reject H0
If p-value , do not reject H0
σ Known σ Unknown
x μ0 x μ0
Reject H0 if t t n-1, α/2 or if t t n-1, α/2
s s
n n
(n 1)s
2
2
n1
σ2
has a chi-square distribution with (n – 1) degrees
of freedom
(n 1)s2
χ 2
n1
σ02
/2 /2
Figure 9.11
Guidelines for
Choosing the
Appropriate Decision
Rule for a Population
Mean