The experiment readout says the new checkout is a clear win, but the analysis counts sessions instead of users, uses a one-sided p-value, divides variance by n and never checks the traffic split. Fix the statistics so the ship decision can be trusted.
This is the practice version. Assessments always use a variant you have never seen.
The growth team wants to ship the one-page checkout on Monday based on this readout. abkit/readout.py turns the raw experiment export into the summary the decision meeting uses.
The export has one row per session: user_id, variant (A = control, B = treatment), converted
(0/1) and revenue. Users were randomised 50/50 unless the readout is told otherwise.
excluded_users.srm_p). If srm_p < 0.001, the decision is invalid_srm.decision is ship only when the change is significant and the lift is positive; otherwise no_ship.Run python3 -m unittest discover -s tests. Hidden tests replay crafted experiments with known answers.