Two-Sample Tests of Hypothesis: Mcgraw-Hill/Irwin
Two-Sample Tests of Hypothesis: Mcgraw-Hill/Irwin
Two-Sample Tests of Hypothesis: Mcgraw-Hill/Irwin
Chapter 11
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.
GOALS
11-2
Comparing two populations – Some
Examples
11-3
Comparing Two Population Means
Use if sample sizes 30 Use if sample sizes 30
No assumptions about the shape of the populations are required. or if 1 and 2 are known and if 1 and 2 are unknown
The samples are from independent populations.
X1 X 2 X1 X 2
The formula for computing the test statistic (z) is: z z
2
2
s12 s22
1 2
n1 n2 n1 n2
EXAMPLE
The U-Scan facility was recently installed at the Byrne Road Food-Town location. The store manager would like to
know if the mean checkout time using the standard checkout method is longer than using the U-Scan. She gathered
the following sample information. The time is measured from when the customer enters the line until their bags are in
the cart. Hence the time includes both waiting in line and checking out.
11-4
Example 1 continued
Step 3: Determine the appropriate test statistic.
Because both population standard deviations are known, we can use z-distribution as the test statistic
Xs Xu
z
s2 u2
ns nu
5.5 5.3
0.40 2 0.30 2
The computed value of 3.13 is larger
50 than100the critical value of 2.33. Our decision is to reject the null hypothesis. The difference of .20 minutes
between the mean checkout time using the standard method is too large to have occurred by chance. We conclude the U-Scan method is faster.
0.2
3.13
0.064
11-5
Two-Sample Tests about Proportions
We investigate whether two samples came from EXAMPLE
populations with an equal proportion of Manelli Perfume Company recently developed a new fragrance
successes. The two samples are pooled using
the following formula. that it plans to market under the name Heavenly. A number of
market studies indicate that Heavenly has very good market
The value of the test statistic is computed from the potential. The Sales Department at Manelli is particularly
following formula. interested in whether there is a difference in the proportions of
younger and older women who would purchase Heavenly if it
were marketed. Samples are collected from each of these
independent groups. Each sampled woman was asked to smell
Heavenly and indicate whether she likes the fragrance well
enough to purchase a bottle.
11-6
Two Sample Tests of Proportions -
Example
Step 4: Formulate the decision rule.
Reject H0 if Z > Z/2 or Z < - Z/2
Z > Z.05/2 or Z < - Z.05/2
Z > 1.96 or Z < -1.96
11-7
Comparing Population Means with Unknown
Population Standard Deviations (the Pooled t-test)
( n1 1) s12 ( n2 1) s22
s 2p
n1 n2 2
X1 X 2
t Is there a difference in the mean mounting times? Use the .
1 1 10 significance level.
s 2p
n
1 n 2
11-8
Comparing Population Means with Unknown Population
Standard Deviations (the Pooled t-test) - Example
Step 1: State the null and alternate hypotheses. Step 5: Compute the value of t and make a decision
(Keyword: “Is there a difference”)
H0: µ1 = µ2
H1: µ1 ≠ µ2
11-10
Comparing Population Means with Unequal
Population Standard Deviations - Example
11-11
Comparing Population Means with Unequal
Population Standard Deviations - Example
11-12
Two-Sample Tests of Hypothesis:
Dependent Samples
Dependent samples are samples that are paired
or related in some fashion.
For example:
EXAMPLE
– If you wished to buy a car you would Nickel Savings and Loan wishes to compare the two
look at the same car at two (or more)
different dealerships and compare the companies it uses to appraise the value of residential homes.
prices. Nickel Savings selected a sample of 10 residential properties
– If you wished to measure the and scheduled both firms for an appraisal. The results,
effectiveness of a new diet you would reported in $000, are shown on the table (right).
weigh the dieters at the start and at
the finish of the program.
At the .05 significance level, can we conclude there is a
difference in the mean appraised values of the homes?
d
t
sd / n
Where
d is the mean of the differences
sd is the standard deviation of the differences
n is the number of pairs (differences)
11-13
Hypothesis Testing Involving
Paired Observations - Example
Step 1: State the null and alternate hypotheses.
H0: d = 0
H1: d ≠ 0
Reject H0 if
t > t/2, n-1 or t < - t/2,n-1
t > t.025,9 or t < - t.025, 9
t > 2.262 or t < -2.262