Join Our Discord

Learn Moreย ย ๐Ÿ‘‡

caret down
caret up

Join our Discord

1,000s of Fiveable Community students are already finding study help, meeting new friends, and sharing tons of opportunities among other students around the world! Don't miss out!ย  ๐ŸŽ‰

group of students
group of students

๐Ÿ“Šย ap stats

ย ย >ย ย 

โš–๏ธย Unit 6

ย ย โ€ขย ย โฑ๏ธ3 min read

6.10 Setting Up a Test for the Difference of Two Population Proportions

Harrison Burnside

harrison burnside

โฑ๏ธ June 5, 2020


Another way to check a statistical claim is to perform a significance test for the difference in two population proportions. As with any significance test, we have to write hypotheses, check our conditions and then calculate and conclude.

Hypotheses and Parameters

The first thing we need to do when setting up a significance test for the difference in two population proportions is to write out our hypotheses. Our null hypotheses will always have our two population proportions being equal, while our alternate has them either greater than, less than or not equal to each other.

It is also important in this stage of setting up the test to identify what p1 and p2 represent. We have to define our parameters so the reader knows what we are truly comparing.


We also must check our conditions for inference. The same three conditions apply as did for confidence intervals with one little small change in the normal check.


Probably the most important condition is that we need to be sure that both of our samples come from random samples. If we don't take a random sample from our population, then our findings suffer from sampling bias and we are stuck and we can't generalize our findings to our population. ๐Ÿ˜ž


To check that our sample is independent, we need to make sure that both of our populations are at least 10 times that of our samples. Also, if we are dealing with a randomized experiment, the random assignment of treatments classifies our samples as independently selected.


When dealing with proportions, we always check our normal condition by using the Large Counts Condition, which states that our expected successes and failures is at least 10. With a 2 proportion z test, we have to combine our proportions to create a combined p-hat. This is what we use to find our expected failures and successes.

Then we have to verify that each of our expected failures and successes are at least 10.

This is because we are using a pooled sample.


Let's return to our MJ vs. Lebron problem from earlier. Recall that MJ made 836/1623 shots and Lebron made 622/1493 shots. Instead of testing this claim with a confidence interval, let's test it using a 2 Prop Z Test to verify our results.

Hypotheses and Parameters

Another great idea when writing our hypotheses is to use meaningful subscripts such as MJ and L that clarify which proportion matches which population.


  • Random: Even though the problem never stated that they were random (and we discussed the problems with this in Unit 6.9) we are going to assume it is random.

  • Independent: It is reasonable to believe (and obviously true) that MJ took at least 16, 230 shots in his career and Lebron took at least 14,930 shots in his career, so the samples are independent.

  • Normal: This is the one that will be a bit different. First, we have to calculate our pooled p-hat. Using the formula above, we get 0.468

Next, we have to check our large counts condition using this pooled p-hat.

1623(0.468)>10, 1623(0.532)>10, 1493(0.468)>10, 1493(0.532)>10.

Now that we have checked conditions, we are ready to calculate and test our claim.

๐ŸŽฅWatch: AP Stats - Inference: Hypothesis tests for Proportions

A tent in the woods with a fire

Get your ap stats survival pack!

Download our ap stats survival pack and get access to every resource you need to get a 5.

ap stats study guides

โœŒ๏ธย  Unit 2: Exploring Two-Variable Data

โš–๏ธย  Unit 6: Inference for Categorical Data: Proportions

๐Ÿ˜ผย  Unit 7: Inference for Qualitative Data: Means

โœณ๏ธย  Unit 8: Inference for Categorical Data: Chi-Square

๐Ÿ“ˆย  Unit 9: Inference for Quantitative Data: Slopes

๐Ÿงย  Multiple Choice Questions (MCQs)

continue learning

Slide 1 of 13

Join Our Discord


Fiveable Community students are already meeting new friends, starting study groups, and sharing tons of opportunities for other high schoolers. Soon the Fiveable Community will be on a totally new platform where you can share, save, and organize your learning links and lead study groups among other students!๐ŸŽ‰

*apยฎ and advanced placementยฎ are registered trademarks of the college board, which was not involved in the production of, and does not endorse, this product.

ยฉ fiveable 2021 | all rights reserved.

2550 north lake drive
suite 2
milwaukee, wi 53211