Wize University Statistics Textbook > Estimating with Confidence Intervals
Margin of Error and Sample Size

Margin of Error and Sample Size
Recall that the margin of error is:
z∗np^q^
Suppose we have a desired margin of error, m. Given the confidence level, we can find the sample size, n⋆, to give us the desired margin of error.
Example
If p^=0.4 and we want a 95% confidence interval with a margin of error of 0.05. What should be our sample size?
Since m=z∗np^q^
we use algebra to isolate n and get
n∗=m2(z∗)2p^q^
z∗=1.96 (for 95% confidence)
Solve:
n∗=(0.05)2(1.96)2(0.4)(1−0.4)
n∗=368.79 ≈369 (rounded up!)
PAGE BREAK
How do we reduce the margin of error?
z∗np^q^
- Increase n; or
- Decrease z⋆ (opt for a lower confidence interval)