## Sample size required to estimate proportion

The formula to estimate the sample size required to estimate the proportion is

$$ n =p*(1-p)\bigg(\frac{z}{E}\bigg)^2 $$

where,

$p$ is the proportion of success,

$z$ is the $Z_{\alpha/2}$ (critical value of $Z$),

$E$ is the margin of error.