StatsCalculators.com

Confidence Interval for Difference in Proportions

Created:November 14, 2024
Last Updated:March 26, 2025

This calculator will compute the confidence interval for the difference between two population proportions with a specified level of confidence. Simply input the number of successes and sample size for each group, as well as the desired confidence level, and click the calculate button.

Calculator

Input Your Values

Learn More

Confidence Interval for Difference in Proportions: Definition, Formula, and Interpretation

Definition

A confidence interval for the difference in proportions provides a range of values that is likely to contain the true difference between two population proportions with a certain level of confidence.

Formula

Formula:

(p^1p^2)±zα/2p^1(1p^1)n1+p^2(1p^2)n2(\hat p_1 - \hat p_2) \pm z_{\alpha/2} \sqrt{\frac{\hat p_1(1-\hat p_1)}{n_1} + \frac{\hat p_2(1-\hat p_2)}{n_2}}

Where:

  • p^1\hat p_1 and p^2\hat p_2 are the sample proportions
  • zα/2z_{\alpha/2} is the critical value from the standard normal distribution
  • n1n_1 and n2n_2 are the sample sizes

Interpretation

Interpretation: A 95% confidence interval means that if we repeated this sampling process many times, about 95% of the intervals would contain the true difference between population proportions.

Verification

Related Calculators