AP Statistics · Lesson 2

Significance tests for a mean

Know Know it

A one-sample t test asks whether data give convincing evidence against a claimed mean μ0\mu_0. The null hypothesis is H0:μ=μ0H_0: \mu = \mu_0. The alternative is Ha:μ>μ0H_a: \mu > \mu_0, μ<μ0\mu < \mu_0 or μ≠μ0\mu \neq \mu_0, chosen from the question before you look at the data. Hypotheses are always about the parameter μ\mu, never about xˉ\bar{x}.

Check the same conditions as for an interval: Random, 10%, Normal/Large Sample. Then compute t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} with df = n - 1.

The p-value is the probability, assuming H0H_0 is true, of getting a t statistic at least as extreme as the one observed, in the direction of HaH_a. For μ≠μ0\mu \neq \mu_0, count both tails.

Compare the p-value with the significance level α\alpha. If p<αp < \alpha, reject H0H_0: there is convincing evidence for HaH_a. If p≥αp \ge \alpha, fail to reject H0H_0: there is not convincing evidence for HaH_a.

Where the p-value comes from for each alternative
AlternativeP-value is the area
Ha:μ>μ0H_a: \mu > \mu_0to the right of the t statistic
Ha:μ<μ0H_a: \mu < \mu_0to the left of the t statistic
Ha:μ≠μ0H_a: \mu \neq \mu_0in both tails beyond the t statistic, so double one tail

Trap Failing to reject is not proof

A large p-value means the data are consistent with H0H_0, not that H0H_0 is true. Say there is not convincing evidence for HaH_a. Never write that you accept H0H_0 or that the data prove the mean equals μ0\mu_0.

Worked example Easy

A fictional cereal maker says its boxes hold 500 grams on average. A consumer group suspects the boxes hold less than that. Which hypotheses fit the group's question?

  1. H0:μ=500H_0: \mu = 500 and Ha:μ<500H_a: \mu < 500Answer
  2. H0:xˉ=500H_0: \bar{x} = 500 and Ha:xˉ<500H_a: \bar{x} < 500
  3. H0:μ<500H_0: \mu < 500 and Ha:μ=500H_a: \mu = 500
  4. H0:μ=500H_0: \mu = 500 and Ha:μ≠500H_a: \mu \neq 500

How to solve it

  1. The parameter is μ\mu, the mean fill of all boxes.
  2. H0H_0 states the claim with an equals sign: μ=500\mu = 500.
  3. The question is about less fill, so Ha:μ<500H_a: \mu < 500.

Why each choice is right or wrong

  • A. Correct. The null states the claimed mean of all boxes, and the group's suspicion of less fill is the one-sided alternative.
  • B. Incorrect. These hypotheses use xˉ\bar{x}, the sample mean, but hypotheses are about the population mean μ\mu, which is unknown.
  • C. Incorrect. This swaps the roles: the equality belongs in H0H_0, and the suspected 'less than 500' belongs in HaH_a.
  • D. Incorrect. μ≠500\mu \neq 500 is two-sided, but the group only suspects underfilling, so the alternative is μ<500\mu < 500.

Explain Explain it

Task verbs: interpret, justify

Interpret a p-value by starting with the assumption: if the true mean were μ0\mu_0, the probability of getting a sample mean at least as far from μ0\mu_0 as ours, in the direction of HaH_a, by chance alone is p.

Justify a conclusion by comparing p with α\alpha in a sentence, then stating the decision and what it means in context: because 0.027 is less than 0.05, we reject H0H_0; there is convincing evidence that the true mean fill of all boxes is less than 500 grams.

Worked example Medium

The consumer group weighs a random sample of 36 cereal boxes from a large warehouse. The sample mean is 496.8 grams and the sample standard deviation is 9.6 grams. The group tests H0:μ=500H_0: \mu = 500 against Ha:μ<500H_a: \mu < 500.

What are the test statistic and the p-value?

  1. t=−12.00t = -12.00, p-value below 0.001
  2. t=−2.00t = -2.00, p-value about 0.027Answer
  3. t=−2.00t = -2.00, p-value about 0.053
  4. t=−0.33t = -0.33, p-value about 0.370

How to solve it

  1. Standard error: 9.636=1.6\frac{9.6}{\sqrt{36}} = 1.6 grams.
  2. t=496.8−5001.6=−2.00t = \frac{496.8 - 500}{1.6} = -2.00, with df = 35.
  3. HaH_a is 'less than', so the p-value is the left-tail area, about 0.027.

Why each choice is right or wrong

  • A. Incorrect. t=−12.00t = -12.00 divides s by n = 36 instead of by 36=6\sqrt{36} = 6, which makes the standard error far too small.
  • B. Correct. t=496.8−5009.6/6=−2.00t = \frac{496.8 - 500}{9.6/6} = -2.00, and the area to the left of -2.00 under the t curve with df = 35 is about 0.027.
  • C. Incorrect. 0.053 counts both tails, but Ha:μ<500H_a: \mu < 500 is one-sided, so only the left tail counts.
  • D. Incorrect. t=−0.33t = -0.33 divides by s = 9.6 instead of by the standard error 9.66\frac{9.6}{6}, so 0.370 is far too large.

Interpret Your turn

In the cereal test (H0:μ=500H_0: \mu = 500, Ha:μ<500H_a: \mu < 500, n = 36, sample mean 496.8 grams), the p-value is about 0.027 and α=0.05\alpha = 0.05. Interpret the p-value in context, then give a conclusion.

Write it, then compare. Nothing you type here is saved or graded.

Compare with a model answer

A full answer does this

  • Interprets the p-value as a probability computed assuming the true mean fill is 500 grams
  • Rejects the null hypothesis by comparing 0.027 with 0.05 and states the conclusion in context

Model answer

If the true mean fill of all boxes were 500 grams, there would be about a 0.027 probability of getting a sample mean of 496.8 grams or less in a random sample of 36 boxes, just by chance. Because 0.027 is less than 0.05, we reject the null hypothesis. There is convincing evidence that the true mean fill of all boxes is less than 500 grams.

Apply Apply it

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.