Loading…

Determining the Sample Size for the Estimation of Proportion

Statistics • Estimation of the Mean and Proportion

View all topics

Determining the Sample Size for the Estimation of a Proportion

Choose a confidence level and a desired margin of error \(E\), then compute the required sample size \(n\) for estimating a population proportion \(p\). The final answer is always rounded up to the next whole number.

\[ \begin{aligned} n &= \frac{(z^{*})^{2}\cdot \hat{p}\cdot \hat{q}}{E^{2}}, \qquad \hat{q}=1-\hat{p} \end{aligned} \]

Accepted: \(95\) or \(0.95\). Two-sided \(z^{*}\) is used.

Example: \(E=0.02\) means "within 0.02 of \(p\)" (about 2 percentage points).

How will you choose \(\hat{p}\)?

Conservative \(\hat{p}=0.50\) produces the largest required \(n\) (safest if \(p\) is unknown).

Supported method values: conservative, prelim, guess.

Ready

Visualization

The curve shows the standard normal distribution. The shaded tails represent \(\alpha/2\) on each side, and the vertical lines mark \(\pm z^{*}\).

This plot shows how \(n\) increases as \(E\) decreases (with your chosen confidence level and \(\hat{p}\)).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How do you determine the sample size needed to estimate a population proportion?

Use n = (z*)^2 x p-hat x (1 - p-hat) / E^2, where z* comes from the confidence level and E is the desired margin of error. The computed n is rounded up to ensure the margin of error requirement is met.

Why does using p-hat = 0.50 give the largest required sample size?

The product p-hat x (1 - p-hat) is largest at 0.50 x 0.50 = 0.25, which maximizes n. This is the safest choice when you do not have a good estimate of p.

What is the difference between entering E as a proportion versus percent?

Entering E as a proportion uses values from 0 to 1 (for example 0.02). Entering E as percent uses values from 0 to 100 (for example 2), representing the same margin of error in percentage points.

How do I use a preliminary (pilot) sample to choose p-hat?

Enter the number of successes x0 and the preliminary sample size n0, then the calculator sets p-hat = x0/n0 and q-hat = 1 - p-hat. That value is used in the sample size formula.

Why do sample size formulas always round up?

Sample size must be an integer, and rounding down could produce a margin of error larger than the target E. Rounding up guarantees the planned precision is not worse than requested.