Two-Sample z-Interval — Definition, Formula & Example
A two-sample z-interval is a range of plausible values for the difference between two population parameters, built from two independent samples. In AP Statistics it almost always means the two-proportion z-interval, which estimates .
Given independent random samples of sizes and with sample proportions and , a level- two-proportion z-interval for is . Here is the standard normal critical value with central area , and uses the unpooled sample proportions. It requires the Random condition, the 10% condition for each sample, and the Large Counts condition: , , , and must each be at least 10. A two-sample z-interval for also exists, but it needs both population standard deviations to be known. That rarely happens, so a two-sample t-interval is used for means instead.
Key Formula
Where:
- = sample proportions of successes in samples 1 and 2
- = sample sizes
- = critical value for the confidence level (1.96 for 95%)
Worked Example
Problem: In a random sample of 200 students at School A, 120 support a later start time. In an independent random sample of 200 students at School B, 100 support it. Construct a 95% confidence interval for . Assume each school has more than 2,000 students.
Step 1: Find the sample proportions and check conditions. The samples are random and independent. Each sample is less than 10% of its school. The counts are 120, 80, 100, and 100, which are all at least 10.
Step 2: Compute the standard error.
Step 3: Compute the margin of error, then build the interval around . Keep the unrounded standard error in this step.
Answer: We are 95% confident that the true proportion of students who support a later start is between 0.0030 and 0.1970 higher at School A than at School B. Every value in the interval is positive, so the data give convincing evidence that support is higher at School A.
Why It Matters
On the AP Statistics exam, free-response questions often ask you to compare two groups, such as treatment versus control or two regions. A full-credit answer must name the procedure, check all three conditions, and interpret the interval in context. Medical trials and A/B tests on websites use this exact calculation to estimate how much one option outperforms another.
Common Mistakes
Mistake: Using the pooled proportion in the standard error.
Correction: Pooling belongs to the two-proportion z-test, which assumes . An interval makes no such assumption, so use each sample's own in the standard error.
