Design a marketplace A/B test with network effects
Statistics & ExperimentsModel answerLast updated
Design an experiment for a two-sided marketplace feature, handling metric selection, randomization units, sample size calculation, and interference between users.
Scenario
A two-sided marketplace is testing a visual badge that highlights sellers meeting certain quality thresholds. The product team hypothesizes this will increase buyer conversion from browsing to purchase.
Your Task
Design an experiment to measure the causal impact of this badge. Address each of these components:
-
Metrics: Define your primary success metric, supporting metrics that explain how the feature works, and guardrail metrics that protect against unintended harm.
-
Randomization Strategy: Choose and justify the unit of randomization (user-level, seller-level, geographic market, or other). Explain how interference between units affects your choice and what bias it introduces.
-
Sample Size: The baseline conversion rate is 5%. You want to detect a 2% relative increase (not absolute) with 80% power at a 5% significance level. Walk through the calculation for required sample size per arm.
-
Segmentation Plan: Identify which user or seller segments you would pre-register for heterogeneous treatment effect analysis, and explain why each matters.
Constraints
- The platform has millions of active buyers monthly.
- The badge does not create new supply; it may redistribute attention among existing sellers.
- Consider trade-offs between statistical precision, experiment duration, and business risk.
Hints
Hint 1
A two-sided marketplace has supply constraints—badges shift attention rather than creating new transactions, so watch for zero-sum redistribution.
Hint 2
User-level randomization is fast and precise but doesn't capture marketplace-wide effects like inventory depletion; consider a complementary market-level test.
Hint 3
A 2% relative lift on a 5% baseline is very small in absolute terms—calculate carefully and consider variance reduction techniques to shorten the test.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Marketplace A/B Test Design
What Strong Candidates Demonstrate
This question tests whether you recognize that marketplaces have network effects and supply constraints. A badge doesn't generate new inventory—it reallocates buyer attention. Strong candidates identify interference early, choose metrics that detect redistribution vs. true growth, calculate power correctly for small effect sizes, and balance speed against validity.
1. Metrics
Primary Metric
Browse-to-purchase conversion per buyer, measured within 7 days of first eligible session.
- Define it per buyer, not per session, because sessions within a buyer are correlated. A per-session metric is a ratio whose variance requires delta-method adjustment.
- Use triggered analysis: include only buyers whose browsing sessions contained at least one badge-eligible seller. Buyers who never see eligible sellers can't respond to the treatment, so including them dilutes the measured effect and wastes sample.
Supporting Metrics (Mechanism)
These explain how the badge works:
- Click-through rate on badged vs. non-badged sellers.
- Purchase share by badge status. If badged sellers gain share while overall conversion stays flat, the feature redistributes rather than grows demand.
- Average order value and total transaction volume per buyer. Conversion could rise while revenue per buyer falls.
- Time to purchase and sessions per purchase.
Guardrail Metrics (Non-Inferiority)
Ship only if these stay within pre-registered acceptable bounds:
- Seller cancellation rate and order fulfillment quality. Badged sellers may receive orders they would have declined.
- Buyer returns, refunds, and support tickets per transaction.
- Post-transaction ratings for both buyers and sellers.
- Non-badged and new seller transaction volume. Protect marketplace health by ensuring smaller sellers aren't frozen out.
- Concentration metrics like share of transactions going to the top 10% of sellers, or a Gini coefficient.
- Page load time and error rates.
Launch if the primary metric improves and all guardrails pass.
2. Randomization Strategy
Why Seller-Level Randomization Fails
It's tempting to randomize at the seller level since the badge sits on a seller profile. This violates SUTVA (stable unit treatment value assumption): treated and control sellers appear in the same search results and compete for the same buyers. Treated sellers gain conversions at the expense of control sellers, so the measured treatment effect is inflated—it double-counts the shift from control to treatment. The bias is optimistic and can be large.
User-Level Randomization (Primary Design)
Randomize by logged-in buyer account (with device fingerprint fallback for logged-out users):
- The primary metric is a buyer outcome.
- Each buyer sees a consistent experience across sessions.
- With millions of monthly buyers, statistical power is strong.
Residual interference remains: when treated buyers purchase from badged sellers, they deplete inventory that control buyers might have purchased, especially in supply-constrained categories or time windows. This bias is smaller than seller-level randomization but not zero, and it's pessimistic (understates the true effect).
Market-Level Validation
To measure the true marketplace equilibrium effect, run a geographic cluster experiment where entire cities or regions are randomized. This captures supply depletion and redistribution fully.
Trade-offs:
- Far fewer randomization units → much higher variance.
- Requires longer duration, careful matching/stratification of similar markets, and variance reduction via regression adjustment (e.g., CUPED using pre-period outcomes).
Recommended Approach:
- Start with user-level randomization for fast, precise measurement of the buyer-side effect.
- Validate with a market-level holdout in a subset of cities before full rollout.
- If estimates diverge meaningfully, the market-level result represents the true business impact.
3. Sample Size Calculation
Inputs
- Baseline conversion: p₁ = 0.05
- Target: 2% relative lift → p₂ = 0.05 × 1.02 = 0.051
- Absolute effect size: δ = 0.051 − 0.05 = 0.001
- Significance level: α = 0.05 (two-sided) → z₀.₀₂₅ = 1.96
- Power: 1 − β = 0.80 → z₀.₈₀ = 0.84
- Sum: 1.96 + 0.84 = 2.80, squared = 7.84
Formula for Two Proportions
For each arm: [ n = \frac{(z_{\alpha/2} + z_\beta)^2 \cdot [p_1(1-p_1) + p_2(1-p_2)]}{\delta^2} ]
Plugging in:
- p₁(1−p₁) = 0.05 × 0.95 = 0.0475
- p₂(1−p₂) = 0.051 × 0.949 ≈ 0.0484
- Sum of variances ≈ 0.0959
[ n = \frac{7.84 \times 0.0959}{(0.001)^2} = \frac{0.752}{0.000001} ≈ 752,000 \text{ per arm} ]
Total sample: ~1.5 million triggered buyers.
Practical Adjustments
- Duration: Calculate runtime from triggered buyers per day, not total traffic. Run at least 14 days to cover full weekly cycles, even if sample fills earlier.
- Variance reduction: Apply CUPED (Controlled-experiment Using Pre-Experiment Data) by adjusting for each buyer's pre-period browsing and purchase history. This can reduce variance by 20–40% and shorten the test proportionally.
- Clustered designs: For market-level tests, inflate sample size by the design effect (1 + (m-1) \cdot \text{ICC}), where (m) is average cluster size and ICC is intraclass correlation. Effective sample shrinks rapidly.
- Sequential testing: If monitoring interim results, use group sequential methods or always-valid p-values to control Type I error inflation from repeated looks. Don't stop early for significance without adjustment.
A 2% relative lift is small. Choosing a larger minimum detectable effect shortens the test but risks missing real, valuable gains.
4. Segmentation Plan
Pre-register these segments to detect heterogeneous or harmful effects:
Buyer Segments
- New vs. returning buyers: New buyers may rely more on trust signals like badges.
- Mobile vs. desktop: UI real estate differs.
- Category or price tier: Check whether high-value categories respond differently.
- Geographic region or market maturity.
Seller Segments
- Badged vs. non-badged sellers: Did non-badged sellers lose transactions?
- New sellers: Ensure the feature doesn't freeze out marketplace entrants.
- Small vs. large sellers: Watch for increased concentration.
Contextual Segments
- Supply-constrained vs. supply-rich categories and time periods: Interference is strongest where supply is tight.
Apply multiple-testing correction (e.g., Benjamini-Hochberg FDR control) to avoid false discoveries. Treat exploratory segment findings as hypotheses unless pre-registered with adequate power.
Common Mistakes
- Confusing relative and absolute lift (treating "2% lift" as 5% → 7%, which understates sample by ~400×).
- Randomizing by seller and ignoring the resulting bias.
- Omitting triggered analysis, which dilutes effect size.
- Having no seller-side or marketplace-health guardrails.
- Stopping the test the moment p < 0.05 without correction for peeking.
- Ignoring interference and presenting user-level results as the final business impact.
Follow-Up: What If Buyer Conversion Rises but Seller Satisfaction Falls?
Don't launch on a single metric. Seller churn reduces long-term supply, which eventually harms buyer conversion.
- Diagnose root cause: Are badged sellers receiving low-quality inquiries, feeling pressured to maintain eligibility, or experiencing higher cancellations?
- Quantify long-term cost: Model seller churn rate × lifetime transaction value per seller vs. incremental buyer conversions.
- Iterate: Tighten badge eligibility, allow seller opt-out, or improve buyer quality signals for badged listings.
The decision should rest on a pre-agreed overall evaluation criterion that weights multiple metrics, not on cherry-picking the most favorable outcome post-hoc.