The one-sample t test for a mean

About this lesson

Statistics (AP-aligned) › Significance tests

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

The one-sample t test for a mean

Significance tests.

Warm-up

Three quick questions from earlier lessons.

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₀.

CC BY-SA 4.0