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: (0.40 – 0.03,0.40 + 0.03).

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, the sample size, the error bound, and the confidence level for a proportion is similar to that for the population mean, but the formulas are different.

**How do you know you are dealing with a proportion problem?** First, the underlying **distribution is a** binomial distribution. (There is no mention of a mean or average.) If *X* is a binomial random variable, then *X* ~ *B*(*n*, *p*) where *n* is the number of trials and *p* is the probability of a success. To form a 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′* (read "P prime") is that proportion,

${P}^{\prime}=\frac{X}{n}$

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

When *n* is large and *p* is not close to zero or one, we can use the normal distribution to approximate the binomial.

$X~N(np,\sqrt{npq})$

If we divide the random variable, the mean, and the standard
deviation by *n*, we get a normal distribution of proportions with *P′*, called the
estimated proportion, as the random variable. (Recall that a proportion as the
number of successes divided by *n*.)

$\frac{X}{n}={P}^{\prime}\text{~}N\left(\frac{np}{n},\frac{\sqrt{npq}}{n}\right)$

Using algebra to simplify : $\frac{\sqrt{npq}}{n}=\sqrt{\frac{pq}{n}}$

** P′ follows a normal distribution for proportions**:
$\frac{X}{n}={P}^{\prime}\text{~}N\left(\frac{np}{n},\frac{\sqrt{npq}}{n}\right)$

The confidence interval has the form (*p′* – *EBP*, *p′* + *EBP*). *EBP* is error bound for the proportion.

*p′* = $\frac{x}{n}$

*p′* = the **estimated proportion** of successes (*p′* is a **point estimate** for *p*, the true proportion.)

*x* = the **number** of successes

*n* = the size of the sample

**The error bound for a proportion is**

$EBP=\left({z}_{\frac{\alpha}{2}}\right)\left(\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}\right)$ where *q′* = 1 – *p′*

This formula is similar to the error bound formula for a mean, except that the "appropriate standard deviation" is different. For a mean, when the population standard deviation is known, the appropriate standard deviation that we use is $\frac{\sigma}{\sqrt{n}}$. For a proportion, the appropriate standard deviation is $\sqrt{\frac{pq}{n}}$.

However, in the error bound formula, we use $\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}$ as the standard deviation, instead of $\sqrt{\frac{pq}{n}}$.

In the error bound formula, the ** sample proportions p′ and q′ are estimates of the unknown population proportions p and q**. The estimated proportions

*p′*and

*q′*are used because

*p*and

*q*are not known. The sample proportions

*p′*and

*q′*are calculated from the data:

*p′*is the estimated proportion of successes, and

*q′*is the estimated proportion of failures.

The confidence interval can be used only if the number of successes *np′* and the number of failures *nq′* are both greater than five.

## Note

For the normal distribution of proportions, the *z*-score formula is as follows.

If ${P}^{\prime}\text{~}N\left(p,\sqrt{\frac{pq}{n}}\right)$ then the *z*-score formula is $z=\frac{{p}^{\prime}-p}{\sqrt{\frac{pq}{n}}}$

## Example 8.10

### Problem

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 surveyed, 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.

### Solution

- The first solution is step-by-step.
- The second solution uses a function of the TI-83, 83+ or 84 calculators.

Let *X* = the number of people in the sample who have cell phones. *X* is binomial. $X~B\left(500,\frac{421}{500}\right)$.

To calculate the confidence interval, you must find *p′*, *q′*, and *EBP*.

*n* = 500

*x* = the number of successes = 421

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

*p′* = 0.842 is the sample proportion; this is the point estimate of the population proportion.

*q′* = 1 – *p′* = 1 – 0.842 = 0.158

Since *CL* = 0.95, then *α* = 1 – *CL* = 1 – 0.95 = 0.05 $\left(\frac{\alpha}{2}\right)$ = 0.025.

Then ${z}_{\frac{\alpha}{2}}={z}_{0.025}=1.96$

Use the TI-83, 83+, or 84+ calculator command invNorm(0.975,0,1) to find *z _{0.025}*. Remember that the area to the right of

*z*is 0.025 and the area to the left of

_{0.025}*z*is 0.975. This can also be found using appropriate commands on other calculators, using a computer, or using a Standard Normal probability table.

_{0.025}$EBP=\left({z}_{\frac{\alpha}{2}}\right)\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}=(1.96)\sqrt{\frac{(0.842)(0.158)}{500}}=0.032$

$p\text{'}\u2013EBP=0.842\u20130.032=0.81$

${p}^{\prime}+EBP=0.842+0.032=0.874$

The confidence interval for the true binomial population proportion is (*p′* – *EBP*, *p′* + *EBP*) = (0.810, 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.

### Solution

## Using the TI-83, 83+, 84, 84+ Calculator

Press `STAT`

and arrow over to `TESTS`

.

Arrow down to `A:1-PropZint`

. Press `ENTER`

.

Arrow down to $x$ and enter 421.

Arrow down to $n$ and enter 500.

Arrow down to `C-Level`

and enter .95.

Arrow down to `Calculate`

and press `ENTER`

.

The confidence interval is (0.81003, 0.87397).

## Try It 8.10

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 8.11

### Problem

For a class project, a political science student at a large university wants to estimate the percent of students who are registered voters. He surveys 500 students and finds that 300 are registered voters. Compute a 90% confidence interval for the true percent of students who are registered voters, and interpret the confidence interval.

### Solution

- The first solution is step-by-step.
- The second solution uses a function of the TI-83, 83+, or 84 calculators.

*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 *CL* = 0.90, then *α* = 1 – *CL* = 1 – 0.90 = 0.10$\left(\frac{\alpha}{2}\right)$ = 0.05

${z}_{\frac{\alpha}{2}}$ = *z*_{0.05} = 1.645

Use the TI-83, 83+, or 84+ calculator command invNorm(0.95,0,1) to find *z _{0.05}*. Remember that the area to the right of

*z*is 0.05 and the area to the left of

_{0.05}*z*is 0.95. This can also be found using appropriate commands on other calculators, using a computer, or using a standard normal probability table.

_{0.05}$EBP=\left({z}_{\frac{\alpha}{2}}\right)\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}=(1.645)\sqrt{\frac{(0.60)(0.40)}{500}}=0.036$

${p}^{\prime}\u2013EBP=0.60-0.036=0.564$

${p}^{\prime}+EBP=0.60+0.036=0.636$

The confidence interval for the true binomial population proportion is (*p′* – *EBP*, *p′* + *EBP*) = (0.564,0.636).

- Interpretation: We estimate with 90% confidence that the true percent of all students that are registered voters is between 56.4% and 63.6%.
- Alternate Wording: We estimate with 90% confidence that between 56.4% and 63.6% of ALL students are registered voters.

Explanation of 90% Confidence Level: Ninety percent of all confidence intervals constructed in this way contain the true value for the population percent of students that are registered voters.

### Solution

## Using the TI-83, 83+, 84, 84+ Calculator

Press `STAT`

and arrow over to `TESTS`

.

Arrow down to `A:1-PropZint`

. Press `ENTER`

.

Arrow down to $x$ and enter 300.

Arrow down to $n$ and enter 500.

Arrow down to `C-Level`

and enter 0.90.

Arrow down to `Calculate`

and press `ENTER`

.

The confidence interval is (0.564, 0.636).

## Try It 8.11

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.

a. Compute a 90% confidence interval for the true percent of students who are against the new legislation, and interpret the confidence interval.

b. 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.

## “Plus Four” Confidence Interval for *p*

There is a certain amount of error introduced into the process of calculating a confidence interval for a proportion. Because we do not know the true proportion for the population, we are forced to use point estimates to calculate the appropriate standard deviation of the sampling distribution. Studies have shown that the resulting estimation of the standard deviation can be flawed.

Fortunately, there is a simple adjustment that allows us to produce more accurate confidence intervals. We simply pretend that we have four additional observations. Two of these observations are successes and two are failures. The new sample size, then, is *n* + 4, and the new count of successes is *x* + 2.

Computer studies have demonstrated the effectiveness of this method. It should be used when the confidence level desired is at least 90% and the sample size is at least ten.

## Example 8.12

### Problem

A random sample of 25 statistics students was asked: “Have you smoked a cigarette in the past week?” Six students reported smoking within the past week. Use the “plus-four” method to find a 95% confidence interval for the true proportion of statistics students who smoke.

### Solution

Six students out of 25 reported smoking within the past week, so *x* = 6 and *n* = 25. Because we are using the “plus-four” method, we will use *x* = 6 + 2 = 8 and *n* = 25 + 4 = 29.

${p}^{\prime}=\frac{x}{n}=\frac{8}{29}\approx 0.276$

${q}^{\prime}=1\u2013{p}^{\prime}=1\u20130.276=0.724$

Since *CL* = 0.95, we know *α* = 1 – 0.95 = 0.05 and $\frac{\alpha}{2}$ = 0.025.

${z}_{0.025}=1.96$

$EPB=\left({z}_{\frac{\alpha}{2}}\right)\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}=(1.96)\sqrt{\frac{0.276(0.724)}{29}}\approx 0.163$

*p′* – *EPB* = 0.276 – 0.163 = 0.113

*p′* + *EPB* = 0.276 + 0.163 = 0.439

We are 95% confident that the true proportion of all statistics students who smoke cigarettes is between 0.113 and 0.439.

### Solution

## Using the TI-83, 83+, 84, 84+ Calculator

Press STAT and arrow over to TESTS.

Arrow down to A:1-PropZint. Press ENTER.

## Reminder

Remember that the plus-four method assume an additional four trials: two successes and two failures. You do not need to change the process for calculating the confidence interval; simply update the values of x and n to reflect these additional trials.

Arrow down to *x* and enter eight.

Arrow down to *n* and enter 29.

Arrow down to C-Level and enter 0.95.

Arrow down to Calculate and press ENTER.

The confidence interval is (0.113, 0.439).

## Try It 8.12

Out of a random sample of 65 freshmen at State University, 31 students have declared a major. Use the “plus-four” method to find a 96% confidence interval for the true proportion of freshmen at State University who have declared a major.

## Example 8.13

### Problem

The Berkman Center for Internet & Society at Harvard recently conducted a study analyzing the privacy management habits of teen internet users. In a group of 50 teens, 13 reported having more than 500 friends on Facebook. Use the “plus four” method to find a 90% confidence interval for the true proportion of teens who would report having more than 500 Facebook friends.

### Solution

Using “plus-four,” we have *x* = 13 + 2 = 15 and *n* = 50 + 4 = 54.

${p}^{\text{'}}=\frac{15}{54}\approx 0.278$

${q}^{\text{'}}=1\u2013{p}^{\text{'}}=1-0.241=0.722$

Since *CL* = 0.90, we know *α* = 1 – 0.90 = 0.10 and $\frac{\alpha}{2}$ = 0.05.

${z}_{0.05}=1.645$

$EPB=({z}_{\frac{\alpha}{2}})\left(\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}\right)=(1.645)\left(\sqrt{\frac{(0.278)(0.722)}{54}}\right)\approx 0.100$

*p′* – *EPB* = 0.278 – 0.100 = 0.178

*p′* + *EPB* = 0.278 + 0.100 = 0.378

We are 90% confident that between 17.8% and 37.8% of all teens would report having more than 500 friends on Facebook.

### Solution

## Using the TI-83, 83+, 84, 84+ Calculator

Press STAT and arrow over to TESTS.

Arrow down to A:1-PropZint. Press ENTER.

Arrow down to *x* and enter 15.

Arrow down to *n* and enter 54.

Arrow down to C-Level and enter 0.90.

Arrow down to Calculate and press ENTER.

The confidence interval is (0.178, 0.378).

## Try It 8.13

The Berkman Center Study referenced in Example 8.13 talked to teens in smaller focus groups, but also interviewed additional teens over the phone. When the study was complete, 588 teens had answered the question about their Facebook friends with 159 saying that they have more than 500 friends. Use the “plus-four” method to find a 90% confidence interval for the true proportion of teens that would report having more than 500 Facebook friends based on this larger sample. Compare the results to those in Example 8.13.

## Calculating the Sample Size *n*

If researchers desire a specific margin of error, then they can use the error bound formula to calculate the required sample size.

The error bound formula for a population proportion is

- $EBP=\left({z}_{\frac{\alpha}{2}}\right)\left(\sqrt{\frac{{p}^{\prime}{q}^{\prime}}{n}}\right)$
- Solving for
*n*gives you an equation for the sample size. - $n=\frac{{\left({z}_{\frac{\alpha}{2}}\right)}^{2}({p}^{\prime}{q}^{\prime})}{EB{P}^{2}}$

## Example 8.14

### Problem

Suppose a mobile phone company wants to determine the current percentage of customers aged 50+ who use text messaging on their cell phones. How many customers aged 50+ should the company survey in order to be 90% confident that the estimated (sample) proportion is within three percentage points of the true population proportion of customers aged 50+ who use text messaging on their cell phones.

### Solution

From the problem, we know that ** EBP = 0.03** (3%=0.03) and
${z}_{\frac{\alpha}{2}}$

*z*

_{0.05}= 1.645 because the confidence level is 90%.

However, in order to find *n*, we need to know the estimated (sample) proportion *p*′. Remember that *q*′ = 1 – *p*′. But, we do not know *p*′ yet. Since we multiply *p*′ and *q*′ together, we make them both equal to 0.5 because *p*′*q*′ = (0.5)(0.5) = 0.25 results in the largest possible product. (Try other products: (0.6)(0.4) = 0.24; (0.3)(0.7) = 0.21; (0.2)(0.8) = 0.16 and so on). The largest possible product gives us the largest *n*. This gives us a large enough sample so that we can be 90% confident that we are within three percentage points of the true population proportion. To calculate the sample size *n*, use the formula and make the substitutions.

$n=\frac{{z}^{2}{p}^{\prime}{q}^{\prime}}{EB{P}^{2}}$ gives $n=\frac{{1.645}^{2}(0.5)(0.5)}{{0.03}^{2}}=751.7$

Round the answer to the next higher value. The sample size should be 752 cell phone customers aged 50+ in order to be 90% confident that the estimated (sample) proportion is within three percentage points of the true population proportion of all customers aged 50+ who use text messaging on their cell phones.

## Try It 8.14

Suppose an internet marketing company wants to determine the current percentage of customers who click on ads on their smartphones. How many customers should the company survey in order to be 90% confident that the estimated proportion is within five percentage points of the true population proportion of customers who click on ads on their smartphones?