Interval Estimation and Confidence Intervals

Basic Concepts of Interval Estimation

Definition of Interval Estimation

Confidence Interval

Let the distribution function of the population XX be F(x;θ)F(x;\theta), where θ\theta is the unknown parameter. Draw a sample X1,X2,…,XnX_1, X_2, \dots, X_n from the population and construct two statistics θ^1=θ^1(X1,X2,…,Xn)\hat{\theta}_1 = \hat{\theta}_1(X_1, X_2, \dots, X_n) and θ^2=θ^2(X1,X2,…,Xn)\hat{\theta}_2 = \hat{\theta}_2(X_1, X_2, \dots, X_n) such that: P(θ^1≤θ≤θ^2)=1−αP(\hat{\theta}_1 \leq \theta \leq \hat{\theta}_2) = 1 - \alpha then the interval [θ^1,θ^2][\hat{\theta}_1, \hat{\theta}_2] is called the confidence interval for the parameter θ\theta, and 1−α1 - \alpha is called the confidence level.

Intuitive Understanding of Confidence Intervals

Understanding: a confidence interval gives the range of values the parameter may take. A confidence level 1−α1 - \alpha means that over a large number of repeated samplings, 100(1−α)%100(1-\alpha)\% of the confidence intervals contain the true value.

Properties of Confidence Intervals

Property 1: the confidence interval is random, while the true value is fixed Property 2: the higher the confidence level, the wider the confidence interval Property 3: the larger the sample size, the narrower the confidence interval

Methods for Constructing Confidence Intervals

Pivotal Quantity Method

Idea: construct a statistic that involves both the parameter and the sample, whose distribution is known and does not depend on the parameter.

Steps:

  1. Construct the pivotal quantity G(X1,X2,…,Xn;θ)G(X_1, X_2, \dots, X_n; \theta)
  2. Determine the distribution of the pivotal quantity
  3. Find constants a,ba, b such that P(a≤G≤b)=1−αP(a \leq G \leq b) = 1 - \alpha
  4. Solve the inequality a≤G≤ba \leq G \leq b to obtain the confidence interval

Confidence Interval for the Mean of a Normal Population

When the Variance Is Known

Population: X∼N(μ,σ2)X \sim N(\mu, \sigma^2), with σ2\sigma^2 known

Pivotal quantity: Z=X‾−μσ/n∼N(0,1)Z = \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \sim N(0,1)

Confidence interval: P(−zα/2≤X‾−μσ/n≤zα/2)=1−αP(-z_{\alpha/2} \leq \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \leq z_{\alpha/2}) = 1 - \alpha

Solving gives: μ∈[X‾−zα/2σn,X‾+zα/2σn]\mu \in [\overline{X} - z_{\alpha/2}\frac{\sigma}{\sqrt{n}}, \overline{X} + z_{\alpha/2}\frac{\sigma}{\sqrt{n}}]

When the Variance Is Unknown

Population: X∼N(μ,σ2)X \sim N(\mu, \sigma^2), with σ2\sigma^2 unknown

Pivotal quantity: T=X‾−μS/n∼t(n−1)T = \frac{\overline{X} - \mu}{S/\sqrt{n}} \sim t(n-1)

Confidence interval: P(−tα/2(n−1)≤X‾−μS/n≤tα/2(n−1))=1−αP(-t_{\alpha/2}(n-1) \leq \frac{\overline{X} - \mu}{S/\sqrt{n}} \leq t_{\alpha/2}(n-1)) = 1 - \alpha

Solving gives: μ∈[X‾−tα/2(n−1)Sn,X‾+tα/2(n−1)Sn]\mu \in [\overline{X} - t_{\alpha/2}(n-1)\frac{S}{\sqrt{n}}, \overline{X} + t_{\alpha/2}(n-1)\frac{S}{\sqrt{n}}]

Confidence Interval for the Variance of a Normal Population

Population: X∼N(μ,σ2)X \sim N(\mu, \sigma^2)

Pivotal quantity: χ2=(n−1)S2σ2∼χ2(n−1)\chi^2 = \frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1)

Confidence interval: P(χ1−α/22(n−1)≤(n−1)S2σ2≤χα/22(n−1))=1−αP(\chi^2_{1-\alpha/2}(n-1) \leq \frac{(n-1)S^2}{\sigma^2} \leq \chi^2_{\alpha/2}(n-1)) = 1 - \alpha

Solving gives: σ2∈[(n−1)S2χα/22(n−1),(n−1)S2χ1−α/22(n−1)]\sigma^2 \in [\frac{(n-1)S^2}{\chi^2_{\alpha/2}(n-1)}, \frac{(n-1)S^2}{\chi^2_{1-\alpha/2}(n-1)}]

Confidence Interval for the Difference of the Means of Two Normal Populations

When the Variances Are Known

Population: X∼N(μ1,σ12)X \sim N(\mu_1, \sigma_1^2), Y∼N(μ2,σ22)Y \sim N(\mu_2, \sigma_2^2), with σ12,σ22\sigma_1^2, \sigma_2^2 known

Pivotal quantity: Z=(X‾−Y‾)−(μ1−μ2)σ12n1+σ22n2∼N(0,1)Z = \frac{(\overline{X} - \overline{Y}) - (\mu_1 - \mu_2)}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \sim N(0,1)

Confidence interval: (μ1−μ2)∈[(X‾−Y‾)−zα/2σ12n1+σ22n2,(X‾−Y‾)+zα/2σ12n1+σ22n2](\mu_1 - \mu_2) \in [(\overline{X} - \overline{Y}) - z_{\alpha/2}\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}, (\overline{X} - \overline{Y}) + z_{\alpha/2}\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}]

When the Variances Are Unknown but Equal

Population: X∼N(μ1,σ2)X \sim N(\mu_1, \sigma^2), Y∼N(μ2,σ2)Y \sim N(\mu_2, \sigma^2)

Pivotal quantity: T=(X‾−Y‾)−(μ1−μ2)Sp1n1+1n2∼t(n1+n2−2)T = \frac{(\overline{X} - \overline{Y}) - (\mu_1 - \mu_2)}{S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} \sim t(n_1 + n_2 - 2)

where Sp2=(n1−1)S12+(n2−1)S22n1+n2−2S_p^2 = \frac{(n_1-1)S_1^2 + (n_2-1)S_2^2}{n_1 + n_2 - 2}

Confidence interval: (μ1−μ2)∈[(X‾−Y‾)−tα/2(n1+n2−2)Sp1n1+1n2,(X‾−Y‾)+tα/2(n1+n2−2)Sp1n1+1n2](\mu_1 - \mu_2) \in [(\overline{X} - \overline{Y}) - t_{\alpha/2}(n_1 + n_2 - 2)S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}, (\overline{X} - \overline{Y}) + t_{\alpha/2}(n_1 + n_2 - 2)S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}]

Confidence Interval for the Ratio of the Variances of Two Normal Populations

Population: X∼N(μ1,σ12)X \sim N(\mu_1, \sigma_1^2), Y∼N(μ2,σ22)Y \sim N(\mu_2, \sigma_2^2)

Pivotal quantity: F=S12/σ12S22/σ22∼F(n1−1,n2−1)F = \frac{S_1^2/\sigma_1^2}{S_2^2/\sigma_2^2} \sim F(n_1-1, n_2-1)

Confidence interval: P(F1−α/2(n1−1,n2−1)≤S12/σ12S22/σ22≤Fα/2(n1−1,n2−1))=1−αP(F_{1-\alpha/2}(n_1-1, n_2-1) \leq \frac{S_1^2/\sigma_1^2}{S_2^2/\sigma_2^2} \leq F_{\alpha/2}(n_1-1, n_2-1)) = 1 - \alpha

Solving gives: σ12σ22∈[S12S221Fα/2(n1−1,n2−1),S12S221F1−α/2(n1−1,n2−1)]\frac{\sigma_1^2}{\sigma_2^2} \in [\frac{S_1^2}{S_2^2}\frac{1}{F_{\alpha/2}(n_1-1, n_2-1)}, \frac{S_1^2}{S_2^2}\frac{1}{F_{1-\alpha/2}(n_1-1, n_2-1)}]

Applications of Confidence Intervals

Determining the Sample Size

Problem: given a confidence level and a precision requirement, determine the sample size needed.

Example 1: for the estimation of the mean of a normal population, given the confidence level 1−α1-\alpha and the precision δ\delta, find the sample size nn.

Solution:

  1. Length of the confidence interval: 2zα/2σn≤2δ2z_{\alpha/2}\frac{\sigma}{\sqrt{n}} \leq 2\delta
  2. Solving gives: n≥(zα/2σδ)2n \geq (\frac{z_{\alpha/2}\sigma}{\delta})^2

Interpretation of Confidence Intervals

Correct interpretation: over a large number of repeated samplings, 100(1−α)%100(1-\alpha)\% of the confidence intervals contain the true value.

Incorrect interpretation: the true value has a probability of 100(1−α)%100(1-\alpha)\% of falling inside the confidence interval.

Choice of Confidence Interval

Two-sided confidence interval: suitable for the general case One-sided confidence interval: suitable for directional problems

Example 2: estimating the lower bound of the lifetime of a product

  • One-sided confidence interval: [θ^L,+∞)[\hat{\theta}_L, +\infty)
  • P(θ≥θ^L)=1−αP(\theta \geq \hat{\theta}_L) = 1 - \alpha

Properties of Confidence Intervals

Relation Between the Confidence Level and the Length of the Interval

Relation: the higher the confidence level, the longer the confidence interval.

Reason: the higher the confidence level, the larger the probability that the true value is covered, so the interval must be wider.

Relation Between the Sample Size and the Length of the Interval

Relation: the larger the sample size, the shorter the confidence interval.

Reason: the larger the sample size, the more accurate the estimate, so the interval is narrower.

Symmetry of Confidence Intervals

Normal distribution: confidence intervals are usually symmetric Other distributions: confidence intervals may be asymmetric

Confidence Intervals for Common Distributions

Confidence Interval for the Parameter of a Binomial Distribution

Population: X∼B(1,p)X \sim B(1,p)

Large-sample approximation: p∈[p^−zα/2p^(1−p^)n,p^+zα/2p^(1−p^)n]p \in [\hat{p} - z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}, \hat{p} + z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}]

where p^=1n∑i=1nXi\hat{p} = \frac{1}{n}\sum_{i=1}^n X_i

Confidence Interval for the Parameter of a Poisson Distribution

Population: X∼Poisson(λ)X \sim Poisson(\lambda)

Large-sample approximation: λ∈[λ^−zα/2λ^n,λ^+zα/2λ^n]\lambda \in [\hat{\lambda} - z_{\alpha/2}\sqrt{\frac{\hat{\lambda}}{n}}, \hat{\lambda} + z_{\alpha/2}\sqrt{\frac{\hat{\lambda}}{n}}]

where λ^=X‾\hat{\lambda} = \overline{X}

Exercises

Exercise 1

Write the 1−α1-\alpha confidence interval for the mean μ\mu of a normal population (with the variance known).

interval estimationpivotal quantityconfidence interval

Approach: Construct the confidence interval by the pivotal quantity method.

Steps:

  1. Pivotal quantity: Z=X‾−μσ/n∼N(0,1)Z = \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \sim N(0,1)
  2. P(−zα/2≤X‾−μσ/n≤zα/2)=1−αP(-z_{\alpha/2} \leq \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \leq z_{\alpha/2}) = 1 - \alpha
  3. Solving gives: μ∈[X‾−zα/2σn,X‾+zα/2σn]\mu \in [\overline{X} - z_{\alpha/2}\frac{\sigma}{\sqrt{n}}, \overline{X} + z_{\alpha/2}\frac{\sigma}{\sqrt{n}}]

Answer: [X‾−zα/2σn,X‾+zα/2σn][\overline{X} - z_{\alpha/2}\frac{\sigma}{\sqrt{n}}, \overline{X} + z_{\alpha/2}\frac{\sigma}{\sqrt{n}}]

Exercise 2

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a sample from the population X∼N(μ,σ2)X \sim N(\mu, \sigma^2) with σ2\sigma^2 unknown. Find the 95%95\% confidence interval for μ\mu.

interval estimationt distributionconfidence interval

Approach: Construct the confidence interval using the t distribution.

Steps:

  1. Pivotal quantity: T=X‾−μS/n∼t(n−1)T = \frac{\overline{X} - \mu}{S/\sqrt{n}} \sim t(n-1)
  2. P(−t0.025(n−1)≤X‾−μS/n≤t0.025(n−1))=0.95P(-t_{0.025}(n-1) \leq \frac{\overline{X} - \mu}{S/\sqrt{n}} \leq t_{0.025}(n-1)) = 0.95
  3. Solving gives: μ∈[X‾−t0.025(n−1)Sn,X‾+t0.025(n−1)Sn]\mu \in [\overline{X} - t_{0.025}(n-1)\frac{S}{\sqrt{n}}, \overline{X} + t_{0.025}(n-1)\frac{S}{\sqrt{n}}]

Answer: [X‾−t0.025(n−1)Sn,X‾+t0.025(n−1)Sn][\overline{X} - t_{0.025}(n-1)\frac{S}{\sqrt{n}}, \overline{X} + t_{0.025}(n-1)\frac{S}{\sqrt{n}}]

Exercise 3

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a sample from the population X∼N(μ,σ2)X \sim N(\mu, \sigma^2). Find the 1−α1-\alpha confidence interval for σ2\sigma^2.

interval estimationchi-square distributionconfidence interval

Approach: Construct the confidence interval using the chi-square distribution.

Steps:

  1. Pivotal quantity: χ2=(n−1)S2σ2∼χ2(n−1)\chi^2 = \frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1)
  2. P(χ1−α/22(n−1)≤(n−1)S2σ2≤χα/22(n−1))=1−αP(\chi^2_{1-\alpha/2}(n-1) \leq \frac{(n-1)S^2}{\sigma^2} \leq \chi^2_{\alpha/2}(n-1)) = 1 - \alpha
  3. Solving gives: σ2∈[(n−1)S2χα/22(n−1),(n−1)S2χ1−α/22(n−1)]\sigma^2 \in [\frac{(n-1)S^2}{\chi^2_{\alpha/2}(n-1)}, \frac{(n-1)S^2}{\chi^2_{1-\alpha/2}(n-1)}]

Answer: [(n−1)S2χα/22(n−1),(n−1)S2χ1−α/22(n−1)][\frac{(n-1)S^2}{\chi^2_{\alpha/2}(n-1)}, \frac{(n-1)S^2}{\chi^2_{1-\alpha/2}(n-1)}]

Exercise 4

Let the variances of two populations be σ12,σ22\sigma_1^2, \sigma_2^2. To test H0:σ12=σ22H_0: \sigma_1^2=\sigma_2^2, which test should be used?

hypothesis testingchoice of methodtest for equality of variances

Approach: Choose the appropriate test method according to the object being tested.

Steps:

  1. Test the ratio of the variances of two normal populations
  2. Use the F test
  3. Test statistic: F=S12S22∼F(n1−1,n2−1)F = \frac{S_1^2}{S_2^2} \sim F(n_1-1, n_2-1)

Answer: the F test

Exercise 5

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a sample from the population X∼N(μ,σ2)X \sim N(\mu, \sigma^2) with σ2\sigma^2 known. Find the 90%90\% confidence interval for μ\mu.

interval estimationZ distributionconfidence interval

Approach: Construct the confidence interval using the normal distribution.

Steps:

  1. Pivotal quantity: Z=X‾−μσ/n∼N(0,1)Z = \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \sim N(0,1)
  2. P(−z0.05≤X‾−μσ/n≤z0.05)=0.90P(-z_{0.05} \leq \frac{\overline{X} - \mu}{\sigma/\sqrt{n}} \leq z_{0.05}) = 0.90
  3. Solving gives: μ∈[X‾−z0.05σn,X‾+z0.05σn]\mu \in [\overline{X} - z_{0.05}\frac{\sigma}{\sqrt{n}}, \overline{X} + z_{0.05}\frac{\sigma}{\sqrt{n}}]

Answer: [X‾−z0.05σn,X‾+z0.05σn][\overline{X} - z_{0.05}\frac{\sigma}{\sqrt{n}}, \overline{X} + z_{0.05}\frac{\sigma}{\sqrt{n}}]


Summary

Symbols Used in This Article

Greek LetterPronunciationDescription
α\alphaAlpha (alpha)denotes the significance level; 1−α1-\alpha is the confidence level
μ\muMu (mu)denotes the population mean
σ\sigmaSigma (sigma)denotes the population standard deviation
χ\chiChi (chi)denotes the chi-square statistic in the chi-square distribution

Found an issue with this content?

Tell us what could be improved.