What is an online A/B test, why are users split at random between the two versions, and what does 'statistically significant' roughly mean? If version A gets 50 clicks from 1000 users and B gets 60 from 1000, can you already say B is better?
ML systems and evaluation, Online experiments
Level L1 Beginner. Length Short. Nature Th+Mat Both.
What's being asked
Whether you understand why we compare a new model with the old one live on randomly split users, and why a difference alone is not proof.
Key idea
An A/B test shows version A (control) to one random group of users and version B (treatment) to another, at the same time, and compares a chosen metric such as click-through rate. Random assignment makes the groups alike, so a difference can be put down to the change. 'Statistically significant' roughly means: a gap this large would be unlikely if the two versions were truly the same.
Steps
- State the setup: split users at random, show A to one half and B to the other, run both at once, and measure the same metric for each group.
- Explain the randomisation: if the best users all saw B, B would look better for the wrong reason. Random assignment spreads such differences evenly, and running both at once avoids confusing the change with the day of the week.
- Compute the observed gap: A has and B has , so B is 1 percentage point higher.
- Ask whether it could be luck. Click counts are noisy, and a second run of the same experiment could easily show 5.4% against 5.6%. With only 1000 users each, a 1-point gap is small compared to that noise.
- Define significance: a test asks how likely a gap this big would be if A and B were truly equal. If that chance (the p-value) is below a threshold fixed in advance, commonly 0.05, we call the result significant. So we cannot yet call B better; we need a significance test or more users.
Common mistakes
- Declaring a winner from a raw difference. Any gap must be compared with the noise in the metric.
- Splitting by a non-random rule such as time of day or region. This brings back confounding.
- Reading 'significant' as 'large' or 'important'. It speaks of evidence against pure luck, not size of the benefit.
How long your answer should be
About 2 minutes: the setup, why random, and the 5% versus 6% example.
Read this
Previous in ML systems and evaluation: What is a confusion matrix for a binary classifier, and what do its four cells mean? A spam filter checks 100 emails, 20 of which are spam. It flags 18 emails as spam, and 15 of those really are spam. What goes in each cell?
Next in ML systems and evaluation: What is training–serving skew?