Please verify you are human to use the calculator.
The two-proportion z-test compares proportions from two independent groups to determine whether they differ significantly. It is the standard test for A/B testing, clinical trial response rate comparisons, and quality control defect rate comparisons. The test statistic uses the pooled proportion under the null hypothesis and follows a standard normal distribution for sufficiently large samples.
The test is valid when the normal approximation to the binomial holds: np ≥ 5 and n(1 − p) ≥ 5 in both groups. When this condition is not met (common with rare events or small samples), Fisher’s exact test should be used instead. The confidence interval for the difference in proportions uses unpooled standard errors, which is the correct approach for interval estimation even though the test statistic uses the pooled proportion.
Key assumptions include independent observations within and between groups, random sampling, and binary outcomes. In A/B testing, the independence assumption means each user must be assigned to exactly one variant. Violations such as repeated exposures or cross-contamination between variants invalidate the test.
A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itTest whether observed frequencies match expected frequencies from a theoretical distribution.
Try itExact test for independence in a 2×2 contingency table. Preferred over chi-square when sample sizes are small.
Try itCompare two proportions (e.g., conversion rates) to determine if they differ significantly.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the two-proportion z-test