Dulranga's Notes
Semester 3MathematicsApplied Statistics

Confidence Interval

An interval, with a certain level of confidence (specified in %\%), in which the true population parameter is likely to lie. Calculated based on sample data. Quantifies uncertainty in estimation.

A confidence interval at level 1−α1-\alpha means that if you repeatedly sampled and built intervals, about (1−α)×100(1−α)×100 of them would contain the true parameter. Usually 90%, 95%, 99% are used.

General Idea

Confidence Interval=Statistic±Margin of ErrorConfidence Interval=Statistic±(Critical Value×Standard Error)\begin{align*} \text{Confidence Interval} &= \text{Statistic} \pm \text{Margin of Error} \\ \\ \text{Confidence Interval} &= \text{Statistic} \pm \left(\text{Critical Value} \times \text{Standard Error}\right) \end{align*}
  • Margin of Error (MoE): The maximum expected difference between the true population parameter and the sample estimate.
  • Critical Value (z∗z^* or t∗t^*): A multiplier determined by your chosen confidence level (e.g., z∗≈1.96z^* \approx 1.96 for 95% confidence).
  • Standard Error (SE\text{SE}): The estimated standard deviation of the sampling distribution, measuring sample-to-sample variability.

Formula

  1. When true population variance is known (Normal Distribution), Xˉ±Zα2 (σn) \bar{X} \pm Z_{\frac{\alpha}{2}} \, \left(\frac{\sigma}{\sqrt n} \right)
  2. When true population variance is unknown (Student's T Distribution), Xˉ±t(α2),(n−1) (sn) \bar{X} \pm t_{(\frac{\alpha}{2}),( n-1)} \, \left(\frac{s}{\sqrt n} \right)
StatisticStandard Error (SE)
Sample mean, xˉ\bar{x}sn\frac{s}{\sqrt{n}}
Sample proportion, ppp(1−p)n\sqrt{\frac{p(1 - p)}{n}}
Difference between means, xˉ1−xˉ2\bar{x}_1 - \bar{x}_2s12n1+s22n2\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}
Difference between proportions, p1−p2p_1 - p_2p1(1−p1)n1+p2(1−p2)n2\sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}

On this page