Professional Documents
Culture Documents
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-tailed test. In a
1
two-tailed test, each tail has an area of 2 P.
H0: μ = k
Ha: μ k
P is twice the
P is twice the area to the right
area to the left of the positive
of the negative test statistic.
test 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 test.
a.) A cigarette manufacturer claims that less than one-
eighth of the US adult population smokes cigarettes.
H0: p 0.125
Ha: p < 0.125 (Claim) Left-tailed test
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 to There is enough evidence to
Reject H0 reject the claim. support the claim.
There is not enough evidence There is not enough evidence
Do not reject H0 to reject the claim. to support the claim.
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.
7. Write a statement to interpret the decision in the context of
the original claim.
b.) 0.01?
a.) Because 0.0256 is < 0.05, you should reject the null
hypothesis.
b.) Because 0.0256 is > 0.01, you should fail to reject the
null hypothesis.
Example:
The test statistic for a right-tailed test is z = 1.56. Find the P-value.
0.0043
z
2.63 0
z x μ σ 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 significance. Identify .
3. Determine the standardized test z x μ
statistic. σ n
4. Find the area that corresponds Use Table 4 in
to z. Appendix B.
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 x μ 1002 1000
σ n 14 100
1.43
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 29
Hypothesis Testing with P-values
Example continued:
A manufacturer claims that its rechargeable batteries
are good for an average of more than 1,000 charges. A
random sample of 100 batteries has a mean life of 1002
charges and a standard deviation of 14. Is there enough
evidence to support this claim at = 0.01?
H0: 1000 Ha: > 1000 (Claim)
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
At the 1% level of significance, there is not enough evidence to
support the claim that the rechargeable battery has an average
life of at least 1000 charges.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 30
Rejection Regions and Critical Values
A rejection region (or critical region) of the sampling
distribution is the range of values for which the null
hypothesis is not probable. If a test statistic falls in this
region, the null hypothesis is rejected. A critical value z0
separates the rejection region from the nonrejection region.
Example:
Find the critical value and rejection region for a right tailed test
with = 0.01.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 34
Rejection Regions for a z-Test
Using Rejection Regions for a z-Test for a Mean μ
In Words In Symbols
6. Find the standardized test z x μ or if n 30
σ
statistic. n
use σ s.
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 claim at = 0.05?
H0: = 8 (Claim) Ha: 8
The standardized test statistic is The test statistic falls
z x μ 7.8 8 in the rejection region,
σ n 0.5 58 so H0 is rejected.
3.05. z
z0 = 1.96 0 z0 = 1.96
To find the critical value, use Table 5 with d.f. = 23 and 0.01
in the “One Tail, “ column. Because the test is a right-tail
test, the critical value is positive.
t0 = 2.500
To find the critical value, use Table 5 with d.f. = 11 and 0.10
in the “Two Tail, “ column. Because the test is a two-tail
test, one critical value is negative and one is positive.
t x μ
s n
pˆ μ pˆ pp
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.
6. Find the standardized test z p̂ p
statistic. pq n
7. Make a decision to reject or fail to If z is in the rejection
reject the null hypothesis. region, reject H0.
Otherwise, fail to
8. Interpret the decision in the
reject H0.
context of the original claim.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 53
Hypothesis Test for Proportions
Example continued:
Statesville college claims that more than 94% of their
graduates find employment within six months of
graduation. In a sample of 500 randomly selected
graduates, 475 of them were employed. Is there enough
evidence to support the college’s claim at a 1% level of
significance?
H0: p 0.94 Ha: p > 0.94 (Claim)
Because the test is a right-tailed test and = 0.01, the
critical value is 2.33.
z p̂ p
0.95 0.94
pq n (0.94)(0.06) 500
0.94 Test statistic
0 2.33 z
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 54
Hypothesis Test for Proportions
Example continued:
Statesville college claims that more than 94% of their
graduates find employment within six months of
graduation. In a sample of 500 randomly selected
graduates, 475 of them were employed. Is there enough
evidence to support the college’s claim at a 1% level of
significance?
H0: p 0.94 Ha: p > 0.94 (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 critical
values are 2 = 0.005 and 1 – 2 = 0.995.
1 1
2 (n 1)s 2
χ
σ2
follows a chi-square distribution with degrees of freedom
d.f. = n – 1.
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 significance. Identify .
3. Determine the degrees of freedom d.f. = n – 1
and sketch the sampling
distribution.
4. Determine any critical values. Use Table 6 in
Appendix B.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 62
The Chi-Square Test
Using the χ2-Test for a Variance or Standard Deviation
In Words In Symbols
5. Determine any rejection regions.
6. Find the standardized test 2 (n 1)s 2
χ
statistic. σ2
7. Make a decision to reject or fail to If χ2 is in the
reject the null hypothesis. rejection region,
reject H0. Otherwise,
fail to reject H0.
8. Interpret the decision in the
context of the original claim.
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)
1 1
0.025 0.025
2 2
X2
X2L X2R 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?
H0: 2 = 5 (Claim) Ha: 2 5
1 1
0.025 0.025
2 2
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?
H0: 2 = 5 (Claim) Ha: 2 5
2 (n 1)s 2 (23 1)(4.5)
χ 19.8 Fail to reject H0.
σ2 5