FA-74383 / Experiment statistics / Member archive
Conversion rate z-test: The z statistic has the control-minus-treatment sign · case 03
Dashboards show winning treatments as losing.
Case contract
Pooled two-proportion z-test: pool = (conv_a + conv_b) / (n_a + n_b), se = sqrt(pool(1 - pool)(1/n_a + 1/n_b)), z = (p_b - p_a) / se, two-sided p = erfc(|z| / sqrt 2). Nonpositive n -> None; se = 0 -> [0.0, 1.0]. Return [round(z, 6), round(p, 6)].
Why this case matters
Online experiment readouts drive launch decisions; a silent formula slip flips conclusions.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| treatment worse gives negative z | [2.102741, 0.035488] | [-2.102741, 0.035488] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗