Confidence interval for population proportion calculator with steps

Use this calculator to determine a confidence interval for your sample proportion where you are estimating the proportion of your population that possesses a particular property (e.g., they like your product, they own a car, or they can speak a second language).

The estimate is your ‘best guess’ of the unknown proportion and the confidence interval indicates the reliability of this estimate.  The confidence interval provides you with a set of limits in which you expect the population proportion to lie.

Calculator

What is your sample proportion?

%

This is your estimated proportion calculated using a sample of data collected from your population.

What confidence level do you need?

Typical choices are 90%, 95%, or 99%

%

The confidence level indicates the probability that the confidence interval will contain the true population proportion. 

How big is your sample?

This is the size of the sample you have used to calculate your sample proportion.

How big is the population?

How many people are there in the population from which you are sampling? The sample size doesn't change much for populations larger than 100,000.

Your confidence interval is

(3.66 , 6.34)

This is the range of values in which we estimate the population proportion to lie given our level of confidence. 

Alternative Scenarios

With a sample proportion of % % %
Your confidence interval would be

(0.39 , 1.61)

(8.15 , 11.85)

(46.92 , 53.08)

With a confidence level of % % %
Your confidence interval would be

(3.87 , 6.13)

(3.65 , 6.35)

(3.22 , 6.78)

With a sample size of
Your confidence interval would be

(0.73 , 9.27)

(3.01 , 6.91)

(4.57 , 5.43)

With a population size of
Your confidence interval would be

(4.22 , 5.78)

(3.79 , 6.21)

(3.72 , 6.28)

More Information

Worked Example

A retailer has monitored a random sample of 500 customers who have viewed their website on a certain day and recorded the number who purchased an item to be 380.  They then estimate that 76% of all customers that view their website go on to purchase at least one item.  Given that their website has on average 10,000 views per day and they have estimated this proportion from a random sample, the retailer would also like to know how reliable this estimate is?  The 95% confidence interval for this proportion is between 72.35% and 79.65%.  If they had in fact monitored half the number of customers this interval would increase to between 70.77% and 81.23%.

Formula

This calculator uses the following formula for the confidence interval, ci:

ci = p ± Zα/2*√(1/n)*p*(1-p)*FPC,

where:

FPC = (N-n)/(N-1),

Zα/2 is the critical value of the Normal distribution at α/2 (e.g. for a confidence level of 95%, α is 0.05 and the critical value is 1.96), p is the sample proportion, n is the sample size and N is the population size. Note that a Finite Population Correction (FPC) has been applied to the confidence interval formula.

The following reference explains how the FPC is used to adjust a variance estimate when sampling without replacement (see pages 141-142).

Daniel  WW  (1999).  Biostatistics:  A  Foundation for   Analysis   in   the   Health   Sciences.   7th edition. New York: John Wiley & Sons.

Discussion

Calculating a confidence interval provides you with an indication of how reliable your sample proportion is (the wider the interval, the greater the uncertainty associated with your estimate).

By changing the three inputs (the sample proportion, confidence level and sample size) in the Alternative Scenarios, you can see how each input is related to the confidence interval. The larger your sample size, the more certain you can be that the estimate reflects the population, so the narrower the confidence interval. However, the relationship is not linear, e.g., doubling the sample size does not halve the confidence interval.

Definitions

Sample proportion

The sample proportion is your ‘best guess’ for what the true population proportion is given your sample of data.

Confidence level

The confidence level is the probability that the confidence interval contains the true population proportion. If the survey is repeated and the confidence interval calculated each time, you would expect the true value to lie within these intervals on 95% of occasions.  The higher the confidence level the more certain you can be that the interval contains the population proportion.

Sample size

This is the total number of samples randomly drawn from you population.  The larger the sample size, the more certain you can be that the estimate reflects the population.  Choosing a sample size is an important aspect when desiging your study or survey.  For some further information, see our blog post on The Importance and Effect of Sample Size, and for guidance on how to choose your sample size for estimating a population proportion, see our sample size calculator.

Population size

This is the total number of distinct individuals in your population.  In this formula we use a finite population correction to account for sampling from populations that are small.  If your population is large, but you don’t know how large you can conservatively use 100,000.  The sample size doesn’t change much for populations larger than 100,000.

How do you find the confidence interval for a population proportion?

To use the standard error, we replace the unknown parameter p with the statistic p̂. The result is the following formula for a confidence interval for a population proportion: p̂ +/- z* (p̂(1 - p̂)/n)0.5.

What are the 4 steps to confidence interval?

How to Calculate Confidence Intervals.
One-Sided Confidence Intervals vs. ... .
Step #1: Find the number of samples (n). ... .
Step #2: Calculate the mean (x) of the the samples. ... .
Step #3: Calculate the standard deviation (s). ... .
Step #4: Decide the confidence interval that will be used..

What is the 95% confidence interval for the population proportion?

To calculate the confidence interval, we must find p′, q′. p′ = 0.842 is the sample proportion; this is the point estimate of the population proportion. Since the requested confidence level is CL = 0.95, then α = 1 – CL = 1 – 0.95 = 0.05 ( α 2 ) ( α 2 ) = 0.025.

What are the steps to find the confidence interval?

There are four steps to constructing a confidence interval..
Identify a sample statistic. Choose the statistic (e.g, sample mean, sample proportion) that you will use to estimate a population parameter..
Select a confidence level. ... .
Find the margin of error. ... .
Specify the confidence interval..