Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Applied Statistics

Confidence Interval

An interval, with a certain level of confidence (specified in percentage), 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 − \alpha) \times 100% of them would contain the true parameter. Usually 90%, 95%, 99% are used.

When σ\sigma is known:

Xˉ±Zα/2σn\bar{X} \pm Z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

When σ\sigma is unknown (t-distribution is used):

Xˉ±tα/2,,n1sn\bar{X} \pm t_{\alpha/2,, n-1} \frac{s}{\sqrt{n}}
  • As sample size (n) increases, confidence interval becomes narrower
  • Higher confidence level and higher population variance causes wider confidence interval
ParameterStandard Error
xˉ\bar{x}sn\frac{s}{\sqrt{n}}
pˉ\bar{p}1np(1p)\frac{1}{\sqrt{n}} \sqrt{ p(1-p) }
x1ˉx2ˉ\bar{x_1} - \bar{x_2}s12n1+s22n2\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}
p1ˉp2ˉ\bar{p_1} - \bar{p_2}p1(1p1)n1+p2(1p2)n2\sqrt{\frac{p_1 (1 - p_1)}{n_1} + \frac{p_2 (1 - p_2)}{n_2}}