Confidence Intervals and Estimation Methods for Proportions and Means

Methods for Calculating Confidence Intervals

  • There are three distinct methodologies for constructing confidence intervals for population parameters:

    • Repeated Simulations: An empirical approach involving repeated computational sampling to observe the distribution of sample statistics and determine plausible parameter values based on pp-value cutoffs.

    • Two SD / Two Sigma Method: A semi-empirical shortcut requiring only a single simulation or sample, utilizing standard error approximations and normal distribution properties.

    • Theory-Based Inference: A purely mathematical approach requiring no computational simulation, relying entirely on theoretical probability distributions and theoretical formulas.

  • Iterative Simulation and Parameter Search (Cyberbullying Study Example):

    • Study Data: In a study investigating cyberbullying among United States teenagers aged 13 through 17, a sample of n=743n = 743 teenagers was evaluated, finding an observed sample proportion of pˉ=0.59\bar{p} = 0.59 (591%591\%) who experienced at least one of six specified types of cyberbullying.

    • Parameter Definition: The population parameter of interest is the true proportion (π\pi) of all US teenagers aged 13 through 17 who experience cyberbullying.

    • Determining Plausible Values via pp-values:

      • Testing a hypothesized parameter value of π=0.55\pi = 0.55 (55%55\%) yields a very small pp-value (<0.05< 0.05), leading to the rejection of 0.550.55 as a plausible population parameter.

      • Incrementing the hypothesized parameter upward step-by-step: testing 0.5530.553 and 0.5540.554 continues to yield pp-values below 0.050.05.

      • At a hypothesized parameter value of 0.5550.555 (55.5%55.5\%), the pp-value rises above the standard significance threshold of 0.050.05 (5%5\%), marking the lower boundary of plausible values.

      • Testing values above 0.590.59: hypothesized parameters of 0.600.60 (60%60\%) and 0.610.61 (61%61\%) yield large pp-values (>0.05> 0.05).

      • At a hypothesized parameter value of 0.6240.624 (62.4%62.4\%), the pp-value remains above 0.050.05.

      • At a hypothesized parameter value of 0.6250.625 (62.5%62.5\%), the pp-value drops below 0.050.05, marking the upper boundary of plausible values.

    • Simulated Confidence Interval Outcome: The resulting 95%95\% confidence interval constructed via repeated simulations ranges from 0.5550.555 to 0.6240.624 (or 55.5%55.5\% to 62.4%62.4\%).

  • Interpretation of a 95%95\% Confidence Level:

    • If the sampling process and interval calculation are repeated indefinitely across many independent random samples of the same size, each sample will yield a slightly different confidence interval due to sampling variability.

    • Exactly 95%95\% of all constructed confidence intervals will successfully capture the true, fixed, but unknown population parameter (π\pi).

    • A confidence level does not state the probability that a specific, calculated interval contains the parameter, but rather describes the long-run reliability of the estimation procedure.

The 2 SD / 2 Sigma Shortcut Method for Proportions

  • Symmetry and Centrality Requirement:

    • The sample proportion (p^\hat{p}) sits directly at the center of the constructed confidence interval if and only if the underlying sampling distribution is symmetric and bell-shaped.

    • Counterexample (Asymmetric Sampling Distribution): In studies with extremely high success probabilities—such as a cancer/sleeping dogs study with a success rate of 90.9%90.9\% (3030 successes out of 3333 trials)—the sampling distribution is severely left-skewed.

      • Left-skew occurs because there is minimal upper space to reach 100%100\%, but substantial lower space toward 0%0\%, leaving a long tail to the left.

      • For asymmetric distributions, the majority of plausible parameter values lie to the left of the observed sample proportion, invalidating symmetric interval methods.

  • Validity Conditions for Normal Approximation:

    • The sampling distribution of a sample proportion is approximately normal (bell-shaped) if the sample contains at least 1010 successes and at least 1010 failures:         np^≥10n\hat{p} \ge 10         n(1−p^)≥10n(1 - \hat{p}) \ge 10

    • In the 3030 out of 3333 trial example, there are only 33 failures (3<103 < 10), violating the validity condition.

  • The Empirical Rule (95%95\% Rule):

    • For any bell-shaped, normal distribution, approximately 95%95\% of all sample statistics fall within 22 standard deviations of the mean.

    • The exact z-critical multiplier for a central 95%95\% area is 1.961.96 standard deviations on either side of the mean.

    • This leaves 5%5\% total probability in the tails: 2.5%2.5\% in the lower (left) tail and 2.5%2.5\% in the upper (right) tail.

  • Mathematical Formula for the 2 SD Confidence Interval:     Confidence Interval=p^±2×SE\text{Confidence Interval} = \hat{p} \pm 2 \times SE     Where p^\hat{p} is the observed sample proportion and SESE is the standard error of the sample proportion.

Standard Error Estimation and Conservative Approximations

  • Standard Error Formula for Sample Proportions:     SE=π(1−π)nSE = \sqrt{\frac{\pi(1 - \pi)}{n}}     Where π\pi is the population parameter and nn is the sample size.

  • Effect of Sample Size on Standard Error:

    • Because sample size nn is located in the denominator under the square root, increasing nn decreases the standard error (SESE).

    • Larger samples produce narrower sampling distributions and more precise estimates.

  • The Conservative Standard Deviation Estimate:

    • Problem: The true population parameter π\pi is unknown, preventing direct calculation of the standard error.

    • Conservative Solution: Substitute π=0.5\pi = 0.5 (50%50\%) into the standard error formula.

    • Mathematical Justification:

      • The function f(π)=π(1−π)f(\pi) = \pi(1 - \pi) represents an inverted parabola with roots at π=0\pi = 0 and π=1\pi = 1

      • The maximum value of the function f(π)f(\pi) occurs at its vertex, where π=0.5\pi = 0.5

      • Setting π=0.5\pi = 0.5 maximizes the numerator π(1−π)=0.25\pi(1 - \pi) = 0.25, yielding the largest possible standard error for any given sample size nn.

    • Impact on Interval Width: Using π=0.5\pi = 0.5 ensures a cautious, conservative estimate that makes the constructed confidence interval slightly wider than necessary, guaranteeing that the target parameter is captured in at least 95%95\% of repeated applications.

  • Calculation of Conservative 2 SD Interval (Cyberbullying Example):

    • Given n=743n = 743 and conservative π=0.5\pi = 0.5:         SE=0.5×(1−0.5)743=0.25743≈0.018SE = \sqrt{\frac{0.5 \times (1 - 0.5)}{743}} = \sqrt{\frac{0.25}{743}} \approx 0.018

    • Constructing the 95%95\% confidence interval centered at p^=0.59\hat{p} = 0.59:         Interval=0.59±2×0.018=0.59±0.036\text{Interval} = 0.59 \pm 2 \times 0.018 = 0.59 \pm 0.036         Lower Bound=0.59−0.036=0.554\text{Lower Bound} = 0.59 - 0.036 = 0.554         Upper Bound=0.59+0.036=0.626\text{Upper Bound} = 0.59 + 0.036 = 0.626

    • Comparison of Results: The conservative 2 SD2\,SD interval (0.5540.554 to 0.6260.626) is slightly wider than the simulated interval (0.5550.555 to 0.6240.624), differing only in the third decimal place.

Theory-Based Inference and Multipliers

  • Sample Proportion Substitution Method:

    • Instead of using the conservative value π=0.5\pi = 0.5, an alternative approach substitutes the observed sample proportion p^\hat{p} directly into the standard error formula:         SE=p^(1−p^)nSE = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

    • Because p^\hat{p} is close to π\pi, this substitution yields a smaller standard error and a narrower, more precise confidence interval without significantly compromising accuracy.

  • General Structure of Theory-Based Confidence Intervals:     Confidence Interval=Sample Statistic±(Multiplier×SE)\text{Confidence Interval} = \text{Sample Statistic} \pm (\text{Multiplier} \times SE)

    • The interval is strictly centered at the observed sample statistic.

  • Standard Multipliers by Confidence Level:

    • 90%90\% Confidence Level: Multiplier = 1.6451.645 (leaves 5%5\% area in each tail).

    • 95%95\% Confidence Level: Multiplier = 1.961.96 (commonly rounded to 22 in the 2 SD2\,SD method; leaves 2.5%2.5\% area in each tail).

    • 99%99\% Confidence Level: Multiplier = 2.5672.567 (leaves 0.5%0.5\% area in each tail).

    • Extreme Rigor Requirements (e.g., Nuclear Power Safety): Applications requiring extreme confidence levels such as 99.99%99.99\% utilize larger zz-quantiles determined by the remaining tail probability formula:         Tail Area=100%−Confidence Level2\text{Tail Area} = \frac{100\% - \text{Confidence Level}}{2}

  • Trade-Off Between Confidence Level and Interval Width:

    • Increasing the confidence level increases the multiplier, resulting in a wider confidence interval.

    • Decreasing the confidence level (e.g., to 80%80\% or 60%60\%) decreases the multiplier and narrows the interval, but increases the risk of omitting the true population parameter.

  • Implementation in Theory-Based Inference Software:

    • Inputs required for a single proportion:

      • Sample size (n=743n = 743)

      • Count of successes (x=138x = 138 out of 743743, or entering the exact unrounded proportion p^=0.5895\hat{p} = 0.5895

    • Output provides exact theoretical boundaries, such as 0.5540.554 to 0.6260.626.

Margin of Error and One-Sample Z-Intervals

  • Definition of Margin of Error (MoE):

    • The margin of error represents half the total width of a confidence interval:         MoE=Multiplier×SEMoE = \text{Multiplier} \times SE

    • It quantifies the maximum expected distance between the sample statistic and the true population parameter at the specified confidence level.

  • Calculating Margin of Error and Center from Endpoints:     Center (Sample Statistic)=Right Endpoint+Left Endpoint2\text{Center (Sample Statistic)} = \frac{\text{Right Endpoint} + \text{Left Endpoint}}{2}     MoE=Right Endpoint−Left Endpoint2MoE = \frac{\text{Right Endpoint} - \text{Left Endpoint}}{2}     MoE=Right Endpoint−CenterMoE = \text{Right Endpoint} - \text{Center}

  • One-Sample Z-Interval:

    • A confidence interval for a single proportion constructed using standard normal zz-scores is formally designated a one-sample zz-interval.

    • Validity Conditions: Valid only when the sample contains at least 1010 successes and 1010 failures (np^≥10n\hat{p} \ge 10 and n(1−p^)≥10n(1-\hat{p}) \ge 10).

Confidence Intervals for Quantitative Means

  • Transition from Proportions to Means:

    • Proportions are bounded between 00 and 11. Quantitative means can take any real value, including numbers greater than 11 or negative values.

  • Used Honda Civic Price Case Study:

    • Sample Data: A sample of n=102n = 102 used Honda Civics collected from internet listings.

    • Distribution Shape: Skewed right (non-bell-shaped).

    • Sample Statistics:

      • Sample Mean (xˉ\bar{x}): $13,292\$13,292

      • Sample Standard Deviation (ss): $4,500\$4,500

    • Target Population Parameter: The average selling price (μ\mu) of all used Honda Civics in the target population.

  • Notation Conventions for Means vs. Proportions:

    • Sample mean is denoted as xˉ\bar{x} ("x-bar").

    • Sample proportion is denoted as p^\hat{p} ("p-hat").

    • Historically, xˉ\bar{x} and p^\hat{p} were established by competing statistical researchers.

  • Confidence Interval Structure for Means:     Confidence Interval=xˉ±(Multiplier×SE(xˉ))\text{Confidence Interval} = \bar{x} \pm (\text{Multiplier} \times SE(\bar{x}))

Standard Error of Sample Means and the T-Distribution

  • Distinction Between Sample SD and SD of Sample Means:

    • Sample Standard Deviation (ss): Measures the variability of individual data points within a single sample (s=$4,500s = \$4,500 for n=102n = 102 Civics).

    • Standard Error of the Mean (SE(xˉ)SE(\bar{x})): Measures the variability of sample means across repeated random samples of size nn drawn from the population.

    • Taking samples of size n=1n = 1 yields the full population standard deviation (σ\sigma).

    • Taking samples of size n>1n > 1 significantly reduces variability among sample averages.

  • Formula for the Standard Error of the Mean:     SE(xˉ)=σnSE(\bar{x}) = \frac{\sigma}{\sqrt{n}}     Where σ\sigma is the population standard deviation and nn is the sample size.

  • Approximation Using Sample Standard Deviation:

    • Because the population standard deviation σ\sigma is generally unknown, it is approximated using the sample standard deviation ss:         SE(xˉ)≈snSE(\bar{x}) \approx \frac{s}{\sqrt{n}}

    • Calculation for Honda Civic Example (n=102n = 102, s=$4,500s = \$4,500):         n=102≈10\sqrt{n} = \sqrt{102} \approx 10         SE(xˉ)≈450010=$450SE(\bar{x}) \approx \frac{4500}{10} = \$450         (Exact computed value: $453\$453).

  • Adjustment via the T-Distribution:

    • Approximating the unknown population standard deviation σ\sigma with the sample standard deviation ss introduces additional estimation uncertainty.

    • To compensate for this extra error, confidence intervals for quantitative means substitute tt-critical values (from the tt-distribution) in place of zz-scores for the multiplier.