How to find a confidence interval for a population proportion
If we want to know what fraction of a population has a certain trait, it usually makes sense to start with a sample. The sample gives us an estimate, and a confidence interval tells us how much room to leave on either side. Let’s work through that calculation with a sample of sea turtles.
Find the sample proportion and standard error
Let be the population proportion. If out of observations have the trait we’re looking for, then the sample proportion is . For independent observations, the sampling standard deviation of uses the unknown . We estimate it by substituting , which gives the estimated standard error.
The one-proportion interval is the sample proportion plus or minus a margin of error. The critical value depends on the confidence level.
Use a random sample and check that it has at least 10 successes and 10 failures for the normal approximation. When sampling without replacement, the usual independence approximation uses at most 10% of the population size . For a simple random sample without replacement, we can account for the finite population by multiplying the standard error by
Find a 90% confidence interval
A bay off Maui has 500 sea turtles. In a random sample of 50 turtles, 20 are male. We have 20 successes and 30 failures, so the counts are large enough. The sample is 10% of the population, so we can use the usual approximation. Our sample proportion is .
A 90% interval leaves 5% in each tail of the standard normal distribution. The positive critical value has 95% of the area to its left, so .
If we apply the finite population correction for the 500 turtles, the multiplier is , and the interval is approximately . For either method, the confidence level describes how often intervals made the same way would contain the true proportion over many repeated samples.
Choose a sample size for a target margin of error
Let be the largest margin of error we want, and let be a planning estimate for the proportion. For independent sampling or a large population, solve the margin of error inequality for .
If we don’t have a planning estimate, use . That makes as large as possible, so the resulting sample size covers the largest margin of error for this formula. Round the required sample size up.
At 90% confidence with , the bound is
The large-population calculation therefore gives 423. For sampling without replacement from the 500 turtles, we can include the correction in the planning calculation. If is the unrounded large-population result, the adjusted requirement is
For the 500 turtles, this gives approximately, so 230 turtles meet the target with the correction. For a separate large-population example at 99% confidence, using and the same gives a bound of 1,036.84, so we need 1,037 observations.