A new ranker moves a good item from position 5 to position 2, and clicks go up 2%. Did the model get better, or did the item just move up? A typical A/B test cannot tell you, because it measures clicks on the list as shown, and position is part of what the list does.
The causal setup: potential outcomes
Every ranking change is a claim: this list is better than that list. The claim is about a counterfactual. For each user, you want to compare what happened under the new ranking with what would have happened under the old one. You only ever see one of those outcomes.
The potential outcomes framework, due to Neyman (1923) and Rubin (1974), makes this precise. Each user has two potential outcomes: under the control ranking and under the treatment ranking. The individual effect is . The quantity a test estimates is the average of those differences over the population, the average treatment effect:
This is the fundamental problem of causal inference: you never observe both and for the same user. The observed outcome is under control and under treatment.
The treatment is the whole ranking, not a single item or a single feature. is the outcome under the treatment list, under the control list. Swap one list for another and you change everything at once: different items at the top, different items pushed down, different exposure for every item.
That only works if an assumption holds: SUTVA, the stable unit treatment value assumption. It says two things. First, the treatment is the same for everyone who gets it. Second, one user’s outcome does not depend on another user’s assignment. Users do not interfere with each other. Ranking breaks the second half.
The estimator: difference in means
Randomization is the workaround. Split users into two groups at random, show one group the control ranking and the other the treatment ranking, and compare the averages. The estimator is the difference in means:
Under random assignment, this estimator is unbiased for the average treatment effect. Randomization makes the two groups the same on average, on every variable at once, including the ones you never measured. So the treatment group’s average estimates , the control group’s average estimates , and the difference estimates the ATE.
Unbiased is not the same as precise. The variance of the estimator is the Neyman variance:
where and are the numbers of users in treatment and control. Two things drive it: how noisy the outcome is, and how many users you have. The variance falls as one over , so the standard error falls as one over the square root of . To halve the standard error you need four times the users. The formula is conservative: the true variance has a third term, minus the variance of the individual effects, which is not identifiable because you never observe both potential outcomes for the same user.
Take a ranking with a 10% click-through rate. The change is a small ranker tweak, and you expect a 2% relative lift, so the treatment click-through rate would be 10.2% against a control of 10.0%. The absolute difference is 0.2 percentage points, or . For a binary outcome at 10%, the variance within each group is .
The sample size for 80% power at is the standard formula:
where is the sample size per variant. The 16 is , rounded up to 16. 1.96 is the two-sided 5% critical value, and 0.84 is the 80% power quantile. Plugging in, users per variant. That is what 80% power costs for a 2% lift on a 10% baseline.
Halve the effect to a 1% lift and the sample size quadruples, to 1,440,000 per variant. Double it to a 4% lift and it quarters, to 90,000. Small effects are expensive. That is why most ranking tests are underpowered. At 360,000 users per variant the standard error is about 0.00071, so a true effect of 0.002 sits 2.83 standard errors from zero, which is where the 80% power comes from. Run half that traffic, 180,000 per variant, and the standard error is 0.001 and the power falls to about 52%.
Interference
Everything so far assumed SUTVA, and SUTVA fails inside a single ranked list. Interference is when one unit’s treatment affects another unit’s outcome, and in a ranking the units are the items in the list. When you swap in a new ranking, you change the exposure of every item at once. Item B’s clicks depend on where item A sits, so the treatment for item B is the whole new list. The difference in means no longer estimates a clean average treatment effect.
- Cannibalization. A ranked list has a fixed number of slots, and promoting one item takes clicks from another. If the treatment ranker promotes long-tail items, the list shows more long-tail clicks and fewer head clicks, and total clicks barely move. The difference in means on total clicks then understates the effect on the long tail. A 2% lift could be partly reallocation, clicks moved between items rather than new clicks created.
- Two-sided marketplace. Treating buyers changes which sellers get exposure, so a seller’s outcome depends on other sellers’ treatment. An experiment that randomizes buyers and measures seller revenue mixes the direct effect and the spillover together. That mixture is not the effect of rolling the change out.
- Network effects in social products. If the treatment changes what a user shares, it changes what their connections see, and their outcomes depend on the treatment of people they are connected to. Randomizing by user then contaminates the control group.
The standard fix is cluster randomization: randomize by a cluster, such as a geographic region, a seller, or a connected group, rather than by individual user. If the interference happens inside the cluster, randomizing the whole cluster together keeps it contained. The cost is power: the effective sample size is the number of clusters, not the number of users. In marketplaces, the other fix is a switchback: randomize time periods rather than users, so the whole market gets the treatment on some days and control on others (Bojinov, Simchi-Levi and Zhao, 2023). Interference is a real constraint. Some questions cannot be answered with a user-randomized test at all.
Position bias
The second break is in the metric itself. The outcome you measure is clicks, and clicks are shaped by position as well as relevance. Relevance is how useful the item is to the user, apart from where it sits in the list. A ranker that moves a good item up gets more clicks partly because the item is more relevant and partly because it is higher up, where users look first. The A/B test measures the combined effect, which is what you want for a shipping decision. But you cannot read the result as a pure relevance gain, because the test does not separate the two.
The treatment ranker produces a 2% lift in click-through rate. How much of that lift is relevance and how much is position? If the new ranker mostly reorders items the user would have clicked anyway, putting the likely clicks higher up, the lift is mostly position. If it surfaces items the user would not otherwise have found, the lift is relevance. The A/B test cannot tell you which, because it measures clicks on the list as shown, and position is part of what the list does. Position shapes clicks as much as relevance does, which is the subject of the position bias post. An A/B test on a ranking inherits that problem: the metric is clicks, and clicks are position-biased.
A lift in clicks is a lift in clicks, and if clicks are the business metric, that is enough to ship. But if you are trying to learn whether the new model understands relevance better, the A/B test does not answer that on its own. It answers whether the new ranking, positions included, gets more clicks. The distinction is easy to forget when the number comes back significant.
Variance reduction
Interference and position bias are about validity, whether the test measures what you think. There is a separate problem, precision: a 2% lift needs 360,000 users per variant, and most teams do not have that traffic. There are two ways to buy sensitivity: use pre-experiment data, or use a paired design.
The difference in means is the baseline estimator, and it is not the best one. Much of the noise in the outcome is predictable: some users click a lot and some rarely click, and that variation has nothing to do with the ranking they saw. CUPED, Controlled-experiment Using Pre-Experiment Data (Deng, Xu, Kohavi and Walker, 2013), subtracts the predictable part using a pre-experiment variable, usually past clicks. Because the variable is measured before the experiment, the adjustment does not change what the estimator estimates, only its variance. With a pre-experiment click rate correlated 0.7 with the outcome, CUPED cuts the required sample size from 360,000 users per variant to about 184,000, so at 180,000 users the test has about 80% power instead of 52%. On Bing, where it was developed, three experiments showed variance reductions of 45%, 52% and 49%.
CUPED is a control variate: it adjusts each outcome by times a pre-experiment covariate’s deviation from its mean, . The best is , and with it the variance falls by a factor of , where is the correlation between the covariate and the outcome.
Interleaving
CUPED makes an A/B test more sensitive. Interleaving is a different design, more sensitive by construction. Instead of showing one group the control ranking and another group the treatment ranking, you merge the two rankings into a single list, show that list to everyone, and credit each click to whichever ranker placed it. Because every user sees both rankings, the comparison is within-user, and the between-user variance cancels out.
The standard method is team-draft interleaving, introduced by Radlinski and colleagues and validated at scale by Chapelle, Joachims, Radlinski and Yue (2012). The two rankers take turns drafting items into a single list, like captains picking teams, and which ranker picks first is randomized each round. A click on an item is credited to the ranker that drafted it. The randomized alternation makes the credit assignment fair. A user who clicks at random produces equally many preferences for each ranker in expectation, so a systematic preference means its items actually earned more clicks.
The sensitivity gain is large. Chapelle and colleagues validated interleaving on Yahoo, Bing, and arXiv search, against both expert relevance judgments and absolute online metrics, and found that interleaving requires approximately 1 to 2 orders of magnitude less data than absolute metrics to reach a statistically reliable preference. They also found that clicks from ten interleaved queries provide roughly the same statistical evaluation power as one manually judged query. That comes from the paired design. Interleaving elicits a preference directly, rather than inferring quality from an absolute number.
The A/B test needs 360,000 users per variant to detect a 2% lift at 80% power. Interleaving answers a different question, which ranker users prefer, on roughly an order of magnitude less data, tens of thousands of users rather than hundreds of thousands, because each user contributes a paired comparison rather than one data point in one arm. Days instead of weeks.
Interleaving has limits.
- It measures relative preference, not absolute effect, so it cannot tell you the business-metric lift of shipping the new ranker, because there is no control group on the old ranking alone.
- Position bias still operates inside the interleaved list, so the credit assignment is not perfectly clean.
- It compares two rankers head to head; it does not generalize to treatments that are not rankings.
Interleaving answers one question well: which of these two rankings is better. It does not answer how much better, or what happens when you ship the winner. For that, you still need an A/B test.
Other limits
- Peeking. Checking the results repeatedly and stopping when the number looks good inflates the false positive rate. The 5% error rate only holds if you check once, at the planned sample size. Check after every hundred users and stop when the result is significant, and you will call a null effect a win far more often than 5% of the time. Decide the sample size and the stopping rule before you start.
- Heterogeneity. The average treatment effect is an average. The effect can differ by segment, new users versus returning users, or users with different intents, and a null average can hide a real effect on a subgroup, or a positive average can hide harm to a subgroup. A 2% lift overall does not mean a 2% lift for everyone.
- Time. The effect can change as users adapt. A new ranking can get a novelty lift, users click more because the list looks different, then settle back as the novelty wears off. Or the effect can grow as users learn the new ranking. A lift in week one is not necessarily the lift in month three.
The takeaway
An A/B test on a ranking measures the effect of swapping one list for another. The estimator is simple, randomization plus a difference in means, but the list breaks the assumptions in two specific ways: no independence inside the list, and no clean metric. Sensitivity has to be bought, with variance reduction or with interleaving. Know what the test measures, and what it cannot, before you trust its answer.
Key papers
- Neyman, J. (1923). On the application of probability theory to agricultural experiments.
- Rubin, D. B. (1974). Estimating causal effects of treatments in randomized and nonrandomized studies.
- Imbens, G. W., and Rubin, D. B. (2015). Causal Inference for Statistics, Social, and Biomedical Sciences.
- Ugander, J., Karrer, B., Backstrom, L., and Kleinberg, J. (2013). Graph cluster randomization: network exposure to multiple universes. KDD 2013. arXiv:1305.6979.
- Holtz, D., Lobel, F., Lobel, R., Liskovich, I., and Aral, S. (2025). Reducing interference bias in online marketplace experiments using cluster randomization: evidence from a pricing meta-experiment on Airbnb. Management Science 71(1), 390-406. DOI: 10.1287/mnsc.2020.01157.
- Bojinov, I., Simchi-Levi, D., and Zhao, J. (2023). Design and analysis of switchback experiments. Management Science 69(7), 3759-3777. DOI: 10.1287/mnsc.2022.4583.
- Deng, A., Xu, Y., Kohavi, R., and Walker, T. (2013). Improving the sensitivity of online controlled experiments by utilizing pre-experiment data. WSDM 2013. DOI: 10.1145/2433396.2433413.
- Radlinski, F., Kurup, M., and Joachims, T. (2008). How does clickthrough data reflect retrieval quality?. CIKM 2008. DOI: 10.1145/1458082.1458117.
- Chapelle, O., Joachims, T., Radlinski, F., and Yue, Y. (2012). Large-scale validation and analysis of interleaved search evaluation. ACM Transactions on Information Systems 30(1). DOI: 10.1145/2094072.2094078.
- Kohavi, R., Tang, D., and Xu, Y. (2020). Trustworthy Online Controlled Experiments.