Sampling & EstimationTopic #22 of 33

Confidence Intervals

Interval estimation: margin of error, confidence level, and constructing intervals for means and proportions.

Overview

A confidence interval provides a range of plausible values for a population parameter, along with a level of confidence that the interval contains the true parameter.

Interpretation

A 95% confidence interval means: If we repeated sampling many times, about 95% of the intervals would contain the true parameter.

Important: It does NOT mean there's a 95% probability the parameter is in this specific interval.

General Formula

Point Estimate±(Critical Value)×(Standard Error)\text{Point Estimate} \pm (\text{Critical Value}) \times (\text{Standard Error})

Or:

CI=θ^±zα/2×SE(θ^)CI = \hat{\theta} \pm z_{\alpha/2} \times SE(\hat{\theta})

Confidence Interval for Mean

When σ\sigma is Known

xˉ±zα/2×σn\bar{x} \pm z_{\alpha/2} \times \frac{\sigma}{\sqrt{n}}

When σ\sigma is Unknown (Use t)

xˉ±tα/2,df×sn\bar{x} \pm t_{\alpha/2, df} \times \frac{s}{\sqrt{n}}

Where df=n1df = n - 1

Common Critical Values

Confidence Levelzα/2z_{\alpha/2}Two-tailed α\alpha
90%1.6450.10
95%1.960.05
99%2.5760.01

Confidence Interval for Proportion

p^±zα/2×p^(1p^)n\hat{p} \pm z_{\alpha/2} \times \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

Condition: np^10n\hat{p} \geq 10 and n(1p^)10n(1-\hat{p}) \geq 10

Margin of Error

The margin of error (ME) is half the interval width:

ME=zα/2×SEME = z_{\alpha/2} \times SE

The CI can be written as:

CI=(Point EstimateME,Point Estimate+ME)CI = (\text{Point Estimate} - ME, \text{Point Estimate} + ME)

Factors Affecting CI Width

FactorEffect on Width
Larger nnNarrower
Smaller σ\sigmaNarrower
Higher confidenceWider
Lower confidenceNarrower

Examples

Example 1: CI for Mean (σ\sigma known)

n=100n = 100, xˉ=75\bar{x} = 75, σ=12\sigma = 12, 95% confidence

ME=1.96×12100=1.96×1.2=2.35ME = 1.96 \times \frac{12}{\sqrt{100}} = 1.96 \times 1.2 = 2.35 95% CI: 75±2.35=(72.65,77.35)\text{95\% CI: } 75 \pm 2.35 = (72.65, 77.35)

Example 2: CI for Mean (σ\sigma unknown)

n=25n = 25, xˉ=85\bar{x} = 85, s=10s = 10, 95% confidence

df=24,t0.025,24=2.064df = 24, \quad t_{0.025, 24} = 2.064 ME=2.064×1025=2.064×2=4.13ME = 2.064 \times \frac{10}{\sqrt{25}} = 2.064 \times 2 = 4.13 95% CI: 85±4.13=(80.87,89.13)\text{95\% CI: } 85 \pm 4.13 = (80.87, 89.13)

Example 3: CI for Proportion

n=400n = 400 voters, 220 support candidate (p^=0.55\hat{p} = 0.55), 95% confidence

SE=(0.55)(0.45)400=0.000619=0.0249SE = \sqrt{\frac{(0.55)(0.45)}{400}} = \sqrt{0.000619} = 0.0249 ME=1.96×0.0249=0.049ME = 1.96 \times 0.0249 = 0.049 95% CI: 0.55±0.049=(0.501,0.599)\text{95\% CI: } 0.55 \pm 0.049 = (0.501, 0.599)

We're 95% confident 50.1% to 59.9% support the candidate.

Example 4: Required Sample Size

Find nn for ME=2ME = 2 when estimating mean, σ=15\sigma = 15, 95% confidence:

ME=z×σnME = z \times \frac{\sigma}{\sqrt{n}} 2=1.96×15n2 = 1.96 \times \frac{15}{\sqrt{n}} n=1.96×152=14.7\sqrt{n} = \frac{1.96 \times 15}{2} = 14.7 n=216.1n=217n = 216.1 \Rightarrow n = 217

Confidence vs Precision Trade-off

Higher confidenceWider intervalLess precise\text{Higher confidence} \to \text{Wider interval} \to \text{Less precise} Lower confidenceNarrower intervalMore precise\text{Lower confidence} \to \text{Narrower interval} \to \text{More precise}

To be more confident AND more precise → increase nn