Two-Sample t-Interval — Definition, Formula & Example
A two-sample t-interval is a range of plausible values for the difference between two population means. You build it from two independent samples when the population standard deviations are unknown.
Given independent random samples (or two groups formed by random assignment) of sizes and , with sample means and sample standard deviations , a level- two-sample t-interval for is . Here is the upper critical value of a t-distribution. Its degrees of freedom come from the Welch–Satterthwaite approximation, or conservatively from .
Key Formula
Where:
- = sample means of groups 1 and 2
- = sample standard deviations of groups 1 and 2
- = sample sizes of groups 1 and 2
- = critical t-value for the chosen confidence level and degrees of freedom
How It Works
First check three conditions. The data must come from random samples or a randomized experiment. The two groups must be independent, and when sampling without replacement each sample should be under 10% of its population. Each sampling distribution must be approximately normal, which holds if or the sample data show no strong skew or outliers. Then compute the interval. If it contains 0, a difference of zero is plausible. If it lies entirely above or below 0, the data give convincing evidence that the means differ.
Worked Example
Problem: A teacher randomly assigns 50 students to two study methods, 25 per method. Method A: mean score 82, standard deviation 15. Method B: mean score 70, standard deviation 20. Dotplots of both groups show no strong skew or outliers. Construct a 95% confidence interval for .
Step 1: Find the point estimate and the standard error.
Step 2: Use the conservative degrees of freedom, . From a t-table, the 95% critical value is .
Step 3: Compute the margin of error and the interval.
Answer: . You can be 95% confident that the true mean score for Method A is between 1.68 and 22.32 points higher than for Method B. The whole interval is above 0, and the students were randomly assigned, so this is convincing evidence that Method A causes higher mean scores. A calculator uses Welch degrees of freedom (about 44.5), which gives a slightly narrower interval.
Why It Matters
This interval is a core AP Statistics Unit 7 procedure, and free-response questions often ask whether the interval contains 0. Clinical researchers use it to estimate how much a drug lowers mean blood pressure compared with a placebo. Tech companies use it in A/B tests to compare average time spent on two website designs.
Common Mistakes
Mistake: Using a two-sample t-interval on paired data, such as before-and-after scores from the same students.
Correction: Paired measurements are not independent groups. Compute each subject's difference, then use a one-sample t-interval on those differences.
