Professional Documents
Culture Documents
Chapter 9
Estimation: Additional Topics
Chap 9-1
Chapter Goals
After completing this chapter, you should be able to:
Population
Means,
Dependent
Samples
Population
Means,
Independent
Samples
Population
Proportions
Population
Variance
Proportion 1 vs.
Proportion 2
Variance of a
normal distribution
Examples:
Same group
before vs. after
treatment
Group 1 vs.
independent
Group 2
Dependent Samples
Tests Means of 2 Related Populations
Dependent
samples
di = xi - yi
Mean Difference
The ith paired difference is di , where
Dependent
samples
di = xi - yi
The point estimate for
the population mean
paired difference is d :
The sample
standard
deviation is:
d
i 1
Sd
2
(d
d
)
i
i1
n 1
d t n1,/2
Sd
Sd
d d t n1,/2
n
n
Where
n = the sample size
(number of matched pairs in the paired sample)
ME t n1,/2
sd
n
P(t n1 t n1,/2 )
2
Person
1
2
3
4
5
6
Weight:
Before (x)
After (y)
136
205
157
138
175
166
125
195
150
140
165
160
Difference, di
11
10
7
-2
10
6
42
di
d = n
= 7.0
Sd
2
(d
d
)
i
4.82
n 1
d t n1,/2
7 (2.571)
Sd
S
d d t n1,/2 d
n
n
4.82
4.82
d 7 (2.571)
6
6
1.94 d 12.06
Since this interval contains zero, we cannot be 95% confident, given this
limited data, that the weight loss program helps people lose weight
xy
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
x2 and y2 Known
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
Assumptions:
x2 and y2 Known
(continued)
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
2X Y
2
y
x
nx
ny
(x y) (X Y )
2
2x y
nX nY
Confidence Interval,
x2 and y2 Known
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
(x y) z /2
interval for
* The confidence
is:
x y
2X 2Y
2X 2Y
X Y (x y) z /2
nx ny
nx ny
x2 and y2 Unknown,
Assumed Equal
Assumptions:
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
x2 and y2 Unknown,
Assumed Equal
(continued)
Forming interval
estimates:
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
x2 and y2 Unknown,
Assumed Equal
(continued)
Population means,
independent
samples
and known
2
x
2
y
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
sp2
(n x 1)s 2x (n y 1)s2y
nx ny 2
Confidence Interval,
x2 and y2 Unknown, Equal
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
(x y) t nx n y 2,/2
Where
sp2
sp2
nx
sp2
ny
X Y (x y) t nx n y 2,/2
(n x 1)s 2x (n y 1)s2y
nx ny 2
sp2
nx
sp2
ny
Number Tested
Sample mean
Sample std dev
CPUx
17
3004
74
CPUy
14
2538
56
1
S
1
S
17 1 74 2 14 1 56 2
x
x
y
y
2
S
(n x 1) (n y 1)
(17 - 1) (14 1)
4427.03
(x y) t n x n y 2,/2
sp2
nx
sp2
ny
X Y (x y) t n x ny 2,/2
sp2
nx
sp2
ny
4427.03 4427.03
4427.03 4427.03
17
14
17
14
416.69 X Y 515.31
We are 95% confident that the mean difference in
CPU speed is between 416.69 and 515.31 Mhz.
x2 and y2 Unknown,
Assumed Unequal
Assumptions:
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
x2 and y2 Unknown,
Assumed Unequal
(continued)
Population means,
independent
samples
x2 and y2 known
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
s 2x
s 2y
( ) ( )
n y
n x
2
s 2y
s
/(n y 1)
/(n x 1)
n
y
nx
2
x
Confidence Interval,
x2 and y2 Unknown, Unequal
x2 and y2 unknown
x2 and y2
assumed equal
x2 and y2
assumed unequal
(x y) t ,/2
2
2
s 2x s y
s2x s y
X Y (x y) t ,/2
nx ny
nx ny
Where
s 2x
s 2y
( ) ( )
n y
n x
2
s2
s 2x
/(n x 1) y /(n y 1)
n
nx
y
p x p y
Population
proportions
(p x p y ) (p x p y )
p x (1 p x ) p y (1 p y )
nx
ny
(p x p y ) Z / 2
p x (1 p x ) p y (1 p y )
nx
ny
Example:
Two Population Proportions
Form a 90% confidence interval for the
difference between the proportion of
men and the proportion of women who
have college degrees.
Example:
Two Population Proportions
(continued)
26
Men: p x
0.52
50
28
0.70
Women: p y
40
p x (1 p x ) p y (1 p y )
0.52(0.48) 0.70(0.30)
0.1012
nx
ny
50
40
Example:
Two Population Proportions
(continued)
p x (1 p x ) p y (1 p y )
nx
ny
Population
Variance
2
n 1
(n 1)s
P( n21 n21, )
Population
Variance
(n 1)s
(n 1)s
2
2
2
n1, /2
n1, 1 - /2
2
Example
You are testing the speed of a computer processor. You
collect the following data (in Mhz):
Sample size
Sample mean
Sample std dev
CPUx
17
3004
74
probability
/2 = .025
probability
/2 = .025
216 = 6.91
216 = 28.85
216
1)s
2
2
2
n1, /2
n1, 1 - /2
2
(17 1)(74)2
(17
1)(74)
2
28.85
6.91
3037 2 12683
Converting to standard deviation, we are 95%
confident that the population standard deviation of
CPU speed is between 55.1 and 112.6 Mhz
Input
Output
For the
Proportion
Margin of Error
x z /2
Margin of Error
(sampling error)
ME z /2
Determining
Sample Size
For the
Mean
ME z /2
Now solve
for n to get
2
/2
z
n
2
ME
z
(1.645) (45)
n
219.19
2
2
ME
5
So the required sample size is n = 220
(Always round up)
For the
Proportion
p z /2
p (1 p )
n
ME z /2
p (1 p )
n
Margin of Error
(sampling error)
Determining
Sample Size
For the
Proportion
ME z /2
p (1 p )
n
p (1 p ) cannot
be larger than
0.25, when p =
0.5
Substitute
0.25 for p (1 p )
and solve for
n to get
0.25 z
n
2
ME
2
/2
Solution:
For 95% confidence, use z0.025 = 1.96
ME = 0.03
Estimate P(1 P) = 0.25
0.25 z
n
2
ME
2
/2
(0.25)(1.96)
1067.11
2
(0.03)
So use n = 1068
Chapter Summary