two_proportion_z_test
Test whether two independent proportions differ significantly. Provides z-statistic, two-tailed p-value, confidence interval, and citation for comparing conversion rates in A/B tests.
Instructions
Test whether two independent proportions differ -- the standard test behind comparing conversion rates between two groups (e.g. an A/B test). Returns the z-statistic, two-tailed p-value, a confidence interval for the difference in proportions, a citation, and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n1 | Yes | total observations in group 1 | |
| n2 | Yes | total observations in group 2 | |
| alpha | No | significance level for the test (and any confidence interval); default 0.05 | |
| successes1 | Yes | successes observed in group 1 | |
| successes2 | Yes | successes observed in group 2 |