Tutorials › AP Statistics › Hypotheses for Comparing Two Population Proportions

Two-proportion hypothesis tests · Tutorial 521 of 1000

Hypotheses for Comparing Two Population Proportions

Practice writing the equality null hypothesis and the appropriate two-sided or one-sided alternative in symbols and in context.

Intermediate 9 min read

What You'll Learn

  • Define population proportions for support of a proposed policy in two groups.
  • Write the null hypothesis as equality or as a zero difference.
  • Match a two-sided alternative to a question about any difference.
  • Match a one-sided alternative to a specific direction of interest.
  • Keep the group order consistent in symbols and words.
  • Distinguish population hypotheses from observed sample results.

From a Policy Question to Hypotheses

In Free Response Practice on Two-Proportion Intervals, you practiced keeping the group order clear when comparing two population proportions. A hypothesis test begins with a related comparison, but its first task is different: state the population claim that will be examined and the alternative claim that would count as evidence against it.

Suppose a fictional city is considering a policy that would add evening bus service. A survey asks residents in two districts whether they support the proposal. Before analyzing survey results, a researcher needs hypotheses about the population proportions of residents who support the policy. The hypotheses are not statements about the proportions observed in the survey; they describe the populations the survey is intended to represent.

Definition: For a comparison of two population proportions, the null hypothesis \(H_0\) usually states that the proportions are equal. The alternative hypothesis \(H_a\) states the kind of difference that would count as evidence against that equality: any difference, a higher proportion in Group 1, or a lower proportion in Group 1.

The hypotheses must use the same two populations and the same definition of “success.” In this example, success means that a resident supports the proposed evening bus service. Keep the group order fixed: define Group 1 first and Group 2 second, then write the difference as Group 1 minus Group 2.

The Null Hypothesis: No Difference in the Populations

Let \(p_1\) be the true proportion of all residents in District East who support the proposed evening bus service. Let \(p_2\) be the true proportion of all residents in District West who support it. The null hypothesis says these population proportions are equal:

$$ H_0: p_1=p_2 $$

The same null hypothesis can be written using a difference:

$$ H_0: p_1-p_2=0 $$

These are equivalent statements: if the proportions are equal, subtracting one from the other gives zero. In words, the null says that the true proportion of District East residents who support the policy is the same as the true proportion of District West residents who support it. It does not say that either proportion is zero, or that nobody supports the policy.

The equality belongs in the null hypothesis for the standard two-proportion test. The null gives a specific no-difference model against which the observed sample results can later be assessed. In What a P-Value Really Measures, you learned that a p-value is calculated assuming the null hypothesis is true. For this comparison, that means using a model in which \(p_1=p_2\).

Key distinction: \(p_1\) and \(p_2\) describe population proportions. The sample proportions, \(\hat{p}_1\) and \(\hat{p}_2\), describe the survey results. Hypotheses are written about \(p_1\) and \(p_2\), not about the sample statistics.

Three Alternatives: Any Difference or a Direction

The alternative hypothesis depends on the question being asked. There are three common choices. Select the one that matches the research question, not simply the one that matches the direction of the sample results.

Research questionAlternative in symbolsMeaning in this example
Are the population proportions different?\(H_a:p_1\ne p_2\)Support differs between the two districts in either direction.
Is the District East proportion higher?\(H_a:p_1>p_2\)A larger proportion of East residents support the policy.
Is the District East proportion lower?\(H_a:p_1<p_2\)A smaller proportion of East residents support the policy.

The first alternative is two-sided: differences in either direction are relevant. The other two alternatives are one-sided: only a difference in the stated direction counts as evidence for the alternative. In difference form, these alternatives are \(p_1-p_2\ne0\), \(p_1-p_2>0\), and \(p_1-p_2<0\), respectively.

The words “different,” “higher,” and “lower” refer to the population proportions. If \(p_1-p_2>0\), District East has the higher population support proportion. If \(p_1-p_2<0\), District West has the higher one. Writing the difference form can make that direction especially easy to check.

Formula: For a comparison written in the order \(p_1-p_2\), use \(H_0:p_1-p_2=0\). Then choose exactly one alternative: \(H_a:p_1-p_2\ne0\) for any difference, \(H_a:p_1-p_2>0\) for Group 1 higher, or \(H_a:p_1-p_2<0\) for Group 1 lower.

Worked Example: Is Policy Support Different Between Two Districts?

Question: A fictional city surveys separate samples of 200 District East residents and 190 District West residents about support for the proposed evening bus service. In the samples, 132 East residents and 98 West residents say they support it. The research question is whether the population support proportions differ. State the hypotheses in symbols and words.

Define the parameters: Let \(p_1\) be the true proportion of all District East residents who support the proposed evening bus service. Let \(p_2\) be the true proportion of all District West residents who support it. The group order is East minus West.

State the hypotheses: The question asks whether the proportions differ, without specifying which one should be higher. Therefore, use a two-sided alternative:

$$ H_0:p_1=p_2 \qquad\text{and}\qquad H_a:p_1\ne p_2. $$

Equivalently, \(H_0:p_1-p_2=0\) and \(H_a:p_1-p_2\ne0\). In words, the null hypothesis is that the true proportion of East residents who support the policy equals the true proportion of West residents who support it. The alternative is that these population proportions differ.

The sample counts do not change which alternative matches the stated question. They give sample proportions of \(132/200=0.66\) for East and \(98/190\approx0.5158\) for West, but those are observed sample results, not the \(p_1\) and \(p_2\) in the hypotheses. Because the question asks about any difference, the hypotheses allow evidence in either direction.

When the Research Question Names a Direction

A directional alternative is appropriate when the research question specifically asks whether one population proportion is higher or lower than the other. The order of the parameters determines the inequality sign. With \(p_1\) for East and \(p_2\) for West, “East is higher” corresponds to \(p_1>p_2\). If you instead defined Group 1 as West, the same verbal claim would require \(p_1<p_2\).

Choose the direction from the research question or the claim being investigated, ideally before examining the sample results. Do not switch to a one-sided alternative just because the observed sample proportion in one group happens to be larger. The alternative identifies in advance which outcomes count as evidence against the null, a point developed in P-Values for One-Sided Versus Two-Sided Tests.

Worked Example: Is Support Higher in District East?

Question: Before collecting data, a fictional city analyst asks whether the true proportion of District East residents who support the evening bus-service policy is greater than the corresponding proportion in District West. A survey later records 114 supporters among 180 East residents and 91 among 170 West residents. State the hypotheses in symbols and words.

Define the parameters: Let \(p_1\) be the true proportion of all District East residents who support the policy, and let \(p_2\) be the true proportion of all District West residents who support it. The difference is East minus West.

State the hypotheses: “Greater than” specifies that the East population proportion is the one of interest as larger. The null represents no difference, and the alternative represents East having the higher proportion:

$$ H_0:p_1=p_2 \qquad\text{and}\qquad H_a:p_1>p_2. $$

In words, the null hypothesis is that the true proportion of East residents who support the policy equals the true proportion of West residents who support it. The alternative is that the true proportion of East residents who support it is greater than the true proportion of West residents who support it. Equivalently, the alternative says \(p_1-p_2>0\).

The sample proportions are \(114/180\approx0.6333\) for East and \(91/170\approx0.5353\) for West. Their observed ordering is consistent with the directional question, but the hypotheses are justified by the question itself, not by these sample values. At this stage, the task is to state the claims—not to decide whether the evidence is convincing.

Worked Example: Is Support Lower in District East?

Question: A community group specifically asks whether the true proportion of District East residents who support a revised version of the evening bus-service policy is lower than the corresponding proportion in District West. A fictional survey includes 160 East residents, 72 of whom support the revision, and 175 West residents, 91 of whom support it. State the hypotheses in symbols and words.

Define the parameters: Let \(p_1\) be the true proportion of all District East residents who support the revised policy, and let \(p_2\) be the true proportion of all District West residents who support the same revision. Keep the order East minus West.

State the hypotheses: The question asks whether East’s proportion is lower. With East as Group 1, that means \(p_1<p_2\):

$$ H_0:p_1=p_2 \qquad\text{and}\qquad H_a:p_1<p_2. $$

In words, the null hypothesis is that the true proportion of East residents who support the revised policy is equal to the true proportion of West residents who support it. The alternative is that the true East proportion is lower than the true West proportion. In difference form, the alternative is \(p_1-p_2<0\).

Here the sample proportions are \(72/160=0.45\) for East and \(91/175=0.52\) for West. These sample values point in the direction named by the question, but the inequality in \(H_a\) comes from the stated research question. If the question had asked whether the proportions were different, the alternative would instead be \(p_1\ne p_2\), regardless of the observed ordering.

How Group Order Controls the Sign

The choice of Group 1 and Group 2 is flexible, but once you choose an order, maintain it in the parameter definitions, symbolic hypotheses, and written statements. This is the same discipline used when interpreting \(p_1-p_2\) in the earlier tutorials on comparing two proportions.

For example, if \(p_1\) is East and \(p_2\) is West, then “East has a higher proportion” is \(p_1>p_2\), or \(p_1-p_2>0\). If the definitions are reversed so \(p_1\) is West and \(p_2\) is East, the same claim becomes \(p_1<p_2\), or \(p_1-p_2<0\). The real-world claim has not changed; only the subtraction order has.

A useful self-check is to read the inequality aloud using the parameter definitions. For \(p_1<p_2\), say “the true proportion in Group 1 is less than the true proportion in Group 2.” If that sentence does not match the research question, revise the sign or the group order before continuing.

Common Mistakes and AP Exam Tips

  • Writing hypotheses about the sample: Expressions involving \(\hat{p}_1\) and \(\hat{p}_2\) describe sample statistics. Hypotheses concern the population parameters \(p_1\) and \(p_2\).
  • Leaving out the shared outcome: Define each proportion as the proportion with the same characteristic, such as supporting the same policy. A comparison is unclear if the two proportions measure different outcomes.
  • Using the wrong sign for a direction: Check which group is \(p_1\). With East as Group 1, “East is higher” means \(p_1>p_2\), while “East is lower” means \(p_1<p_2\).
  • Using a one-sided alternative for a general difference question: “Do the proportions differ?” permits either direction, so use \(p_1\ne p_2\). A greater-than or less-than alternative answers a more specific question.
  • Choosing the alternative after seeing the sample results: Do not use the observed ordering alone to select a directional alternative. Match the alternative to the research question or claim.
  • Putting inequality in the null: For the standard two-proportion test, state equality in \(H_0\), such as \(p_1=p_2\), and put the proposed difference in \(H_a\).
  • Forgetting the context in words: “The proportions are different” is incomplete if the reader cannot tell which populations and outcome are being compared. Name both groups and the shared characteristic.
AP Exam Tip: A full-credit hypothesis statement identifies both population proportions in context, preserves the group order, gives the equality null, and selects an alternative that matches the question. When translating the alternative into words, name which group has the higher or lower population proportion—or say that the proportions differ in either direction.

Key Takeaway

Writing hypotheses is a matter of translating the population question precisely. Define the two proportions for one shared outcome, use equality for the null, and let the wording of the research question determine whether the alternative is two-sided or directional. Sample results may later provide evidence, but they do not replace the population hypotheses.

Key takeaway: With a fixed group order, \(H_0:p_1=p_2\). Choose \(H_a:p_1\ne p_2\) for any difference, \(H_a:p_1>p_2\) when Group 1 is hypothesized to be higher, or \(H_a:p_1<p_2\) when Group 1 is hypothesized to be lower. State what each parameter represents in context.

Check Your Understanding

For each question, define the population proportions and write the null and alternative hypotheses in symbols and words.

  1. A researcher asks whether support for a proposed neighborhood recycling rule differs between residents of two districts. Define \(p_1\) for District North and \(p_2\) for District South.
  2. With \(p_1\) defined as the proportion of Group A students who favor a later school start time and \(p_2\) as the proportion of Group B students who favor it, write the alternative for the claim that Group A’s proportion is higher.
  3. For \(p_1\) equal to the true proportion of coastal residents supporting a flood-prevention policy and \(p_2\) equal to the corresponding inland-resident proportion, translate \(H_a:p_1<p_2\) into words.
  4. Why is \(H_a:p_1\ne p_2\) appropriate for “Are the two population proportions different?” rather than a one-sided alternative?
  5. A sample has \(\hat{p}_1>\hat{p}_2\), but the research question asks whether the population proportions differ. Which alternative should be used, and why?