Professional Documents
Culture Documents
ESTIMATION AND
HYPOTHESIS TESTING:
TWO POPULATIONS
Opening Example
Interval Estimation of 1 2
Example 10-1
Suppose we want to estimate the difference
between the mean salaries of all male and all
female executives. To do so, we draw two
samples, one from the population of male
executives and another from the population of
female executives. These two samples are
independent because they are drawn from two
different populations, and the samples have no
effect on each other.
Example 10-2
Suppose we want to estimate the difference
between the mean weights of all participants
before and after a weight loss program. To
accomplish this, suppose we take a sample of 40
participants and measure their weights before
and after the completion of this program. Note
that these two samples include the same 40
participants. This is an example of two
dependent samples. Such samples are also
called paired or matched samples.
Figure 10.1
.
x1 x2 1 2
and x1 x2
n1 n2
2
1
2
2
( x 1 x 2 ) z x1 x2
The value of z is obtained from the normal
distribution table for the given confidence
level. The value of x1 x2 is calculated as
explained earlier. Here x1 x 2 is the point
estimator of 1 2
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-3
A 2008 survey of low- and middle-income
households conducted by Demos, a liberal public
group, showed that consumers aged 65 years and
older had an average credit card debt of $10,235
and consumers in the 50- to 64-year age group
had an average credit card debt of $9342 at the
time of the survey (USA TODAY, July 28, 2009).
Suppose that these averages were based on
random samples of 1200 and 1400 people for the
two groups, respectively. Further assume that the
population standard deviations for the two groups
were $2800 and $2500, respectively.
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-3
a)
b)
x1 x 2
n1 n2
2
1
2
2
(2800)
(2500)
1200
1400
$104.8695335
x1 x 2
Example 10-4
Refer to Example 10-3 about the average
2008 credit card debts for consumers of two
age groups. Test at the 1% significance
level whether the population means for the
2008 credit card debts for the two groups
are different.
Figure 10.2
x1 x 2
12 22
(2800)2 (2500)2
$104.8695335
n1 n2
1200
1400
( x1 x 2 ) ( 1 2 ) (10,235 9342) 0
z
8.52
x1 x 2
104.8695335
From H0
Interval Estimation of 1 2
2
2
where 2n1 and n22 are the sizes of the two samples
and s1 and s 2 are the variances of the two
samples, respectively. Here s p is an estimator of .
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
s x1 x 2 s p
1
1
n1 n2
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Interval Estimation of 1 2
Confidence Interval for 1 2
The (1 )100% confidence interval for
2 is
( x1 x 2 ) ts x1 x2
Example 10-5
A consumier agency wanted to estimate the
difference in the mean amounts of caffeine in two
brands of coffee. The agency took a sample of 15
one-pound jars of Brand I coffee that showed the
mean amount of caffeine in these jars to be 80
milligrams per jar with a standard deviation of 5
milligrams. Another sample of 12 one-pound jars
of Brand II coffee gave a mean amount of caffeine
equal to 77 milligram per jar with a standard
deviation of 6 milligrams.
Example 10-5
Construct a 95% confidence interval for the
difference between the mean amounts of caffeine
in one-pound jars of these two brands of coffee.
Assume that the two populations are normally
distributed and that the standard deviations of
the two populations are equal.
n1 n2 2
15 12 2
5.46260011
s x1 x 2 s p
1
1
1
1
(5.46260011)
2.11565593
n1 n2
15 12
( x1 x 2 ) ( 1 2 )
t
s x1 x 2
Example 10-6
Example 10-6
Figure 10.3
3.57071421
n1 n2 2
16 16 2
s x1 x 2 s p
1 1
1 1
(3.57071421)
1.30674760
n1 n2
14 16
( x1 x 2 ) ( 1 2 ) (23 25) 0
t
1.531
s x1 x 2
1.30674760
Example 10-7
Example 10-7
H1: 1 2 > 0
Figure 10.4
4.49352655
n1 n2 2
40 35 2
s x1 x 2 s p
t
1 1
1
1
(4.49352655)
1.04004930
n1 n2
40 35
( x1 x 2 ) ( 1 2 ) (28.50 23.25) 0
5.048
s x1 x 2
1.04004930
Step 5:
Interval Estimation of 1 2
Degrees of Freedom
If
Degrees of Freedom
s12 s22
n1 n2
df
2
2
2
2
s1
2
s
n
n
1
n1 1
n2 1
s x1 x2 , is calculated as
s x1 x 2
2
1
2
2
s
s
n1 n2
( x 1 x 2 ) ts x1 x 2
Where the value of t is obtained from the t
distribution table for a given confidence
level and the degrees of freedom are given
by the formula mentioned earlier.
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-8
Example 10-8
s12 s22
(5)2 (6)2
2.16024690
n1 n2
15
12
s
(5)
s
(6)
n
n
15
12
1
2
df
21.42 21
2
2
2
2
s12
s 22
(5)2
(6)2
n
n
15
12
1
2
n1 1 n2 1
15 1
12 1
2
1
2
2
( x1 x 2 ) ( 1 2 )
t
s x1 x 2
Example 10-9
Example 10-9
H1: 1 2 0
s
(3)
s
(4)
n
n
14
16
2
df 12
27.41 27
2
2
2
s12
s 22
(3)2
(4)2
n
n
15
12
1
2
n1 1 n2 1
14 1
16 1
2
1
2
2
Figure 10.5
s x1 x 2
2
1
2
2
s
s
(3) (14)
1.28173989
n1 n2
14
16
( x1 x 2 ) ( 1 2 ) (23 25) 0
t
1.560
s x1 x 2
1.28173989
Interval Estimation of d
Definition
Two samples are said to be paired or
matched samples when for each data
value collected from one sample there is a
corresponding data value collected from
the second sample, and both these data
values are collected from the same source.
d
n
sd
2
(
d
)
2
d n
n 1
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
d d
d
and d
n
sd
sd
n
Interval Estimation of d
Confidence Interval for d
The (1 )100% confidence interval for
d is
d tsd
Example 10-10
Example 10-10
5.00
n
sd
2
2
(
d
)
(35)
2
d
873
n
7 10.78579312
n 1
7 1
4.07664661
n
7
Area in each tail /2 .5 (.95 / 2) .025
df n 1 7 1 6
t 2.447
d tsd 5.00 2.447(4.07664661) 5.00 9.98
4.98 to 14.98
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
is
d d
t
sd
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-11
A company wanted to know if attending a
course on how to be a successful
salesperson can increase the average sales
of its employees. The company sent six of
its salespersons to attend this course. The
following table gives the 1-week sales of
these salespersons before and after they
attended this course.
Example 10-11
25
4.17
n
6
sd
2
2
(
d
)
(
25)
2
139
d
6
n
2.63944439
n 1
6 1
sd
2.63944439
sd
1.07754866
n
6
H1: d < 0
Figure 10.6
3.870
sd
1.07754866
Example 10-12
Refer to Example 10-10. The table that
gives the blood pressures (in mm Hg) of
seven adults before and after the
completion of a special dietary plan is
reproduced here.
Example 10-12
Let d be the mean of the differences between the
systolic blood pressures before and after
completing this special dietary plan for the
population of all adults. Using the 5% significance
level, can we conclude that the mean of the paired
differences d is difference from zero? Assume that
the population of paired differences is
(approximately) normally distributed.
5.00
n
sd
sd
2
2
(
d
)
(35)
2
d
873
n
7 10.78579312
n 1
7 1
sd
10.78579312
4.07664661
n
7
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
H1: d 0
d d
5.00 0
t
1.226
sd
4.07664661
Figure 10.7
Step 5:
p1 p 2 p1 p2
and
p1 p 2
p1q1 p2q2
n1
n2
Interval Estimation of p1 p2
The (1 )100% confidence interval for
p1 p2 is
( p1 p2 ) zs p 1 p 2
s p1 p 2
p1q1 p2q2
n1
n2
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-13
A researcher wanted to estimate the difference
between the percentages of users of two
toothpastes who will never switch to another
toothpaste. In a sample of 500 users of
Toothpaste A taken by this researcher, 100 said
that they will never switch to another toothpaste.
In another sample of 400 users of Toothpaste B
taken by the same researcher, 68 said that they
will never switch to another toothpaste.
Example 10-13
a)
b)
Then,
Point estimate of p1 p2
= p 1 p 2
= .20 .17 = .03
p 1q 1 p 2q 2
.02593742
n1
n2
z = 2.17
( p 1 p 2 ) zs p1 p 2 (.20 .17) 2.17(.02593742)
.03 .056 .026 to .086
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
( p 1 p 2 ) ( p1 p2 )
z
s p1 p 2
The value of p1 p2 is substituted from H0,
which is usually zero.
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
x1 x 2
p
n1 n2
p1q1 p2q2
n1
n2
n1p 1 n2 p 2
n1 n2
or
1
1
s p 1 p 2 pq
n1 n2
where q 1 p
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Example 10-14
Reconsider Example 10-13 about the percentages
of users of two toothpastes who will never switch
to another toothpaste. At the 1% significance
level, can we conclude that the proportion of
users of Toothpaste A who will never switch to
another toothpaste is higher than the proportion
of users of Toothpaste B who will never switch to
another toothpaste?
Step 1:
H0: p1 p2 = 0
p1 is not greater than p2
H1: p1 p2 > 0
p1 is greater than p2
Figure 10.8
Step 4:
x1 x 2
100 68
p
.187
n1 n2 500 400
q 1 p 1 .87 .813
s p1 p 2
1 1
1
1
pq
(.187)(.813)
.02615606
500 400
n1 n2
( p 1 p 2 ) ( p1 p2 ) (.20 .17) 0
z
1.15
s p1 p 2
.02615606
Example 10-15
According to a July 1, 2009, Quinnipiac University
poll, 62% of adults aged 18 to 34 years and 50%
of adults aged 35 years and older surveyed
believed that it is the governments responsibility
to make sure that everyone in the United States
has adequate health care. The survey included
approximately 683 people in the 18- to 34-year
age group and 2380 people aged 35 years and
older. Test whether the proportions of people who
believe that it is the governments responsibility to
make sure that everyone in the United States has
adequate health care are different for the two age
groups. Use the 1% significance level.
Prem Mann, Introductory Statistics, 7/E
Copyright 2010 John Wiley & Sons. All right reserved
Step 1:
H0: p1 p2 = 0
H1: p1 p2 0
Figure 10.9
.527
n1 n2
683 2380
q 1 p 1 .527 .473
1
1
1
1
(.527)(.473)
.02167258
683 2380
n1 n2
( p 1 p 2 ) ( p1 p2 ) (.62 .50) 0
z
5.54
s p1 p 2
.02167258
s p1 p 2 pq
TI-84
TI-84
Minitab
Minitab
Minitab
Minitab
Minitab
Minitab
Excel
Excel