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.

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