All AP Courses AP StatisticsAP Stats

Practice

Significance tests for a mean

t statistic, degrees of freedom and p-value for a one-sample or paired t test.

The skill

A one-sample t-test asks whether x‾ is far enough from the null value μ0 to be convincing. The test statistic is t=x‾−μ0s/n with n−1 degrees of freedom, and the p-value is the area beyond t in the direction of Ha, doubled for a two-sided test. Compare it to α and state the conclusion about the population mean in context. A frequent error is subtracting in the wrong order, which flips the sign and sends the p-value to the wrong tail.

How to work these problems

  1. State the parameter in words: the true mean of the population, in context. Then write H0:μ=μ0 and the alternative that matches the question, with the same μ0 in both.
  2. Check the conditions before any arithmetic: the data come from a random sample or a randomized experiment, the sample is less than 10% of the population if you sampled without replacement, and the sample is roughly normal or n is at least 30.
  3. Compute t=x‾−μ0s/n and use n−1 degrees of freedom. Subtract in the order sample mean minus null value, so the sign of t points the way the data point.
  4. Find the p-value in the tail your alternative names, and double it for a two-sided test. Compare it with α, then write the conclusion about the population mean in the words of the problem.

Common mistakes

  • Subtracting in the wrong order, which flips the sign of t and sends the p-value to the wrong tail.
  • Dividing by s instead of s/n, which treats the spread of individual values as if it were the spread of sample means.
  • Concluding that the null hypothesis is true. A large p-value means the data do not give convincing evidence against it, not that it is proven.
  • Using n degrees of freedom instead of n−1.

Check your work

  • The sign of t should match the direction of x‾ relative to μ0, and a one-sided p-value should be below one half when the data lean toward Ha.
  • Your conclusion names the population mean, the context and the comparison with α, and it says evidence, not proof.

A worked example

A random sample of 25 from all trips on one bus route at rush hour has a mean travel time of 37.3 minutes and standard deviation 4.0 minutes. The data show no strong skew or outliers.

For H₀: μ = 36 against Hₐ: μ > 36, find the test statistic. Round to two decimal places.

Solution

  1. t=x¯−μ0s/n=37.30−36.00.8000≈1.63 with df = 24.
  2. p-value = area to the right of t ≈ 0.0581 (tcdf with df = 24).

Answer: 1.63

Your turn

Lessons behind these problems