Confidence interval for a difference in proportions
Interval for p₁ − p₂ from two independent samples, using the unpooled (Wald) standard error or Newcombe's hybrid score method.
- sample proportion in group
- size of group
- Wilson score interval for group
When to use
Comparing two rates: conversion in variant B vs A, default rates in two segments, recovery under two treatments. Newcombe's interval is preferred when counts are small or rates are near 0 or 1; the Wald interval is fine for large samples.
Assumptions
Two independent random samples (or randomised groups); independent trials within each group.
How to interpret
- The interval is for the absolute difference in percentage points. A relative lift () is a different quantity.
- The test of uses a pooled SE, while the interval uses the unpooled SE, so in borderline cases the test and the Wald interval can disagree slightly.
Common mistakes
- Using the pooled SE for the interval.
- Confusing percentage points with percent change.
- Comparing two separate intervals instead of computing one for the difference.
Example
Variant B: 48 of 400 (12.0%); A: 30 of 400 (7.5%). Difference . Wald 95% interval: ; Newcombe: . Both suggest an improvement between about 0.4 and 8.7 percentage points.