A/B Test Decision Workbench
Real z-tests, guardrail tests, power/MDE, and BH-corrected segment heterogeneity — computed from the source project's own functions.
A/B Test Decision Workbench
Checkout redesign experiment readout
Fictional scenario on simulated data (seed=7): Trailhead, a mid-market DTC outdoor/apparel retailer (~$120M GMV, ~58% mobile sessions), tests a single-page checkout redesign against the legacy 3-step flow. Users are randomized 50/50 at first checkout entry.
About the data
Every statistic in the built-in sample comes from actually running the source project's build_sample() plus proportion_test / welch_test / mann_whitney_test / benjamini_hochberg functions (seed=7, n=5,000) — not hand-written example numbers. The alpha / power / planning-MDE sliders drive a real live recompute, and you can also upload your own experiment CSV — the full statistics pipeline reruns on your data entirely in your browser.
These three drive a live recompute of the Power/MDE and Decision Memo sections below (real formulas, not static numbers) — the same-named sliders from the source app's sidebar.
Why run this experiment (business case)
Over the last two quarters mobile traffic share climbed to 58%, but mobile checkout conversion (8.0%) kept trailing desktop (10.0%). The growth and product teams want to know whether a redesigned checkout can close that gap before committing engineering to a full rollout.
What changes: Treatment replaces the legacy 3-step checkout (cart → shipping → payment) with a single-page checkout: address autofill, express wallets (Apple Pay / Shop Pay), and fewer required form fields. Control keeps the current 3-step flow. Users are randomized 50/50 at first checkout entry.
Where the idea came from (part of the fictional scenario): (1) funnel analysis showing the single largest drop-off at the shipping/payment step; (2) session replays of mobile users abandoning the long form; (3) support tickets and post-purchase survey verbatims repeatedly citing "checkout is too long."
Potential business problems to watch
- Express checkout may shrink order value / cross-sell → watch revenue per user.
- New wallet SDKs can slow the page → watch page-load time.
- A confusing layout could push users away → watch bounce rate.
- Fewer steps could reduce on-site engagement → watch sessions per user.
- If the redesign only renders on some devices, assignment can skew → SRM check.
- The effect may differ by device / channel / country → segment heterogeneity (could help mobile but hurt desktop).
Each risk is mapped in advance to a specific guardrail metric or check that will actually be tested — not an afterthought once the experiment is already running.
Metric dictionary: exactly how each metric is computed
The primary metric decides ship/no-ship; guardrails protect against unintended harm.
Conversion rate
(converted)PRIMARYShare of assigned users who placed at least one order during the experiment window. User-level: each user is counted once, regardless of how many sessions or orders they had.
conversion_rate = converted_users / total_users (per arm)
Test: Two-proportion z-test · unpooled 95% CI · Cohen's h
Revenue per user
(revenue)GUARDRAIL · higher is betterTotal revenue divided by all assigned users, including $0 from non-converters (i.e. ARPU). Catches the case where conversion rises but each order is worth less.
revenue_per_user = sum(revenue) / total_users (per arm)
Test: Mann-Whitney U (zero-inflated / skewed metric)
Sessions per user
(sessions)GUARDRAIL · higher is betterAverage number of sessions per assigned user during the window. A drop can signal reduced engagement.
sessions_per_user = sum(sessions) / total_users (per arm)
Test: Welch t-test (unequal variance)
Page load (ms)
(page_load_ms)GUARDRAIL · lower is betterAverage page-load latency in milliseconds. Lower is better — new wallet SDKs must not regress speed.
avg_page_load = mean(page_load_ms) (per arm)
Test: Welch t-test · negative-direction guardrail
Bounce rate
(bounce)GUARDRAIL · lower is betterShare of users who bounced (single-interaction exit). Lower is better — a confusing redesign would push this up.
bounce_rate = bounced_users / total_users (per arm)
Test: Welch t-test · negative-direction guardrail
Decision rule
SHIP only when the primary conversion rate is significantly positive (p < alpha) and no guardrail moves materially in the wrong direction. Otherwise: RAMP WITH CAUTION (positive but a guardrail needs mitigation), KEEP RUNNING (effect below the current detectable MDE), or DO NOT SHIP (primary is hurt).