Two-Sample Tests of Hypothesis
Two-Sample Tests of Hypothesis
Chapter 11
11-1 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the
prior written consent of McGraw-Hill Education.
Learning Objectives
LO11-1 Test a hypothesis that two independent
population means are equal, assuming that
the population standard deviations are known
and equal
LO11-2 Test a hypothesis that two independent
population means are equal, with
unknown population standard deviations
LO11-3 Test a hypothesis about the mean
population difference between paired or
dependent observations
LO11-4 Explain the difference between
dependent and independent samples
11-2 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Comparing Two Population Means
In comparing two populations, we wish to know whether their
means could be equal
We are investigating whether the distribution of the difference
between the means could have a mean of 0
Examples
Is there a difference in the mean value of residential real estate
sold by male agents and female agents in south Florida?
Is there an increase in the production rate after music is piped
into the production area?
Is there a difference in the mean number of defects produced
on the day and the afternoon shifts at Kimble Products?
11-3 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Comparing Two Population Means (2 of 2)
We can use the following formula to compute z if the
following conditions are met
The two populations follow normal distributions
The samples are from independent (unrelated)
populations
The population standard deviations are known
11-4 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Comparing Two Population Means Example
Customers at the FoodTown Supermarket have a choice when paying for their
groceries. They may check out and pay using the standard cashier-assisted checkout
or they may use the new Fast Lane procedure (self-checkout). The store manager
would like to know if the mean checkout time using the standard checkout method
is longer than using the Fast Lane. The time was measured from when the customer
enters the line until all his or her bags are in the cart.
11-5 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Comparing Two Population Means Example
(2 of 3)
Step 4: Formulate the decision rule, Reject H0 if z > 2.326
11-6 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Comparing Two Population Means Example
(3 of 3)
Step 6: Interpret the result. The difference of .20 minute is too large to have
occurred by chance. We conclude the Fast Lane method is faster.
11-7 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Compare Two Means Using t
There are two major differences in this test and the test
just described in this chapter
We assume the sampled populations have equal but
unknown standard deviations
We use the t distribution
The three requirements for the test:
The sampled populations are approximately normally
distributed
The sampled populations are independent
The standard deviations of the two populations are
equal
11-8 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Compare Two Means Using t (2 of 2)
Finding the value of t requires two steps
The first step is to pool the standard deviations according
to the following formula
11-9 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Two-Sample Pooled Test Example
Owens Lawn Care Inc. manufactures and assembles lawnmowers that are shipped to
dealers throughout the United States and Canada. Two different procedures have
been proposed for mounting the engine on the frame of the lawnmower, the Welles
method and the Atkins method. The question is, is there a difference in the methods’
mean time to mount the engines on the frames of the lawnmowers?
A time and motion study is conducted to evaluate.
11-10 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Two-Sample Pooled Test Example
Continued
Step 4: Formulate the decision rule, do not reject H0 if t falls between −1.833 and 1.833
First:
Calculate the sample standard deviations
11-11 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Two-Sample Pooled Test Example
Concluded
Second: Pool the sample variances
The decision is not to reject the null hypothesis because –0.662 falls in the
region between −1.833 and 1.833.
Step 6: Interpret the result; we conclude the sample data failed to show a
difference between the mean assembly times of the two methods.
11-12 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Unequal Population Standard Deviations
If we cannot assume the population standard deviations
are equal, we adjust the degrees of freedom and the
formula for finding t
We determine the degrees of freedom based on the
following formula
11-13 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Unequal Population Standard Deviations
Example
11-14 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Unequal Population Standard Deviations
Example (2 of 3)
Step 1: State the null and alternate hypothesis
H0: 1 = 2
H1: 1 ≠ 2
Step 2: Select the level of significance; we decide to use .10
Step 3: Determine the test statistic; we’ll use t
We must adjust the degrees of freedom with formula 11-6 before finding
the critical values and round the result down to an integer; in this case, 10
11-15 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Unequal Population Standard Deviations
Example (3 of 3)
Step 4: State the decision rule, do not reject H0 if t falls between −1.812 and 1.812.
Step 5: Make decision
Step 6: Interpret; the mean absorption rate of the two types of towels is not the same.
11-16 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Dependent Samples
We first compute the mean and the standard deviation of the
sample differences
The value of the test statistic is computed with the following
formula
11-17 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Dependent Samples Continued
Note: the standard deviation of the differences will be
computed with the formula 3-11, except d is substituted for x
Example
Nickel Savings and Loan employs two firms, Schadek Appraisals
and Bowyer Real Estate, to appraise the value of the real
estate on which it makes loans. To review the consistency of
the two appraisal firms, Nickel randomly selects 10 homes and
has both of the firms appraise the values of the selected
homes. Thus, there will be a pair of values for each home; these
appraised values are related to the home selected. This is
called a paired sample.
11-18 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Dependent Samples Example
Recall that Nickel Savings and Loan
wishes to compare the two companies
it uses to appraise the value of
residential homes. Nickel Savings
selected a sample of 10 residential
properties and scheduled both firms for
an appraisal. The results are reported in
$000. At the .05 significance level, can
we conclude there is a difference
between the firm’s appraised values?
11-19 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Dependent Samples Example Continued
11-20 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
Dependent and Independent Samples
There are two types of dependent samples
Those characterized by a measurement, an intervention of
some type, and then another measurement
For example, suppose we wish to show that by playing music in the
production area we are able to increase production. We begin by
selecting a sample of workers and measure their output, then we
place the speakers in the production area and play soothing music,
and then we again measure the output
A matching or pairing of the observations
For example, the Nickel Savings and Loan example illustrates
dependent samples because a property is selected and both firms
appraise the same property
We prefer a test based on dependent samples because it
reduces the amount of variation in the test and is considered a
better test
11-21 Copyright ©2021 McGraw-Hill Education. All rights reserved. No reproduction or distribution without
the prior written consent of McGraw-Hill Education.
1 Introduction
Introduction
Let X ∼ N µX , σX2
Let Y ∼ N µY , σY2
Di = xi − yi
SD
D̄ ± t α2 ,n−1 √
n
where: Pn
i=1 Di
D̄ =
n
v 2
uP
u n D − D̄
t i=1 i
SD =
n−1
Let X ∼ N µX , σX2
Let Y ∼ N µY , σY2
where:
▶ α is . . .
▶ (1 − α) 100% means . . .
H0 : µ 1 − µ 2 = D 0
µ1 − µ 2 > D 0
upper tail test
Ha : µ −µ <D
1 2 0 lower tail test
µ − µ = two-tailed test
2 ̸ D0
1
We replace σ12 and σ22 with S12 and S22 when ni ≥ 30, i = 1, 2.
H0 : µ 1 − µ 2 = D 0
µ1 − µ 2 > D 0
upper tail test
Ha : µ −µ <D
1 2 0 lower tail test
µ − µ = two-tailed test
2 ̸ D0
1
H0 : µ 1 − µ 2 = D 0
µ1 − µ 2 > D 0
upper tail test
Ha : µ −µ <D
1 2 0 lower tail test
µ − µ ̸= D
two-tailed test
1 2 0
where: 2
S12 S22
n1 + n2
v = 2 2
2 S S2
1 2
n1 n2
n1 −1 + n2 −1
H0 : µ 1 − µ 2 = D 0
µ1 − µ 2 > D 0
upper tail test
Ha : µ −µ <D
1 2 0 lower tail test
µ − µ = two-tailed test
2 ̸ D0
1
where:
▶ p̂1 and p̂2 are point estimators of p1 and p2
This approximation is valid if, for all i:
p̂i ni ≥ 5
(1 − p̂i ) ni = q̂i ni ≥ 5
Two samples are independent