Professional Documents
Culture Documents
Chapter 8
economy?
Comparisons
1 60 65
2 52 58
3 41 38
4 72 78
5 52 65
6 24 37
7 16 34
8 72 62
9 44 44
10 36 45
Example
n The first step is to calculate the difference for each student.
1 60 65 5
2 52 58 6
3 41 38 -3
4 72 78 6
5 52 65 13
6 24 37 13
7 16 34 18
8 72 62 -10
9 44 44 0
10 36 45 9
Example
n The next step is to calculate the mean difference in the sample.
1 60 65 5
2 52 58 6
3 41 38 -3
4 72 78 6
5 52 65 13
6 24 37 13
7 16 34 18
8 72 62 -10
9 44 44 0
10 36 45 9
Mean 5.7
Example
nEquivalently, we could calculate the mean before, the mean after,
and then take the difference in these means.
Student Before After Difference
1 60 65 5
2 52 58 6
3 41 38 -3
4 72 78 6
5 52 65 13
6 24 37 13
7 16 34 18
8 72 62 -10
9 44 44 0
10 36 45 9
Mean 46.9 52.6 5.7
Confidence Interval
n The mean difference in the sample equals 5.7.
n Assume that the standard deviation for the difference is known to be 8
x–y
Normal with σx2 and σy2 known
var( X - Y )
var( X ) + var( Y )
2 2
σx σy
+
nx ny
Confidence interval
σ 2
σ 2y
(x - y) ± z α/2 +
x
nx ny
Example
n A researcher wants to measure the difference in income between
male-headed and female-headed households in the population.
n Data from the Survey of Consumer Finances:
group Sample size Mean income (1,000s) Sd of income (1,000s)
Male-headed 4,592 106.8 439.9
Female-headed 1,423 37.8 70.2
n 95 percent confidence interval for difference in income:
2
σ 2x σ y
(x - y) ± z α/2 +
nx ny
439.92 70.22
(106.8 - 37.8) ± 1.96 +
4592 1423
69 ± 13.2
Two Population Proportions
Assumptions:
Both sample sizes are large and
independent
var(p̂ x ) + var( p̂ y )
Px (1 - Px ) Py (1 - Py )
+
nx ny
Confidence Interval for
Two Population Proportions
pˆ x (1- pˆ x ) pˆ y (1- pˆ y )
(pˆ x - pˆ y ) ± za / 2 +
nx ny
Support for Stricter Gun Laws
Confidence interval calculation
n A recent survey shows that 64 percent support
stricter gun control.
n Among women, 72 percent (560/775) support gun
control.
n Among men, 56 percent (420/751) support gun
control.
n Form a 90 percent confidence interval for the
difference in proportions.
Example:
Two Population Proportions
420
Men: p! ! =
751
= 0.56
560
Women: p! " =
775
= 0.72
p̂ x (1 - p̂ x ) p̂ y (1 - p̂ y )
+
nx ny
0.56(0.44) 0.72(0.28)
= + = 0.024
751 775