Equation Gallery
Semester 2, 2021
Lion Rock

Confidence interval for a proportion
The sample proportion is a random variable. This equation shows us how we can use this random quantity to estimate a population proportion.
For large enough sample sizes, the Central Limit Theorem tells us that the variability of the sample proportion is approximately Normal. This in turn tells us that, for example, 95% of the time it will have a value that is within about 2 standard deviations of its mean (1.96, to be exact).
Now the mean of the sample proportion is the population proportion. So we can be 95% confident that the sample proportion is within 1.96 standard deviations of the population proportion, or equivalently that the population proportion is within 1.96 standard deviations of the sample proportion. This gives us a confidence interval for the unknown population proportion.
Unfortunately, without the population proportion we cannot calculate the standard deviation of the sample proportion and so must estimate it using the standard error instead.
If we wanted a confidence level other than 95% then we look up the tables to find out how many standard errors we need to go. For example, in the Normal distribution 90% of values fall within 1.645 standard deviations of the mean. Here are some others:
| Confidence | 80% | 90% | 95% | 99% | 99.9% |
| z | 1.282 | 1.645 | 1.960 | 2.576 | 3.291 |
Suppose we find that 34 out of a sample of 100 UQ students had tried marijuana. We would be 90% confident that the proportion of all UQ students who had tried marijuana is between 26.2% and 41.8%.
We can use similar reasoning to test a hypothesised value for the population proportion.