Chap 09
Chap 09
Chapter 9
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-1
Chapter Goals
After completing this chapter, you should be able to:
Form confidence intervals for the mean difference from dependent
samples
Form confidence intervals for the difference between two
independent population means (standard deviations known or
unknown)
Compute confidence interval limits for the difference between two
independent population proportions
Create confidence intervals for a population variance
Find chi-square values from the chi-square distribution table
Determine the required sample size to estimate a mean or
proportion within a specified margin of error
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-2
Estimation: Additional Topics
Chapter Topics
Population Population
Means, Means, Population Population
Dependent Independent Proportions Variance
Samples Samples
Examples:
Same group Group 1 vs. Proportion 1 vs. Variance of a
before vs. after independent Proportion 2 normal distribution
treatment Group 2
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-3
Dependent Samples
Tests Means of 2 Related Populations
Dependent Paired or matched samples
samples Repeated measures (before/after)
Use difference between paired values:
di = xi - yi
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-4
Mean Difference
The ith paired difference is di , where
Dependent
samples
di = x i - y i
n
The point estimate for
the population mean d i
paired difference is d : d i 1
n
n
The sample
standard i
(d d) 2
Sd Sd
d t n1,α/2 μd d t n1,α/2
n n
Where
n = the sample size
(number of matched pairs in the paired sample)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-6
Confidence Interval for
Mean Difference
(continued)
Dependent
The margin of error is
samples
sd
ME t n1,α/2
n
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-7
Paired Samples Example
Six people sign up for a weight loss program. You
collect the following data:
Weight: di
Person Before (x) After (y) Difference, di d = n
1 136 125 11 = 7.0
2 205 195 10
3 157 150 7
4 138 140 -2
Sd
i
(d d) 2
5 175 165 10 n 1
6 166 160 6
42 4.82
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-8
Paired Samples Example
(continued)
Since this interval contains zero, we cannot be 95% confident, given this
limited data, that the weight loss program helps people lose weight
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-9
Difference Between Two Means
Independent
Population means,
independent
samples
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-12
σx2 and σy2 Known
(continued)
Population means,
independent
samples
σ 2X σ 2Y σ 2X σ 2Y
(x y) z α/2 μX μY (x y) z α/2
nx ny nx ny
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-14
σx2 and σy2 Unknown,
Assumed Equal
Population means,
independent
samples
The pooled variance is
σx and σy known
2 2
CPUx CPUy
Number Tested 17 14
Sample mean 3004 2538
Sample std dev 74 56
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-19
Calculating the Pooled Variance
S
2
n x 1S x
2
n y 1S y
2
17 174 2 14 156 2
4427.03
p
(n x 1) (n y 1) (17 - 1) (14 1)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-20
Calculating the Confidence Limits
416.69 μX μY 515.31
Population means,
Forming interval estimates:
independent
The population variances are
samples
assumed unequal, so a pooled
variance is not appropriate
σx2 and σy2 known
use a t value with degrees
σx2 and σy2 unknown of freedom, where
2
s2x s2y
σx2 and σy2 ( ) ( )
assumed equal n x n y
v 2 2
sx
2 s 2
σx2 and σy2
assumed unequal *
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc.
/(nx 1) y /(ny 1)
nx
n
y
Chap 9-23
Confidence Interval,
σx2 and σy2 Unknown, Unequal
Assumptions:
Both sample sizes are large (generally at
least 40 observations in each sample)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-26
Confidence Interval for
Two Population Proportions
pˆ x (1 pˆ x ) pˆ y (1 pˆ y )
(pˆ x pˆ y ) Z / 2
nx ny
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-27
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.
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-28
Example:
Two Population Proportions
(continued)
ˆ 26
Men: p x 0.52
50
ˆ 28
Women: p y 0.70
40
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-29
Example:
Two Population Proportions
(continued)
Since this interval does not contain zero we are 90% confident that the
two proportions are not equal
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-30
Confidence Intervals for the
Population Variance
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-31
Confidence Intervals for the
Population Variance
(continued)
P( χ n21 χ n21, α ) α
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-32
Confidence Intervals for the
Population Variance
(continued)
(n 1)s (n 1)s2 2
2
σ 2
2
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-33
Example
You are testing the speed of a computer processor.
You collect the following data (in Mhz):
CPUx
Sample size 17
Sample mean 3004
Sample std dev 74
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-34
Finding the Chi-square Values
n = 17 so the chi-square distribution has (n – 1) = 16
degrees of freedom
= 0.05, so use the the chi-square values with area
0.025 in each tail:
χ n21, α/2 χ16
2
, 0.025 28.85
probability probability
α/2 = .025 α/2 = .025
216
216 = 6.91 216 = 28.85
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-35
Calculating the Confidence Limits
The 95% confidence interval is
(n 1)s 2 (n 1)s 2
2
σ 2
2
χ n1, α/2 χ n1, 1 - α/2
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-37
Sample PHStat Output
(continued)
Input
Output
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-38
Sample Size Determination
Determining
Sample Size
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-39
Margin of Error
The required sample size can be found to reach a
desired margin of error (ME) with a specified level
of confidence (1 - )
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-40
Sample Size Determination
Determining
Sample Size
For the
Mean Margin of Error
(sampling error)
σ σ
x z α/2 ME z α/2
n n
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-41
Sample Size Determination
(continued)
Determining
Sample Size
For the
Mean
2 2
σ z σ
ME z α/2
n
Now solve
for n to get n α/2
2
ME
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-42
Sample Size Determination
(continued)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-43
Required Sample Size Example
2 2 2 2
z σ (1.645) (45)
n 2
α/2
2
219.19
ME 5
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-44
Sample Size Determination
Determining
Sample Size
For the
Proportion
pˆ (1 pˆ ) pˆ (1 pˆ )
pˆ z α/2 ME z α/2
n n
Margin of Error
(sampling error)
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-45
Sample Size Determination
(continued)
Determining
Sample Size
For the
Proportion
pˆ (1 pˆ )
ME z α/2
n
pˆ (1 pˆ ) cannot Substitute 2
be larger than 0.25 for pˆ (1 pˆ ) 0.25 z
0.25, when p̂ = and solve for n 2
α/2
0.5 n to get
ME
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-46
Sample Size Determination
(continued)
The sample and population proportions, p̂ and P, are
generally not known (since no sample has been taken
yet)
P(1 – P) = 0.25 generates the largest possible margin
of error (so guarantees that the resulting sample size
will meet the desired level of confidence)
To determine the required sample size for the
proportion, you must know:
The desired level of confidence (1 - ), which determines the
critical z/2 value
The acceptable sampling error (margin of error), ME
Estimate P(1 – P) = 0.25
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-47
Required Sample Size Example
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-48
Required Sample Size Example
(continued)
Solution:
For 95% confidence, use z0.025 = 1.96
ME = 0.03
Estimate P(1 – P) = 0.25
2 2
0.25 z (0.25)(1.96)
n 2
α/2
2
1067.11
ME (0.03)
So use n = 1068
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-49
PHStat Sample Size Options
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-50
Chapter Summary
Compared two dependent samples (paired samples)
Formed confidence intervals for the paired difference
Compared two independent samples
Formed confidence intervals for the difference between two
means, population variance known, using z
Formed confidence intervals for the differences between two
means, population variance unknown, using t
Formed confidence intervals for the differences between two
population proportions
Formed confidence intervals for the population variance
using the chi-square distribution
Determined required sample size to meet confidence
and margin of error requirements
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 9-51