Confidence Intervals Summary

Confidence Intervals

Definition and Interval Estimate

  • Interval estimation involves creating an interval to estimate population parameters with a measure of uncertainty.
  • A random sample XX is taken to estimate specific values for parameters of interest like μ\mu (mean) and σ2\sigma^2 (variance).

Confidence Interval (CI) Definition

  • CI is defined by a lower bound L=L(X<em>1,…,X</em>n)L = L(X<em>1, \dots, X</em>n) and an upper bound U=U(X<em>1,…,X</em>n)U = U(X<em>1, \dots, X</em>n).
  • P(L≤θ≤U)=1−αP(L \le \theta \le U) = 1 - \alpha, where θ\theta is the parameter of interest, and 1−α1 - \alpha is the desired level of confidence (e.g., 99% when α=1%\alpha = 1\%.

Parameters for CI Construction

  • CIs can be built for:
    • μ\mu (mean)
    • σ2\sigma^2 (variance)
    • μ<em>X−μ</em>Y\mu<em>X - \mu</em>Y (difference of means)
    • σ2<em>Xσ2</em>Y\frac{\sigma^2<em>X}{\sigma^2</em>Y} (ratio of variances)
    • pp (proportion)

Normal Distribution Reminder

  • For normally distributed random variables Xi∼N(μ,σ2)X_i \sim N(\mu, \sigma^2), where i=1,2,…,ni = 1, 2, \dots, n:
    • Sample mean: X‾=1n∑<em>i=1nX</em>i\overline{X} = \frac{1}{n} \sum<em>{i=1}^{n} X</em>i
    • Sample variance: S2=1n−1∑<em>i=1n(X</em>i−X‾)2S^2 = \frac{1}{n-1} \sum<em>{i=1}^{n} (X</em>i - \overline{X})^2
    • X‾∼N(μ,σ2n)\overline{X} \sim N(\mu, \frac{\sigma^2}{n})
    • X‾−μσ/n∼N(0,1)\frac{\overline{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1)

CI for μ\mu from Normal Distribution (σ2\sigma^2 known)

  • CI for μ\mu is calculated as: X‾±z1−α/2σn\overline{X} \pm z_{1-\alpha/2} \frac{\sigma}{\sqrt{n}}
  • For a 95% CI: X‾±1.96σn\overline{X} \pm 1.96 \frac{\sigma}{\sqrt{n}}

Confidence Interval Comments

  • LL and UU are random variables.
  • The width of the CI is U−LU - L. For example, U=X‾+1.96σnU = \overline{X} + 1.96 \frac{\sigma}{\sqrt{n}}, L=X‾−1.96σnL = \overline{X} - 1.96 \frac{\sigma}{\sqrt{n}}
  • Higher confidence implies a wider interval.

Confidence Interval Interpretation

  • Before sampling: A 95% CI contains μ\mu with 95% probability.
  • After sampling: There is 95% confidence that the calculated interval contains μ\mu.

Sample Size Calculation

  • For normally distributed data with unknown μ\mu but known σ2\sigma^2, the required sample size nn for a given confidence level (1−α)(1 - \alpha) and desired width ω0\omega_0 is:
    • n=4z2<em>1−α/2σ2ω2</em>0n = \frac{4 z^2<em>{1-\alpha/2} \sigma^2}{\omega^2</em>0}