2 Hypothesis Testing
2 Hypothesis Testing
Opening Example
Two Hypotheses
Rejection and Nonrejection Regions
Two Types of Errors
Tails of a Test
Two Hypotheses
Definition
A null hypothesis is a claim (or statement) about a
population parameter that is assumed to be true until it is
declared false.
Two Hypotheses
Definition
An alternative hypothesis is a claim about a population
parameter that will be declared true if the null hypothesis is
declared to be false.
Tails of a Test
Definition
A two-tailed test has rejection regions in both tails, a lefttailed test has the rejection region in the left tail, and a
right-tailed test has the rejection region in the right tail of
the distribution curve.
A Two-Tailed Test
A Two-Tailed Test
A Two-Tailed Test
Whether a test is twotailed or onetailed is determined
by the sign in the alternative hypothesis.
If the alternative hypothesis has a not equal to () sign,
it is a twotailed test.
A Left-Tailed Test
Reconsider the example of the mean amount of soda in all
soft-drink cans produced by a company. The company claims
that these cans, on average, contain 12 ounces of soda.
However, if these cans contain less than the claimed amount
of soda, then the company can be accused of cheating.
Suppose a consumer agency wants to test whether the mean
amount of soda per can is less than 12 ounces. Note that the
key phrase this time is less than, which indicates a left-tailed
test.
A Left-Tailed Test
A Left-Tailed Test
In this case, we can also write the null hypothesis as H0 :
12. This will not affect the result of the test as long as the
sign in H1 is less than (<).
When the alternative hypothesis has a less than (<) sign, the
test is always lefttailed.
A Right-Tailed Test
According to www.city-data.com, the average price of
homes in West Orange, New Jersey, was $459,204 in 2009.
Suppose a real estate researcher wants to check whether
the current mean price of homes in this town is higher than
$459,204. The key phrase in this case is higher than, which
indicates a right-tailed test.
A Right-Tailed Test
A Right-Tailed Test
When the alternative hypothesis has a greater than (>) sign,
the test is always righttailed.
Two Procedures
Two procedures to make tests of hypothesis
1. The p-value approach
2. The critical-value approach
where x
n
Example 9-1
At Canon Food Corporation, it used to take an average of 90
minutes for new workers to learn a food processing job.
Recently the company installed a new food processing
machine. The supervisor at the company wants to find if the
mean time taken by new workers to learn the food
processing procedure on this new machine is different from
90 minutes. A sample of 20 workers showed that it took, on
average, 85 minutes for them to learn the food processing
procedure on the new machine. It is known that the learning
times for all new workers are normally distributed with a
population standard deviation of 7 minutes. Find the p
value for the test that the mean learning time for the food
processing procedure on the new machine is different from
90 minutes. What will your conclusion be if = .01?
7
x
3.19
x
1.56524758
p-value = 2(.0007) = .0014
Example 9-2
The management of Priority Health Club claims that its
members lose an average of 10 pounds or more within the
first month after joining the club. A consumer agency that
wanted to check this claim took a random sample of 36
members of this health club and found that they lost an
average of 9.2 pounds within the first month of membership
with a standard deviation of 2.4 pounds. Find the pvalue for
this test. What will your decision be if = .01? What if =
.05?
2.4
.40
n
36
x 9.2 10
z
2.00
x
.40
p-value = .0228
x
z
where
x
x
n
Example 9-3
The TIV Telephone Company provides long-distance
telephone service in an area. According to the companys
records, the average length of all long-distance calls placed
through this company in 2009 was 12.44 minutes. The
companys management wanted to check if the mean length
of the current long-distance calls is different from 12.44
minutes. A sample of 150 such calls placed through this
company produced a mean length of 13.71 minutes with a
standard deviation of 2.65 minutes. Using the 2%
significance level, can you conclude that the mean length of
all current long-distance calls is different from 12.44
minutes?
Figure 9.9
where x
n
2.65
.21637159
n
150
x 13.71 12.44
z
5.87
x
.21637159
Example 9-4
The mayor of a large city claims that the average net worth
of families living in this city is at least $300,000. A random
sample of 25 families selected from this city produced a
mean net worth of $288,000. Assume that the net worths of
all families in this city have a normal distribution with the
population standard deviation of $80,000. Using the 2.5%
significance level, can you conclude that the mayors claim
is false?
Figure 9.10
80,000
$16,000
n
25
x 288,000 300,000
z
.75
x
16,000
x
t
sx
s
where s x
n
Example 9-5
A psychologist claims that the mean age at which children
start walking is 12.5 months. Carol wanted to check if this
claim is true. She took a random sample of 18 children and
found that the mean age at which these children started
walking was 12.9 months with a standard deviation of .80
month. It is known that the ages at which all children start
walking are approximately normally distributed. Find the pvalue for the test that the mean age at which all children
start walking is different from 12.5 months. What will your
conclusion be if the significance level is 1%?
s
.80
sx
.18856181
n
18
x 12.9 12.5
t
2.121
sx
.18856181
and df = n 1 = 18 1 = 17
.02 < p-value < .05
Example 9-6
Grand Auto Corporation produces auto batteries. The
company claims that its top-of-the-line Never Die batteries
are good, on average, for at least 65 months. A consumer
protection agency tested 45 such batteries to check this
claim. It found the mean life of these 45 batteries to be 63.4
months with a standard deviation of 3 months. Find the pvalue for the test that mean life of all such batteries is less
than 65 months. What will your conclusion be if the
significance level is 2.5%?
s
3
sx
.44721360
n
45
x
63.4 65
t
3.578
sx
.44721360
and df = n 1 = 45 1 = 44
p-value < .001
Example 9-7
Refer to Example 9-5. A psychologist claims that the mean
age at which children start walking is 12.5 months. Carol
wanted to check if this claim is true. She took a random
sample of 18 children and found that the mean age at which
these children started walking was 12.9 months with a
standard deviation of .80 month. Using the 1% significance
level, can you conclude that the mean age at which all
children start walking is different from 12.5 months? Assume
that the ages at which all children start walking have an
approximately normal distribution.
s
.80
sx
.18856181
n
18
x 12.9 12.5
t
2.121
sx
.18856181
Example 9-8
The management at Massachusetts Savings Bank is always
concerned about the quality of service provided to its
customers. With the old computer system, a teller at this
bank could serve, on average, 22 customers per hour. The
management noticed that with this service rate, the waiting
time for customers was too long. Recently the management
of the bank installed a new computer system in the bank,
expecting that it would increase the service rate and
consequently make the customers happier by reducing the
waiting time. To check if the new computer system is more
efficient than the old system, the management of the bank
took a random sample of 70 hours and found that during
these hours the mean number of customers served by
tellers was 27 per hour with a standard deviation of 2.5.
Testing at the 1% significance level, would you conclude
that the new computer system is more efficient than the old
computer system?
*, Introductory Statistics, 8/E Copyright
2013 John Wiley & Sons. All rights reserved.
Figure 9.14
s
2.5
.29880715
n
70
x
27 22
t
16.733
sx
.29880715
sx
p ,
p p
pq
z
where p
p
n
The value of p that is used in this formula is the one from the
null hypothesis. The value of q is equal to 1-p. The value of z
using the above formula is also called the
calculated for p
observed value of z.
Example 9-9
In a 2011 National Institute on Alcohol Abuse and Alcoholism
survey, 33% of American adults said that they had never
consumed alcohol (USA TODAY, November 17, 2011).
Suppose that this result is true for the 2011 population of
American adults. In a recent random sample of 2300 adult
Americans, 35% said that they had never consumed alcohol.
Find the p-value to test the hypothesis that the current
percentage of American adults who have never consumed
alcohol is different from 33%. What is your conclusion if the
significance level is 5%?
.33 .67)
2300
= .00980461
.35 .33
=
=
= 2.04
.00980461
p-value = 2(.0207) = .0414
Example 9-10
When working properly, a machine that is used to make
chips for calculators does not produce more than 4%
defective chips. Whenever the machine produces more
than 4% defective chips, it needs an adjustment. To check
if the machine is working properly, the quality control
department at the company often takes samples of chips
and inspects them to determine if they are good or
defective. One such random sample of 200 chips taken
recently from the production line contained 12 defective
chips. Find the p-value to test the hypothesis whether or
not the machine needs an adjustment. What would your
conclusion be if the significance level is 2.5%?
pq
(.04)(.96)
.01385641
n
200
p p
.06 .04
z
1.44
p
.01385641
p-value = .0749
Example 9-11
Refer to Example 9-9. In a 2011 National Institute on
Alcohol Abuse and Alcoholism survey, 33% of American
adults said that they had never consumed alcohol (USA
TODAY, November 17, 2011). Suppose that this result is
true for the 2011 population of American adults. In a recent
random sample of 2300 adult Americans, 35% said that
they had never consumed alcohol. Using a 5% significance
level, can you conclude that the current percentage of
American adults who have never consumed alcohol is
different from 33%?
.33 .67)
2300
= .00980461
.35 .33
=
=
= 2.04
.00980461
Example 9-12
Direct Mailing Company sells computers and computer parts
by mail. The company claims that at least 90% of all orders
are mailed within 72 hours after they are received. The
quality control department at the company often takes
samples to check if this claim is valid. A recently taken
sample of 150 orders showed that 129 of them were mailed
within 72 hours. Do you think the companys claim is true?
Use a 2.5% significance level.
pq
(.90)(.10)
.02449490
n
150
p p
.86 .90
z
1.63
p
.02449490
TI-84
Minitab
Minitab
Minitab
Excel
Excel
Excel