A/B test readout: validity checks, significance and power step by step

by fidji DeepSeek English ~638 tokens
Public excerpt Locked
Before any p-value: SRM chi-square on assignment counts, full weekly cycles, peeking, randomisation unit vs analysis unit. Then the test with your numbers substituted into each formula, a CI on absolute and relative lift, power, and scipy code that is the final word…

About this prompt

Paste your experiment counts and get a rigorous readout: sample ratio mismatch check, two-proportion z-test or Welch test with formulas shown, confidence interval on the lift, achieved power, then a ship / extend / rerun decision. Designed for DeepSeek, whose step-by-step reasoning makes every intermediate value checkable, with Python code to confirm. Catches peeking, multiple comparisons and unit-of-analysis errors.

Example output

Provided by the author
STEP 1 — Validity SRM: A = 49,903, B = 50,212, expected 50,057.5 each. χ² = (154.5² + 154.5²) / 50,057.5 = 0.954 → p ≈ 0.33. No mismatch. Duration: 14 days, Monday to Sunday twice ✓ STEP 2 — Effect p_A = 2,410 / 49,903 = 0.04829 ; p_B = 2,601 / 50,212 = 0.05180 Pooled p = 5,011 / 100,115 = 0.05005 SE = √(0.05005 × 0.94995 × (1/49,903 + 1/50,212)) = 0.001378 z = 0.00351 / 0.001378 = 2.54 → p ≈ 0.011 (two-sided) 95% CI (absolute): +0.08 to +0.62 points ; relative lift +7.3% STEP 4 — Code ```python from statsmodels.stats.proportion import proportions_ztest, confint_proportions_2indep z, p = proportions_ztest([2601, 2410], [50212, 49903]) ``` STEP 5 — Decision: ship, with one caveat: the lower bound (+0.08 pt) is close to zero; monitor the order rate for 4 weeks after release…

Details

Model
DeepSeek
Prompt language
English
Who it's for
Product analysts, growth marketers and PMs who run A/B tests and must defend the conclusion
Length
~638 tokens (estimate)
Delivered as
Prompt text, shown online after purchase

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt