๐Ÿ“š

ย >ย 

๐Ÿ“Šย 

ย >ย 

โš–๏ธ

6.11 Carrying Out a Test for the Difference of Two Population Proportions

4 min readโ€ขjune 18, 2024

Josh Argo

Josh Argo

Jed Quiaoit

Jed Quiaoit

Josh Argo

Josh Argo

Jed Quiaoit

Jed Quiaoit


AP Statisticsย ๐Ÿ“Š

265ย resources
See Units

Calculating Values

There are two important values that we need to calculate in order to carry out a test for the difference in two population proportions. We need to calculate a z-score and a p-value. Both need to be included in our response to inference-related FRQs to receive full credit. ๐Ÿ’ฏ

Z-Score

The z-score for our test is our critical value. We can calculate it by using the formula for any z-score:
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2FScreen%20Shot%202020-04-23%20at%201.08-u1FWK54JSaZU.png?alt=media&token=8ac06ef8-ee1e-4838-8a23-6b26a289d86c
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2FScreen%20Shot%202020-04-23%20at%201.09-blxxhJkvNqae.png?alt=media&token=a29ae5c7-b212-4886-bed1-aa6b08018faf
That formula looks pretty icky. ๐Ÿคข Luckily if we run our test on a calculator, the z-score is part of our calculator output.

P-Value

As with any p-value, we are using the normal curve and our z-score to calculate the probability of obtaining such a value (or one less than/greater than) that value. Also, using a calculator here is much easier than doing it by hand.

Concluding the Test

Once we have our p-value and z-score, we can then make a judgment to either reject or fail to reject our null hypothesis. โœ‹

Using P-Value

If you are using a p-value to perform a significance test for the difference in two population proportions, you compare the p-value to the significance level to determine whether to reject the null hypothesis. The significance level is the probability of rejecting the null hypothesis when it is actually true. It is usually set at 0.05, which means that there is a 5% chance of rejecting the null hypothesis when it is actually true.
If the p-value is less than the significance level, it means that the difference between the two population proportions is statistically significant and unlikely to have occurred by chance. This gives you reason to reject the null hypothesis and conclude that there is a difference between the two population proportions. This means that it was an extremely rare occurrence (WOW value!) and we have reason to believe our null hypothesis (center of our sampling distribution) wasn't accurate.
On the other hand, if the p-value is greater than the significance level, it means that the difference is not statistically significant and may have occurred by chance. In this case, you cannot reject the null hypothesis and must conclude that there is no difference between the two population proportions.
Therefore, if the p is low, reject the H0.

Using Z-Score

If you are using a z-score to perform a significance test for the difference in two population proportions, you can use the empirical rule to determine whether the z-score represents an extremely rare value on the sampling distribution. The empirical rule states that for a normal distribution, approximately 68% of the values fall within one standard deviation of the mean, 95% fall within two standard deviations, and 99.7% fall within three standard deviations. โญ
So if the z-score is higher than 2 or 3, it is considered an extremely rare value on the sampling distribution, and you can reject the null hypothesis with a high degree of confidence. This means that the difference between the two population proportions is statistically significant and unlikely to have occurred by chance. On the other hand, if the z-score is less than 2 or 3, it is not considered an extremely rare value and you cannot reject the null hypothesis. This means that the difference between the two population proportions is not statistically significant and may have occurred by chance. ๐Ÿ€

Continued Example

Let's continue our example of MJ vs. Lebron to see if we can verify our conclusion from Unit 6.9. Recall that Michael Jordan made 836/1623 shots and Lebron James made 622/1493 shots. We are seeing if our data gives significant statistical evidence that Michael Jordan is actually better than Lebron. ๐Ÿ€

Calculations

To avoid the lengthy and cumbersome formulas above, we are going to use a graphing calculator and the appropriate "2 Prop Z Test" to test our hypothesis:
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2FScreen%20Shot%202020-04-23%20at%201.26-O5Bx03gD2ADZ.png?alt=media&token=a49368aa-021a-41f4-ba58-7475a2c55993
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2FScreen%20Shot%202020-04-23%20at%201.26-gA7tIL0bRtgZ.png?alt=media&token=9a1d7581-a52d-458f-830e-ceaab642c584
The two big values that we need to write down from our output is our z-score and p-value.

Conclusion

To conclude our test, we can look at how low our p-value is, or how high our z-score is. โžก๏ธ
P-Value
Our p-value is the best way to conclude. In this problem, we can see that our p-value is essentially 0. Therefore, we can say:
"Since our p-value is less than 0.05 (~0 < 0.05), we reject our Ho. We have convincing evidence that the true population proportion of shots made by MJ is higher than the true population proportion of shots made by Lebron."
Notice that this supports our conclusion from the confidence interval. โœ”๏ธ
Z-Score
If not given the data to calculate a p-value or if only given the z-score, we can still make a judgment on the null hypothesis. In the example above, we end up with a z-score of 5.5, which is pretty extreme. Therefore, we can conclude that we can reject our null hypothesis in favor of our alternate hypothesis! โœ”๏ธ
๐ŸŽฅ Watch: AP Stats - Inference: Hypothesis Tests for Proportions
Browse Study Guides By Unit