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})}$$

- $e$ is the margin of error
- $N$ is the population size.

I have the following questions:

  1. What does $p$ represents?
  2. Why is the variance of a Bernoulli distribution (i.e. $p(1-p)$) used here?
  3. Let's say

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?)


This sample size calculator seems to assume you're trying to determine the proportion of units in your population has a particular characteristic.

  1. $p$ represents the proportion in the population that has the characteristic you're studying. The calculator probably assumes $p=0.5$ since this gives the most conservative (largest) sample size.

  2. The variance of a Bernoulli random variable is used because each unit in the population is either has the characteristic you're studying or doesn't. If you're not just calculating proportions - for example if you're trying to estimate average height, then you replace the $p(1-p)$ with an estimate of the variance of the characteristic you're collecting (e.g. do some initial research to estimate the variance of heights in your population).

  3. That result is saying that if you repeated the survey many times, then 95% of the time, the proportion of units in your survey that have that particular characteristic will be within about 3% of the true proportion in the population.

  • $\begingroup$ Hi @RoryT, thanks a lot for the answer! In a survey, a list of questions are usually asked. How should I interpret the result if I want to explain an individual survey question? For example, "What's your favourite color?", "red, yellow, blue or green". Let's say 60% people answered "yellow". If I survey enough people according to the calculator, I can say about 60% of the population I am interested in like "yellow"? $\endgroup$
    – Cheng
    Jul 17 '17 at 11:16
  • 1
    $\begingroup$ Yes, you can say that the sample mean is pretty close to the population mean. How you say that is quite precise though, which is why I put it in that strange way in point 3. $\endgroup$
    – RoryT
    Jul 17 '17 at 23:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.