I am looking at the formula on this page, it says the formula for estimating the sample size of a survey is:
$$Sample\;size = \frac{\frac{z^2 \;\times \;p(1-p)}{e^2}}{1 + (\frac{z^2 \; \times \; p(1-p)}{e^2N})}$$
where
- $e$ is the margin of error
- $N$ is the population size.
I have the following questions:
- What does $p$ represents?
- Why is the variance of a Bernoulli distribution (i.e. $p(1-p)$) used here?
- Let's say
- N= 10,000
- e=3%
- confidence interval = 95%
- based on the numbers above, the sample size is 965
How would you interpret the result? I am 95% confident that by surveying 965 people, it will be enough to present the entire population? (what about the margin of error?)