Hypothesis Testing With One Sample
Hypothesis Testing With One Sample
Hypothesis Testing With One Sample
Hypothesis Testing
with One Sample
§ 7.1
Introduction to
Hypothesis
Testing
Hypothesis Tests
A hypothesis test is a process that uses sample
statistics to test a claim about the value of a
population parameter.
If a manufacturer of rechargeable batteries
claims that the batteries they produce are good
for an average of at least 1,000 charges, a
sample would be taken to test this claim.
Actual Truth of H0
Decision H0 is true H0 is false
P is the area
to the left of
the test
statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
Larson & Farber, Elementary Statistics: Picturing the World, 3e 13
Right-tailed Test
2. If the alternative hypothesis contains the greater-
than symbol (>), the hypothesis test is a right-
tailed test.
H0: μ k
Ha: μ > k
P is the area
to the right of
the test
statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
Larson & Farber, Elementary Statistics: Picturing the World, 3e 14
Two-tailed Test
3. If the alternative hypothesis contains the not-
equal-to symbol (), the hypothesis test is a two-
1
tailed test. In a two-tailed test, each
2 tail has an
area ofk P.
H0: μ =
Ha: μ k
P is twice the
P is twice the area to the
area to the left right of the
of the negative positive test
test statistic. statistic.
z
-3 -2 -1 0 1 2 3
Test Test
statistic statistic
Larson & Farber, Elementary Statistics: Picturing the World, 3e 15
Identifying Types of Tests
Example:
For each claim, state H0 and Ha. Then determine whether
the hypothesis test is a left-tailed, right-tailed, or two-
tailed
a.) A test.
cigarette manufacturer claims that less than one-
eighth of the US adult population smokes
cigarettes.
H0: p 0.125
Ha: p < 0.125 Left-tailed test
(Claim)
b.) A local telephone company claims that the
average length of a phone call is 8 minutes.
H0: μ = 8 (Claim)
Ha: μ 8 Two-tailed test
Claim
Decision Claim is H0 Claim is Ha
There is enough evidence There is enough evidence
Reject H0 to reject the claim. to support the claim.
There is not enough There is not enough
Do not reject H0 evidence to reject the evidence to support the
claim. claim.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 17
Interpreting a Decision
Example:
You perform a hypothesis test for the following claim.
How should you interpret your decision if you reject H0?
If you fail to reject H0?
H0: (Claim) A cigarette manufacturer claims that
less than one-eighth of the US adult population
smokes cigarettes.
If H0 is rejected, you should conclude “there is sufficient
evidence to indicate that the manufacturer’s claim is false.”
If you fail to reject H0, you should conclude “there is not
sufficient evidence to indicate that the manufacturer’s claim
is false.”
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 19
Steps for Hypothesis
Testing
5. Find the P-value.
6. Use the following decision rule.
Is the P-value less than
or equal to the level of No Fail to reject H0.
significance?
Yes
Reject H0.
b.) 0.01?
0.0043
z
2.63 0
x
The test statistic is the sample mean and the
standardized test statistic is z.
xμ σ
z standard error σx
σ n n
When n 30, the sample standard deviation s can be
substituted for .
Larson & Farber, Elementary Statistics: Picturing the World, 3e 26
Using P-values for a z-Test
Using P-values for a z-Test for a Mean μ
In Words In Symbols
1. State the claim mathematically State H0 and Ha.
and verbally. Identify the null
and alternative hypotheses.
2. Specify the level of Identify .
significance. xμ
z
3. Determine the standardized σ n
test statistic.
Use Table 4 in
4. Find the area that corresponds Appendix B.
to z.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 27
Using P-values for a z-Test
Using P-values for a z-Test for a Mean μ
In Words In Symbols
5. Find the P-value.
a. For a left-tailed test, P = (Area in left tail).
b. For a right-tailed test, P = (Area in right tail).
c. For a two-tailed test, P = 2(Area in tail of test statistic).
z 1.43
The area to the right of P-value is greater than
z = 1.43 is P = 0.0764. = 0.01, fail to reject H0.
0 1.43 z
0.025 0.025
z
z0 = 1.96 0 z0 = 1.96
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 36
Testing with Rejection
Regions
Example continued:
A local telephone company claims that the average
length of a phone call is 8 minutes. In a random
sample of 58 phone calls, the sample mean was 7.8
minutes and the standard deviation was 0.5
minutes. Is there enough evidence to support this
Hclaim at (Claim)
0: = 8
= 0.05? Ha: 8
The standardized test statistic is The test statistic falls
xμ 7.8 8
z in the rejection
σ n 0.5 58 region, so H0 is
3.05. rejected.
z
z0 = 1.96 0 z0 = 1.96
xμ
t
s n
pˆ μ pˆ p p
z ˆ
σ pˆ pq n
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 51
Hypothesis Test for
Proportions
Using a z-Test for a Proportion p
Verify that np 5 and nq 5.
In Words In Symbols
5. Determine any rejection
regions. p̂ p
z
6. Find the standardized test pq n
statistic.
If z is in the
7. Make a decision to reject or fail rejection region,
to reject the null hypothesis. reject H0.
Otherwise, fail to
8. Interpret the decision in the
reject H0.
context of the original claim.
Example:
Find the critical value for a two-tailed test when n =
26 and = 0.01.
There are 25 d.f. The areas to the right of the
1 1
critical values
2
are = 0.005
2
and 1 – = 0.995.
From Table 6, the critical values are χ2L = 10.520
and χ2R = 46.928.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 60
The Chi-Square Test
The χ2-test for a variance or standard deviation
is a statistical test for a population variance or
standard deviation. The χ2-test can be used when the
population is normal.
0.01
X2
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 64
Hypothesis Test for Standard
Deviation
Example continued:
A college professor claims that the standard
deviation for students taking a statistics test is less
than 30. 10 tests are randomly selected and the
standard deviation is found to be 28.8. Test this
professor’s claim at the = 0.01 level.
H0: 30 Ha: < 30 (Claim)
χ =
2 0.01 2(n 1)s 2 (10 1)(28.8)2
0 χ 2
σ 302
2.088 8.29
X2
X 2
0 = 2.088 Fail to reject H0.
At the 1% level of significance, there is not enough
evidence to support the professor’s claim.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 65
Hypothesis Test for
Variance
Example:
A local balloon company claims that the variance for
the time its helium balloons will stay afloat is 5 hours.
A disgruntled customer wants to test this claim. She
randomly selects 23 customers and finds that the
variance of the sample is 4.5 seconds. At = 0.05,
does she have enough evidence to reject the
company’s claim?
H0: 2 = 5 (Claim) Ha: 2 5
This is a two-tailed test with d.f.= 22 and = 0.05.
1 1
0.025 0.025
2 2
X2
X 2
L X 2
R Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 66
Hypothesis Test for
Variance
Example continued:
A local balloon company claims that the variance for
the time its helium balloons will stay afloat is 5 hours.
A disgruntled customer wants to test this claim. She
randomly selects 23 customers and finds that the
variance of the sample is 4.5 seconds. At = 0.05,
does she have enough evidence to reject the
company’s claim?
H : 2 = 5 (Claim) Ha: 2 5
0
X2
10.982 36.781 Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 67
Hypothesis Test for
Variance
Example continued:
A local balloon company claims that the variance for
the time one of its helium balloons will stay afloat is 5
hours. A disgruntled customer wants to test this claim.
She randomly selects 23 customers and finds that the
variance of the sample is 4.5 seconds. At = 0.05,
does she have enough evidence to reject the
company’s claim?
H : 2 = 5 (Claim) Ha: 2 5
0