Skip to content
🎯⭐ INTERACTIVE LESSON

Tests for Means

Learn step-by-step with interactive practice!

Tests for Means - Complete Interactive Lesson

Part 1: Inference for Means Basics

📊 Inference for Means

Part 1 of 7 — The t-Distribution


Why Not Z?

For means, we rarely know the population standard deviation σ\sigma. We estimate it with the sample standard deviation ss, introducing extra uncertainty.

The t-Distribution

t=xˉ−μs/nt = \frac{\bar{x} - \mu}{s/\sqrt{n}}

Properties:

  • Bell-shaped and symmetric around 0
  • Wider tails than Normal (more spread)
  • Depends on degrees of freedom df=n−1df = n - 1
  • As df→∞df \to \infty, t→N(0,1)t \to N(0,1)

Conditions for t-Procedures

  1. Random: Data from random sample or experiment
  2. Normal/Large Sample: Population is approximately Normal, OR n≥30n \geq 30 (CLT), OR (if n<30n < 30) the sample data are free from strong skewness and outliers
  3. Independent: n<10%n < 10\% of population

Concept Check 🎯

t-Distribution Basics 🧮

n=25n = 25, xˉ=82\bar{x} = 82, s=10s = 10.

1) Degrees of freedom?

2) Standard error =s/n=?= s/\sqrt{n} = ?

3) t-statistic for testing μ=80\mu = 80: t=(82−80)/SE=?t = (82 - 80)/SE = ?

Part 2: T-Distribution

📏 Confidence Intervals for Means

Part 2 of 7 — One-Sample t Interval


Formula

xˉ±t∗sn\bar{x} \pm t^* \frac{s}{\sqrt{n}}

where t∗t^* comes from the t-table with df=n−1df = n - 1.


Interpretation

“We are [C]% confident that the true mean [context] is between [lower] and [upper].”

Example

n=20n = 20, xˉ=45.2\bar{x} = 45.2, s=6.8s = 6.8, 95% CI.

df=19df = 19, t∗=2.093t^* = 2.093 (from table)

45.2±2.093×6.820=45.2±3.1845.2 \pm 2.093 \times \frac{6.8}{\sqrt{20}} = 45.2 \pm 3.18

CI: (42.02,48.38)(42.02, 48.38)

Concept Check 🎯

t-Interval 🧮

n=36n = 36, xˉ=110\bar{x} = 110, s=12s = 12, 95% CI (t∗≈2.030t^* \approx 2.030 for df=35df = 35).

1) SE=s/n=?SE = s/\sqrt{n} = ?

2) Margin of error =t∗×SE=?= t^* \times SE = ? (round to 1 place)

3) Lower bound of CI?

Part 3: Confidence Intervals for Means

⚖️ Hypothesis Tests for Means

Part 3 of 7 — One-Sample t Test


Test Statistic

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

Steps (4-Step Process)

  1. State: H0:μ=μ0H_0: \mu = \mu_0 vs. Ha:μ≠μ0H_a: \mu \neq \mu_0 (or << or >>)
  2. Plan: Check Random, Normal, Independent conditions
  3. Do: Calculate tt and find p-value using tt-table with df=n−1df = n-1
  4. Conclude: Compare p-value to α\alpha, interpret in context

Example

H0:μ=100H_0: \mu = 100, Ha:μ>100H_a: \mu > 100. n=16n = 16, xˉ=106\bar{x} = 106, s=12s = 12.

t=106−10012/16=63=2.0t = \frac{106 - 100}{12/\sqrt{16}} = \frac{6}{3} = 2.0

df=15df = 15. From the t-table, P(t>2.0)≈0.032P(t > 2.0) \approx 0.032.

Since 0.032<0.050.032 < 0.05, reject H0H_0.

Concept Check 🎯

t-Test 🧮

H0:μ=50H_0: \mu = 50, Ha:μ≠50H_a: \mu \neq 50. n=25n = 25, xˉ=53\bar{x} = 53, s=5s = 5.

1) SE=?SE = ?

2) t=?t = ?

3) df=?df = ?

Part 4: Hypothesis Tests for Means

📊 Two-Sample t-Procedures

Part 4 of 7 — Comparing Two Means


Two-Sample t-Interval

(xˉ1−xˉ2)±t∗s12n1+s22n2(\bar{x}_1 - \bar{x}_2) \pm t^* \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

Two-Sample t-Test

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

Use the calculator’s Welch’s approximation (complex formula), or the conservative approach:

df=min⁡(n1−1,n2−1)df = \min(n_1 - 1, n_2 - 1)

Key Point

AP two-sample tt procedures never pool: each sample keeps its own ss in the SE. The technology df lies between min⁡(n1−1,n2−1)\min(n_1 - 1, n_2 - 1) and n1+n2−2n_1 + n_2 - 2.

Concept Check 🎯

Two-Sample Comparison 🧮

Group A: xˉ1=78,s1=10,n1=30\bar{x}_1 = 78, s_1 = 10, n_1 = 30. Group B: xˉ2=72,s2=12,n2=25\bar{x}_2 = 72, s_2 = 12, n_2 = 25.

1) Point estimate for μ1−μ2\mu_1 - \mu_2?

2) Conservative df=?df = ?

3) SE=102/30+122/25SE = \sqrt{10^2/30 + 12^2/25} = ? (round to 2 places)

Part 5: Matched Pairs

🤝 Matched Pairs

Part 5 of 7 — Paired t-Procedures


When to Use Paired t

  • Same subjects measured twice (before/after)
  • Subjects matched in pairs
  • Two measurements on the same item

Procedure

  1. Compute differences d=x1−x2d = x_1 - x_2 for each pair
  2. Perform a one-sample t-test on the differences

t=dˉ−0sd/nt = \frac{\bar{d} - 0}{s_d/\sqrt{n}}

where nn = number of pairs, dˉ\bar{d} = mean of differences, sds_d = SD of differences.


Example

10 patients’ blood pressure before and after a drug: dˉ=−8.5\bar{d} = -8.5 (mean decrease), sd=6.2s_d = 6.2

t=−8.5−06.2/10=−8.51.96=−4.34t = \frac{-8.5 - 0}{6.2/\sqrt{10}} = \frac{-8.5}{1.96} = -4.34

df=9df = 9. Strong evidence that the drug reduces blood pressure.

Concept Check 🎯

Matched Pairs 🧮

12 students take a test before and after tutoring. Mean difference dˉ=5.0\bar{d} = 5.0 (improvement), sd=3.6s_d = 3.6.

1) SE=sd/n=?SE = s_d/\sqrt{n} = ? (round to 2 places)

2) t=dˉ/SE=?t = \bar{d}/SE = ? (round to 2 places)

3) df=?df = ?

Part 6: Problem-Solving Workshop

🏆 Problem-Solving Workshop

Part 6 of 7 — AP-Style Practice


Choosing the Right Procedure

ScenarioProcedure
One mean, σ\sigma unknownOne-sample t
Two independent meansTwo-sample t
Paired dataMatched pairs t
One proportionOne-sample z
Two proportionsTwo-sample z

AP Scoring Tips

  • Name the procedure explicitly (“one-sample t-test”, not just “t-test”)
  • Always identify the parameter in context
  • State ALL conditions, not just assume them
  • Use proper notation (xˉ\bar{x}, ss, tt, etc.)

Concept Check 🎯

Procedure Selection 🧮

Name the correct procedure for each:

1) Estimating the mean GPA of all students at a school based on a random sample of 50.

2) Comparing mean test scores between students who used a study app vs. those who didn’t.

3) Testing whether a training program improved employees’ productivity (measured before and after).

Part 7: Mixed Review

📝 Mixed Review

Part 7 of 7 — Comprehensive Review


Summary Table

ProcedureStatisticSEdf
One-sample txˉ\bar{x}s/ns/\sqrt{n}n−1n-1
Two-sample txˉ1−xˉ2\bar{x}_1 - \bar{x}_2s12/n1+s22/n2\sqrt{s_1^2/n_1 + s_2^2/n_2}min⁡(n1−1,n2−1)\min(n_1-1, n_2-1)
Matched pairsdˉ\bar{d}sd/ns_d/\sqrt{n}n−1n-1

Key Reminders

  • t-procedures are robust against non-Normality for large nn
  • Check for outliers with small samples
  • For n<30n < 30, check a dotplot or boxplot of the sample for strong skewness or outliers
  • Degrees of freedom determine the shape of the t-distribution

Concept Check 🎯

Final Challenge 🧮

n=50n = 50, xˉ=25.3\bar{x} = 25.3, s=4.0s = 4.0. Test H0:μ=24H_0: \mu = 24 vs. Ha:μ≠24H_a: \mu \neq 24 at α=0.05\alpha = 0.05.

1) t=?t = ? (round to 2 places)

2) df=?df = ?

3) With ∣t∣=2.30|t| = 2.30 and df=49df = 49, is the result significant at α=0.05\alpha = 0.05? (yes/no)