The sample proportion of successes
ˆp=xn=number of successessample size
is a point estimate of the population proportion p.
The 100(1−α)% confidence interval for the population proportion p is given by
ˆp±Zα/2√ˆp⋅ˆqn
where ˆp is the sample proportion of successes ˆq=1−ˆp, n is the sample size, and Zα/2 depends on the confidence level. The Z interval for p may be constructed only if both the following conditions apply: n⋅ˆp≥5 and n⋅ˆq≥5 (alternatively, x≥5 and n−x≥5).
Note that the confidence interval for p takes on the form
point estimate±margin of error
where ˆp is the point estimate of p and E=Zα/2√ˆp⋅ˆq/n is the margin of error.
Suppose we want to estimate the population proportion p to within a margin of error E with confidence 100(1−α)%. If ˆp is known, then the required sample size needed is given by
n=ˆp⋅ˆq(Zα/2E)2
If ˆp is not known, then the required sample size needed is given by
n=[0.5⋅Zα/2E]2