Biostatistical Estimation and Confidence Intervals

Fundamentals of Statistical Estimation and Confidence Intervals

  • Statistical inference utilizes sample data from a random sample to make inferences about unknown population parameters via estimation or hypothesis testing.

  • Point estimation calculates a single best estimate of an unknown parameter (e.g., sample mean Xˉ\bar{X}, sample variance s2s^2, or sample proportion p^=xn\hat{p} = \frac{x}{n}); however, point estimates do not reflect sample variability, precision, or sample size.

  • Interval estimation establishes a range of likely values for the parameter centered at the point estimate at a specified confidence level.

  • The general formula for a two-sided confidence interval is:   Point Estimate±Margin of Error\text{Point Estimate} \pm \text{Margin of Error}

  • The margin of error consists of the critical value multiplied by the standard error:   Margin of Error=Critical Value×Standard Error\text{Margin of Error} = \text{Critical Value} \times \text{Standard Error}

  • The total width of a symmetric confidence interval equals 2×Margin of Error2 \times \text{Margin of Error}.

Structure of a confidence interval showing the point estimate bounded by margins of error
  • Interpretation of a 95%95\% confidence interval: Repeated sampling of 100100 independent random samples produces intervals where approximately 9595 contain the true population parameter (μ\mu) and 55 do not. A confidence interval does not denote a 95%95\% probability that μ\mu falls within an already computed interval.

Repeated sampling showing intervals capturing or failing to capture the population mean
  • Determinants of interval width:

    • Increasing sample size (nn) decreases the standard error and narrows interval width.

    • Increasing confidence level increases the critical value and widens interval width.

    • Increasing sample variability (ss or σ\sigma) increases the standard error and widens interval width.

Sampling Distributions and Critical Values

  • The standard normal distribution (ZZ) is used when the population standard deviation (σ\sigma) is known or the sample size is large (n>30n > 30) by the Central Limit Theorem.

  • Critical values of ZZ for two-sided confidence intervals:

    • 90%90\% confidence: Z=1.645Z = 1.645

    • 95%95\% confidence: Z=1.96Z = 1.96

    • 99%99\% confidence: Z=2.576Z = 2.576

  • Critical values of ZZ for one-sided confidence intervals:

    • 90%90\% confidence: Z=1.282Z = 1.282

    • 95%95\% confidence: Z=1.645Z = 1.645

    • 99%99\% confidence: Z=2.327Z = 2.327

  • Student's tt distribution, formulated by William Sealy Gossett under the pseudonym "Student", is applied when sample sizes are small (n≤30n \le 30) and σ\sigma is unknown and estimated by the sample standard deviation (ss).

  • Key properties of Student's tt distribution:

    • Symmetric, unimodal, and bell-shaped around a mean of 00, with a total area equal to 11.

    • Features heavier (thicker) tails than the standard normal distribution to incorporate additional uncertainty from estimating σ\sigma with ss.

    • Defined by degrees of freedom (df=n−1df = n - 1); as dfdf increases, the tt distribution asymptotically converges to the standard normal distribution.

Comparison between the standard normal distribution and Student's t distribution

Single-Sample Confidence Intervals

  • Two-sided confidence interval for a single continuous mean (μ\mu):

    • Large samples (n>30n > 30):     Xˉ±Zsn\bar{X} \pm Z \frac{s}{\sqrt{n}}

    • Small samples (n≤30n \le 30):     Xˉ±tsn\bar{X} \pm t \frac{s}{\sqrt{n}}     where critical value tt uses df=n−1df = n - 1.

  • One-sided confidence intervals for a single continuous mean (μ\mu):

    • Upper limit:     (−∞, Xˉ+Zsn)\left(-\infty, \, \bar{X} + Z \frac{s}{\sqrt{n}}\right)

    • Lower limit:     (Xˉ−Zsn, +∞)\left(\bar{X} - Z \frac{s}{\sqrt{n}}, \, +\infty\right)

  • Confidence interval for a single dichotomous proportion (pp):

    • Point estimate:     p^=xn\hat{p} = \frac{x}{n}

    • Two-sided interval:     p^±Zp^(1−p^)n\hat{p} \pm Z \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

Paired and Dependent Samples

  • Applicable to paired observations collected from the same subjects (such as pre- and post-treatment measurements or crossover trials separated by a washout period).

Diagram of a two-period crossover trial design with a washout period
  • Computed using the sample mean of paired differences (Xˉd\bar{X}_d) and sample standard deviation of differences (sds_d).

  • Large samples (n>30n > 30):   Xˉd±Zsdn\bar{X}_d \pm Z \frac{s_d}{\sqrt{n}}

  • Small samples (n≤30n \le 30):   Xˉd±tsdn\bar{X}_d \pm t \frac{s_d}{\sqrt{n}}   where critical value tt uses df=n−1df = n - 1.

Two Independent Samples: Difference in Means and Proportions

  • Difference between two continuous population means (μ1−μ2\mu_1 - \mu_2):

    • Equal variance assumption (σ12=σ22\sigma_1^2 = \sigma_2^2) is satisfied if the variance ratio falls within:     0.5<s12s22<2.00.5 < \frac{s_1^2}{s_2^2} < 2.0

    • Pooled standard deviation (SpS_p):     Sp=(n1−1)s12+(n2−1)s22n1+n2−2S_p = \sqrt{\frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}}

    • Large samples (n1>30n_1 > 30 and n2>30n_2 > 30):     (Xˉ1−Xˉ2)±Z⋅Sp1n1+1n2(\bar{X}_1 - \bar{X}_2) \pm Z \cdot S_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}

    • Small samples (n1≤30n_1 \le 30 or n2≤30n_2 \le 30):     (Xˉ1−Xˉ2)±t⋅Sp1n1+1n2(\bar{X}_1 - \bar{X}_2) \pm t \cdot S_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}     where critical value tt uses df=n1+n2−2df = n_1 + n_2 - 2.

  • Difference between two independent proportions (p1−p2p_1 - p_2):

    • Evaluated across two independent groups with sample proportions p^1\hat{p}_1 and p^2\hat{p}_2:     (p^1−p^2)±Zp^1(1−p^1)n1+p^2(1−p^2)n2(\hat{p}_1 - \hat{p}_2) \pm Z \sqrt{\frac{\hat{p}_1(1 - \hat{p}_1)}{n_1} + \frac{\hat{p}_2(1 - \hat{p}_2)}{n_2}}

Two-by-Two Tables: Relative Risk and Odds Ratio

  • Data standard for 2×22 \times 2 tables with exposed (aa diseased, bb disease-free; total n1=a+bn_1 = a + b) and unexposed (cc diseased, dd disease-free; total n2=c+dn_2 = c + d).

  • Relative Risk (RRRR):

    • Point estimate:     RR=an1cn2RR = \frac{\frac{a}{n_1}}{\frac{c}{n_2}}

    • Natural log scale confidence interval:     ln⁡(RR)±Zn1−aa⋅n1+n2−cc⋅n2\ln(RR) \pm Z \sqrt{\frac{n_1 - a}{a \cdot n_1} + \frac{n_2 - c}{c \cdot n_2}}

    • Back-transformation to the original scale:     (eLower Limit, eUpper Limit)\left(e^{\text{Lower Limit}}, \, e^{\text{Upper Limit}}\right)

  • Odds Ratio (OROR):

    • Point estimate:     OR=a⋅db⋅cOR = \frac{a \cdot d}{b \cdot c}

    • Natural log scale confidence interval:     ln⁡(OR)±Z1a+1b+1c+1d\ln(OR) \pm Z \sqrt{\frac{1}{a} + \frac{1}{b} + \frac{1}{c} + \frac{1}{d}}

    • Back-transformation to the original scale:     (eLower Limit, eUpper Limit)\left(e^{\text{Lower Limit}}, \, e^{\text{Upper Limit}}\right)