Historical Context & Motivation
Comparing two groups is one of the oldest and most fundamental questions in statistics: Is a new treatment more effective than an old one? Do voters in one region favor a policy more than voters in another? The formal machinery for answering such questions took shape over several centuries, building on the theory of probability, the Central Limit Theorem, and the development of sampling distributions. Before statisticians established the sampling distribution of the difference in sample proportions, practitioners had no rigorous way to decide whether an observed difference between two groups was real or merely the product of random variation.
The central question this topic addresses is deceptively simple: if we draw an independent random sample from each of two populations and compute the difference in sample proportions, what does the distribution of all possible such differences look like? Once we characterize that distribution—its center, spread, and shape—we have the tools to build confidence intervals and conduct hypothesis tests for comparing two proportions.
Core Principles & Definitions
Before diving into formulas, it is essential to be precise about what we mean by a sampling distribution in the two-sample context. Suppose Population 1 has a true proportion p₁ of individuals with some characteristic, and Population 2 has a true proportion p₂. We independently draw a random sample of size n₁ from the first population and a random sample of size n₂ from the second, then compute the sample proportions p̂₁ and p̂₂. The quantity of interest is the difference in sample proportions, p̂₁ − p̂₂. If we were to repeat this process infinitely many times, the collection of all resulting differences would form the sampling distribution of p̂₁ − p̂₂.
Center (Mean)
Spread (Standard Deviation)
Shape (Normality)
Independence
Visual Explanation
The following diagram illustrates how two individual sampling distributions for p̂₁ and p̂₂ combine to produce the sampling distribution of their difference. Each bell curve is centered on its respective population proportion, and the resulting difference distribution is centered on p₁ − p₂ with a spread determined by the sum of the two variances.
Notice that the bottom curve is visibly wider than either individual curve. This is not an accident; it reflects a fundamental property of independent random variables. When you subtract two independent quantities, the uncertainties do not cancel—they compound. The variance of a difference equals the sum of the variances, not the difference. This is one of the most common sources of student error on the AP exam, where test-takers sometimes mistakenly subtract variances.
Mathematical Framework
We now formalize the three properties—center, spread, and shape—of the sampling distribution. Recall that p̂₁ and p̂₂ are independent random variables because the two samples are drawn independently from their respective populations.
Conditions & Checking Assumptions
For the normal model to apply to p̂₁ − p̂₂, three sets of conditions must be verified. On the AP exam, you are expected to name each condition, check it using the problem's data, and state whether it is satisfied. Skipping this step costs points on every inference FRQ. The following diagram and table summarize the full checklist.
| Condition | What to Check | Why It Matters |
|---|---|---|
| Random | Both samples were selected using a random mechanism (SRS, stratified random sample, or random assignment in an experiment). | Ensures the sample statistics are unbiased estimators of the population parameters and that the sampling distribution theory applies. |
| 10% (Independence) | n₁ ≤ 0.10 × N₁ and n₂ ≤ 0.10 × N₂, where N₁ and N₂ are the population sizes. | When sampling without replacement, observations are not perfectly independent. The 10% condition ensures the dependence is negligible so the variance formula remains accurate. |
| Large Counts (Normality) | n₁p̂₁ ≥ 10, n₁(1 − p̂₁) ≥ 10, n₂p̂₂ ≥ 10, n₂(1 − p̂₂) ≥ 10. | Guarantees each individual sampling distribution is approximately normal, which in turn ensures the difference is approximately normal. |
Worked Example
A researcher wants to compare the proportion of adults who support a new environmental regulation in two states. In State A, a random sample of 400 adults finds that 248 support the regulation. In State B, a random sample of 500 adults finds that 265 support it. Describe the sampling distribution of p̂_A − p̂_B.
Common Errors & Pitfalls
The sampling distribution of p̂₁ − p̂₂ is a topic where students frequently lose points on the AP exam—not from a lack of formula knowledge, but from procedural missteps and conceptual confusions. The table below catalogs the most common errors alongside the correct approach.
| Common Error | Why It's Wrong | Correct Approach |
|---|---|---|
| Subtracting standard deviations instead of adding variances | Standard deviations are not additive. The variance of a difference of independent variables equals the sum of the variances, not the difference. | Always add the variances first, then take the square root: σ = √(σ₁² + σ₂²). |
| Using the pooled proportion when constructing a confidence interval | Pooling assumes p₁ = p₂, which is the null hypothesis. A CI does not assume H₀ is true. | Use separate sample proportions p̂₁ and p̂₂ in the SE formula for confidence intervals. |
| Forgetting to check conditions | Without verified conditions, the normal model may be invalid, and the resulting inference is unsupported. | Always state and verify Random, 10%, and Large Counts conditions with specific numbers from the data. |
| Treating dependent samples as independent | If the same individuals are measured twice (e.g., before/after), the samples are paired, not independent, and this formula does not apply. | Use the two-sample z-procedure only for genuinely independent samples. For paired data, analyze the single set of differences. |
| Confusing standard deviation with standard error | The standard deviation uses population parameters (p₁, p₂); the standard error uses sample statistics (p̂₁, p̂₂). Terminology matters on the AP rubric. | Use 'standard deviation' when referencing theory with known p₁ and p₂. Use 'standard error' when estimating with p̂₁ and p̂₂. |
Connection to Inference Procedures
The sampling distribution of p̂₁ − p̂₂ is not an end in itself; it is the theoretical engine that powers two major inference procedures you will encounter on the AP exam. Understanding the sampling distribution allows you to construct confidence intervals for p₁ − p₂ and to perform two-proportion z-tests. The table below contrasts the two procedures and highlights how the SE formula changes between them.
| Feature | Confidence Interval | Two-Proportion z-Test |
|---|---|---|
| Goal | Estimate the true difference p₁ − p₂ with a range of plausible values. | Test whether p₁ − p₂ equals a hypothesized value (usually 0). |
| SE Formula | Unpooled: √[p̂₁(1−p̂₁)/n₁ + p̂₂(1−p̂₂)/n₂] | Pooled: √[p̂_c(1−p̂_c)(1/n₁ + 1/n₂)] where p̂_c = (X₁+X₂)/(n₁+n₂) |
| Why the difference? | We make no assumption about the relationship between p₁ and p₂, so each is estimated separately. | Under H₀: p₁ = p₂, both populations share a common proportion—pooling gives a better estimate of this shared value. |
| Output | (p̂₁ − p̂₂) ± z* × SE | z = (p̂₁ − p̂₂ − 0) / SE, then find the p-value |
| Large Counts check uses | Individual sample proportions p̂₁ and p̂₂ | Pooled proportion p̂_c for both samples |
Beyond the AP course, the ideas behind the sampling distribution of a difference extend naturally to more advanced settings. In logistic regression, differences in proportions are modeled through log-odds, and the sampling distributions of regression coefficients follow similar normal approximation logic. In Bayesian inference, the posterior distribution for p₁ − p₂ can be computed directly by simulating differences from the posterior distributions of p₁ and p₂. The frequentist z-based approach you learn now is the simplest entry point into a rich family of comparison methods.
Practice Problems
Summary
The sampling distribution of p̂₁ − p̂₂ describes the behavior of the difference in sample proportions across all possible pairs of independent random samples. Its mean equals p₁ − p₂ (making the statistic an unbiased estimator), and its standard deviation is √[p₁(1 − p₁)/n₁ + p₂(1 − p₂)/n₂], reflecting the critical fact that independent variances add. When the Random, 10%, and Large Counts conditions are all satisfied, this distribution is approximately normal, enabling z-based inference procedures.
In practice, the standard error (using p̂₁ and p̂₂ in place of the unknown population proportions) is used for confidence intervals, while a pooled proportion is used when testing H₀: p₁ = p₂. Always verify conditions with specific numerical values from the data, and remember that the most common exam errors involve subtracting variances instead of adding them, or using the wrong SE formula for the procedure at hand. Mastering this sampling distribution unlocks the entire family of two-proportion inference methods that appear frequently on the AP Statistics exam.