# 8.2: Testing a Proportion Hypothesis

## Learning Objectives

- Test a hypothesis about a population proportion by applying the binomial distribution approximation.
- Test a hypothesis about a population proportion using the -value.
- Test a hypothesis about a population proportion using confidence intervals.

## Introduction

For most hypotheses that we will study, we use the general formula for calculating the test statistic:

or, the familiar

This formula helps us determine the magnitude of the difference between the observed sample mean and the hypothesized population mean. However, many times in statistics we study or make inferences about **proportions** of a population. For example, when we look at election results we often look at the proportion of people that vote and who this proportion of voters will choose. Typically, we call these proportions **percentages** and we would say something like “Approximately of the population voted in this election and of these voters voted for Barak Obama.”

So how do we test hypotheses about proportions? We use the same process as we did when testing hypotheses about populations but we must include **sample proportions** as part of the analysis. This lesson will address how we investigate hypotheses around population proportions and how to construct confidence intervals around our results.

## Hypothesis Testing about Population Proportions by Applying the Binomial Distribution Approximation

As mentioned, we perform hypothesis tests about population proportions (often called percentages) quite often. We could perform these tests in the following examples:

- What percentage of graduating seniors will attend a year college?
- What proportion of voters will vote for John McCain?
- What percentage of people will choose Diet Pepsi over Diet Coke?

To test questions like these, we make hypotheses about population proportions. For example,

- : of graduating seniors will attend a year college.
- : of voters will vote for John McCain.
- : of people will choose Diet Pepsi over Diet Coke.

While we can use similar methods to test these hypotheses, we do need to take several different factors into account. Because it is impractical to measure every member of the population, we follow a series of steps:

- Hypothesize a value for the population proportion like we did above.
- Randomly select a sample.
- Use the sample proportion to test the stated hypothesis.

Essentially, the sampling distribution of this sample proportion is used the same way that we use the sample mean distribution. So how do we account for the different sampling distribution of ? We use the **binomial distribution** which illustrates situations in which two outcomes are possible (for example, voted for a candidate, didn’t vote for a candidate). However, we should remember that when the sample size is relatively large, we can use the normal distribution to approximate the binomial distribution.

In order to calculate the standard deviation of the sample distribution, we need to calculate something called the **standard error of the proportion** which is defined as:

where:

the hypothesized value of the proportion

proportion *not* possessing the characteristic

sample size

Let’s take a look at an example on how we would calculate the standard error of the proportion.

**Example:**

We want to test a hypothesis that of the seniors graduating from a certain California high school will enroll in a two or four-year college upon graduation. What would be our hypotheses and the standard error of the proportion?

**Solution:**

Since we want to test the proportion of graduating seniors and we think that proportion is around , our hypotheses are:

And the standard error would be:

Therefore, the sampling distribution of for this example has a mean equal to (the hypothesized value of ) and a standard deviation of With this information, we can easily evaluate hypotheses using a standard formula.

## Testing a Proportion Hypothesis Using the P-Value

Similar to testing hypotheses dealing with population means, we use a similar set of steps when testing proportion hypotheses.

- Determine and state the null and alternative hypotheses.
- Set the criterion for rejecting the null hypothesis.
- Calculate the test statistic.
- Interpret the results and decide whether to reject or fail to reject the null hypothesis.

To test a proportion hypothesis, we use the formula for calculating the test statistic for a mean, but modify it accordingly. Therefore, our formula for the test statistic of a proportion hypothesis is:

where:

the sample proportion

the hypothesized population proportion

the standard error of the proportion

**Example:**

A congressman is trying to decide on whether to vote for a bill that would legalize gay marriage. He will decide to vote for the bill only if of his constituents favor the bill. In a survey of randomly selected voters, indicated that they would favor the bill. Should he vote for the bill or not?

**Solution:**

First, we develop our null and alternative hypotheses.

Next, we should set the criterion for rejecting the null hypothesis. We will use a probability (?) level of and since we are interested only in the probability that the percentage of constituents is *greater* than , we will use a single-tailed test. Looking at the standard -table, we find that the **critical value** for a single-tailed test at an alpha level of is equal to

To calculate the test statistic, we first find the standard error of the proportion.

After finding the standard error, we can calculate the standard -score needed to evaluate our hypothesis.

Since our critical value is and our test statistic is , we *cannot reject the null hypothesis.* This means that we cannot conclude that the population proportion is greater than with certainty. Given this information, it is not safe to conclude that at least of the voters would favor this bill with any degree of certainty. Even though the proportion of voters supporting the bill is over , this could be due to chance and is not statistically significant.

**Example:**

Admission staff from a local university is conducting a survey to determine the proportion of incoming freshman that will need financial aid. A survey on housing needs, financial aid and academic interests is collected from of the incoming freshman. Staff hypothesized that of freshman will need financial aid and the sample from the survey indicated that would need financial aid. Is this an accurate guess?

**Solution:**

First, we develop our null and alternative hypotheses.

Next, we should set the criterion for rejecting the null hypothesis. The alpha level is used and for an ? the critical values of the test statistic are standard deviations above or below the mean.

To calculate the test statistic, we first find the standard error of the proportion.

After finding the standard error, we can calculate the standard -score needed to evaluate our hypothesis.

Since our critical value is and our test statistic is , we *can reject the null hypothesis.* This means that we can conclude that the population of freshman needing financial aid is significantly more or less than Since the test statistic is negative, we can conclude with certainty that in the population of incoming freshman, less than of the students will need financial aid.

## Confidence Intervals for Hypotheses about Population Proportions

When making a decision, we like to be able to determine how confident we are about a decision. For example, when a congressman is deciding whether or not to vote for a bill, he would like to be able to say something to the effect of “I am confident that of my constituents will support this decision.” With statistical analysis, we can construct something called the **confidence interval** that specifies the level of confidence that we have in our results.

The confidence interval is a range of values that we are confident, but not certain, contains the population parameter that we are studying (most often this parameter is the mean).

We interpret the results of the confidence intervals by calculating:

- The level of confidence (i.e. etc.)
- The interval (i.e. to or to , etc.)

If we are estimating the confidence interval for a population mean, then we use the sample mean for the statistic. However, if we are estimating for a population proportion, we use the sample population proportion.

The confidence interval always includes the population parameter. Therefore, when we construct a confidence interval we can conclude that that interval also contains the sample statistic. A confidence interval statement would look something like:

- We are confident that the interval from to contains the mean

- – We are confident that this interval contains the population proportion

We can *not* say that the probability is that the interval contains the mean since either the interval contains the mean or it does not. Therefore, when we talk of our confidence level we say that we ‘ certain” that the specific interval contains the mean.

**Example:**

In our example about the congressman voting for the bill on gay marriage, the congressman decides that he wants an estimate of the proportion of voters in the population that are likely to vote for a bill. Construct a confidence interval for this population proportion.

**Solution:**

As a reminder, our sample proportion was and our standard error of the proportion was To correspond with the we will construct a confidence interval for the population proportion. Under the normal curve, of the area is between and The confidence interval for this proportion would be:

So

With respect to the population proportion, we are confident that the interval from to contains the population proportion. This means that we are confident that the average proportion of voters who will support the bill is between and .

## Lesson Summary

1. In statistics, we also make inferences about proportions of a population. We use the same process as in testing hypotheses about populations but we must include hypotheses about proportions and the proportions of the sample in the analysis.

2. To calculate the test statistic needed to evaluate the population proportion hypothesis, we must also calculate the standard error of the proportion which is defined as

3. The formula for calculating the test statistic for a population proportion is

where:

the sample proportion

the hypothesized population proportion

the standard error of the proportion

4. We can construct something called the confidence interval that specifies the level of confidence that we have in our results. The confidence interval is a range of values that we are confident, but not certain, contains the population parameter that we are studying.

## Review Questions

- The test statistic helps us determine ___.
- True or false: In statistics, we are able to study and make inferences about proportions, or percentages, of a population.
- True or false: A confidence interval states the probability that the interval contains the mean. For example, a confidence interval of would say that “This interval contains the mean of the time.”

A state senator cannot decide how to vote on an environmental protection bill. The senator decides to request her own survey and if the proportion of registered voters supporting the bill exceeds , she will vote for it. A random sample of voters is selected and are found to support the bill.

- What are the null and alternative hypotheses for this problem?
- What is the observed value of the sample proportion?
- What is the standard error of the proportion?
- What is the test statistic for this scenario?
- What decision would you make about the null hypothesis if you had an alpha level of ?
- The state senator decided that she is still wants an estimate of the proportion of voters in the population who are likely to vote for the bill. Construct a confidence interval around this proportion.
- Please write a statement describing the results of the confidence interval.

## Review Answers

- The magnitude of the difference between the observed sample mean and the hypothesized population mean.
- True
- False

We *can not* say that the probability is that the interval contains the mean since either the interval contains the mean or it does not. Therefore, when we talk of our confidence level we say that we are ‘ certain” that the specific interval contains the mean.

- Since the test statistic of is exceeds the critical value of (one-tailed -test at ), we reject the null hypothesis and conclude that the probability is less than that a sample proportion of would appear due to sampling error if in fact the population proportion was equal to
- We are confident that the interval contains the proportion mean. In other words, this confidence interval shows perhaps as many as of the voters favor the bill, but it is very unlikely that less than favor the bill.