Newbold Sbe8 ch09 Ge
Newbold Sbe8 ch09 Ge
Newbold Sbe8 ch09 Ge
Chapter 9
◼ 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
proven guilty
◼ Refers to the status quo
◼ Always contains “=” , “≤” or “” sign
◼ May or may not be rejected
EXAMPLE
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
sample mean of ... if in fact this were hypothesis that
the population mean… μ = 50.
this value ...
Copyright © 2013 Pearson Education Ch. 9-8
Level of Significance,
H 0: μ ≥ 3
H 1: μ < 3
Lower-tail test 0 BACK
Copyright © 2013 Pearson Education MODIFIED BY CAROLINA COSCULLUELA Ch. 9-10
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-13
Consequences of Fixing the
Significance Level of a Test
Investigator chooses
significance level Decision rule is Probability of Type II
(probability of Type I established error follows
error)
◼ β when
◼ β when σ
◼ β when n
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-24
Example: Sample Results
(continued)
x − μ0 53.1 − 52
z= = = 0.88
σ 10
n 64
Copyright © 2013 Pearson Education Ch. 9-25
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-31
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-35
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-36
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
◼ The sampling
distribution of p̂ is Hypothesis
approximately Tests for P
normal, so the test
statistic is a z
nP(1 – P) > 5 nP(1 – P) < 5
value:
pˆ − P0
z=
Not discussed
H0 : P = P0 in this chapter
P0 (1− P0 ) H1 : P P0
n
Copyright © 2013 Pearson Education Ch. 9-44
Example: Z Test for Proportion
A marketing company
claims that it receives
8% responses from its
mailing. To test this
claim, a random sample
of 500 were surveyed
Check:
with 25 responses. Test
Our approximation for P is
at the = .05 p̂ = 25/500 = .05
significance level.
nP(1 - P) = (500)(.05)(.95)
= 23.75 > 5 ✓
Copyright © 2013 Pearson Education Ch. 9-45
Z Test for Proportion: Solution
Do not reject H0
Reject H0 Reject H0 p-value = .0136:
/2 = .025 /2 = .025
P(Z −2.47) + P(Z 2.47)
.0068 .0068
= 2(.0068) = 0.0136
-1.96 0 1.96
Z = -2.47 Z = 2.47
50 52
Reject Do not reject
H0: μ 52 xc H0 : μ 52
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
xc
Copyright © 2013 Pearson Education Ch. 9-51
Type II Error Example
(continued)
Here, β = P( x x c ) if μ* = 50
β
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
xc
Copyright © 2013 Pearson Education Ch. 9-52
Calculating β
◼ Suppose n = 64 , σ = 6 , and = .05
σ 6
x c = μ0 − z α = 52 − 1.645 = 50.766
n 64
(for H0 : μ 52)
So β = P( x 50.766 ) if μ* = 50
50 50.766 52
Reject Do not reject
H0: μ 52 H0 : μ 52
xc
Copyright © 2013 Pearson Education Ch. 9-53
Calculating β
(continued)
Probability of
type II error:
β = .1539
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
xc
Copyright © 2013 Pearson Education Ch. 9-54
Power of the Test Example
If the true mean is μ* = 50,
◼ The probability of Type II Error = β = 0.1539
◼ The power of the test = 1 – β = 1 – 0.1539 = 0.8461
Actual Situation
Decision H0 True H0 False
Key:
Outcome Do Not Correct Decision Type II Error
(Probability) Reject H0 1 - = 0.95 β = 0.1539
(The value of β and the power will be different for each μ*)
Copyright © 2013 Pearson Education Ch. 9-55
9.6
Tests of the Variance of a
Normal Distribution
(n − 1)s 2
2
n−1 =
σ2
has a chi-square distribution with (n – 1) degrees
of freedom
(n − 1)s 2
χ 2
n −1 =
σ02
/2 /2
Figure 9.11
Guidelines for
Choosing the
Appropriate Decision
Rule for a Population
Mean
Figure 9.12
Guidelines for
Choosing the
Appropriate Decision
Rule for a Population
Proportion