Confidence Intervals Cheat Sheet

Z-intervals, t-intervals, bootstrap confidence intervals, margin of error, and proper interpretation of confidence levels.

Last Updated: May 1, 2025

Z-Intervals (Known Sigma)

ItemDescription
CI = xbar +/- z*(sigma/sqrt(n))For population mean when sigma is known — normally distributed OR n>30
z = 1.645 for 90% CIStandard normal critical values
z = 1.96 for 95% CIMost common — 95% confidence level
z = 2.576 for 99% CIWider interval for higher confidence
Margin of Error = z*sigma/sqrt(n)Half-width of confidence interval
Sample Size for desired MOE: n = (z*sigma/MOE)^2How many observations needed for given precision

T-Intervals (Unknown Sigma)

ItemDescription
CI = xbar +/- t*(s/sqrt(n))Use when population std dev is unknown — most real-world situations
t depends on degrees of freedom (n-1)Wider than z for small n, converges to z as n grows
When n > 30t approaches z — z-interval is acceptable approximation
CI for Proportion: phat +/- z*sqrt(phat*(1-phat)/n)For binomial proportions — requires np>=10, n(1-p)>=10
CI for Difference of MeansIndependent groups with t — Welch's df recommended

Bootstrap Confidence Intervals

ItemDescription
Bootstrap PrincipleResample from data with replacement — no distribution assumptions needed
Percentile MethodTake 2.5th and 97.5th percentiles of bootstrap distribution
BCa (Bias-Corrected Accelerated)Adjusts for bias and skewness — more accurate than percentile
When to Use BootstrapNon-normal data, small samples, complex statistics (medians, ratios)
Bootstrap ReplicatesTypically 1,000-10,000 resamples — more is better but computationally costly
PitfallBootstrap cannot fix a bad sample — GIGO (Garbage In, Garbage Out)

Interpretation Guide

ItemDescription
Correct InterpretationWe are 95% confident the true parameter is between [L, U]
Wrong InterpretationThere is a 95% probability the parameter is between [L, U]
CI Width FactorsLarger n = narrower; larger confidence = wider; larger variance = wider
CI Overlap Rule of ThumbRough guide: if 95% CIs don't overlap, difference is significant
Non-significanceCI containing the null value (0 for difference, 1 for ratios) = not significant
Pro Tip: A 95% confidence interval does NOT mean there's a 95% chance the true parameter is in the interval. It means: in repeated sampling, 95% of intervals constructed this way capture the true value.