AP Statistics Inference for the Difference of Two Proportions Lesson: Notes and Examples (Free PDF)
This two proportion z test lesson for AP Statistics covers inference for the difference of two proportions (Common Core AP STAT 6.8, AP STAT 6.9, AP STAT 6.10, AP STAT 6.11, HSS-IC.B.5), with a free PDF to print.
Key takeaway: This lesson on inference for the difference of two proportions helps AP Statistics students compare two groups using confidence intervals and tests.
- Topic: Inference for the Difference of Two Proportions (AP Statistics)
- Content: One-page lesson with a definition, a worked example and key facts
- Standards: AP STAT 6.8, AP STAT 6.9, AP STAT 6.10, AP STAT 6.11, HSS-IC.B.5
- Answers: Explanations included
- Format: Free printable PDF, US Letter, black and white
Key takeaway: A clear AP Statistics lesson on Inference for the Difference of Two Proportions, with definitions, rules and worked examples: what does inference about two proportions compare, how do you build a confidence interval for p1 – p2 and how do you test H0: p1 = p2. Read it before the practice worksheet; free to print or download as a PDF.
To compare two proportions, estimate p1 – p2 with p-hat1 – p-hat2. A two-sample z interval adds the two sample variances under the square root. For H0: p1 = p2, a z test uses the pooled proportion. Conditions: independent random samples or random assignment, the 10 percent condition, and at least 10 successes and failures in each group.
This lesson on inference for the difference of two proportions helps AP Statistics students compare two groups using confidence intervals and tests. First, you define p1 minus p2 and check the conditions. Then you build an interval or run a z test and write a conclusion in context.
The lesson covers the standard error for an interval, the pooled proportion for a test, the large counts condition for both groups, and the meaning of an interval that contains zero. It also covers randomized experiments. Plan about forty minutes, and write the parameters in words before any calculation.
AP Statistics · Common Core State Standards: AP STAT 6.8, AP STAT 6.9, AP STAT 6.10, AP STAT 6.11, HSS-IC.B.5
Key facts in this two proportion z test lesson
- Parameter: p1 – p2; statistic: p-hat1 – p-hat2.
- Interval: (p-hat1 – p-hat2) +/- z* sqrt(p-hat1(1 – p-hat1)/n1 + p-hat2(1 – p-hat2)/n2).
- Test: pooled p-hat_c = (x1 + x2)/(n1 + n2); z = (p-hat1 – p-hat2)/sqrt(p-hat_c(1 – p-hat_c)(1/n1 + 1/n2)).
- Conditions: independent random samples (or random assignment); 10% condition; at least 10 successes and 10 failures in each group.
- If the interval contains 0, a difference of 0 is plausible; if it does not, there is evidence of a difference.
What does inference about two proportions compare?
Often we compare the proportions of successes in two populations or in two treatment groups: \(p_1\) and \(p_2\). The parameter of interest is the difference \(p_1-p_2\), estimated by \(\hat{p}_1-\hat{p}_2\). Example: random samples from two high schools are asked whether they support a later start time.
School A: \(\hat{p}_1=\frac{126}{300}=0.42\). School B: \(\hat{p}_2=\frac{90}{250}=0.36\). The difference is \(\hat{p}_1-\hat{p}_2=0.06\).
How do you build a confidence interval for p1 – p2?
\[(\hat{p}_1-\hat{p}_2)\pm z^{*}\sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1}+\frac{\hat{p}_2(1-\hat{p}_2)}{n_2}}\]
Conditions: two independent random samples (or random assignment to two groups), each sample under 10% of its population, and at least 10 successes and 10 failures in each group.
Here \(SE=\sqrt{\frac{0.42(0.58)}{300}+\frac{0.36(0.64)}{250}}=0.0416\), \(ME=1.96(0.0416)=0.0816\), and the interval is (-0.022, 0.142).
Interpretation: We are 95% confident that the interval from -0.022 to 0.142 captures the true difference (School A minus School B) in the proportions of students who support the proposal. Because the interval contains 0, a difference of 0 is plausible, so the data do not give convincing evidence of a difference.
How do you test H0: p1 = p2?
When \(H_0: p_1=p_2\) is assumed, combine the groups into a pooled proportion \(\hat{p}_c=\frac{x_1+x_2}{n_1+n_2}\) and use:
\[z=\frac{\hat{p}_1-\hat{p}_2}{\sqrt{\hat{p}_c(1-\hat{p}_c)\left(\frac{1}{n_1}+\frac{1}{n_2}\right)}}\]
For the surveys, \(\hat{p}_c=\frac{216}{550}=0.3927\), the standard error is \(0.0418\), \(z=1.43\), and the two-sided p-value is \(0.1527\).
Since 0.1527 is greater than 0.05, we fail to reject \(H_0\). There is not convincing evidence that the proportions of supporters differ between the two schools. The test and the interval agree.
The interval estimates the size of the difference; the test only measures how surprising it would be if there were none. Note that the interval uses each sample’s own proportion, while the test pools them.
Two proportion z test lesson: questions and answers
Why do we pool the proportions in a test but not in an interval?
A test assumes H0 is true, which says the two proportions are equal, so combining the data gives the best single estimate. An interval estimates the difference without assuming it is zero, so each sample keeps its own proportion.
What does it mean if the interval contains 0?
It means a difference of 0 is plausible, so there is not convincing evidence that the two population proportions differ. It does not prove that they are equal.
Can I use this procedure for a randomized experiment?
Yes. Instead of two random samples, you need random assignment of the units to the two treatments, and the counts of successes and failures in each group must still be at least 10.
How do I check the large counts condition for two groups?
Check that both x and n – x are at least 10 for each group (using the sample counts for an interval and the pooled counts for a test).
How do I decide which proportion to put first?
Choose an order that makes the question easy to state, such as new minus old, and keep it throughout. Then interpret the sign of the interval in terms of that order.
Common mistakes with this two proportion z test lesson
- Using the pooled proportion in a confidence interval. Pool only in a test of equal proportions, since the null assumes the same value for both.
- Checking the large counts condition for the combined sample. Then, check at least 10 successes and 10 failures in each group separately.
- Using this procedure for the same people measured twice. Two-sample proportion methods need independent groups. Watch for this slip every time you check your work.
How to study this chapter
- Write the parameters with group names, then keep the order of subtraction consistent. Also, the interpretation depends on the order.
- Show the conditions with numbers for each group. Counts of successes and failures should be at least 10 in each.
- Teachers can ask students to explain in a sentence why pooling makes sense only under the null. A parent or teacher can check this step in seconds.
Download the two proportion z test lesson as a PDF with the button below and keep it with your notes.
More questions about two proportion z test lesson
How do you find the pooled proportion?
Add the successes from both groups and divide by the total of both sample sizes. For 40 of 100 and 30 of 100, the pooled proportion is 70 over 200, which is 0.35.
How do you write a conclusion for a two-proportion test?
Compare the p-value with alpha. Then state whether there is convincing evidence that the two population proportions differ, naming both groups and the context. If an answer does not look reasonable, go back and check each step.
What is the standard error for an interval for p1 minus p2?
It is the square root of the sum of each group’s p-hat times (1 minus p-hat) over its sample size. The two variances add, because the groups are independent. A quick sketch or a table of values makes the idea easier to see.
All AP Statistics chapters: AP Statistics math.
Free printable PDF
AP Statistics Inference for the Difference of Two Proportions Lesson: Notes and Examples
Download PDFMore AP Statistics math
Lessons
See allInference for the Slope of a Regression Line Lesson: Notes and Examples
Binomial and Geometric Distributions Lesson: Notes and Examples
Mean, Median, Standard Deviation and Outliers Lesson: Notes and Examples
Scatterplots and Correlation Lesson: Notes and Examples
Random Variables, Expected Value and Combining Variables Lesson: Notes and Examples
Variables and Categorical Data Displays Lesson: Notes and Examples
Worksheets
See allSignificance Tests for a Proportion Worksheets with Answers
Binomial and Geometric Distributions Worksheets with Answers
Experimental Design and Random Assignment Worksheets with Answers
Inference for the Difference of Two Means Worksheets with Answers
Sampling Distributions and the Central Limit Theorem Worksheets with Answers
Conditional Probability and Independence Worksheets with Answers
Tests
See allConditional Probability and Independence Test with Answer Key
Significance Tests for a Proportion Test with Answer Key
Confidence Intervals for a Proportion Test with Answer Key
Probability Rules and Simulation Test with Answer Key
Two Categorical Variables and Two-Way Tables Test with Answer Key
Scatterplots and Correlation Test with Answer Key
Quizzes
See allSampling Methods and Bias in Surveys Quiz: 10 Questions with Answers
Mean, Median, Standard Deviation and Outliers Quiz: 10 Questions with Answers
Graphs of Quantitative Data and Shape Quiz: 10 Questions with Answers
Sampling Distributions and the Central Limit Theorem Quiz: 10 Questions with Answers
Scatterplots and Correlation Quiz: 10 Questions with Answers
Confidence Intervals for a Proportion Quiz: 10 Questions with Answers

























