Confidence Interval for p
For large n, a
confidence interval for p is given by

Determining The Sample Size
For
error margin for the estimation of p, we use the
expression
.
The required sample size is obtained by
equating
,
where d is the specified error margin.
![$\displaystyle n=pq\biggl [ \frac{z_{\alpha/2}}{d}\biggl ]^2$](img5.gif)
If the value of p is known to be roughly in the neighborhood of a value p*, then n can be determined from
![$\displaystyle n=p^*(1-p^*)\biggl [\frac{z_{\alpha/2}}{d}\biggl ]^2$](img6.gif)
Without prior knowledge of p, pq can be replaced by its maximum possible value 1/4 and n determined from the relation
![$\displaystyle n=\frac{1}{4}\biggl [\frac{z_{\alpha/2}}{d}\biggl ]^2$](img7.gif)