STAT 3011 Fall 2026: Hypothesis Testing on difference of Proportions
Overview
Kazeem Adepoju explains how to test whether two population proportions differ, connecting research questions to left-tailed, right-tailed, or two-sided alternatives. He emphasizes the pooled proportion for the null-based normality checks and z-test, then works through Pfizer vaccine infection data, a voter-support comparison, and an education example while distinguishing statistical from practical significance.
Key takeaways
- For a two-proportion z-test with H0: P1 = P2, calculate p-hat-pool = (x1 + x2)/(n1 + n2) and use it in both the standard error and the four expected-count checks.
- Check n1 p-hat-pool, n1(1 − p-hat-pool), n2 p-hat-pool, and n2(1 − p-hat-pool); each should be at least 10 before proceeding with the normal approximation.
- Choose the alternative hypothesis from the wording of the research question: “lower” means left-tailed, “higher” means right-tailed, and “different” means two-sided.
- In the Pfizer example, 8 of 18,198 vaccine recipients and 162 of 18,325 placebo recipients developed COVID-19; the left-tailed test supports a lower case proportion in the vaccine group.
- The transportation levy example compares 238/400 with 202/400 and reports a right-tailed p-value of 0.00526, supporting higher support in group 1.
- Statistical significance is not the same as practical importance: hypothesis tests assess evidence against equality, while confidence intervals help show the magnitude and possible real-world relevance of the difference.
Chapters
- Kazeem Adepoju introduces hypothesis testing for the difference between two population proportions.
- The class will cover left-tailed, right-tailed, and two-sided tests.
- Adepoju notes that the spring final exam is available on Canvas and encourages regular class attendance.
- Proportions describe binary outcomes such as infection versus no infection, passing versus failing, or defective versus acceptable.
- Examples include comparing infection rates for vaccinated and unvaccinated groups, course pass rates under two teaching formats, and defect rates across production methods.
- A hypothesis test helps assess whether an observed difference between groups is larger than expected from sampling variation.
- The target parameters are P1 and P2, the success probabilities in populations 1 and 2.
- Because examining every population member is usually impractical, samples of sizes n1 and n2 provide counts of successes x1 and x2.
- The sample proportions, x1/n1 and x2/n2, estimate the population proportions, and their difference is evaluated for statistical significance.
- The null hypothesis for equal proportions uses equality, such as H0: P1 = P2.
- The research question determines the alternative: P1 < P2 for a lower rate, P1 > P2 for a higher rate, or P1 ≠ P2 for any difference.
- Adepoju labels these alternatives left-tailed, right-tailed, and two-sided, respectively.
- For a two-proportion hypothesis test under H0: P1 = P2, use the pooled estimate p-hat-pool = (x1 + x2)/(n1 + n2).
- Check all four expected counts, n1 p-hat-pool, n1(1 − p-hat-pool), n2 p-hat-pool, and n2(1 − p-hat-pool), against the threshold of 10.
- The pooled standard error is the square root of p-hat-pool(1 − p-hat-pool)(1/n1 + 1/n2); divide the sample-proportion difference by it to obtain z.
- Adepoju contrasts this pooled procedure with confidence intervals for a difference, which use separate sample proportions in their normality checks.
- The example compares 8 COVID-19 cases among 18,198 vaccine recipients with 162 cases among 18,325 placebo recipients.
- Because the research question asks whether the vaccine group has a lower case proportion, the alternative is left-tailed; the null states the proportions are equal.
- The pooled proportion is used for the four expected-count checks, the standard error, and the z statistic before calculating the left-tail p-value.
- The reported p-value is below the significance level, supporting evidence of a lower COVID-19 case proportion in the vaccine group; Adepoju also describes vaccine efficacy as 1 minus the relative risk.
- Group 1 has 238 supporters among 400 voters, while group 2 has 202 supporters among 400 voters.
- The word “higher” in the research question sets a right-tailed alternative for group 1's support proportion.
- The example follows the same sequence: identify counts and sample sizes, calculate the pooled proportion, check expected counts, then find the z statistic and p-value.
- The reported p-value is 0.00526, below the stated significance level, so the conclusion supports higher levy support in group 1.
- The comparison uses 96 passes among 300 students in format 1 and 120 passes among 300 students in format 2.
- The research question asks whether pass rates are different, so the alternative is two-sided: P1 ≠ P2.
- After checking conditions and computing the pooled standard error and z statistic, the two-sided p-value is calculated as 2 times the appropriate one-tail probability.
- A significant result supports the conclusion that the two teaching formats have different pass rates.
- A statistically significant test result indicates evidence against equality, but it does not quantify how large or consequential the difference is.
- Confidence intervals help assess the size and practical relevance of a difference; they answer a different question from a hypothesis test.
- Adepoju cautions that significance does not prove causation, measure the probability that the null is true, or guarantee real-world importance.
- The next class is planned for Zoom and will begin confidence intervals for differences between two population means; there is no Friday class or new assignment.
Transcript excerpt
0:01 I want to welcome you to another >> statistical analysis class. Of course, uh before I get started, I've already uploaded a plan um I mean for the week. Uh this is Thanksgiving week. something. >> We're meeting today in person and of course uh I'm meeting on Wednesday will be uh through I think uh we're going we're meeting remotely uh through Zoom on Wednesday and of course uh Friday there's no class uh because I want everyone to uh enjoying the Thanksgiving to the fullest. So um what we're going to be
0:51 doing moving forward is actually um very very crucial because we are hunting down to the final exam. Of course I've I've also uploaded early I've uploaded the final exam you know the old exam for the spring. Okay, it's on canvas for you to access, you know, to be able to have a sense of what is going on. So, >> um today we're starting >> hypothesis testing for two population proportions. Uh before I go into this, I
1:40 observe those that are doing good in me time one and those that are doing good in me time two are those students who come to class regularly and I will advise you to come to class regularly >> in case you get stuck as question the final exam has huge weights >> if you look at the weight you know it's high it's highly significant it has a significant contribution to final weight the weight of the final and that's why I think the only advantage in the final is maybe probably there may be more time instead of one and a half hours but I would advise that you pay attention
2:29 okay now before the midtime too we started comparing two groups we've done something that has to do with
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Prof Kazeem Adepoju.