SECTION 1
Historical Context & Motivation
The question of whether two groups genuinely differ is one of the oldest in quantitative science. When a pharmaceutical researcher measures blood-pressure reductions under two drugs, or an agronomist compares crop yields across two fertilizers, the raw difference between sample means is only a starting point—random sampling variability means that difference could be larger, smaller, or even opposite in sign at the population level. The need for a principled interval that captures plausible values of μ₁ − μ₂ drove some of the most important developments in modern statistics.
1908 • Student's t-Distribution
1935 • Fisher Formalizes Experimental Design
1938 • Welch's Approximate Solution
1947 • Satterthwaite's Degrees of Freedom
The central question this lesson addresses is: given two independent random samples with means x̄₁ and x̄₂, how do we construct an interval of plausible values for the true difference μ₁ − μ₂, and what conditions must hold for that interval to be trustworthy?
SECTION 2
Core Principles & Definitions
Before computing anything, you must internalize the logic that makes a two-sample confidence interval valid. The interval rests on the same point-estimate ± margin-of-error structure you learned for one-sample inference, but the sampling distribution and the conditions that justify it are slightly more complex because two independent sources of variability contribute to the standard error.
Point Estimate
Standard Error of the Difference
Critical Value from the t-Distribution
Conditions for Validity
Interpretation
KEY TAKEAWAY
SECTION 3
Visualizing the Sampling Distribution
The diagram below illustrates how two independent sampling distributions combine into a single sampling distribution of the difference. Each sample mean has its own variability; when we subtract them, the variances add (a direct consequence of independence), producing a wider distribution centered at μ₁ − μ₂.
Notice that the bottom curve is wider than either individual curve. This is a direct visual manifestation of the fact that variances add when random variables are independent. Because two sources of sampling variability contribute, the standard error of the difference is always larger than the standard error of either individual mean, which makes confidence intervals for the difference wider than one-sample intervals of comparable confidence level.
SECTION 4
Mathematical Framework
The two-sample t-interval follows the universal structure of a confidence interval: point estimate ± (critical value)(standard error). We now formalize each component.
GENERAL FORM
x̄₁, x̄₂ = sample means; s₁, s₂ = sample standard deviations; n₁, n₂ = sample sizes; t* = critical value from the t-distribution at the desired confidence level C.
STANDARD ERROR OF THE DIFFERENCE
This formula uses the fact that Var(X − Y) = Var(X) + Var(Y) when X and Y are independent. We estimate σ₁² and σ₂² with s₁² and s₂², respectively.
WELCH–SATTERTHWAITE DEGREES OF FREEDOM
This approximation yields a non-integer df that is always between min(n₁ − 1, n₂ − 1) and n₁ + n₂ − 2. On the AP exam your calculator computes this automatically. A conservative shortcut is to use df = min(n₁ − 1, n₂ − 1).
AP Exam Tip
The derivation rests on the Central Limit Theorem: when sample sizes are sufficiently large (or the populations are approximately normal), the distribution of x̄₁ − x̄₂ is approximately normal. Standardizing this quantity by dividing by the estimated standard error produces a statistic that follows an approximate t-distribution with Welch–Satterthwaite degrees of freedom, and the confidence interval follows by inverting the resulting probability statement.
SECTION 5
Conditions & Checking Assumptions
A confidence interval is only as trustworthy as its underlying assumptions. On the AP exam, verifying conditions is not optional—failure to state and check them will cost points on every free-response inference question. The three conditions for a two-sample t-interval are commonly summarized by the mnemonic Random, Independent, Normal.
A subtle but important point: if the data come from a randomized experiment rather than two independent random samples, the Random condition is satisfied by the random assignment of subjects to groups, and the 10% condition is not required because the subjects are the entire population of interest for that experiment. In observational studies, however, both the random selection and the 10% condition must be addressed.
Normality Guidelines by Sample Size
SECTION 6
Worked Example
A researcher wants to compare the mean resting heart rates of athletes and non-athletes. She takes a random sample of 35 college athletes and a separate random sample of 40 non-athletes from the same university. The sample statistics are: athletes (Group 1): x̄₁ = 62.4 bpm, s₁ = 8.3 bpm; non-athletes (Group 2): x̄₂ = 71.8 bpm, s₂ = 10.1 bpm. Construct a 95% confidence interval for μ₁ − μ₂.
95% CI for μ₁ − μ₂ (Athletes − Non-Athletes)
- 1
Step 1 — State the Parameter and Procedure
We wish to estimate μ₁ − μ₂, the difference in mean resting heart rates between the population of college athletes and the population of college non-athletes. We will use a two-sample t-interval for the difference of two means. - 2
Step 2 — Check Conditions
Random: Both samples were selected randomly from the university population. Independent: The two groups are distinct individuals, and assuming the university has at least 350 athletes and 400 non-athletes, the 10% condition is satisfied for both groups. Normal/Large Sample: n₁ = 35 ≥ 30 and n₂ = 40 ≥ 30, so the Central Limit Theorem ensures the sampling distribution of x̄₁ − x̄₂ is approximately normal. - 3
Step 3 — Compute the Standard Error
SE = √(s₁²/n₁ + s₂²/n₂) = √(8.3²/35 + 10.1²/40) = √(68.89/35 + 102.01/40) = √(1.9683 + 2.5503) = √4.5186 ≈ 2.126.SE ≈ 2.126 - 4
Step 4 — Find Degrees of Freedom and t*
Using the Welch–Satterthwaite formula: df = (1.9683 + 2.5503)² / [(1.9683)²/34 + (2.5503)²/39] = (4.5186)² / [3.8742/34 + 6.5040/39] = 20.4178 / [0.11395 + 0.16677] = 20.4178 / 0.28072 ≈ 72.73. Using df ≈ 72.73 (or the calculator value) for a 95% confidence level, t* ≈ 1.993. On the AP exam, you would report the calculator's value directly.df ≈ 72.7, t* ≈ 1.993 - 5
Step 5 — Construct the Interval
(x̄₁ − x̄₂) ± t* × SE = (62.4 − 71.8) ± 1.993 × 2.126 = −9.4 ± 4.237. This gives us a 95% CI of (−13.637, −5.163).95% CI: (−13.64, −5.16) - 6
Step 6 — Interpret in Context
We are 95% confident that the true difference in mean resting heart rates (athletes minus non-athletes) is between −13.64 bpm and −5.16 bpm. Because the entire interval is negative, we have convincing evidence that, on average, college athletes have lower resting heart rates than college non-athletes. The data suggest athletes' mean heart rate is between about 5 and 14 bpm lower.
SECTION 7
Interpretation, Strengths & Common Pitfalls
Correctly interpreting a confidence interval—and avoiding the common misconceptions that appear on the AP exam—is just as important as computing it. The table below contrasts correct interpretations with frequent errors.
| Aspect | Correct | Common Error |
|---|---|---|
| What the interval captures | The interval estimates the parameter μ₁ − μ₂, the difference in population means. | Saying the interval captures the difference in sample means x̄₁ − x̄₂ (the point estimate is known—no interval needed). |
| Meaning of 95% confidence | If we repeated the sampling process many times, about 95% of resulting intervals would contain μ₁ − μ₂. | "There is a 95% probability that μ₁ − μ₂ is in this interval." (The parameter is fixed; probability applies to the procedure, not the parameter.) |
| When 0 is in the interval | Zero is a plausible value for μ₁ − μ₂, so we lack convincing evidence of a difference. | "The means are equal." (Failure to find evidence of a difference ≠ evidence that there is no difference.) |
| Causation | Causal language is appropriate only when data come from a randomized experiment. | Claiming causation from an observational study (e.g., "exercising causes lower heart rate"). |
| Context | Always interpret in terms of the real-world variables and units (e.g., bpm, kg, minutes). | Giving a generic statement like "We are 95% confident the difference is between −13.64 and −5.16" without naming the variable or units. |
Common interpretive errors on AP Statistics free-response questions
KEY TAKEAWAY
SECTION 8
Connection to Hypothesis Tests & Paired Designs
The two-sample t-interval is intimately connected to the two-sample t-test: a 95% confidence interval that does not contain 0 corresponds exactly to rejecting H₀: μ₁ − μ₂ = 0 at the α = 0.05 significance level. However, the interval provides more information than a simple reject/fail-to-reject decision—it tells you the range of plausible effect sizes. Understanding this duality is essential for the AP exam and for real statistical practice.
| Feature | Two-Sample t-Interval | Paired t-Interval |
|---|---|---|
| Data structure | Two independent groups with potentially different sample sizes. | Each subject measured twice, or subjects are matched in pairs. |
| Parameter | μ₁ − μ₂ | μ_d (mean of the differences) |
| Standard error | √(s₁²/n₁ + s₂²/n₂) | / √n, where is the SD of the differences |
| Degrees of freedom | Welch–Satterthwaite approximation (calculator computes) | n − 1, where n = number of pairs |
| When to use | Subjects in the two groups have no natural pairing. | Pre/post designs, matched pairs, or repeated measures. |
| Key advantage | Flexible; does not require equal sample sizes or equal variances. | Eliminates subject-to-subject variability, producing a narrower interval. |
Comparison of two-sample and paired t-intervals
Looking ahead, in college statistics courses you will encounter ANOVA (analysis of variance), which generalizes the two-sample comparison to three or more groups simultaneously, and bootstrap confidence intervals, which use resampling to avoid distributional assumptions entirely. These methods build directly on the logic and structure of the two-sample t-interval you are learning here, so mastering this procedure establishes a foundation for more advanced inference.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
- A. There is a 90% probability that μ₁ − μ₂ is between −3.2 and 1.8.
- B. We are 90% confident that the true difference in population means is between −3.2 and 1.8.
- C. 90% of all possible sample differences fall between −3.2 and 1.8.
- D. The sample means differ by an amount between −3.2 and 1.8.
- E. We are 90% confident that the difference in sample means is between −3.2 and 1.8.
Show answer (B)
Question 2: BASIC CALCULATION
- A. 1.44
- B. 1.76
- C. 2.07
- D. 3.07
- E. 3.63
Show answer (B)
Question 3: INTERMEDIATE
- A. Be narrower and have the same center.
- B. Be wider and have the same center.
- C. Be wider and have a different center.
- D. Have the same width but a shifted center.
- E. Possibly contain 0, since the additional width could shift the lower bound below 0.
Show answer (B)
Question 4: APPLIED
4 ptsShow answer
Question 5: CRITICAL THINKING
4 ptsShow answer
SUMMARY
Lesson Summary
Summary
A two-sample t-interval estimates the difference in population means μ₁ − μ₂ using the formula (x̄₁ − x̄₂) ± t* × √(s₁²/n₁ + s₂²/n₂). The standard error reflects the combined sampling variability from both groups, and the Welch–Satterthwaite degrees of freedom provide the correct t* critical value without assuming equal population variances. Before constructing the interval, verify the three conditions: Random (random sampling or random assignment), Independent (separate groups and the 10% condition), and Normal/Large Sample (population normality or n ≥ 30).
When interpreting, state what you are confident about—the parameter, not the statistic—and always include context (variable names and units). If the interval contains 0, there is no convincing evidence of a difference. If it does not contain 0, the sign of every value in the interval tells you which population mean is likely larger. This procedure connects directly to the two-sample t-test, the paired t-interval, and the broader ANOVA framework you will encounter in later coursework.