Professional Documents
Culture Documents
Week 10 Inference For Proportions
Week 10 Inference For Proportions
Week 10 Inference For Proportions
population proportions
Chap 7-1
Population Proportions (7.3)
π = the proportion of the population having
some characteristic
Sample proportion (p) is an estimate of π:
X number of items in the sample having the characteristic of interest
p
n sample size
0≤ p≤1
p has an approximately normal distribution when n is
large
The distribution of X is … … ?
Chap 7-2
Population Proportions
π = the proportion of the population having
some characteristic
Sample proportion (p) is an estimate of π:
X number of items in the sample having the characteristic of interest
p
n sample size
0≤ p≤1
p has an approximately normal distribution when n is
large
X is Binomial (n, π)
Chap 7-3
Population Proportions
X is Binomial (n, π)
E(X) = n π, Var (X) = n π(1- π)
X
p
n
E(p) = E(X/n) = E(X)/n = π (it is unbiased)
Var(p) = Var(X/n) = Var(X)/n2 = π(1- π)/n
Chap 7-4
Sampling Distribution of p
Approximated by a
Sampling Distribution
normal distribution if: P( ps)
.3
nπ 5 .2
.1
and 0
0 .2 .4 .6 8 1 p
n(1 π ) 5
where π(1 π )
μp π σp
n
(where π = population proportion and p = sample proportion)
Chap 7-5
Z-Value for Proportions
Standardize p to a Z value with the formula:
p p
Z
σp (1 )
n
Chap 7-6
Example
Chap 7-7
Example
(continued)
if π = 0.4 and n = 200, what is
P(0.40 ≤ p ≤ 0.45) ?
Chap 7-8
Example
(continued)
if π = 0.4 and n = 200, what is
P(0.40 ≤ p ≤ 0.45) ?
Utilize the cumulative normal table:
P(0 ≤ Z ≤ 1.44) = 0.9251 – 0.5000 = 0.4251
Standardized
Sampling Distribution Normal Distribution
0.4251
Standardize
Textbook, # 7.12
Chap 7-10
Confidence Intervals for the
Population Proportion (8.3)
General formula –
Estimate = p
Standard error (1 )
σp
n
… but it is unknown!
Chap 8-11
Confidence Intervals for the
Population Proportion, π
(continued)
The true standard deviation is
(1 )
σp
n
We will estimate this from the sampled data by
p(1 p)
n
Chap 8-12
Confidence Interval Endpoints
The confidence interval for the population
proportion is calculated by the formula
p(1 p)
p Z α/2
n
where
Zα/2 is the standard normal value for the level of confidence desired
p is the sample proportion
n is the sample size
Chap 8-13
Example
Chap 8-14
Example
(continued)
A random sample of 100 people shows
that 25 are left-handed. Form a 95%
confidence interval for the true proportion
of left-handers.
Chap 8-15
Interpretation
Chap 8-16
Example
Textbook, #8.28
Chap 8-17
Determining Sample Size (8.4)
(continued)
Determining
Sample Size
For the
Proportion
Now solve Z2
π (1 π )
for n to get n /2
2
e
Chap 8-18
Determining Sample Size
(continued)
Chap 8-19
Required Sample Size Example
Chap 8-20
Required Sample Size Example
(continued)
Solution:
For 95% confidence, use Zα/2 = 1.96
e = 0.03
p = 0.12, so use this to estimate π
Z2
π (1 π ) (1.96) (0.12)(1 0.12)
2
n /2
2
2
450.74
e (0.03)
So use n = 451
Chap 8-21
Hypothesis Tests for Proportions (9.4)
The sampling
distribution of p is
Hypothesis
approximately normal,
so the test statistic is a Tests for p
ZSTAT value:
nπ 5 nπ < 5
and or
pπ
ZSTAT n(1-π) 5 n(1-π) < 5
π (1 π )
Not discussed
n in this chapter
.
Chap 9-22
Example: Z Test for Proportion
A marketing company
claims that it receives
8% responses from its
mailing. To test this
claim, a random sample
of 500 were surveyed
Check:
with 25 responses. Test
at the = 0.05 n π = (500)(.08) = 40
significance level. n(1-π) = (500)(.92) = 460
.
Chap 9-23
Z Test for Proportion: Solution
Test Statistic:
H0: π = 0.08
p π .05 .08
H1: π ZSTAT 2.47
π (1 π ) .08(1 .08)
0.08
= 0.05
n 500
n = 500, p = 0.05
Critical Values: ± 1.96 Decision:
Reject Reject Reject H0 at = 0.05
Conclusion:
.025 .025
There is sufficient
-1.96 0 1.96 z evidence to reject the
-2.47 company’s claim of 8%
response rate.
. Chap 9-24
p-Value Solution
(continued)
Calculate the p-value and compare to
(For a two-tail test the p-value is always two-tail)
Do not reject H0
Reject H0 Reject H0 p-value = 0.0136:
/2 = .025 /2 = .025
P(Z 2.47) P(Z 2.47)
0.0068 0.0068
2(0.0068) 0.0136
-1.96 0 1.96
Z = -2.47 Z = 2.47
.
Chap 9-26
Two Population Proportions (10.3)
Chap 10-28
Two Population Proportions
X1 X 2
p
n1 n2
where X1 and X2 are the number of items of
interest in samples 1 and 2
Chap 10-29
Two Population Proportions
(continued)
ZSTAT
p1 p 2 π1 π 2
1 1
p (1 p)
n1 n 2
X1 X 2 X X
where p , p1 1 , p 2 2
n1 n2 n1 n2
Chap 10-30
Hypothesis Tests for
Two Population Proportions
Population proportions
Chap 10-31
Hypothesis Tests for
Two Population Proportions
(continued)
Population proportions
Lower-tail test: Upper-tail test: Two-tail test:
H0: π1 – π2 0 H0: π1 – π2 ≤ 0 H0: π1 – π2 = 0
H1: π1 – π2 < 0 H1: π1 – π2 > 0 H1: π1 – π2 ≠ 0
/2 /2
Chap 10-32
Hypothesis Test Example:
Two population proportions
Is there a significant difference between the
proportion of men and the proportion of
women who will vote Yes on Proposition A?
Chap 10-33
Hypothesis Test Example:
Two population Proportions
(continued)
.50 .70 0 2.20
1 1 Decision: Reject H0
.582 (1 .582)
72 50
Conclusion: There is
significant evidence of a
Critical Values = ±1.96
For = .05 difference in proportions
who will vote yes between
men and women.
Chap 10-35
Confidence Interval for
Two Population Proportions
p1 (1 p1 ) p 2 (1 p 2 )
p1 p 2 Z/2
n1 n2
Chap 10-36
Summary
Testing proportions
Chap 7-37