Concurrent Ranking Experiments: Design, Overlap, and Interaction
Statistics & ExperimentsModel answerLast updated
Design and analyze two simultaneous A/B tests that both affect a layered product-and-shelf display, handling overlapping traffic and interaction effects.
Background
A shopping app organizes its home screen into shelves, where each shelf contains a set of products. Users see multiple shelves stacked vertically, and within each shelf they can scroll horizontally through individual products.
Two ranking experiments are currently live at the same time:
Experiment A — Product order within a shelf Rearranges the sequence of products displayed inside each individual shelf. Traffic allocation: 50% of all app users.
Experiment B — Shelf order in the app Rearranges the vertical sequence in which shelves appear on the home screen. Traffic allocation: 9% of all app users.
The business wants to improve user engagement and downstream shopping behavior: product clicks, add-to-cart actions, purchases, revenue, and in-app receipt submissions.
Your task
Answer all four parts. Treat this as a structured technical walkthrough, not a bullet dump. Explain your reasoning and call out trade-offs.
-
Design considerations. What do you need to think through before running and analyzing these two experiments together?
-
Overlap and validity. If the two experiments cannot be perfectly traffic-isolated, does that automatically invalidate both results? Explain why or why not.
-
Measuring cross-experiment impact. Assuming the traffic does overlap, how would you quantify whether Experiment B influences the results of Experiment A?
-
Full measurement plan. Which primary metrics, secondary diagnostics, guardrails, statistical checks, and interpretation pitfalls would you include?
Hints
Hint 1
Think about what randomization unit keeps assignment stable for a user across sessions, and what happens if both experiments draw from the same bucket hash.
Hint 2
Overlap only invalidates results when assignments are correlated. Under independent randomization, think about what cancels out in the treatment-minus-control difference — and what that overlap actually enables that full isolation would not.
Hint 3
To isolate the interaction, restrict to users enrolled in both experiments. You now have a 2×2 factorial. Write out the four cells and the contrast that isolates the interaction term, then think about why this test is almost always underpowered.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing the problem
The core challenge is that both experiments manipulate the same surface — the home screen layout — at different levels of a hierarchy. Shelf order (Exp B) controls which shelves users reach; product order (Exp A) only matters on shelves users actually see. That structural dependency makes an interaction not just possible but expected, and it shapes every decision below.
1. Design considerations
Clarify what the allocations mean. "50% of app traffic" could mean 50% enter the experiment (with an even 25/25 split) or 50% are in treatment. State your assumption early. In this walkthrough: Exp A is 25% control / 25% treatment; Exp B is 4.5% control / 4.5% treatment.
Randomization unit: user ID, not session. Shelf and product layouts should be stable within a user's experience. Assigning by session means the same user sees different orderings on repeat visits, which introduces within-user contamination and makes behavioral learning noisy. Purchases and receipts also attach to a user, not a session, so user-level randomization keeps the denominator consistent.
Independent assignment hashing.
Each experiment should derive its bucket from a distinct salt — hash(user_id, "expA") and hash(user_id, "expB") — rather than reusing a single hash. Shared hashing creates correlated assignments: T_B users might cluster disproportionately in T_A, confounding both estimates. Verify independence with a chi-square test on the 2×2 assignment contingency table before launch.
Exposure and triggering. Not every assigned user reaches the relevant surface. Define triggered users precisely (e.g., users who rendered at least one shelf for Exp A; users who loaded the shelf list for Exp B) and analyze on that subset in addition to the intent-to-treat population. Apply the same trigger rule in control and treatment to avoid introducing selection bias.
Power is tight for Exp B. At 4.5% per arm, detecting a modest lift in purchases or revenue requires weeks of runtime, possibly longer given receipt submission lag (users sometimes scan receipts days after a store visit). Run a power calculation per primary metric, fix the duration to full weeks (to average over weekday/weekend patterns), and add buffer for that receipt lag.
2. Does overlap invalidate the results? No, not on its own.
With independent randomization, overlap is harmless for estimating main effects. Within Exp A, both T_A and C_A receive the same mix of Exp B conditions in expectation — roughly 4.5% in T_B, 4.5% in C_B, and 91% in the Exp B default. That mix is balanced across both arms, so it cancels in the T_A − C_A difference. Exp A's estimate remains unbiased for its own main effect, averaged over the actual Exp B traffic composition.
Overlap becomes a problem in three specific cases:
- Correlated assignment. If the two hashes are not independent, the Exp B mix is no longer balanced across Exp A arms. Test for this explicitly.
- A large interaction paired with a shipment decision. Exp A's estimate reflects a world that is 91% default shelf order. If Exp B ships, Exp A's effect may look different under the new shelf ordering.
- Sign-flipping interaction. Rare, but if Exp B reverses Exp A's direction in a substantial segment, acting on the main effect could be wrong.
There is a useful upside: overlap creates a natural 2×2 factorial structure. Full traffic isolation would destroy the ability to estimate the interaction at all. Many mature experimentation platforms deliberately allow overlap for exactly this reason.
3. Measuring the cross-experiment impact
Restrict to users enrolled in both experiments. Under independence, that is roughly 50% × 9% = 4.5% of total traffic, with four cells of about 1.1% each:
| C_B | T_B | |
|---|---|---|
| C_A | Y₀₀ | Y₀₁ |
| T_A | Y₁₀ | Y₁₁ |
Interaction contrast:
Δ = (Y₁₁ − Y₀₁) − (Y₁₀ − Y₀₀)
This answers one question: does Exp A's lift change when shelf order is rearranged?
Estimate it via regression:
Y = β₀ + β₁·T_A + β₂·T_B + β₃·(T_A × T_B) + γ·X_pre + ε
β₃ is the interaction. X_pre holds pre-experiment covariates for CUPED-style variance reduction. Use user-level robust standard errors; for ratio metrics like CTR, apply the delta method.
Power warning: the interaction is estimated from four cells of ~1.1% each, giving roughly double the standard error of a main effect at the same total sample size. A non-significant β₃ means "no large interaction detected," not "no interaction." Report a confidence interval and compare it to the smallest interaction that would change the shipping decision.
Supplement the regression with mechanism-level diagnostics: Exp A's lift stratified by shelf position under C_B vs. T_B, scroll depth per cell, and per-shelf impression counts. These give interpretability the regression alone cannot.
4. Measurement plan
Primary metrics (choose one or two before launch, per-user):
- Purchases per user
- Revenue per user
- Receipt submissions per user
Secondary and diagnostic metrics:
- Product CTR, add-to-cart rate
- Shelf CTR, scroll depth, impressions per shelf
- Mean rank of clicked items (position bias signal)
- Time to first interaction
Guardrails:
- App render latency and crash rate (reordering logic adds compute)
- Session count and D7/D28 retention
- Impressions and CPM delivery for sponsored or partner shelves — this is easy to overlook, but reordering shelves can quietly break contractual brand commitments
- Opt-outs and explicit negative feedback signals
Statistical checks:
- Sample ratio mismatch (SRM) test on every arm and on all four 2×2 cells
- Pre-period balance / A/A check
- Independence test on assignments
- Winsorize or cap revenue before computing means (heavy right tail)
- CUPED for variance reduction
- Multiple testing correction across metrics and pre-specified segments
- Fixed attribution windows that account for receipt lag
- No peeking, or a sequential testing method if interim reads are required
Interpretation pitfalls:
- Cannibalization. Clicks may shift across shelves with no net purchase gain. Measure purchases per user, not shelf CTR in isolation.
- Novelty effects. Plot the treatment effect over calendar time; a spike that decays is novelty, not a durable lift.
- Position bias. Higher CTR on a promoted item is partly mechanical. It is not evidence of better relevance on its own.
- Heterogeneity. New vs. tenured users and different platform cohorts may respond differently. Pre-specify any subgroup analyses to avoid p-hacking.
- Shipping both experiments. If both tests win and both ship, the combined effect is not necessarily the sum of the two main effects. The interaction estimate, even if noisy, should inform that decision.