AP STATISTICS • SAMPLING DISTRIBUTIONS

Sampling Distributions for Differences in Sample Proportions

Understanding how the distribution of p̂₁ − p̂₂ enables inference about two populations.

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.

1713
Bernoulli's Ars Conjectandi
Jacob Bernoulli published the first version of the law of large numbers, establishing that sample proportions converge to the true population proportion as the sample size grows. This was the conceptual seed for all future work on sampling distributions.
1733
De Moivre's Normal Approximation
Abraham de Moivre showed that the binomial distribution could be approximated by the normal curve when sample sizes are large, providing the foundation for using z-scores with proportions.
1810
Laplace's Central Limit Theorem
Pierre-Simon Laplace generalized the normal approximation to sums and means of arbitrary random variables. His Central Limit Theorem guaranteed that linear combinations of independent statistics—including differences—are approximately normal.
1900s
Pearson & Fisher Formalize Hypothesis Testing
Karl Pearson and Ronald Fisher developed the framework of significance testing and confidence intervals. Two-sample tests for proportions became standard tools in biostatistics, social science, and quality control.
2000s
Modern AP Statistics Curriculum
The AP Statistics course codified the two-sample z-test for proportions as a core inference procedure, embedding the sampling distribution of p̂₁ − p̂₂ as essential knowledge for every statistics student.

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̂₂.

1

Center (Mean)

The mean of the sampling distribution equals the true difference: μ(p̂₁ − p̂₂) = p₁ − p₂. This follows from the linearity of expectation. The statistic is an unbiased estimator of the population parameter.
2

Spread (Standard Deviation)

Because the two samples are independent, the variances add: σ(p̂₁ − p̂₂) = √[p₁(1 − p₁)/n₁ + p₂(1 − p₂)/n₂]. Larger samples shrink this standard deviation, making the estimate more precise.
3

Shape (Normality)

When n₁p₁ ≥ 10, n₁(1 − p₁) ≥ 10, n₂p₂ ≥ 10, and n₂(1 − p₂) ≥ 10, the sampling distribution is approximately normal. This Large Counts condition ensures the CLT applies.
4

Independence

The two samples must be independent of each other, and within each sample, observations must be independent. For sampling without replacement, we invoke the 10% condition: n₁ ≤ 0.10N₁ and n₂ ≤ 0.10N₂.
KEY TAKEAWAY
Think of each sample proportion as a dart thrown at a target centered on its true population proportion. Each dart lands with some random scatter. When you compute the difference p̂₁ − p̂₂, you are measuring the gap between two independently scattered darts. The variability in that gap is greater than the variability in either dart alone—precisely because independent variances add. This additive property is what makes the standard deviation formula for the difference larger than either single-proportion standard deviation.

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.

The top row shows the individual sampling distributions of p̂₁ (cyan, centered at 0.60) and p̂₂ (violet, centered at 0.45). The bottom curve (emerald) shows the resulting sampling distribution of p̂₁ − p̂₂, centered at 0.15, with a wider spread reflecting the addition of variances from both component distributions.

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.

MEAN OF THE DIFFERENCE
μ_{p̂₁ − p̂₂} = p₁ − p₂
By linearity of expectation, E[p̂₁ − p̂₂] = E[p̂₁] − E[p̂₂] = p₁ − p₂. The statistic p̂₁ − p̂₂ is an unbiased estimator of the true difference in population proportions.
STANDARD DEVIATION OF THE DIFFERENCE
σ_{p̂₁ − p̂₂} = √[ p₁(1 − p₁)/n₁ + p₂(1 − p₂)/n₂ ]
Since p̂₁ and p̂₂ are independent, Var(p̂₁ − p̂₂) = Var(p̂₁) + Var(p̂₂). We then take the square root. Here p₁, p₂ are population proportions and n₁, n₂ are the respective sample sizes.
STANDARD ERROR (ESTIMATED)
SE_{p̂₁ − p̂₂} = √[ p̂₁(1 − p̂₁)/n₁ + p̂₂(1 − p̂₂)/n₂ ]
In practice, the population proportions are unknown. We substitute sample proportions to obtain the standard error (SE), which estimates the standard deviation. This version is used for confidence intervals.
NORMALITY (LARGE COUNTS) CONDITION
n₁p₁ ≥ 10, n₁(1 − p₁) ≥ 10, n₂p₂ ≥ 10, n₂(1 − p₂) ≥ 10
When all four products meet or exceed 10, the Central Limit Theorem guarantees that p̂₁ − p̂₂ is approximately normally distributed. In practice, when the true proportions are unknown, we check with the observed counts: n₁p̂₁, n₁(1 − p̂₁), n₂p̂₂, n₂(1 − p̂₂).
⚠️ AP Exam Tip: Pooled vs. Unpooled
When constructing a confidence interval, use the unpooled SE formula above (with p̂₁ and p̂₂ separately). When conducting a hypothesis test under H₀: p₁ = p₂, use the pooled proportion p̂_c = (X₁ + X₂)/(n₁ + n₂) to compute the SE. Mixing these up is a common error on the exam.

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.

The three condition boxes—Random, 10% Condition, and Large Counts—must all be satisfied before you can assert that p̂₁ − p̂₂ follows an approximately normal distribution.
Summary of conditions for inference on p̂₁ − p̂₂
ConditionWhat to CheckWhy It Matters
RandomBoth 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.

Describing the Sampling Distribution of p̂_A − p̂_B
1
Step 1 — Identify Given ValuesFrom the problem: n_A = 400, X_A = 248, so p̂_A = 248/400 = 0.62. Also n_B = 500, X_B = 265, so p̂_B = 265/500 = 0.53. The observed difference is p̂_A − p̂_B = 0.62 − 0.53 = 0.09.
p̂_A = 0.62, p̂_B = 0.53, p̂_A − p̂_B = 0.09
2
Step 2 — Check the Random ConditionThe problem states that both samples are random samples of adults from their respective states. The two samples are selected independently. The Random condition is satisfied.
3
Step 3 — Check the 10% ConditionEach state has millions of adults, so 400 < 0.10 × N_A and 500 < 0.10 × N_B. The 10% condition is satisfied for both samples, and we can treat individual observations as approximately independent within each sample.
4
Step 4 — Check the Large Counts ConditionCompute the four counts: n_A × p̂_A = 400 × 0.62 = 248 ≥ 10 ✓, n_A × (1 − p̂_A) = 400 × 0.38 = 152 ≥ 10 ✓, n_B × p̂_B = 500 × 0.53 = 265 ≥ 10 ✓, n_B × (1 − p̂_B) = 500 × 0.47 = 235 ≥ 10 ✓. All four counts exceed 10, so the Large Counts condition is satisfied.
5
Step 5 — Compute the MeanThe mean of the sampling distribution is μ_{p̂_A − p̂_B} = p_A − p_B. We estimate this with our observed p̂_A − p̂_B = 0.62 − 0.53 = 0.09. If we are describing the distribution under known population parameters, the mean would be p_A − p_B.
Mean = p_A − p_B (estimated by 0.09)
6
Step 6 — Compute the Standard DeviationUsing the observed proportions as estimates: SE = √[p̂_A(1 − p̂_A)/n_A + p̂_B(1 − p̂_B)/n_B] = √[(0.62)(0.38)/400 + (0.53)(0.47)/500] = √[0.2356/400 + 0.2491/500] = √[0.000589 + 0.000498] = √0.001087 ≈ 0.03297.
SE ≈ 0.033
7
Step 7 — State the Sampling DistributionSince all conditions are met, the sampling distribution of p̂_A − p̂_B is approximately normal with mean p_A − p_B and standard deviation ≈ 0.033. In notation:
p̂_A − p̂_B ~ Normal(p_A − p_B, 0.033)

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.

Frequent mistakes on the AP Statistics exam related to inference for two proportions
Common ErrorWhy It's WrongCorrect Approach
Subtracting standard deviations instead of adding variancesStandard 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 intervalPooling 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 conditionsWithout 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 independentIf 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 errorThe 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̂₂.
REMEMBER: VARIANCES ADD
Imagine two machines on an assembly line, each introducing its own random error to a product's length. If one machine's error has variance 4 and the other's has variance 9, the total variability in the combined error is 4 + 9 = 13, regardless of whether the errors are added or subtracted. In the same way, the variance of p̂₁ − p̂₂ equals the sum of the individual variances. This principle—that independent uncertainties always compound—is a cornerstone of statistical inference.

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.

Confidence Interval vs. Hypothesis Test for two proportions
FeatureConfidence IntervalTwo-Proportion z-Test
GoalEstimate the true difference p₁ − p₂ with a range of plausible values.Test whether p₁ − p₂ equals a hypothesized value (usually 0).
SE FormulaUnpooled: √[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* × SEz = (p̂₁ − p̂₂ − 0) / SE, then find the p-value
Large Counts check usesIndividual 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

1
Two independent random samples are drawn from two populations. The sampling distribution of p̂₁ − p̂₂ has a standard deviation that depends on both p₁(1 − p₁)/n₁ and p₂(1 − p₂)/n₂. Why are the variances added rather than subtracted when computing the variance of the difference?
2
A random sample of 200 voters in City X found that 120 favor a ballot measure (p̂₁ = 0.60). An independent random sample of 300 voters in City Y found that 135 favor the measure (p̂₂ = 0.45). What is the standard error of p̂₁ − p̂₂?
3
A researcher collects two independent random samples: 150 adults from Population A (62 successes) and 180 adults from Population B (90 successes). She wishes to describe the sampling distribution of p̂_A − p̂_B. Which of the following is the best description?
PROBLEM 4APPLIED
A pharmaceutical company runs a randomized controlled trial to compare the effectiveness of a new drug versus a placebo for relieving symptoms. In the treatment group, 84 out of 250 patients experienced symptom relief (p̂₁ = 0.336). In the placebo group, 51 out of 250 patients experienced relief (p̂₂ = 0.204). (a) Verify that the conditions for inference are met. (b) Describe the sampling distribution of p̂₁ − p̂₂, assuming the true proportions are p₁ and p₂. (c) Compute and interpret a 95% confidence interval for p₁ − p₂. (d) Based on the confidence interval, is there convincing evidence that the drug is more effective than the placebo? Justify your answer.
PROBLEM 5CRITICAL THINKING
Suppose p₁ = 0.50 and p₂ = 0.50, and you draw independent random samples of sizes n₁ and n₂ from the two populations. (a) Derive a simplified expression for σ_{p̂₁ − p̂₂} in terms of n₁ and n₂ when p₁ = p₂ = 0.50. (b) Show that if n₁ = n₂ = n, the standard deviation simplifies to 1/√(2n). Explain intuitively why doubling the sample size in both groups does not cut the standard deviation in half. (c) Suppose you have a total budget of N = n₁ + n₂ observations. Using calculus or algebraic reasoning, show that σ_{p̂₁ − p̂₂} is minimized when n₁ = n₂ = N/2. Explain why equal allocation is optimal. (d) Discuss how this result informs practical study design when comparing two proportions.

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.

Varsity Tutors • AP Statistics • Sampling Distributions for Differences in Sample Proportions