Unit 4 · Topic 4.2 Beta

Constructing a Confidence Interval for a Population Mean or Population Mean Difference

When σ is unknown, a confidence interval for a mean is x-bar ± t*s/(√n) with t* from the t distribution with n − 1 degrees of freedom.

Practice 2: Collect DataPractice 3: Analyze DataPractice 4: Interpret Results

Part 1 · Hook

Why this matters

A city wants to know how far its bike commuters ride. It cannot ask every one of them, and it has no idea what the population standard deviation is. From 25 riders it gets a mean of 6.8 miles and a standard deviation of 2.9 miles. Building an interval from those two numbers needs one new tool: the t distribution.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. A confidence interval has the form

  1. statistic ±\pm (critical value)(standard error)
  2. statistic ±\pm standard error
  3. parameter ±\pm margin of error
  4. critical value ±\pm statistic
Show the answer

Point estimate plus or minus the margin of error, and the margin of error is the critical value times the standard error.

  • Correct: statistic ±\pm (critical value)(standard error):
  • statistic ±\pm standard error:
  • parameter ±\pm margin of error:
  • critical value ±\pm statistic:

2. For random samples of size nn (under 10% of the population), the standard deviation of x¯\bar{x} is

  1. σn\frac{\sigma}{\sqrt{n}}
  2. σn\frac{\sigma}{n}
  3. σ\sigma
  4. σn\sigma\sqrt{n}
Show the answer

Means vary less than single values, by a factor of n\sqrt{n}.

  • Correct: σn\frac{\sigma}{\sqrt{n}}:
  • σn\frac{\sigma}{n}:
  • σ\sigma:
  • σn\sigma\sqrt{n}:

3. In a matched pairs design,

  1. each subject (or pair of similar subjects) gets both treatments
  2. subjects are split into two unrelated groups
  3. no treatment is imposed
  4. every subject gets a placebo
Show the answer

Matched pairs compare two treatments within each pair, so the two responses belong together.

  • Correct: each subject (or pair of similar subjects) gets both treatments:
  • subjects are split into two unrelated groups:
  • no treatment is imposed:
  • every subject gets a placebo:

Part 4 · See it

See it first

Three bell-shaped density curves centered at 0 on an axis from -4.5 to 4.5: the standard normal (solid black), the t distribution with 15 degrees of freedom (dashed blue) and the t distribution with 3 degrees of freedom (orange), which is lowest in the middle and highest in the tails. Dashed marks show the 95% critical values: z* = 1.96, t* = 2.131 for 15 df and t* = 3.182 for 3 df. The outer 5% of the 3 df curve is shaded.
The standard normal curve and t distributions with 3 and 15 degrees of freedom. Fewer degrees of freedom mean heavier tails, so the 95% critical value t∗t^* is farther out than z∗=1.96z^* = 1.96. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. The population standard deviation σ\sigma is unknownestimate it with the sample standard deviation ss, so the standard error is sn\frac{s}{\sqrt{n}}
  2. ss itself varies from sample to samplex¯−μs/n\frac{\bar{x} - \mu}{s/\sqrt{n}} varies more than a z-score: it follows a t distribution with n−1n - 1 degrees of freedom
  3. The t distribution has heavier tails than the normalthe critical value t∗t^* is larger than z∗z^*, more so for small samples
  4. Put it togetherthe one-sample t interval is x¯±t∗sn\bar{x} \pm t^*\frac{s}{\sqrt{n}}
  5. For paired data, subtract within each pair firstthe same interval on the differences, x¯d±t∗sdn\bar{x}_d \pm t^*\frac{s_d}{\sqrt{n}}, estimates the mean difference μd\mu_d

Part 6 · Key ideas

Key ideas

  • One-sample t interval: x¯±t∗sn\bar{x} \pm t^*\frac{s}{\sqrt{n}}, with t∗t^* from the t distribution with df=n−1\text{df} = n - 1.
  • Conditions: random sample (or random assignment); 10% condition when sampling without replacement; normal/large sample (population normal, or n≥30n \ge 30, or a graph of the sample with no strong skew or outliers).
  • Paired data (two measurements on the same individual or matched pair): work with the differences, one sample, parameter μd\mu_d.
  • Interpretation: "We are 95% confident that the interval from ... to ... captures the true mean ..."

Part 7 · Misconception

A common mistake

The wrong idea: With a sample of 30 or more, use z∗=1.96z^* = 1.96 for a mean.

What actually happens: Whenever ss stands in for an unknown σ\sigma, use t∗t^* with n−1n - 1 degrees of freedom. For large samples t∗t^* is close to z∗z^*, but it is still the right value to use.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Graph

One-way distances of 25 bike commuters

A city transportation office surveyed a random sample of 25 of the city's many thousands of bike commuters and recorded each one's one-way commute distance (invented data). The sample mean is x¯=6.8\bar{x} = 6.8 miles and the sample standard deviation is s=2.9s = 2.9 miles.

0246810121412345one-way distance (miles)

1. What is the critical value t∗t^* for a 95% confidence interval for the mean distance?

Type a number. A table answer and a calculator answer are both accepted.

Show the answer

With df=24\text{df} = 24, the middle 95% of the t distribution lies between −2.064-2.064 and 2.0642.064, so t∗=2.064t^* = 2.064 (Table B, df 24, 95% column, or technology: the 0.975 quantile of t with 24 df).

  • Answer: 2.064

2. Write the expression for the 95% confidence interval for the mean one-way distance, with t∗=2.064t^* = 2.064. Type it as on the exam, for example a +/- b*c/sqrt(n).

Type the expression as on the exam, with the values substituted.

Show the answer

x¯\bar{x}±t∗sn\pm t^*\frac{s}{\sqrt{n}}=6.8= 6.8±2.0642.925\pm 2.064\frac{2.9}{\sqrt{25}}=6.8= 6.8±1.197\pm 1.197.

  • Answer: 6.8±2.064⋅2.9256.8 \pm \frac{2.064 \cdot 2.9}{\sqrt{25}}

3. Construct the 95% confidence interval for the mean one-way distance of the city's bike commuters, in miles.

Type the interval as "from a to b".

Show the answer

6.8±2.0642.9256.8 \pm 2.064\frac{2.9}{\sqrt{25}}=6.8±1.197= 6.8 \pm 1.197, from 5.60 to 8.00 miles. Technology (a one-sample t interval) gives the same.

  • Answer: from 5.6 to 8

4. The sample has only 25 commuters. How is the normal/large sample condition met?

  1. 25 is less than 10% of the many thousands of bike commuters in the city
  2. The dotplot of the sample shows no strong skew and no outliers
  3. The sample was chosen at random
  4. 25 is at least 10
Show the answer

Normal/large sample: the population is normal, or n≥30n \ge 30, or (as here) a graph of the sample shows no strong skew or outliers.

  • 25 is less than 10% of the many thousands of bike commuters in the city: That is the 10% condition, about independence. It does not address the shape.
  • Correct: The dotplot of the sample shows no strong skew and no outliers: With n<30n < 30, check a graph of the sample: this dotplot is roughly symmetric with no outliers, so a t interval is reasonable.
  • The sample was chosen at random: That is the random condition. The normal/large sample condition is about shape or sample size.
  • 25 is at least 10: 10 is the large counts threshold for proportions. For means, either n≥30n \ge 30 or a graph without strong skew or outliers.

5. Why does a confidence interval for a mean use t∗t^* instead of z∗z^*?

  1. The data come from a skewed population
  2. The sample is smaller than 30
  3. The interval uses ss in place of the unknown σ\sigma
  4. By definition, intervals for means use t and intervals for proportions use z
Show the answer

With σ\sigma unknown, x¯−μs/n\frac{\bar{x} - \mu}{s/\sqrt{n}} follows a t distribution with n−1n - 1 degrees of freedom, which is wider than the standard normal.

  • The data come from a skewed population: The shape condition is separate. Even for a normal population, using ss calls for t.
  • The sample is smaller than 30: Large samples use t∗t^* too, whenever σ\sigma is estimated by ss.
  • Correct: The interval uses ss in place of the unknown σ\sigma: Replacing σ\sigma with ss adds variability, because ss changes from sample to sample. The t distribution, with heavier tails, accounts for it.
  • By definition, intervals for means use t and intervals for proportions use z: There is a reason: for means the standard error estimates σ\sigma with ss, which adds extra uncertainty.

6. The 95% confidence interval for the mean one-way distance of the city's bike commuters is from 5.60 to 8.00 miles. Build the interpretation.

Write the conclusion in context.

Show the answer

The confidence is about the method capturing the parameter, the true mean distance of all the city's bike commuters, not about individual commuters or the sample mean.

  • A full-credit answer: We are 95% confident that the interval from 5.60 to 8.00 miles captures the true mean one-way distance of all the city's bike commuters.

7. A researcher records the ages of both partners in a random sample of 30 married couples and wants to estimate how much older husbands are than wives, on average. Which procedure fits?

  1. Two separate t intervals, one for the husbands' ages and one for the wives' ages, then compare
  2. A two-sample z interval for the difference of two proportions
  3. A one-sample z interval using 1.96
  4. A one-sample t interval for the mean of the 30 differences, husband minus wife
Show the answer

Pairs: compute husband minus wife for each couple, then x¯d±t∗sd30\bar{x}_d \pm t^*\frac{s_d}{\sqrt{30}} with 29 df.

  • Two separate t intervals, one for the husbands' ages and one for the wives' ages, then compare: Two intervals do not estimate the mean of the paired difference, and they ignore the pairing.
  • A two-sample z interval for the difference of two proportions: Ages are quantitative, so this is about means, not proportions.
  • A one-sample z interval using 1.96: The population standard deviation of the differences is unknown, so use t∗t^*.
  • Correct: A one-sample t interval for the mean of the 30 differences, husband minus wife: The two ages in a couple belong together, so the data are paired: one difference per couple, then a t interval for μd\mu_d.

Part 9 · Summary

Summary

When σ\sigma is unknown, a confidence interval for a mean is x¯±t∗sn\bar{x} \pm t^*\frac{s}{\sqrt{n}} with t∗t^* from the t distribution with n−1n - 1 degrees of freedom. Check random, 10% and normal/large sample. For paired data, compute the differences and build the same interval for the mean difference μd\mu_d.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections