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 X is taken to estimate specific values for parameters of interest like μ (mean) and σ2 (variance).
Confidence Interval (CI) Definition
- CI is defined by a lower bound L=L(X<em>1,…,X</em>n) and an upper bound U=U(X<em>1,…,X</em>n).
- P(L≤θ≤U)=1−α, where θ is the parameter of interest, and 1−α is the desired level of confidence (e.g., 99% when α=1%.
Parameters for CI Construction
- CIs can be built for:
- μ (mean)
- σ2 (variance)
- μ<em>X−μ</em>Y (difference of means)
- σ2</em>Yσ2<em>X (ratio of variances)
- p (proportion)
Normal Distribution Reminder
- For normally distributed random variables Xi∼N(μ,σ2), where i=1,2,…,n:
- Sample mean: X=n1∑<em>i=1nX</em>i
- Sample variance: S2=n−11∑<em>i=1n(X</em>i−X)2
- X∼N(μ,nσ2)
- σ/nX−μ∼N(0,1)
CI for μ from Normal Distribution (σ2 known)
- CI for μ is calculated as: X±z1−α/2nσ
- For a 95% CI: X±1.96nσ
- L and U are random variables.
- The width of the CI is U−L. For example, U=X+1.96nσ, L=X−1.96nσ
- Higher confidence implies a wider interval.
Confidence Interval Interpretation
- Before sampling: A 95% CI contains μ with 95% probability.
- After sampling: There is 95% confidence that the calculated interval contains μ.
Sample Size Calculation
- For normally distributed data with unknown μ but known σ2, the required sample size n for a given confidence level (1−α) and desired width ω0 is:
- n=ω2</em>04z2<em>1−α/2σ2