Professional Documents
Culture Documents
Chapter7 2
Chapter7 2
Confidence
Intervals
σ2 Known σ2 Unknown
Where the chi-square value χ n−1, α denotes the number for which
2
Source: Wikipedia
Sample size 17
Sample mean 3004
Sample std dev 74
2
χ n2−1, 1 - α/2 = χ16 , 0.975 = 6.91
probability probability
α/2 = .025 α/2 = .025
χ216
χ216 = 6.91 χ216 = 28.85
Copyright © 2013 Pearson Education Ch. 7-52
Calculating the Confidence Limits
The 95% confidence interval is
(n − 1)s2 2 (n − 1)s 2
2
< σ < 2
χ n−1, α/2 χ n−1, 1 - α/2
Nx ± t n-1,α/2Nσˆ x
pˆ ± z α/2σ
ˆ pˆ
Copyright © 2013 Pearson Education Ch. 7-63
Sample-Size Determination
Determining
Sample Size
For the
Mean
(Known population
variance)
Margin of Error
(sampling error)
σ σ
x ± z α/2 ME = z α/2
n n
Copyright © 2013 Pearson Education Ch. 7-65
Sample-Size Determination:
Large Populations
(continued)
Large
Populations
For the
Mean
(Known population
variance)
2 2
σ Now solve z σ
ME = z α/2
n for n to get n= α/2
2
ME
2 2 2 2
z σ (1.645) (45)
n= 2
= α/2
2
= 219.19
ME 5
For the
Proportion
pˆ (1− pˆ ) pˆ (1− pˆ )
pˆ ± z α/2 ME = z α/2
n n
Margin of Error
(sampling error)
Copyright © 2013 Pearson Education Ch. 7-69
Sample Size Determination:
Population Proportion
(continued)
Large
Populations
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
Copyright © 2013 Pearson Education Ch. 7-70
Sample Size Determination:
Population Proportion
(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
Copyright © 2013 Pearson Education Ch. 7-71
Required Sample Size Example:
Population Proportion
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
Finite
Populations 1. Calculate the required
sample size n0 using the
For the prior formula:
Mean z 2α/2 σ 2
n0 =
ME2
A finite population
2. Then adjust for the finite
correction factor is added: population:
n0N
Var(X) =
σ N−n
2
n=
n N −1 n0 + (N - 1)
ˆ P(1- P) N − n
Var(p) = 3. A 95% confidence interval
n N −1
will extend ±1.96 σ pˆ from
the sample proportion
Copyright © 2013 Pearson Education Ch. 7-76
Example: Sample Size to
Estimate Population Proportion
Solution:
For 95% confidence, use z0.025 = 1.96
ME = 0.05
1.96 σ pˆ = 0.05 ⇒ σ pˆ = 0.02551
0.25N (0.25)(850)
nmax = 2
= 2
= 264.8
(N − 1)σ pˆ + 0.25 (849)(0.02551) + 0.25
So use n = 265