One-Sample Hypothesis Tests
One-Sample Hypothesis Tests
population mean
Example: The mean monthly cell phone bill
in this city is μ = $42
population proportion
Example: The proportion of adults in this
city with cell phones is π = 0.68
The Null Hypothesis, H0
H0 : μ 3 H0 : X 3
The Alternative Hypothesis, H1
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,
REJECT
Null Hypothesis Sample
Reason for Rejecting H0
Sampling Distribution of X
X
20 μ = 50
If it is unlikely that
If H0 is true ... then we
we would get a reject the null
sample mean of ... if in fact this were hypothesis that
this value ... the population mean… μ = 50.
Critical Values
If the sample mean is close to the stated
population mean, H0 is not rejected.
If the sample mean is far from the stated
population mean, H0 is rejected.
How far is “far enough” to reject H0?
The critical value creates a “line in the sand” for
decision making: how far is far enough.
Critical Values
Sampling Distribution of the test statistic
Region of Region of
Rejection Rejection
Region of
Non-Rejection
Critical Values
H0: μ ≥ 3
H1: μ < 3
Left-tailed test 0
Hypothesis Tests for the Mean
Hypothesis
Tests for
Known Unknown
(Z test) (t test)
Z Test of Hypothesis for the
Mean (σ Known)
Convert sample statistic ( X ) to a Z test statistic
Hypothesis
Tests for
σKnown
Known σUnknown
Unknown
(Z test) (t test)
The test statistic is:
X μ
Z
σ
n
Critical Value
Approach to Testing
For a two-tail test for the mean, σ known:
Convert sample statistic ( X ) to test statistic (Z
statistic )
Determine the critical Z values for a specified
level of significance
Decision Rule: If the test statistic falls in the
rejection region, reject H0; otherwise do not
reject H0
Hypothesis Testing Example
Test the claim that the true mean # of TV sets
in US homes is equal to 3.
(Assume σ = 0.8)
X = 2.84 is translated
to a Z score of Z = -2.0
/2 = 0.025 /2 = 0.025
P(Z 2.0) 0.0228
0.0228 0.0228
P(Z 2.0) 0.0228
p-value
= 0.0228 + 0.0228 = 0.0456
-1.96 0 1.96 Z
-2.0 2.0
p-Value Example
(continued)
Compare the p-value with
If p-value < , reject H0
If p-value , do not reject H0
0.05 < P < 0.10 Weak evidence against the null hypothesis
0.01 < P < 0.05 Moderate evidence against the null hypothesis
0.8 0.8
2.84 - (1.96) to 2.84 (1.96)
100 100
2.6832 ≤ μ ≤ 2.9968
μ X
Critical value
Right-Tailed Tests
H0: μ ≤ 3
There is only one
critical value, since H1: μ > 3
the rejection area is
in only one tail
Critical value
Example: Upper-Tail Z Test
for Mean ( Known)
A phone industry manager thinks that
customer monthly cell phone bills have
increased, and now average over $52 per
month. The company wishes to test this
claim. (Assume = 10 is known)
= 0.10
Xμ 53.1 52
Z 0.88
σ 10
n 64
Example: Decision
(continued)
Reach a decision and interpret the result:
Reject H0
= 0.10
Reject H0 P( X 53.1)
= 0.10
53.1 52.0
P Z
0 10/ 64
Do not reject H0 Reject H0
1.28 P(Z 0.88) 1 0.8106
Z = 0.88
0.1894
σKnown
Known σUnknown
Unknown
(Z test) (t test)
The test statistic is:
X μ
t n-1
S
n
Example: Two-Tail Test
( Unknown)
= 0.05 level.
(Assume the population distribution is normal)
Example Solution:
Two-Tail Test
166.14 ≤ μ ≤ 178.86
p-value > α
3
So do not reject H0
One-Sample T
4
Test of mu = 168 vs not = 168
p-value > α
3
So do not reject H0
One-Sample T
Test of mu = 52 vs > 52
4
95% Lower
N Mean StDev SE Mean Bound T P
25 53.10 10.00 2.00 49.68 0.55 0.294
Hypothesis Tests for Proportions
A marketing company
claims that it receives
responses from 8% of
those surveyed. To test
this claim, a random
sample of 500 were
Check:
surveyed with 25
responses. Test at the X = 25
Do not reject H0
Reject H0 Reject H0 p-value = 0.0136:
/2 = .025 /2 = .025
P(Z 2.47) P(Z 2.47)
0.0068 0.0068
2(0.0068) 0.0136
-1.96 0 1.96
Z = -2.47 Z = 2.47