Practice this topic in a realistic system design interview
Suppose your team redesigns the checkout page and releases it to everyone on Monday. By Friday, the purchase rate has gone up by 3%.
But how do we know the new design actually caused that increase? During the same week, the marketing team sent out a discount email, a competitor had an outage, and a holiday was coming up, when people tend to shop more. Any of these could have contributed.
So comparing the numbers before and after a release doesn't tell us how much of the improvement came from the new design and how much came from everything else.
What we need is a way to compare the old and new designs at the same time, using similar groups of users. Then both groups are exposed to roughly the same outside factors, and the main difference between them is the checkout design they see. That's what an A/B test does.
This chapter covers what it takes to run A/B tests reliably at scale: assigning users to variants, logging what they see, computing results, and avoiding the mistakes that lead to false conclusions.