The one-sample t test for a mean

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Statistics (AP-aligned) › Significance tests

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

The one-sample t test for a mean

Significance tests.

Warm-up

Three quick questions from earlier lessons.

  1. A random sample of 25 has standard deviation s = 16. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
  2. A one-sample t interval uses a sample of 10. How many degrees of freedom?
  3. Why is a t critical value used for a confidence interval for a mean from a sample of 40?
    1. Because σ is estimated by s, which adds variability
    2. Because n is less than 1,000
    3. Because the data are skewed

Discover

H₀: μ = 50. A sample of 16 has x̄ = 53 and s = 8. How many standard errors is 53 above 50?

  1. 1.5
  2. 0.375

Key idea

The one-sample t test.

t=xˉ−μ0s/nt = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}} with n−1n - 1 degrees of freedom. For a two-sided Hₐ, the P-value counts both tails (double the one-tail area).

Worked example

H₀: μ = 100, Hₐ: μ ≠ 100; n=25n = 25, xˉ=104\bar{x} = 104, s=10s = 10.

SE=2SE = 2
10/5.
t=2t = 2, df =24= 24
4/2.
P-value ≈2×0.028=0.057\approx 2 \times 0.028 = 0.057
Both tails.

Your turn, guided

Your turn: one-tail area 0.04, two-sided test. The P-value.

0.080.08
2 × 0.04.

Practice ★

  1. Test H₀: μ = 39. A random sample of 9 has x̄ = 43 and s = 9. Find the t statistic.
  2. Test H₀: μ = 24. A random sample of 64 has x̄ = 29 and s = 18. Find the t statistic.
  1. For a test statistic, the area in one tail beyond it is 0.04. Find the P-value of the two-sided test.

Watch out!

Practice ★★

  1. A t test gives P-value 0.20. What can you conclude at α = 0.05?
    1. Fail to reject H₀: not enough evidence for Hₐ
    2. H₀ is true
    3. Reject H₀

Exit ticket

Three questions to check you have got it.

  1. Test H₀: μ = 39. A random sample of 9 has x̄ = 43 and s = 9. Find the t statistic.
  2. Test H₀: μ = 24. A random sample of 64 has x̄ = 29 and s = 18. Find the t statistic.
  3. Test H₀: μ = 71. A random sample of 9 has x̄ = 76 and s = 8. Find the t statistic.

Summary card

t test for μ

t=(xˉ−μ0)/(s/n)t = (\bar{x} - \mu_0)/(s/\sqrt{n}), df =n−1= n - 1; two-sided: double the tail.

Watch out: failing to reject is not proving H₀.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Test H₀: μ = 33. A random sample of 25 has x̄ = 36 and s = 19. Find the t statistic.
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits