AP Statistics Inference for the Difference of Two Means Lesson: Notes and Examples (Free PDF)
This two sample t test lesson for AP Statistics covers inference for the difference of two means (Common Core AP STAT 7.6, AP STAT 7.7, AP STAT 7.8, AP STAT 7.9, HSS-IC.B.5), with a free PDF to print.
Key takeaway: This lesson on inference for the difference of two means helps AP Statistics students compare the averages of two independent groups.
- Topic: Inference for the Difference of Two Means (AP Statistics)
- Content: One-page lesson with a definition, a worked example and key facts
- Standards: AP STAT 7.6, AP STAT 7.7, AP STAT 7.8, AP STAT 7.9, HSS-IC.B.5
- Answers: Explanations included
- Format: Free printable PDF, US Letter, black and white
Key takeaway: A clear AP Statistics lesson on Inference for the Difference of Two Means, with definitions, rules and worked examples: what do we compare with two means, how do you build a two-sample t interval and how do you test H0: mu1 = mu2. Read it before the practice worksheet; free to print or download as a PDF.
To compare two means from independent groups, use a two-sample t procedure with standard error sqrt(s1^2/n1 + s2^2/n2). The interval is the difference in sample means plus or minus t* times that standard error. Check independence, the 10 percent condition, and normality or large samples. For matched data, use a paired t procedure on the differences.
This lesson on inference for the difference of two means helps AP Statistics students compare the averages of two independent groups. First, you define the parameter and check the conditions. Then you build a confidence interval or run a t test and write a conclusion in context.
The lesson covers the standard error of a difference, degrees of freedom, the interval and the test, and the conditions for random samples or random assignment. It also separates paired data from two independent samples. Plan about forty minutes, and define both parameters in words before you start.
AP Statistics · Common Core State Standards: AP STAT 7.6, AP STAT 7.7, AP STAT 7.8, AP STAT 7.9, HSS-IC.B.5
Key facts in this two sample t test lesson
- Parameter: mu1 – mu2; statistic: x-bar1 – x-bar2.
- SE = sqrt(s1^2/n1 + s2^2/n2); df from the calculator, or min(n1 – 1, n2 – 1) conservatively.
- Interval: (x-bar1 – x-bar2) +/- t* SE; test: t = (x-bar1 – x-bar2)/SE with H0: mu1 – mu2 = 0.
- Conditions: independent random samples or random assignment; 10%; each group normal or n >= 30.
- Same subjects measured twice or matched pairs: use a one-sample t on the differences.
What do we compare with two means?
Two-sample procedures compare the means \(\mu_1\) and \(\mu_2\) of two populations, or the mean responses of two treatments. The statistic is \(\overline{x}_1-\overline{x}_2\). The groups must be independent: different people in each group, with no pairing.
Example: two classes are taught with different methods. The difference in sample means is \(78.4-72.1=6.3\) points.
How do you build a two-sample t interval?
\[(\overline{x}_1-\overline{x}_2)\pm t^{*}\sqrt{\frac{s_1^{2}}{n_1}+\frac{s_2^{2}}{n_2}}\]
The degrees of freedom come from the calculator (or the smaller of \(n_1-1\) and \(n_2-1\) as a safe conservative choice). Conditions: independent random samples or random assignment; 10% condition for each sample; and each group approximately normal or large (at least 30). Here both groups have at least 30 students.
\(SE=\sqrt{\frac{9.2^{2}}{35}+\frac{11.5^{2}}{40}}=2.393\), \(df\approx 72.5\), \(t^{*}=1.993\), \(ME=4.769\). The 95% interval is (1.53, 11.07).
We are 95% confident that the interval from 1.53 to 11.07 points captures the true difference in mean scores between the populations taught with Method A and Method B. Since the whole interval is positive, Method A seems to give higher mean scores.
How do you test H0: mu1 = mu2?
State \(H_0:\mu_1-\mu_2=0\) against \(H_a:\mu_1-\mu_2\neq 0\) (or a one-sided alternative). The test statistic is:
\[t=\frac{(\overline{x}_1-\overline{x}_2)-0}{\sqrt{\frac{s_1^{2}}{n_1}+\frac{s_2^{2}}{n_2}}}\]
Here \(t=\frac{6.3}{2.393}=2.63\), and the two-sided p-value is \(0.0104\).
Since 0.0104 is less than 0.05, we reject \(H_0\). There is convincing evidence of a difference in mean scores, and the interval tells us the size.
When is a paired procedure needed?
If the same students take both methods, or are matched in pairs, compute the differences and use a one-sample t procedure on them. Mixing up the two designs is the most common error.
Two sample t test lesson: questions and answers
How do I know whether to use a two-sample or a paired procedure?
Ask whether the two sets of measurements come from different individuals (two-sample) or from the same or matched individuals (paired). Pairing creates dependence, so the differences are analyzed as one sample.
How are the degrees of freedom found?
The calculator uses a formula that gives a non-integer df based on both standard deviations and sample sizes. If you work by hand, use the smaller of n1 – 1 and n2 – 1, which is conservative.
Why do the variances add under the square root?
The two samples are independent, so the variance of the difference is the sum of the variances. Standard deviations never add directly.
What does it mean when the interval for mu1 – mu2 contains 0?
It means 0 is a plausible value for the difference, so there is not convincing evidence that the two population means differ.
Do I need equal standard deviations?
No. The two-sample t procedures in AP Statistics do not assume equal variances; each group keeps its own standard deviation in the standard error.
Common mistakes with this two sample t test lesson
- Using a two-sample procedure for measurements taken on the same subjects twice. Paired data call for a one-sample t procedure on the differences.
- Subtracting the standard deviations instead of adding the variances under the square root. Variances of independent samples add, even for a difference.
- Checking the normal condition only for one group. Then, check both groups, using the shape of the data or a sample size of at least 30.
How to study this chapter
- Write the parameters with group names, such as the mean score of all students taught with method A minus that of method B. Then the conclusion is easy to write.
- Use the calculator for the degrees of freedom and the interval. Show the setup and the key numbers so the grader can follow.
- Teachers can ask students to sort real studies into paired and two-sample before any calculation. Doing this every time makes the method automatic.
Download the two sample t test lesson as a PDF with the button below and keep it with your notes.
More questions about two sample t test lesson
How do you write the conclusion of a two-sample t test?
Compare the p-value with alpha, then state whether there is convincing evidence of a difference in the true means, naming both groups. For example, there is convincing evidence that the mean score differs between the two methods.
How do you interpret a confidence interval for a difference of means?
Say that you are 95 percent confident that the interval captures the true difference in means, naming the groups and the order of subtraction. If the interval is above zero, the first mean is larger.
What if the sample sizes are small?
Check each group for strong skewness or outliers in a graph. If a group is roughly symmetric with no outliers, a t procedure is reasonable. If not, the t procedure may give unreliable results.
All AP Statistics chapters: AP Statistics math.
Free printable PDF
AP Statistics Inference for the Difference of Two Means Lesson: Notes and Examples
Download PDFMore AP Statistics math
Lessons
See allz-Scores and the Normal Distribution Lesson: Notes and Examples
Significance Tests for a Proportion Lesson: Notes and Examples
Sampling Distributions and the Central Limit Theorem Lesson: Notes and Examples
Mean, Median, Standard Deviation and Outliers Lesson: Notes and Examples
t Intervals and t Tests for a Mean Lesson: Notes and Examples
Probability Rules and Simulation Lesson: Notes and Examples
Worksheets
See allBinomial and Geometric Distributions Worksheets with Answers
Inference for the Slope of a Regression Line Worksheets with Answers
Inference for the Difference of Two Proportions Worksheets with Answers
Scatterplots and Correlation Worksheets with Answers
Probability Rules and Simulation Worksheets with Answers
Sampling Methods and Bias in Surveys Worksheets with Answers
Tests
See allExperimental Design and Random Assignment Test with Answer Key
Sampling Distributions and the Central Limit Theorem Test with Answer Key
Graphs of Quantitative Data and Shape Test with Answer Key
Variables and Categorical Data Displays Test with Answer Key
Binomial and Geometric Distributions Test with Answer Key
Random Variables, Expected Value and Combining Variables Test with Answer Key
Quizzes
See allProbability Rules and Simulation Quiz: 10 Questions with Answers
Chi-Square Tests Quiz: 10 Questions with Answers
z-Scores and the Normal Distribution Quiz: 10 Questions with Answers
Mean, Median, Standard Deviation and Outliers Quiz: 10 Questions with Answers
Confidence Intervals for a Proportion Quiz: 10 Questions with Answers
Conditional Probability and Independence Quiz: 10 Questions with Answers

























