Analyse an A/B test with Python

8 steps · about 4 h 10 min · Intermediate

  1. Frame the comparison (guide, NIST/SEMATECH e-Handbook, 30 min)

    Specify populations, treatment, response and assumptions before looking at results.

  2. Join assignment and outcome data (reference, pandas documentation, 30 min)

    Preserve one intended analysis unit while detecting missing and duplicated identifiers.

  3. Audit missing observations (reference, pandas documentation, 25 min)

    Measure whether missingness differs by group before silently dropping records.

  4. Estimate a difference in means (guide, NIST/SEMATECH e-Handbook, 35 min)

    Connect the observed effect to sampling variation and the design assumptions.

  5. Run an independent-samples test (reference, SciPy documentation, 30 min)

    Use an explicit variance assumption and retain the estimate alongside the p-value.

  6. Compare conversion proportions (reference, statsmodels documentation, 30 min)

    Analyse binary outcomes with methods suited to counts and sample sizes.

  7. Check practical significance (guide, NIST/SEMATECH e-Handbook, 30 min)

    Compare the confidence interval with a decision threshold instead of using significance alone.

  8. Publish a reproducible analysis record (guide, Jupyter documentation, 40 min)

    Keep inputs, exclusions, calculations, plots and the final decision together for review.