Professional Documents
Culture Documents
Chapter Nine
Statistical Inferences
Based on Two Samples
9-2 of 21
McGraw-Hill/Irwin
9-3 of 21
x1 x 2
x1 x 2
Has
mean:
x1 - x 2 = 1 2
Has standard
deviation:
9-4 of 21
x1 - x 2
12 22
=
n1 n 2
Sampling Distribution
of
(Continued)
9-5 of 21
x1 x 2
(x1 x 2 ) z/2
12 22
n1
n2
(x1 x 2 ) z/2
9-6 of 21
s1 s2
n1 n2
Alternative
H a : 1 2 D0
H a : 1 2 D0
H a : 1 2 D0
Reject H0 if:
z z
z z
z z / 2 , that is
p-Value
Area under std normal curve right of z
Area under std normal curve left of z
Twice area under std normal curve right of z
z z / 2 or z z / 2
Test Statistic
9-7 of 21
(x1 x 2 ) D 0
n1
n2
2
1
2
2
(x1 x 2 ) z/2
s12 s22
4.7089 1.9044
n1 n2
100
100
3.65 0.5040 [3.15, 4.15]
(x1 x 2 ) D 0
s12 s22
n1 n2
(8.79 5.14) 3
2.53 1.645 z.05
4.7089 1.9044
100
100
(x1 x 2 ) t /2
1 1
s
n1 n2
2
p
1
)
s
(
n
1
)
s
1
2
2
s 2p 1
(n1 n2 2)
9-9 of 21
Alternative
H a : 1 2 D0
H a : 1 2 D0
H a : 1 2 D0
Reject H0 if:
Test Statistic
(x x 2 ) D 0
t 1
1
2 1
sp
n1 n2
Pooled Variance
9-10 of 21
t t
t t
t t / 2 , that is
t t / 2 or t t / 2
p-Value
Area under t distribution right of t
Area under t distribution left of t
Twice area under t distribution right of t
1
)
s
(
n
1
)
s
(5 1)386 (5 1)484.2
1
2
2
s 2p 1
435.1
(n1 n2 2)
(5 5 2)
(x1 x 2 ) D 0
(811 750.2) 0
1 1
1 1
435
.
1
s
5 5
n1 n2
p value P(t 4.6087) 0.0017
2
p
9-11 of 21
Confidence Interval
(x1 x 2 ) z/2
Test Statistic
2
1
2
2
s
s
n1 n2
(x1 x 2 ) D 0
s12 s22
n1 n2
For both the interval and test, the degrees of freedom are equal to
9-12 of 21
(s12 / n1 s 22 / n 2 ) 2
df 2
(s1 / n1 ) 2 (s 22 / n 2 ) 2
n1 1
n 2 1
9-13 of 21
Test of H0: 12 = 22 vs
Ha: 12 > 22
Test of H0: 12 = 22 vs
Ha: 12 < 22
s12
Test Statistic F s 2
2
s22
Test Statistic F s 2
1
9-14 of 21
d t /2
t /2
9-15 of 21
sd
n
9-16 of 21
Test Statistic
d-D 0
t, t/2 and p-values are based on n 1 degrees of
t=
sd / n
freedom.
Table 9.3
Mean
Std Dev
-0.8
0.5033
d t / 2
9-17 of 21
sd
0.5033
0.8 2.447
0.8 0.4654 [1.2654,0.3346]
n
7
(p1 p 2 ) z / 2
9-18 of 21
p1 (1 p1 ) p 2 (1 p 2 )
n1 1
n 2 1
Alternative
H a : p1 p2 D0
H a : p1 p2 D0
H a : p1 p2 D0
Test Statistics
z
9-19 of 21
Reject H0 if:
z z
z z
p-Value
z z / 2 , that is
z z / 2 or z z / 2
D0 0
( p 1 p 2 ) D 0
1 1
p (1 p )
n1 n2
D0 0
z
( p 1 p 2 ) D 0
p 1 (1 p 1 ) p 2 (1 p 2 )
n1 1
n2 1
p1
631
798
631 798
, p2
, p
1000
1000
1000 1000
1000 - 1
1000 - 1
0.167 0.0389 [0.2059, 0.1281]
Test H0: p1 - p2 = 0 versus Ha: p1 - p2 0
9-20 of 21
( p 1 p 2 ) D 0
(0.631 0.798) 0
1
1 1
1
0
.
7145
(
1
0
.
7145
)
p (1 p )
1000
1000
n1 n2
8.2673 3.29 z0.0005 , p value 2 P ( z 8.2673) 0.001
9-21 of 21
Independent Samples
Comparing Two Population Means Using Small
Independent Samples
Comparing Two Population Variances Using
Independent Samples
Paired Difference Experiments
Comparing Two Population Proportions Using
Large Independent Samples