AP Statistics · Unit 4 · Topic 4.5

Carrying Out a Test for a Mean Study Lab

A t test asks: if H₀ were true, how surprising is our sample? Compute the test statistic t = (x̄ − μ₀) ÷ (s/√n), find the p-value from the t distribution with df = n − 1, compare it with α, and conclude in context. Enter data or pick a preset and follow every step.

1. Run the test

Pick a preset or enter your own data. Change Hₐ or α and watch the p-value and decision.

t = (x̄ − μ₀) ÷ (s/√n) df = n − 1 p-value < α → reject H₀
Preset problems

About how the data were collected

p-value on the t curve

t curve if H₀ is trueObserved t
x̄
s
n, df
Standard error s/√n
Test statistic t
p-value
α
Decision

The four steps, written out

This is the full answer an AP grader expects. It rewrites itself as you change the inputs.

Same effect, different sample size

Keep this x̄ and s but imagine a different n. The p-value shrinks as n grows, because the standard error shrinks.

p-valueα

2. Key ideas

Test statistic

How many standard errors away?

t = (x̄ − μ₀) ÷ (s/√n) measures how far the sample mean is from the null value, in standard errors. Values far from 0 are surprising if H₀ is true.

p-value

Probability, assuming H₀

The p-value is the probability, assuming H₀ is true, of getting a sample result at least as extreme as the one observed, in the direction of Hₐ. For ≠, count both tails.

Decision

Compare p with α

If p-value < α, reject H₀: the data give convincing evidence for Hₐ. If p-value ≥ α, fail to reject H₀: the data do not give convincing evidence for Hₐ.

Never "accept"

Failing to reject is not proof

A large p-value means the data are consistent with H₀, not that H₀ is true. Say "we do not have convincing evidence that…," never "we accept H₀."

Paired

Test the differences

For paired data, compute the differences in a stated order, then run a one-sample t test on them with μ₀ = 0 (usually) and df = number of pairs − 1.

Sample size

Big n finds small effects

With a huge sample, even a tiny difference from μ₀ can give a tiny p-value. Statistically significant does not always mean practically important.

3. Quick reference

Finding the p-value from t for each alternative. Calculator: tcdf(lower, upper, df), or STAT → TESTS → T-Test.

Hₐp-valueCalculatorExample (t = 2.10, df = 15)
μ > μ₀Area to the right of ttcdf(t, 1E99, df)tcdf(2.10, 1E99, 15) ≈ 0.0265
μ < μ₀Area to the left of ttcdf(−1E99, t, df)tcdf(−1E99, 2.10, 15) ≈ 0.9735
μ ≠ μ₀2 × area beyond |t|2 · tcdf(|t|, 1E99, df)2 × 0.0265 ≈ 0.0530
StepWhat to write
StateH₀ and Hₐ with the parameter defined in context; α.
PlanName the procedure (one-sample t test for μ, or paired t test for μd); check Random, 10%, Normal/Large with evidence.
Dot = (x̄ − μ₀) ÷ (s/√n) with numbers; df; p-value.
ConcludeCompare p with α, make a decision, and state the conclusion about Hₐ in context.

4. On the FRQ

How to earn the points

  • Show the formula with numbers: t = (32.4 − 30) ÷ (5.1/√25) = 2.35, df = 24. Calculator output alone earns little credit.
  • Give the p-value and interpret it if asked: "Assuming the true mean delivery time is 30 minutes, there is about a 0.014 probability of getting a sample mean of 32.4 minutes or more by chance."
  • Link the decision to α explicitly: "Because 0.014 < 0.05, we reject H₀."
  • Conclude about Hₐ, in context, with uncertainty: "We have convincing evidence that the true mean delivery time is greater than 30 minutes."

Common mistakes

  • Forgetting to double the one-tail area for a two-sided test.
  • Using the wrong tail, such as the area to the right when Hₐ is μ < μ₀.
  • Writing "we accept H₀" or "H₀ is true" when the p-value is large.
  • Saying "the p-value is the probability that H₀ is true." It is computed assuming H₀ is true.
  • For paired data, using two separate lists and df = n₁ + n₂ − 2 instead of the differences and df = pairs − 1.

5. Practice questions

AP-style multiple choice. Pick an answer to see the explanation.

0 / 0 correct

6. Key terms

The vocabulary for topic 4.5. Read the list, flip through flashcards, or quiz yourself. For every term in the unit, see the Unit 4 terminology guide.