# Carrying Out a Test for the Difference Between Two Population Means

> AP Statistics · AP 2024-2026 Statistics
> Source: https://www.owlsprep.com/study/ap-statistics-u13-carrying-out-a-test-for/

We cover the full 4-step AP-aligned hypothesis testing workflow for comparing two independent population means, including condition verification, t-statistic calculation, p-value interpretation, and context-specific valid conclusions.

**Prerequisites:** [One-sample t-test for a single population mean](https://www.owlsprep.com/study/ap-statistics-u13-one-sample-t-test/); [Confidence interval for difference of two independent means](https://www.owlsprep.com/study/ap-statistics-u13-two-sample-t-confidence-interval/)

## Learning objectives

- State correctly formatted null and alternative hypotheses for a two-sample t-test for difference in population means
- Verify the three mandatory random, independent, and normal inference conditions for two independent groups
- Calculate the unpooled t-test statistic and corresponding p-value using AP-accepted methods
- Write a full, context-aligned conclusion that earns maximum points on AP free response questions

## Step 1: State Hypotheses and Define Parameters

The first formal step of any two-sample t-test is to clearly define the population parameters you are comparing, then state your null and alternative hypotheses using correct notation. The null hypothesis for a two-sample test almost always assumes there is no difference between the two population means, so $H_0: \mu_1 - \mu_2 = 0$.

**Two-Sample Hypothesis Notation** — Null hypothesis claims no difference between the two population means; alternative hypothesis claims a non-zero difference, greater than zero, or less than zero, aligned exactly to the stated research question.

*Notation:* $H_0, H_a$

**Worked example:** A researcher claims that 10th graders sleep more on average than 9th graders. State the correct hypotheses for this test.

1. First define parameters explicitly:
2. $\mu_1$ = true mean hours of sleep per night for all 10th graders, $\mu_2$ = true mean hours of sleep per night for all 9th graders
3. Null hypothesis (no difference between population means):
4. $$H_0: \mu_1 - \mu_2 = 0$$
5. One-sided alternative hypothesis aligned to the researcher's claim:
6. $$H_a: \mu_1 - \mu_2 > 0$$

**Exam command terms**

Common AP exam command terms for this step:

- **State hypotheses** — You must define both population parameters explicitly to earn full credit, not just write notation

- **Identify appropriate test** — You must name 'two-sample t-test for difference in population means' to confirm you are not using a paired t-test

## Step 2: Verify Inference Conditions

All two-sample t-tests require three mandatory conditions to be satisfied before proceeding with calculations: Random, Independent, and Normal/Large Sample. The random condition requires both samples to be randomly selected from their respective populations, or groups randomly assigned in a controlled experiment.

1. Independent: Observations within each sample are independent, and the two samples are fully independent of each other. The 10% rule requires each population to be at least 10 times larger than its corresponding sample.
2. Normal/Large Sample: For each sample, if n < 30, you must confirm no strong skewness or outliers in the sample distribution. If n ≥ 30, the Central Limit Theorem applies and the sampling distribution of $\bar{x}_1 - \bar{x}_2$ is approximately normal.

> **Common Mistake Alert**
>
> Never combine the two sample sizes to check the n ≥ 30 rule: you must check the normal condition for each sample separately.

**Worked example:** You are comparing mean commute time for 50 urban workers and 42 suburban workers. Both samples are random. Confirm the normal condition for this test.

1. Sample 1 (urban workers): n1 = 50 ≥ 30, so sampling distribution for $\bar{x}_1$ is approximately normal by CLT.
2. Sample 2 (suburban workers): n2 = 42 ≥ 30, so sampling distribution for $\bar{x}_2$ is approximately normal by CLT.
3. The difference of two approximately normal distributions is also approximately normal, so the normal condition is fully satisfied.

## Step 3: Calculate Test Statistic and P-Value

The unpooled two-sample t-test is the default method accepted for full credit on all AP Statistics exams. You do not need to assume equal population variances, and you can use the Welch-Satterthwaite degrees of freedom calculated by your graphing calculator, or use the conservative lower bound of df = min(n1 - 1, n2 - 1) if no calculator is available.

$$t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)_{H_0}}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}$$

**Worked example:** Sample 1: n1=25, x̄1=18.2, s1=3.1; Sample 2: n2=30, x̄2=15.7, s2=2.8. Calculate the t-statistic for a test of H0: μ1 - μ2 = 0.

1. Plug values into the test statistic formula:
2. $$t = \frac{(18.2 - 15.7) - 0}{\sqrt{\frac{3.1^2}{25} + \frac{2.8^2}{30}}}$$
3. Simplify denominator first:
4. $$\sqrt{\frac{9.61}{25} + \frac{7.84}{30}} = \sqrt{0.3844 + 0.2613} = \sqrt{0.6457} \approx 0.8036$$
5. Final t-statistic:
6. $$t \approx \frac{2.5}{0.8036} \approx 3.111$$

**Check your understanding**

Test your understanding of the calculation rules:

1. What is the correct conservative degrees of freedom for n1=25, n2=30?

   - 24
   - 29
   - 53
   - 54

   *Why:* Conservative df is min(n1-1, n2-1) = min(24, 29) = 24.

## Step 4: Make a Contextual Conclusion

Your conclusion must follow a three-part structure for full AP credit: first compare your p-value to the pre-stated significance level α, then state your decision to reject or fail to reject the null hypothesis, then link that decision directly to the original research question in full context.

> **Conclusion Mnemonic**
>
> Use the mnemonic 'P-D-C' (P-value, Decision, Context) to remember all three required parts of your conclusion and avoid losing points.

**Worked example:** Your p-value for the earlier sleep difference test is 0.023, with α = 0.05. Write a full valid conclusion.

1. 1. Compare p-value to α: 0.023 < 0.05
2. 2. State formal decision: We reject the null hypothesis.
3. 3. Link to full context: There is convincing evidence that the true mean hours of sleep for 10th graders is greater than the true mean hours of sleep for 9th graders.

## Common pitfalls

- **Wrong:** Using a pooled two-sample t-test by default
  - Why it fails: AP graders deduct points for pooled tests unless the problem explicitly states population variances are equal
  - Correct: Always use unpooled Welch's t-test for all two-sample mean inference on the AP exam.
- **Wrong:** Combining n1 and n2 to check the n ≥ 30 normal condition
  - Why it fails: CLT applies to each individual sampling distribution, not the combined sample
  - Correct: Verify the normal/large sample condition separately for each of the two groups.
- **Wrong:** Writing a conclusion that refers to the sample difference instead of the population difference
  - Why it fails: Hypothesis tests make claims about population parameters, not observed sample results
  - Correct: Explicitly reference 'true population mean' in every part of your conclusion.
- **Wrong:** Using a paired t-test for two independent samples
  - Why it fails: Paired tests are for matched observations, not separate independent groups
  - Correct: Confirm the two samples are independent before selecting a two-sample t-test.
- **Wrong:** Stating that you 'accept the null hypothesis' when the p-value is large
  - Why it fails: We never have evidence to prove the null is 100% true, only that we cannot reject it
  - Correct: Use the exact phrasing 'fail to reject the null hypothesis' for non-significant results.

## Cheatsheet

| Component | Formula / Requirement |
| --- | --- |
| Hypotheses | $H_0: \mu_1 - \mu_2 = 0$, $H_a: \mu_1 - \mu_2 > / < / \neq 0$ |
| Conditions | Random, Independent (10% rule), Normal (n≥30 or no outliers) |
| t-statistic | $t = \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{s_1^2/n_1 + s_2^2/n_2}}$ |
| Conservative df | $\min(n_1 - 1, n_2 -1)$ |
| Conclusion Structure | P-value < α → Reject H0, state context conclusion |

## What's next

Mastering the full workflow for two-sample t-tests is one of the highest-weight skills on the AP Statistics free response section, as it appears in nearly every other exam administration. You will next extend this logic to scenarios where you are comparing the difference between two population proportions, rather than quantitative means, and learn to identify which type of inference test is appropriate for any given prompt. This skill will also help you earn full credit on the investigative task FRQ that makes up 25% of your total exam score.

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-statistics-u13-carrying-out-a-test-for/
