AP Statistics · Unit 3 · Topic 3.10

    3.10 Constructing a Confidence Interval for the Difference Between Two Population Proportions

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    A two-sample z-interval for p₁ − p₂ is (p^1−p^2)±z∗p^1(1−p^1)n1+p^2(1−p^2)n2(\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}}. Check: two independent random samples (or random assignment), 10% for each sample, and at least 10 successes and 10 failures in each sample. Use the four steps: State, Plan, Do, Conclude.

    What you need to know

    • Identify when a two-sample z-interval for p₁ − p₂ is appropriate.
    • Check the conditions using observed counts.
    • Calculate the standard error and the interval.
    • Interpret the interval in context.

    From the sampling distribution to an interval

    Topic 3.9 showed that p̂₁ − p̂₂ is approximately normal with mean p₁ − p₂. We don't know p₁ and p₂, so we replace them with p̂₁ and p̂₂ in the standard deviation to get the standard error. The interval has the familiar form: statistic ± (critical value) × (standard error).

    (p^1−p^2)±z∗p^1(1−p^1)n1+p^2(1−p^2)n2(\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}}
    • Random: two independent random samples, or two groups from a randomized experiment.
    • 10%: each sample is less than 10% of its population (not needed for a randomized experiment).
    • Large counts: n₁p̂₁, n₁(1 − p̂₁), n₂p̂₂ and n₂(1 − p̂₂) are all at least 10 — the observed numbers of successes and failures.

    Worked example

    Independent random samples of 200 adults were taken in two cities. In City A, 84 cycle at least once a week (p̂_A = 0.42); in City B, 60 do (p̂_B = 0.30). Construct a 95% confidence interval for the difference in the proportions of all adults who cycle weekly.

    State. We want to estimate p_A − p_B, where p_A and p_B are the proportions of all adults in City A and City B who cycle at least once a week, with 95% confidence.

    Plan. Two-sample z-interval for p_A − p_B. Random: independent random samples from each city. 10%: 200 is less than 10% of the adults in each city. Large counts: 84, 116, 60 and 140 are all at least 10.

    (0.42−0.30)±1.960.42(0.58)200+0.30(0.70)200=0.12±1.96(0.0476)=0.12±0.093(0.42 - 0.30) \pm 1.96\sqrt{\frac{0.42(0.58)}{200} + \frac{0.30(0.70)}{200}} = 0.12 \pm 1.96(0.0476) = 0.12 \pm 0.093

    Do. The interval is (0.027, 0.213). A calculator's 2-PropZInt gives the same result.

    Conclude. We are 95% confident that the interval from 0.027 to 0.213 captures the true difference in the proportions of all adults in City A and City B who cycle at least once a week (City A minus City B).

    Other confidence levels

    The same data give a 90% interval of 0.12 ± 1.645(0.0476), about (0.042, 0.198), and a 99% interval of 0.12 ± 2.576(0.0476), about (−0.003, 0.243). Higher confidence means a wider interval. Topic 3.11 shows why the 99% interval, which includes 0, leads to a different conclusion from the 95% one.

    In an experiment the same interval estimates the difference in the proportion of successes between the two treatments for the subjects studied, and random assignment supports a cause-and-effect reading.

    Key terms

    Two-sample z-interval for p₁ − p₂
    A confidence interval for the difference between two population proportions.
    Standard error of p̂₁ − p̂₂
    √(p̂₁(1 − p̂₁)/n₁ + p̂₂(1 − p̂₂)/n₂), the estimated standard deviation of the difference.
    Critical value z*
    The normal value that captures the middle C% of the distribution: 1.645, 1.96, 2.576 for 90%, 95%, 99%.
    2-PropZInt
    The calculator routine for this interval.

    Common mistakes

    • Using one combined sample size.

      Each proportion's variance uses its own n.

    • Only checking large counts for one group.

      Check successes and failures in both samples.

    • Interpreting without saying which group was subtracted.

      State the order, e.g. 'City A minus City B'.

    How this topic is tested

    • Name the procedure: 'two-sample z-interval for p₁ − p₂'.
    • Show the standard error with numbers substituted.
    • Define both parameters in context.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 3 · Analyze Data

      Random samples: 120 of 300 students at School X and 90 of 300 at School Y walk to school. The standard error of p̂_X − p̂_Y is about:

    2. Question 2 · SP 3 · Analyze Data

      Using the previous data, a 95% confidence interval for p_X − p_Y is about:

    3. Question 3 · SP 2 · Collect Data

      Which is a correct large counts check for a two-sample z-interval?

    4. Question 4 · SP 3 · Analyze Data

      Increasing the confidence level from 90% to 99% (same data) will:

    5. Question 5 · SP 2 · Collect Data

      In a randomized experiment comparing two reminder messages, which condition is NOT required for a two-sample z-interval?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Inference (interval) · 5 points

    In a randomized experiment, 150 volunteers used a new sleep app and 150 used a standard one. After a month, 45 in the new-app group and 30 in the standard group reported sleeping better.

    1. (a) Identify the procedure and verify conditions.
    2. (b) Construct a 95% interval.
    3. (c) Interpret the interval.

    Connected topics

    Frequently asked questions

    Why don't we pool for an interval?

    Pooling assumes p₁ = p₂, which is the null hypothesis of a test. An interval makes no such assumption.

    Can the interval contain negative values?

    Yes. A difference can be negative, meaning group 2 is higher.

    What if the samples are different sizes?

    Use each sample's own n in its term of the standard error.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 3 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 3 cheat sheet

    Every topic in Unit 3: Inference for Categorical Data: Proportions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 3 practice test: 75 questions with explanations

    All topics in Unit 3: Inference for Categorical Data: Proportions

    1. 3.1 Estimators
    2. 3.2 Sampling Distributions for Sample Proportions
    3. 3.3 Constructing a Confidence Interval for a Population Proportion
    4. 3.4 Justifying a Claim Based on a Confidence Interval for a Population Proportion
    5. 3.5 Setting Up a Test for a Population Proportion
    6. 3.6 p-Values
    7. 3.7 Carrying Out a Test for a Population Proportion
    8. 3.8 Potential Errors When Performing Tests
    9. 3.9 Sampling Distributions for the Difference Between Sample Proportions
    10. 3.10 Constructing a Confidence Interval for the Difference Between Two Population Proportions
    11. 3.11 Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Proportions
    12. 3.12 Setting Up a Test for the Difference Between Two Population Proportions
    13. 3.13 Carrying Out a Test for the Difference Between Two Population Proportions
    14. 3.14 Setting Up a Chi-Square Test for Homogeneity or Independence
    15. 3.15 Carrying Out a Chi-Square Test for Homogeneity or Independence

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.