Lesson 102 — Confidence interval for the mean
Construction and interpretation of confidence intervals for the population mean. z-cases (known sigma) and Student's t-cases (unknown sigma). Margin of error and sample size.
Used in: 3.º ano do EM (17-18 anos) · Equiv. Stochastik LK alemão · Equiv. Math B japonês · H2 Statistics singapurense
Rigorous notation, full derivation, hypotheses
Rigorous definition
Pivotal statistics and the CI for the mean
"A 95% confidence interval means that if we construct many confidence intervals from many different samples, we expect 95% of these intervals to contain the true population parameter." — OpenStax Statistics, §8.1
Case 1: known (z-pivot)
Case 2: unknown (t-pivot)
"When the population is not normal but is large, the t-distribution still approximates the behavior of the pivot well due to the robustness of the CLT." — OpenIntro Statistics, §4.2
Reference quantiles
| Level | |||
|---|---|---|---|
| 90% | 1.645 | 1.699 | 1.833 |
| 95% | 1.960 | 2.045 | 2.262 |
| 99% | 2.576 | 2.756 | 3.250 |
Margin of error and sample size
Solved examples
Exercise list
30 exercises · 7 with worked solution (25%)
- Ex. 102.1ApplicationAnswer key
Height of military recruits: cm, , cm. Construct the 95% CI for the average height.
- Ex. 102.2Application
Using the same data from exercise 102.1, construct the 90% and 99% CIs and compare the three levels.
- Ex. 102.3ApplicationAnswer key
Weekly work hours: , h, h. Construct the 95% CI using the t-distribution.
- Ex. 102.4Application
A measuring device has units (known). What is the minimum to estimate the mean with a maximum margin of error of 3 units at 95% confidence?
- Ex. 102.5Application
Monthly tuition of private colleges in a city: , . 95% CI.
- Ex. 102.6Application
With and current 95% CI with (width 9.8), what is needed to reduce the width to 5?
- Ex. 102.7Application
If you double the sample size, what is the percentage effect on the margin of error? And if you want to reduce the margin by half, by how much should you multiply ?
- Ex. 102.8ApplicationAnswer key
Notebook battery life: , min, min. 95% CI.
- Ex. 102.9Application
Weight of dogs of a specific breed: , kg, kg. 95% CI.
- Ex. 102.10Understanding
The statement "the 95% CI for is [45; 55]" means:
- Ex. 102.11UnderstandingAnswer key
Which of the following actions simultaneously produces a narrower CI AND higher confidence?
- Ex. 102.12ApplicationAnswer key
A tax auditor wants to estimate the average value of invoices with , margin of error 100, and 99% confidence. What is the minimum ?
- Ex. 102.13Application
Monthly food expenses of families: , . 95% CI with Student's t.
- Ex. 102.14Application
Compare the t-quantiles for and at 95% confidence. Explain why CIs with small samples are much wider.
- Ex. 102.15Application
Daily water consumption of apartments (in liters): 5.2 | 4.8 | 5.5 | 4.9 | 5.1 | 5.3 | 4.7 | 5.0. Construct the 95% CI.
- Ex. 102.16ApplicationAnswer key
Blood glucose: mg/dL (from previous studies). What guarantees a margin of error of 5 mg/dL at 95%?
- Ex. 102.17Modeling
A metalworkers' union collected salaries of employees: , . The union claims the real average salary is below 1,883. Does the 95% CI support this claim?
- Ex. 102.18ModelingAnswer key
Body temperature of healthy adults: °C, °C. 95% CI. Is the classic value of 37°C compatible with these data?
- Ex. 102.19Modeling
An economist wants to estimate average quarterly GDP growth with a margin of error of 0.5 percentage points at 95%. If pp (historical variability), how many quarters of data are needed? Discuss practical feasibility.
- Ex. 102.20Application
A 90% CI has width . How many times wider is the 99% CI for the same sample and the same ?
- Ex. 102.21Application
Weekly screen time of adolescents: h, , h. 95% CI. Is the value 10 h/week plausible?
- Ex. 102.22Application
Cholesterol: mg/dL. What for 99% CI with a margin of 2 mg/dL?
- Ex. 102.23Application
Battery duration: , h, h. 95% CI. The manufacturer claims the average duration is 500 hours. Do the data support this claim?
- Ex. 102.24Understanding
What happens to the 95% CI when you increase from 25 to 100, keeping everything else constant?
- Ex. 102.25Modeling
The agency collected retirement cases: days, days. The legal target is 45 days. Construct the 95% CI and interpret it in relation to the target.
- Ex. 102.26Challenge
For monthly income data of workers, compare the 95% CI for the mean (using t) with the 95% CI for the median (using order statistics). Which is more suitable for describing "typical" income? Why?
- Ex. 102.27Proof
Formally derive the CI for with known from the symmetry property of the standard normal distribution. Clearly identify what is random and what is fixed in .
- Ex. 102.28Proof
Demonstrate that when . What are the three properties you need to establish?
- Ex. 102.29Challenge
Show the duality between CI and hypothesis testing: "rejecting at level is equivalent to being outside the CI." Use this duality to explain how a CI can be used as a simultaneous two-sided test for all values of .
- Ex. 102.30Application
In students taking an exam at a public school, 65 scored above 700 on the essay. Construct the 95% CI for the true proportion.
Sources
- OpenIntro Statistics (4th ed.) — Diez, Çetinkaya-Rundel, Barr · CC-BY-SA. Sections §4.2–4.4 (CI for means, duality with tests, sample size).
- Statistics (OpenStax) — Illowsky, Dean · CC-BY. Chapter 8 (CI for mean with z and Student's t, margin of error).
- Statistical Thinking for the 21st Century — Russell Poldrack · CC-BY-NC. Chapter 9 (frequentist vs. Bayesian interpretation of CI).