Skip to content

Tests for Means

Perform one-sample and two-sample t-tests for means.

Written and reviewed by the Study Mondo Education TeamLast updated
🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson →

📈 Tests of Significance for Means

One-Sample t-Test

When to use: One sample, testing whether μ=μ0\mu = \mu_0

Test statistic: t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}

Where:

  • xˉ\bar{x} = sample mean
  • μ0\mu_0 = hypothesized population mean
  • ss = sample standard deviation
  • nn = sample size
  • Degrees of freedom: df=n−1df = n - 1

Conditions:

  1. Random sample from population
  2. Independent observations (or n≤0.1Nn \leq 0.1N)
  3. Approximately normal: Data roughly normal OR n≥30n \geq 30 (CLT)

Worked Example: A coffee shop claims their average cup is 16 oz. A random sample of 25 cups has mean xˉ=15.2\bar{x} = 15.2 oz, SD s=1.8s = 1.8 oz. Test at α=0.05\alpha = 0.05.

  • t=15.2−161.8/25=−0.80.36=−2.22t = \frac{15.2 - 16}{1.8/\sqrt{25}} = \frac{-0.8}{0.36} = -2.22
  • df=24df = 24; two-tailed critical value t∗=2.064t^* = 2.064
  • Since ∣−2.22∣>2.064|-2.22| > 2.064, reject H0H_0
  • Conclusion: Average cup is significantly below 16 oz

Two-Sample t-Test (Welch's Test)

When to use: Comparing two populations; testing μ1−μ2=0\mu_1 - \mu_2 = 0

Test statistic: t=(xˉ1−xˉ2)−0s12n1+s22n2t = \frac{(\bar{x}_1 - \bar{x}_2) - 0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}

Degrees of freedom (Welch): Complex formula (calculators handle this)

Conditions: Both samples random, independent, approximately normal

Use: When sample sizes unequal or variances appear different

Common Mistakes

❌ Using z-test instead of t-test for means (unknown σ\sigma) ❌ Using pooled t-test when variances unequal (use Welch) ❌ Confusing SE=s/nSE = s/\sqrt{n} with ss (the standard deviation) ❌ Assuming normality without checking

Decision Rule

  • If ∣t∣>tdf,α/2∗|t| > t^*_{df, \alpha/2}, reject H0H_0
  • If p-value <α< \alpha, reject H0H_0

AP Exam Tip

Always specify degrees of freedom. Name the test clearly: "one-sample t-test" or "two-sample t-test." Mention whether conditions are met.

📚 Practice Problems

1Problem 1easy

❓ Question:

State the hypotheses for testing whether a population mean differs from 100, and identify whether this is one-tailed or two-tailed.

💡 Show Solution

Null hypothesis: H0:μ=100H_0: \mu = 100 (the population mean is 100). Alternative hypothesis: Ha:μ≠100H_a: \mu \ne 100 (the population mean differs from 100). This is a two-tailed test because the alternative specifies a difference in either direction ('not equal to'). Both tails of the t-distribution contribute to the p-value.

2Problem 2medium

❓ Question:

A sample of 36 high school athletes has xˉ=68\bar{x} = 68 seconds and s=12s = 12 seconds on a fitness test. Test whether the mean differs from 70 seconds at α=0.05\alpha = 0.05. Calculate the test statistic and provide the p-value range.

💡 Show Solution

State: H0:μ=70H_0: \mu = 70 vs Ha:μ≠70H_a: \mu \ne 70, α=0.05\alpha = 0.05. Check: Random sample (assumed), population approximately Normal or n=36≥30n = 36 \ge 30 ✓. t=xˉ−μ0s/n=68−7012/36=−22=−1.0t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} = \frac{68 - 70}{12/\sqrt{36}} = \frac{-2}{2} = -1.0 with df=35df = 35. From t-table with df=35df = 35: For ∣t∣=1.0|t| = 1.0, the two-tailed p-value is between 0.30 and 0.40 (approximately 0.32). Since p-value > 0.05, we fail to reject H0H_0.

3Problem 3hard

❓ Question:

A farmer claims the mean weight of his apples is at least 200 grams. A sample of 25 apples yields xˉ=195\bar{x} = 195 grams, s=15s = 15 grams. Conduct a complete hypothesis test at α=0.05\alpha = 0.05 and conclude in context.

💡 Show Solution

State: H0:μ=200H_0: \mu = 200 vs Ha:μ<200H_a: \mu < 200 (one-tailed, claim is directional), α=0.05\alpha = 0.05. Plan/Check: Random sample, population approximately Normal or n=25n = 25 close to 30 (assume normality if reasonable). Do: t=195−20015/25=−53≈−1.67t = \frac{195 - 200}{15/\sqrt{25}} = \frac{-5}{3} ≈ -1.67 with df=24df = 24. From t-table: ∣t∣=1.67|t| = 1.67 corresponds to one-tailed p-value between 0.05 and 0.10 (approximately 0.055). Conclude: Since p-value ≈ 0.055 > 0.05, we fail to reject H0H_0. There is insufficient evidence to conclude the mean weight is less than 200 grams. The farmer's claim is supported by the data.

Explain using:

⚠️ Common Mistakes: Tests for Means

Avoid these 3 frequent errors

📌 Related Topics in Unit 7: Inference for Quantitative Data — Means

❓ Frequently Asked Questions

What is Tests for Means?▾
Perform one-sample and two-sample t-tests for means.
How can I study Tests for Means effectively?▾
Start by reading the study notes and working through the examples on this page. Then use the flashcards to test your recall. Practice with the 3 problems provided, checking solutions as you go. Regular review and active practice are key to retention.
Is this Tests for Means study guide free?▾
Yes — all study notes, flashcards, and practice problems for Tests for Means on Study Mondo are free to access. No account is needed.
What course covers Tests for Means?▾
Tests for Means is part of the AP Statistics course on Study Mondo, specifically in the Unit 7: Inference for Quantitative Data — Means section. You can explore the full course for more related topics and practice resources.
Are there practice problems for Tests for Means?▾
Yes, this page includes 3 practice problems with detailed solutions. Each problem includes a step-by-step explanation to help you understand the approach.