Comparison of Two Groups
Comparison of Two Groups
Comparison of Two Groups
1
1
Group 2
2
2
Estimate
y2 y1
2 1
y2
y1
= 533.7, s2 = 65.3.
Shape? Outliers?
Copyright 2009 Pearson Education. Inc.
se ( se1 ) ( se2 )
2
se (1 ) / n
So, the se for the difference between two sample proportions for
independent samples is
1 (1 1 ) 2 (1 2 )
se ( se1 ) ( se2 )
n1
n2
2
1 (1 1 ) 2 (1 2 )
( 2 1 ) z
n1
n2
0.0056
n1
n2
12, 708
8783
Quantitative Responses:
Comparing Means
Parameter: 2 - 1
Estimator:
y2 y1
Estimated standard error:
se
s12 s22
n1 n2
y2 y1 0
se
y2 y1
s12 s22
n1 n2
Test of
H 0: 1 = 2
Ha: 1 2
n1 n2
se
s
s
n2
n1
2
1
df
s2 2
1 n
n1 1
2
2
s
2
2
n
2
n2 1
Effect Size
When groups have similar variability, a summary
measure of effect size is
mean 2 mean1
effect size =
standard deviation in each group
Example: The therapies had sample means of 20 for A
and 40 for B and standard deviations of 10 and 8.66. If
common standard deviation in each group is estimated to
be s = 9.35 (say), then
effect size = (40 20)/9.35 = 2.1.
Mean for therapy B estimated to be about two standard
deviations larger than the mean for therapy A.
This is a large effect.
Copyright 2009 Pearson Education. Inc.
1. y1 20, y2 30, s 10
2. y1 200, y2 300, s 100
3. y1 20, y2 25, s 2
Copyright 2009 Pearson Education. Inc.
se sd / n 52.5 / 32 9.28
For a 95% CI, df = n 1 = 31, t-score = 2.04
We get 50.6 2.04(9.28), or (31.7, 69.5)
Copyright 2009 Pearson Education. Inc.
Some comments
Dependent samples have advantages of (1) controlling
sources of potential bias (e.g., balancing samples on
variables that could affect the response), (2) having a
smaller se for the difference of means, when the pairwise
responses are highly positively correlated (in which case, the
difference scores show less variability than the separate
samples)
With dependent samples, why cant we use the se formula
for independent samples?
se
s12 s22
n1 n2
Before After
115
122
91
98
100
107
132
139
Difference
7
7
7
7