Skip to content
The four most common mistakes in A/B testing questions

The four most common mistakes in A/B testing questions have nothing to do with formulas

“The new recommendation strategy has been running for three days. The experiment group’s CTR is 5% higher than the control group. Can we roll it out to 100%?”

I’ve asked a lot of people this question, from new grads to people who’ve done data product for years. The answers vary widely, but the traps they fall into are always the same four.

And none of the four traps has anything to do with statistical formulas. They’re all the same kind of problem: before making a judgment, you didn’t first confirm that the basis for judgment holds. The value of a data product manager at this step isn’t knowing how to compute a p-value—tools are faster than people at that—it’s being able to stop a beautiful-looking conclusion in the meeting room.

Post 4 in this series. The previous one was about how to attribute a 30% drop in data; the next one is about whether a requirement needs a new table.

Mistake one: the sample ratio is off, and you’re still comparing CTR

The first thing I wait for is usually: do the sample sizes of the two groups match?

The design splits 50/50, but what actually comes back is 52/48; or one day the experiment group suddenly has 20% fewer events. This is called sample ratio mismatch (SRM). When SRM appears, a 5% CTR lift has no explanatory value, because it may come from “some people simply weren’t recorded” rather than “the strategy is more effective.”

The causes fall into just a few categories: the splitting logic is wrong; some client didn’t integrate the experiment SDK; tracking was lost in a new version; requests in the experiment group are more likely to time out. None of these has anything to do with the strategy itself, but all of them disguise themselves as strategy effects.

So the right move is to not look at the metrics first, but go back and check the splitting and tracking: break down the headcount ratio of the two groups by client, version, and channel; check whether exposure events appear in pairs; confirm the group field is a snapshot at the moment of exposure rather than a post-hoc join—I covered this specifically in an earlier post. Until SRM is ruled out, any significance calculation is reading markings with a broken ruler.

People who proactively say “check SRM first” have usually been burned by a real experiment incident. Those who jump straight to “is 5% significant enough” are wasting their time no matter how pretty the later math is.

Mistake two: what you split by and from what moment, you can’t say

The second follow-up is: what do you split by, and from what moment do you start splitting.

Whether you split by user, device, or session depends on whether the experience is continuous across clients. A recommendation strategy changes what users see over the long term, so it should split by user ID. If the same person enters the experiment group on their phone and the control group on their tablet, the two sides’ behavior contaminates each other, and they themselves will feel that “the content changes when I switch devices.” Conversely, if the user isn’t logged in, you can only use a device-level anonymous ID, and then you have to admit that switching devices or clearing the cache will re-split them, and write this limitation into the conclusion—not gloss over it in an appendix.

Splitting must be deterministic and persistent. A common approach is hash(user_id + 实验盐值) modulo, with a salt independent per experiment, so that multiple experiments don’t keep putting the same batch of people on the same side. I’ve also seen implementations that group with random numbers on the fly—the user refreshes once and switches groups, and the experiment data turns straight into noise. There’s also the “pseudo-experiment” of switching by time: all traffic in the morning goes to the control group, all in the afternoon to the experiment group, and in the end you’ve mistaken time-of-day differences for strategy effects.

The moment of splitting is equally prone to problems: grouping must happen before the user could possibly be exposed to the change, and in analysis only users who were actually exposed should be counted. Counting “grouped but not exposed” people in the denominator dilutes the effect; counting only “people who clicked” is worse—that’s classic selection bias, since clicking is itself a result of the strategy’s influence, and comparing after filtering people first gives you something you can’t even look at.

Mistake three: treating “it went up” as “significant”

The third mistake is the most common, and the easiest to gloss over with one sentence: ran three days, up 5%, ship it.

First estimate the order of magnitude. Under the usual approximation, for two-sided 5% significance and 80% power, the sample size needed per arm is roughly:

TEXT1 line
1
n ≈ 16 × p × (1 - p) / δ²

p is the control group’s baseline rate, and δ is the absolute lift you want to detect. With a baseline CTR of 10% and a target detection of 1 percentage point, plugging in gives about fourteen thousand exposures per arm; if the baseline is 2%, detecting the same 1 percentage point requires a vastly different amount. This formula isn’t meant to be memorized—it’s meant to illustrate only one thing: how small a lift you can detect is determined by traffic and baseline rate, not by determination. Whether three days is enough—first compute it with your daily average exposures; if you can’t compute it, it’s not yet time to draw a conclusion.

Then there’s peeking. Opening the report for a glance every day and stopping as soon as it’s significant is equivalent to doing multiple tests repeatedly, and the false positive rate gets inflated badly. The safe approach is to fix three things before the experiment starts: the primary metric, the minimum detectable lift, and the sample size or run duration—then look when the time comes. If the business really needs daily monitoring, use sequential testing, or write down an early-stopping rule; you can’t rely on gut feel.

There are two more accompanying traps. One is multiple comparisons: among twenty metrics there’s always one that’s significant—that’s probability, not a discovery. The other is post-hoc slicing: after the experiment ends, slice by region, device model, and new vs. existing users into a hundred segments, pick the one that went up the most, and say “it’s especially effective for this group”—most of the time it’s just noise. Stratified analysis must be declared in advance; anything sliced after the fact can only be treated as a hypothesis, left for the next round of experiments to verify.

Mistake four: the primary metric looks good, and nobody asks about guardrails and contamination

A 5% CTR lift could perfectly well come from more sensational headlines, more repeated exposures, or steering users toward worse content. So I’ll also ask for a set of guardrails: dwell time, return rate, content diversity, reports and complaints, next-day retention; on the supply side, whether creators’ exposure is being squeezed. CTR is one of the metrics most easily distorted by local optimization—precisely when it goes up is when you should ask one more question: are users getting a better outcome?

There’s a common trade-off here. Suppose CTR is up 3 points and next-day retention is down 0.5 points. I won’t let it through on the grounds that “the retention drop is small”; I’ll first look at who is dropping—new users or existing users—because that determines whether it’s short-term noise or long-term harm. A guardrail metric’s absolute value being small doesn’t mean it can be ignored; the key is who it’s dropping on and for how long.

On the time dimension there’s also novelty effect and learning period. Users click a few more times because it’s “different,” then it falls back after two weeks; a new strategy needs a cold start to accumulate data, so its first few days actually look worse. Short-term conclusions need to be paired with long-term observation, or at least leave a steady-state window before reading.

Contamination comes from other things happening during the experiment period: releases, big promotions, campaign ramp-ups, holidays, upstream recommendation service failures. I make a habit of listing these changes on a timeline and sticking it next to the conclusion, while also checking whether the two groups were affected by these events in the same proportion. If necessary, keep a small slice of traffic as a long-term holdout to see the true long-term gain after full rollout.

The answer I’m hoping for isn’t one word

“Can we roll it out to 100%?”—what I want to hear is a decision process: first verify SRM and tracking, then check whether the primary metric has reached the preset threshold, then check whether guardrails have deteriorated and whether segments are consistent, and finally give a gradual rollout plan—how much traffic, which metrics to watch, what conditions trigger rollback. Rollback conditions must be written as executable sentences, like “if the notification opt-out rate or complaint rate exceeds the agreed threshold relative to the control group and persists for two days, roll back immediately,” not “roll back if anything looks off.”

When there’s only a minute left in the interview, I usually just have them answer one sentence: in this experiment, what is most likely to make you misjudge. People who can answer that are unlikely to roll out to 100% on three days of data.

Further reading: Don’t rush to build a table—first explain what this row is, When you present a project, what I most want to hear is where you went wrong

About this Post

This post is written by Lu's Blog, licensed under CC BY-NC 4.0.

#A/B Testing #Data Products #Interviews

Comments