Professional Documents
Culture Documents
Chapter9 1
Chapter9 1
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
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
Level of Significance (顯著水準), α
H0: μ ≥ 3
α
H1: μ < 3
Lower-tail (Left-tail) test 0
Copyright © 2013 Pearson Education Ch. 9-10
Errors in Making Decisions
Actual Situation
Decision H0 True H0 False
Fail to Correct
Decision Type II Error
Reject
Key: (1 - α ) (β)
H0
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
H1 : μ > μ0
The decision rule is:
x − μ0
Reject H0 if z = > z α or Reject H0 if x > x c = μ0 + z ασ/ n
σ/ n
If the null hypothesis is false and the true mean is μ*,
then the probability of type II error is
xc − μ *
β = P(x < x c | μ = μ*) = P z <
σ / n
Copyright © 2013 Pearson Education Ch. 9-19
Type II Error Example
Type II error is the probability of failing
to reject a false H0
Suppose we fail to reject H0: μ ≥ 52
when in fact the true mean is μ* = 50
50 52
Reject Do not reject
H0: μ ≥ 52 xc H0 : μ ≥ 52
50 52
Reject Do not reject
H0: μ ≥ 52
xc H0 : μ ≥ 52
Here, β = P( x ≥ x c ) if μ* = 50
α β
50 52
Reject Do not reject
H0: μ ≥ 52
xc H0 : μ ≥ 52
So β = P( x ≥ 50.766 ) if μ* = 50
50 50.766 52
Reject Do not reject
H0: μ ≥ 52
xc H0 : μ ≥ 52
Probability of
type II error:
α β = .1539
50 52
Reject Do not reject
H0: μ ≥ 52
xc H0 : μ ≥ 52
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-25
Hypothesis Tests for the Mean
Hypothesis
Tests for µ
σ Known σ Unknown
σ Known σ Unknown
Alternate rule:
Reject H0 if x > μ0 + Z ασ/ n α
p-value
x − μ0 x − μ0
= Pr( z > | H 0 ) = 1 − Φ( ) (one-sided, right tail)
σ/ n σ/ n
x − μ0 x − μ0
=Pr(z < | H 0 )=Φ ( ) (one-sided, left tail)
σ/ n σ/ n
x − μ0 x − μ0
= Pr(| z |>| | H 0 ) = 2Φ ( − | |) (two-sided)
σ/ n σ/ n
α = .10
x − μ0
Reject H0 if z = > 1.28
σ/ n
Copyright © 2013 Pearson Education Ch. 9-34
Example: Sample Results
(continued)
x − μ0 53.1 − 52
z= = = 0.88
σ 10
n 64
Copyright © 2013 Pearson Education Ch. 9-35
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-41
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-45
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-46
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