MathorynMathematical Formula Database

Statistics & Probability

Confidence Interval for a Mean

A confidence interval gives a range of plausible values for a population mean, using the sample mean, the standard error and a critical value z∗z^* (1.961.96 for 95%). It is used to report estimates together with their uncertainty.

xˉ±z∗σn\bar x\pm z^{*}\frac{\sigma}{\sqrt n}
LaTeX\bar x\pm z^{*}\frac{\sigma}{\sqrt n}

Variables

xˉ\bar x
sample mean
z∗z^{*}
critical value (1.645 for 90%, 1.96 for 95%, 2.576 for 99%)
σ\sigma
population standard deviation
nn
sample size

Example

Find a 95% interval for xˉ=100\bar x=100, σ=15\sigma=15, n=25n=25.

  1. SE=155=3SE=\frac{15}{5}=3.
  2. Margin: 1.96⋅3=5.881.96\cdot3=5.88.

Answer: 100±5.88100\pm5.88, i.e. [94.12, 105.88][94.12,\ 105.88].

Related formulas