A Beginner’s Guide to Understanding A/B Test Performance through Monte Carlo Simulations

Ida Johnsson, PhD
Towards Data Science
16 min readAug 5, 2023

--

This tutorial explores how covariates influence A/B testing precision in a randomized experiment. A properly randomized A/B test calculates the lift by comparing the average outcome in the treatment and control groups. However, the influence of features other than the treatment on the outcome determines the statistical properties of the A/B test. For instance, omitting influential features in the test lift calculation can lead to a highly imprecise estimate of the lift, even if it converges to the true…

--

--

Economist and programmer with 10+ years of experience in data science, early-stage startups and big tech. I also teach at USC. www.idajohnsson.com