# 8.4: A Confidence Interval for A Population Proportion

- Last updated

- Save as PDF

- Page ID
- 14688

During an election year, we see articles in the newspaper that state **confidence intervals** in terms of proportions or percentages. For example, a poll for a particular candidate running for president might show that the candidate has 40% of the vote within three percentage points (if the sample is large enough). Often, election polls are calculated with 95% confidence, so, the pollsters would be 95% confident that the true proportion of voters who favored the candidate would be between 0.37 and 0.43.

Investors in the stock market are interested in the true proportion of stocks that go up and down each week. Businesses that sell personal computers are interested in the proportion of households in the United States that own personal computers. Confidence intervals can be calculated for the true proportion of stocks that go up or down each week and for the true proportion of households in the United States that own personal computers.

The procedure to find the confidence interval for a population proportion is similar to that for the population mean, but the formulas are a bit different although conceptually identical. While the formulas are different, they are based upon the same mathematical foundation given to us by the Central Limit Theorem. Because of this we will see the same basic format using the same three pieces of information: the sample value of the parameter in question, the standard deviation of the relevant sampling distribution, and the number of standard deviations we need to have the confidence in our estimate that we desire.

**How do you know you are dealing with a proportion problem?** First, the underlying **distribution has a binary random variable and therefore is a** **binomial distribution**. (There is no mention of a mean or average.) If \(X\) is a binomial random variable, then \(X \sim B(n, p)\) where \(n\) is the number of trials and \(p\) is the probability of a success. To form a sample proportion, take \(X\), the random variable for the number of successes and divide it by \(n\), the number of trials (or the sample size). The random variable \(P^{\prime}\) (read "P prime") is the sample proportion,

\[P^{\prime}=\frac{X}{n} \nonumber\]

(Sometimes the random variable is denoted as \(\hat{P}\), read "P hat".)

- \(P^{\prime}\) = the
**estimated proportion**of successes or sample proportion of successes (\(P^{\prime}\) is a**point estimate**for \(p\), the true population proportion, and thus \(q\) is the probability of a failure in any one trial.) - \(x\) = the
**number**of successes in the sample - \(n\) = the size of the sample

The formula for the confidence interval for a population proportion follows the same format as that for an estimate of a population mean. Remembering the sampling distribution for the proportion from Chapter 7, the standard deviation was found to be:

\[\sigma_{\mathrm{p}^{\prime}}=\sqrt{\frac{p(1-p)}{n}}\nonumber\]

The confidence interval for a population proportion, therefore, becomes:

\[p=p^{\prime} \pm\left[Z_{\left(\frac{a}{2}\right)} \sqrt{\frac{p^{\prime}\left(1-p^{\prime}\right)}{n}}\right]\nonumber\]

\(Z_{\left(\frac{a}{2}\right)}\) is set according to our desired degree of confidence and \(\sqrt{\frac{p^{\prime}\left(1-p^{\prime}\right)}{n}}\) is the standard deviation of the sampling distribution.

The **sample proportions **\(\bf{p^{\prime}}\)** and **\(\bf{q^{\prime}}\)** are estimates of the unknown population proportions **\(\bf{p}\)** and **\(\bf{q}\). The estimated proportions \(p^{\prime}\) and \(q^{\prime}\) are used because \(p\) and \(q\) are not known.

Remember that as \(p\) moves further from 0.5 the binomial distribution becomes less symmetrical. Because we are estimating the binomial with the symmetrical normal distribution the further away from symmetrical the binomial becomes the less confidence we have in the estimate.

This conclusion can be demonstrated through the following analysis. Proportions are based upon the binomial probability distribution. The possible outcomes are binary, either “success” or “failure”. This gives rise to a proportion, meaning the percentage of the outcomes that are “successes”. It was shown that the binomial distribution could be fully understood if we knew only the probability of a success in any one trial, called \(p\). The mean and the standard deviation of the binomial were found to be:

\[\mu=\mathrm{np}\nonumber\]

\[\sigma=\sqrt{npq}\nonumber\]

It was also shown that the binomial could be estimated by the normal distribution if BOTH \(np\) AND \(nq\) were greater than 5. From the discussion above, it was found that the standardizing formula for the binomial distribution is:

\[Z=\frac{\mathrm{p}^{\prime}-p}{\sqrt{\left(\frac{p q}{n}\right)}}\nonumber\]

which is nothing more than a restatement of the general standardizing formula with appropriate substitutions for \(\mu\) and \(\sigma\) from the binomial. We can use the standard normal distribution, the reason \(Z\) is in the equation, because the normal distribution is the limiting distribution of the binomial. This is another example of the Central Limit Theorem. We have already seen that the sampling distribution of means is normally distributed. Recall the extended discussion in Chapter 7 concerning the sampling distribution of proportions and the conclusions of the Central Limit Theorem.

We can now manipulate this formula in just the same way we did for finding the confidence intervals for a mean, but to find the confidence interval for the binomial population parameter, \(p\).

\[\mathrm{p}^{\prime}-Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}} \leq p \leq \mathrm{p}^{\prime}+Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}}\nonumber\]

Where \(p^{\prime} = x/n\), the point estimate of \(p\) taken from the sample. Notice that \(p^{\prime}\) has replaced \(p\) in the formula. This is because we do not know \(p\), indeed, this is just what we are trying to estimate.

Unfortunately, there is no correction factor for cases where the sample size is small so \(np^{\prime}\) and \(nq^{\prime}\) must always be greater than 5 to develop an interval estimate for \(p\).

##### Example \(\PageIndex{1}\)

Suppose that a market research firm is hired to estimate the percent of adults living in a large city who have cell phones. Five hundred randomly selected adult residents in this city are surveyed to determine whether they have cell phones. Of the 500 people sampled, 421 responded yes - they own cell phones. Using a 95% confidence level, compute a confidence interval estimate for the true proportion of adult residents of this city who have cell phones.

**Answer**- The solution step-by-step.
Let \(X\) = the number of people in the sample who have cell phones. \(X\) is binomial: the random variable is binary, people either have a cell phone or they do not.

To calculate the confidence interval, we must find \(p^{\prime}, q^{\prime}\).

\(n = 500\)

\(x=\text { the number of successes in the sample }=421\)

\(p^{\prime}=\frac{x}{n}=\frac{421}{500}=0.842\)

\(p^{\prime}=0.842\) is the sample proportion; this is the point estimate of the population proportion.

\(q^{\prime}=1-p^{\prime}=1-0.842=0.158\)

Since the requested confidence level is \(CL = 0.95\), then \(\alpha=1-C L=1-0.95=0.05\left(\frac{\alpha}{2}\right)=0.025\).

Then \(z_{\frac{\alpha}{2}}=z_{0.025}=1.96\)

This can be found using the Standard Normal probability table in Table \(\PageIndex{6}\). This can also be found in the students t table at the 0.025 column and infinity degrees of freedom because at infinite degrees of freedom the students t distribution becomes the standard normal distribution, \(Z\).

The confidence interval for the true binomial population proportion is

\[\mathrm{p}^{\prime}-Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}} \leq p \leq \mathrm{p}^{\prime}+Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}}\nonumber\]

\(\text{Substituting in the values from above we find the confidence interval is : } 0.810 \leq p \leq 0.874\)

**Interpretation**We estimate with 95% confidence that between 81% and 87.4% of all adult residents of this city have cell phones.

**Explanation of 95% Confidence****Level**Ninety-five percent of the confidence intervals constructed in this way would contain the true value for the population proportion of all adult residents of this city who have cell phones.

##### Exercise \(\PageIndex{1}\)

Suppose 250 randomly selected people are surveyed to determine if they own a tablet. Of the 250 surveyed, 98 reported owning a tablet. Using a 95% confidence level, compute a confidence interval estimate for the true proportion of people who own tablets.

##### Example \(\PageIndex{2}\)

The Dundee Dog Training School has a larger than average proportion of clients who compete in competitive professional events. A confidence interval for the population proportion of dogs that compete in professional events from 150 different training schools is constructed. The lower limit is determined to be 0.08 and the upper limit is determined to be 0.16. Determine the level of confidence used to construct the interval of the population proportion of dogs that compete in professional events.

**Answer**-
We begin with the formula for a confidence interval for a proportion because the random variable is binary; either the client competes in professional competitive dog events or they don't.

\[p=p^{\prime} \pm\left[Z_{\left(\frac{a}{2}\right)} \sqrt{\frac{p^{\prime}\left(1-p^{\prime}\right)}{n}}\right]\nonumber\]

Next we find the sample proportion:

\[p^{\prime}=\frac{0.08+0.16}{2}=0.12\nonumber\]

The \(\pm\) that makes up the confidence interval is thus \(0.04; 0.12 + 0.04 = 0.16\) and \(0.12 − 0.04 = 0.08\), the boundaries of the confidence interval. Finally, we solve for \(Z\).

\(\left[Z \cdot \sqrt{\frac{0.12(1-0.12)}{150}}\right]=0.04, \textbf { therefore } \bf{z=1.51}\)

And then look up the probability for 1.51 standard deviations on the standard normal table.

\(p(Z=1.51)=0.4345, p(Z) \cdot 2=0.8690 \textbf { or } 86.90 \%\).

##### Example \(\PageIndex{3}\)

A financial officer for a company wants to estimate the percent of accounts receivable that are more than 30 days overdue. He surveys 500 accounts and finds that 300 are more than 30 days overdue. Compute a 90% confidence interval for the true percent of accounts receivable that are more than 30 days overdue, and interpret the confidence interval.

**Answer**- The solution is step-by-step:
Ninety percent of all confidence intervals constructed in this way contain the true value for the population percent of accounts receivable that are overdue 30 days.

**Explanation of 90% Confidence****Level**\(x = 300\) and \(n = 500\)

\(p^{\prime}=\frac{x}{n}=\frac{300}{500}=0.600\)

\(q^{\prime}=1-p^{\prime}=1-0.600=0.400\)

Since confidence level = \(0.90\), then \(a=1-\text { confidence level }=(1-0.90)=0.10\left(\frac{\alpha}{2}\right)=0.05\)

\(Z_{\frac{\alpha}{2}}=Z_{0.05}=1.645\)

This Z-value can be found using a standard normal probability table. The student's t-table can also be used by entering the table at the 0.05 column and reading at the line for infinite degrees of freedom. The t-distribution is the normal distribution at infinite degrees of freedom. This is a handy trick to remember in finding Z-values for commonly used levels of confidence. We use this formula for a confidence interval for a proportion:

\[\mathrm{p}^{\prime}-Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}} \leq p \leq \mathrm{p}^{\prime}+Z_{\alpha} \sqrt{\frac{\mathrm{p}^{\prime} \mathrm{q}^{\prime}}{n}}\nonumber\]

Substituting in the values from above we find the confidence interval for the true binomial population proportion is \(0.564 \leq p \leq 0.636\)

We estimate with 90% confidence that the true percent of all accounts receivable overdue 30 days is between 56.4% and 63.6%. Alternate Wording: We estimate with 90% confidence that between 56.4% and 63.6% of ALL accounts are overdue 30 days.**Interpretation**

##### Exercise \(\PageIndex{2}\)

A student polls his school to see if students in the school district are for or against the new legislation regarding school uniforms. She surveys 600 students and finds that 480 are against the new legislation.

- Compute a 90% confidence interval for the true percent of students who are against the new legislation, and interpret the confidence interval.
- In a sample of 300 students, 68% said they own an iPod and a smart phone. Compute a 97% confidence interval for the true percent of students who own an iPod and a smartphone.