Confidence Intervals
for a Mean
Learn to construct and interpret t-intervals that estimate a population mean from sample data: the foundation of biostatistical inference.
What Is a Confidence Interval?
A confidence interval (CI) is a range of plausible values for an unknown population parameter. Instead of a single point estimate, a CI tells us: "We are \( C\% \) confident the true population mean \( \mu \) falls within this interval."
Why Use the \( t \)-Distribution?
When the population standard deviation \( \sigma \) is unknown (the usual case in biostatistics), we estimate it with the sample standard deviation \( s \). This extra uncertainty means we need wider tails than the normal curve: enter the \( t \)-distribution.
Understanding Degrees of Freedom
The shape of the \( t \)-distribution depends on degrees of freedom (df). For a one-sample \( t \)-interval:
The \( t \)-Interval Formula
The interval stretches from \( \bar{x} - E \) to \( \bar{x} + E \), where \( E = t^* \cdot \dfrac{s}{\sqrt{n}} \) is the margin of error.
Anatomy of a 95% CI
\( z \)-Interval vs \( t \)-Interval
| \( z \)-Interval | \( t \)-Interval | |
|---|---|---|
| \( \sigma \) known? | Yes | No (use \( s \)) |
| Critical value | \( z^* \) | \( t^*_{\,\text{df}} \) |
| Standard error | \( \frac{\sigma}{\sqrt{n}} \) | \( \frac{s}{\sqrt{n}} \) |
| Interval width | Narrower | Wider (extra uncertainty) |
| When to use | Rare (textbook only) | Almost always in practice |
Checking the Conditions
Before computing a \( t \)-interval, verify three conditions:
How to Compute a \( t \)-Interval
Example 1: Blood Pressure
A random sample of \( n = 25 \) patients has a mean systolic blood pressure of \( \bar{x} = 128 \) mmHg with \( s = 15 \) mmHg. Construct a 95% confidence interval for the population mean.
Example 1: Visualized
Example 2: Cholesterol Levels
A researcher randomly selects \( n = 16 \) adults and measures total cholesterol (mg/dL). The sample gives \( \bar{x} = 210 \) and \( s = 28 \). Build a 90% CI for the mean.
Example 3: Reaction Time
A neuroscience study tests \( n = 36 \) participants for reaction time (ms). Results: \( \bar{x} = 245 \), \( s = 42 \). Construct a 99% CI.
What Affects Interval Width?
Common Mistakes
Summary at a Glance
| Component | Symbol / Formula | Key Detail |
|---|---|---|
| Point estimate | \( \bar{x} \) | Sample mean |
| Standard error | \( \frac{s}{\sqrt{n}} \) | Measures precision |
| Critical value | \( t^*_{\,\text{df}} \) | From \( t \)-table, \( \text{df} = n-1 \) |
| Margin of error | \( E = t^* \cdot \dfrac{s}{\sqrt{n}} \) | Half-width of interval |
| CI formula | \( \bar{x} \pm E \) | Always state confidence level |
| Conditions | R-I-N | Random, Independent, Normal |
Question 1 of 5
A sample of \( n = 20 \) yields \( \bar{x} = 50 \), \( s = 10 \). What are the degrees of freedom for the \( t \)-interval?
Question 2 of 5
Which formula gives the margin of error for a \( t \)-interval?
Question 3 of 5
A 95% CI for mean heart rate is (68, 76) bpm. Which interpretation is correct?
Question 4 of 5
With \( n = 25 \), \( \bar{x} = 128 \), \( s = 15 \), and \( t^* = 2.064 \), what is the 95% CI?
Question 5 of 5
All else equal, which change would make a confidence interval narrower?