Analyse an A/B test with Python
8 steps · about 4 h 10 min · Intermediate
- Frame the comparison (guide, NIST/SEMATECH e-Handbook, 30 min)
Specify populations, treatment, response and assumptions before looking at results.
- Join assignment and outcome data (reference, pandas documentation, 30 min)
Preserve one intended analysis unit while detecting missing and duplicated identifiers.
- Audit missing observations (reference, pandas documentation, 25 min)
Measure whether missingness differs by group before silently dropping records.
- Estimate a difference in means (guide, NIST/SEMATECH e-Handbook, 35 min)
Connect the observed effect to sampling variation and the design assumptions.
- Run an independent-samples test (reference, SciPy documentation, 30 min)
Use an explicit variance assumption and retain the estimate alongside the p-value.
- Compare conversion proportions (reference, statsmodels documentation, 30 min)
Analyse binary outcomes with methods suited to counts and sample sizes.
- Check practical significance (guide, NIST/SEMATECH e-Handbook, 30 min)
Compare the confidence interval with a decision threshold instead of using significance alone.
- Publish a reproducible analysis record (guide, Jupyter documentation, 40 min)
Keep inputs, exclusions, calculations, plots and the final decision together for review.