Instructional videos are coming to Albert.Join the waitlist
AP® Statistics
Practice

Carrying Out a Test for a Population Mean or Population Mean Difference: AP® Statistics Review

✎ Study Mode — Highlight text and annotate as you read.

A sample of 40 students averages 7.6 hours of sleep, below the 8-hour mark. Is that real evidence of a problem, or just the kind of dip a random sample produces by chance? A hypothesis test answers that question with a number, the p-value, and a decision. This topic takes a test that is already set up and carries it through: test statistic, p-value, decision, and conclusion in context.

This article covers Topic 4.5: Carrying Out a Test for a Population Mean or Population Mean Difference in Unit 4, Inference for Quantitative Data: Means. The topic asks you to calculate the t test statistic and p-value, interpret the p-value, and write a conclusion that justifies a claim about the population.

By the end, you should be able to:

  • Calculate the t test statistic for \(\mu\) or \(\mu_d\) with \(df=n-1\).
  • Find the p-value with a table or technology.
  • Interpret the p-value, including the assumption that \(H_0\) is true.
  • Make a formal decision and write a conclusion in context.

The Test Statistic and the p-Value

The test statistic measures how many standard errors the sample result is from the null value:

\(t=\dfrac{\bar{x}-\mu_0}{\dfrac{s}{\sqrt{n}}}\), with \(df=n-1\)

The p-value is the tail area beyond the test statistic, assuming H₀ is true.
The p-value is the tail area beyond the test statistic, assuming H₀ is true.

For matched pairs, use the differences: \(\bar{x}_d\), \(s_d\), and \(\mu_0=0\). When \(H_0\) is true, this statistic follows a t-distribution with \(n-1\) degrees of freedom.

The p-value is the probability of getting a test statistic as extreme as, or more extreme than, the one observed, in the direction of \(H_a\), assuming \(H_0\) is true. Find it with a t-table or technology.

Decision and Conclusion

Compare Decision Conclusion language
p-value \(\le\alpha\) Reject \(H_0\) “There is convincing evidence that [\(H_a\) in context].”
p-value \(\gt\alpha\) Fail to reject \(H_0\) “There is not convincing evidence that [\(H_a\) in context].”

The CED expects a conclusion that is in context, stated in terms of the alternative hypothesis, uses non-definitive language, and refers to the parameter and population. Never write “we proved” or “we accept \(H_0\).”

Worked Example 1: One-Sample t-Test

A random sample of 40 students from a school of 1,200 reports \(\bar{x}=7.6\) hours of sleep on school nights, with \(s=1.1\) hours. Test \(H_0: \mu=8\) against \(H_a: \mu\lt 8\) at \(\alpha=0.05\). The conditions were checked during setup.

Loading the t-test calculator…

  1. Standard error: \(\dfrac{1.1}{\sqrt{40}}\approx 0.174\).
  2. Test statistic: \(t=\dfrac{7.6-8}{0.174}\approx -2.30\), with \(df=39\).
  3. p-value: \(P(t\le -2.30)\approx 0.013\).
  4. Interpret the p-value: Assuming the true mean sleep time for all students at this school is 8 hours, there is about a 0.013 probability of getting a sample mean of 7.6 hours or less by chance alone.
  5. Decision: \(0.013\le 0.05\), so reject \(H_0\).
  6. Conclusion: There is convincing evidence that the true mean sleep on school nights for students at this school is less than 8 hours.
Type I error, Type II error and power for a one-sided test.
Type I error, Type II error and power for a one-sided test.

Worked Example 2: Matched Pairs t-Test

Twelve randomly selected club runners ran a 5K in old and new shoes, in random order. With \(d=\) old time minus new time, the differences have \(\bar{x}_d\approx 0.483\) and \(s_d\approx 0.388\) minutes. Test \(H_0: \mu_d=0\) against \(H_a: \mu_d\gt 0\) at \(\alpha=0.05\).

  1. Standard error: \(\dfrac{0.388}{\sqrt{12}}\approx 0.112\).
  2. Test statistic: \(t=\dfrac{0.483-0}{0.112}\approx 4.31\), with \(df=11\).
  3. p-value: \(P(t\ge 4.31)\approx 0.0006\).
  4. Decision: \(0.0006\le 0.05\), so reject \(H_0\).
  5. Conclusion: There is convincing evidence that, for runners in this club, the true mean 5K time is lower in the new shoes than in the old shoes. Because the order of shoes was randomly assigned, this supports the claim that the shoes cause the improvement.
The empirical rule: 68%, 95% and 99.7% of a normal distribution fall within 1, 2 and 3 SDs.
The empirical rule: 68%, 95% and 99.7% of a normal distribution fall within 1, 2 and 3 SDs.

One-Sided or Two-Sided p-Values

The p-value follows the direction of \(H_a\). In the sleep example, \(H_a: \mu\lt 8\) uses only the left tail, giving 0.013. If the principal had asked whether mean sleep is simply different from 8 hours, \(H_a: \mu\ne 8\) would count both tails, and the p-value would double to about 0.027. Both are below 0.05 here, but near the cutoff the choice can flip the decision. That is why the direction must be set before you see the data.

Why does this matter? The result answers the original investigative question, which is exactly what the CED asks a test to do. A tiny p-value says the data would be very unlikely if the shoes made no difference.

Test-Taking Strategies

Mnemonic Devices and Memory Shortcuts

Remember “If p is low, reject the H-naught.” Then write the conclusion about \(H_a\), not \(H_0\).

Cross-Topic Connections

Common Question Formats

  • Summary statistics asking for the value of the test statistic.
  • Calculator output asking for the correct decision at a given \(\alpha\).
  • A free-response inference question asking for a complete test with a conclusion.

Frequent Student Mistakes

  • Interpreting the p-value as the probability that \(H_0\) is true.
  • Using a two-sided p-value for a one-sided alternative.
  • Writing a conclusion with no context or with definitive language like “proves.”

Test-Day Shortcuts

Let technology compute \(t\) and the p-value, but always write the formula with your numbers substituted. That shows your work if the output is copied wrong.

Time Management Tips

The May 2027 exam is fully digital in Bluebook: 42 multiple-choice questions in 90 minutes, then 4 free-response questions in 90 minutes. Free-response Question 3 focuses on inference, so practice the full test in under 20 minutes.

Check for Understanding

Think you’ve got it? Complete the quiz below to make sure. Download your results at the end.

Highlight & Annotate
📝

Study Annotations

You just made your first highlight! You can highlight text and click images to add study notes as you read.

Your annotations are saved during this session, as long as you keep this browser tab open. When you’re done, use the Print button to save the article with all your notes in the margins.

Click any highlight to view or edit your note.

Click another word to finish highlighting, or press Esc to cancel
0 Notes
Study Mode
Print Preview — Article with Annotations

Ready to practice? Try Albert free.

Build real confidence with thousands of adaptive practice questions across AP®, SAT®, ACT®, and core subjects — aligned to what you’re studying right now.

Practice for Albert