Skip to content
🎯⭐ INTERACTIVE LESSON

Confidence Intervals for Means

Learn step-by-step with interactive practice!

Confidence Intervals 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\\sigma. We estimate it with the sample standard deviation ss, introducing extra uncertainty.

The t-Distribution

t=fracbarx−mus/sqrtnt = \\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 dftoinftydf \\to \\infty, ttoN(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 Normal OR ngeq30n \\geq 30 (CLT)
  3. Independent: n<10n < 10\\% of population

Concept Check U0001f3af

t-Distribution Basics 🧮

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

1) Degrees of freedom?

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

3) t-statistic for testing mu=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

barxpmt∗fracssqrtn\\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, barx=45.2\\bar{x} = 45.2, s=6.8s = 6.8, 95% CI.

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

45.2pm2.093timesfrac6.8sqrt20=45.2pm3.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 U0001f3af

t-Interval 🧮

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

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

2) Margin of error =t∗timesSE=?= 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=fracbarx−mu0s/sqrtnt = \\frac{\\bar{x} - \\mu_0}{s/\\sqrt{n}}

Steps (4-Step Process)

  1. State: H0:mu=mu0H_0: \\mu = \\mu_0 vs. Ha:muneqmu0H_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\\alpha, interpret in context

Example

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

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

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

Since 0.032<0.050.032 < 0.05, reject H0H_0.

Concept Check U0001f3af

t-Test 🧮

H0:mu=50H_0: \\mu = 50, Ha:muneq50H_a: \\mu \\neq 50. n=25n = 25, barx=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

(barx1−barx2)pmt∗sqrtfracs12n1+fracs22n2(\\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=frac(barx1−barx2)−0sqrtfracs12n1+fracs22n2t = \\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

Do NOT pool variances unless told the populations have equal variance (which is rare on the AP exam).

Concept Check U0001f3af

Two-Sample Comparison 🧮

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

1) Point estimate for mu1−mu2\\mu_1 - \\mu_2?

2) Conservative df=?df = ?

3) SE=sqrt102/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=fracbard−0sd/sqrtnt = \\frac{\\bar{d} - 0}{s_d/\\sqrt{n}}

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


Example

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

t=frac−8.5−06.2/sqrt10=frac−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 U0001f3af

Matched Pairs 🧮

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

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

2) t=bard/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\\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 (barx\\bar{x}, ss, tt, etc.)

Concept Check U0001f3af

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 tbarx\\bar{x}s/sqrtns/\\sqrt{n}n−1n-1
Two-sample tbarx1−barx2\\bar{x}_1 - \\bar{x}_2sqrts12/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 pairsbard\\bar{d}sd/sqrtns_d/\\sqrt{n}n−1n-1

Key Reminders

  • t-procedures are robust against non-Normality for large nn
  • Check for outliers with small samples
  • Use a Normal probability plot to assess Normality for small nn
  • Degrees of freedom determine the shape of the t-distribution

Concept Check U0001f3af

Final Challenge 🧮

n=50n = 50, barx=25.3\\bar{x} = 25.3, s=4.0s = 4.0. Test H0:mu=24H_0: \\mu = 24 vs. Ha:muneq24H_a: \\mu \\neq 24 at alpha=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 alpha=0.05\\alpha = 0.05? (yes/no)