Measuring the Causal Impact of a New In-App Marketplace
Statistics & ExperimentsModel answerLast updated
Plan an experiment to estimate how a new in-app shopping feature affects engagement and revenue, covering design, metrics, selection bias, interference, and the launch decision.
Scenario
A large social photo and video app is about to roll out a built-in shopping experience. Users will be able to browse products, tap tagged items in posts, and check out without leaving the app. Leadership wants to know, with credible evidence, what this feature does to the business.
Your task
Describe how you would design a measurement plan for this launch. Your answer should cover:
- Goal and decision. What decision does the measurement inform, and what could go wrong with the feature?
- Experimental design. What is the unit of randomization, and what alternatives would you consider if clean user-level randomization is not appropriate or not possible?
- Metrics and success criteria. Which primary, diagnostic, engagement, and guardrail metrics would you track, and what thresholds would define a "launch" decision?
- Statistical details. Duration, sample size, variance reduction, heavy-tailed revenue, and any pre-analysis checks.
- Selection bias. How do you avoid overstating the effect because enthusiastic users are the ones who adopt shopping?
- Network and marketplace effects. How could treated and control users or merchants influence each other, and how would you detect or mitigate it?
Be concrete: name specific metrics, give example thresholds, and explain the trade-offs behind your choices.
Hints
Hint 1
Start by naming the decision (launch, iterate, roll back) and the two or three ways the feature could hurt the business, such as cannibalizing ad impressions.
Hint 2
Compare users who were assigned the feature with those who were not, regardless of whether they used it. Then think about how to scale that estimate to actual users of the feature.
Hint 3
Treated users can affect control users through shared posts, and both arms share merchants and ad auctions. Consider graph-cluster or geo randomization, and diff-in-diff or synthetic control when randomization is not possible.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The vague ask ("what is the impact?") has to become a causal question tied to a decision: launch broadly, iterate, or roll back? The feature should raise commerce, but it could also cannibalize ad impressions, clutter feeds, and reduce time spent. So the plan must measure the upside and protect the core business.
The product is multi-sided: consumers browse and buy, merchants and creators list products, and the platform earns from ads, fees, and checkout. That shapes both the metrics and the interference risks.
Design
Default: user-level A/B test with intent-to-treat (ITT).
- Randomize users, for example 50/50, into shopping on or off.
- Compare everyone assigned to each arm, not only those who opened the shop. This preserves randomization and avoids selection bias.
- Run a sample ratio mismatch (SRM) check before reading any results.
When interference is large: cluster or geo randomization.
- Randomize social-graph communities or markets instead of individuals.
- Analyze at the cluster level or with cluster-robust standard errors.
- Cost: far less power, and you need many clusters.
Long-term holdout.
- After launch, keep 1-5% of users without the feature for 3-6 months.
- This captures durable effects (habit formation, ad cannibalization, retention) after novelty fades.
If randomization is impossible (for example, the feature launches by country, or is already live): use difference-in-differences or synthetic control.
- Effect = (treated post - treated pre) - (control post - control pre).
- Validate parallel pre-trends with an event-study plot, and rule out concurrent shocks such as holidays or campaigns.
- Use synthetic control when there are few treated markets.
Recommended combination: a user-level test for fast iteration, a parallel cluster or geo test to size spillovers, and a long-term holdout after launch.
Metrics
- Primary (pre-registered): shopping GMV per user, or purchases per user, over the test window.
- Diagnostic funnel: shop visits, product-tag impressions and taps, product page views, add-to-cart, checkout conversion, repeat purchase rate. These explain why the primary moved.
- Engagement: DAU/WAU, sessions per user, time spent, feed and video interactions, D7/D28 retention.
- Guardrails:
- Ads revenue per user (the largest risk).
- Time spent and retention.
- Content creation by non-commerce creators.
- Negative feedback: hides, reports, unfollows.
- Reliability and trust: latency, crashes, checkout failures, fraud.
- Merchant side: shops created, products tagged, seller retention, sales concentration.
Launch criteria (example):
- GMV per user is significantly positive and at or above the pre-registered minimum detectable effect.
- Net revenue (ads plus fees) is non-negative.
- No guardrail breaches its non-inferiority margin, for instance time spent down no more than 0.5% and ads revenue down no more than 1%.
Statistical details
- Duration: at least 2-4 full weeks to cover weekly cycles and let novelty decay. Avoid ending on a holiday spike.
- Power: with mean revenue per user of $0.50, SD $5, and a 2% relative MDE (delta = $0.01), n per arm is roughly 16 * sigma^2 / delta^2 = 16 * 25 / 0.0001, about 4 million users. This is feasible at large-platform scale.
- Variance reduction: CUPED using pre-period spend and engagement can cut the required sample by roughly 30-50%.
- Heavy tails: winsorize at a high percentile (for example 99.9th) or use bootstrap intervals, and report results with and without the cap.
- Ratio metrics: conversion per session needs the delta method, since randomization is by user.
- Multiple testing: correct across secondary metrics, and base the decision on the single primary metric.
Selection bias
- User self-selection. Shoppers are already more engaged and higher-spending, so comparing users to non-users overstates impact. Randomize and use ITT.
- Effect on actual users. Use assignment as an instrument. The complier average effect (treatment-on-treated) is ITT divided by the take-up rate.
- Merchant self-selection. Early adopters are larger and better run. Randomize access to merchant tools, or use matched diff-in-diff on pre-period sales.
- Triggered analyses. If you restrict to users who saw a product tag, log the counterfactual exposure in control so triggering is symmetric across arms.
Network and marketplace effects
SUTVA can fail in three ways:
- Social spillover: treated users share product posts or links with control users, contaminating control. This usually biases the estimate toward zero.
- Marketplace spillover: merchants, inventory, and ad budgets are shared across arms. Treatment demand can pull stock or spend away from control, which can inflate the estimate.
- Ads auction coupling: changes in one arm's ad inventory shift prices for everyone.
Mitigations:
- Cluster randomization on the social graph, choosing clusters that minimize cross-cluster edges. A large gap between cluster-level and user-level estimates signals interference.
- Geo experiments for marketplace and auction effects, with merchant-level or budget-split designs where feasible.
- Monitor exposure of control users to treated content as a diagnostic.
Common mistakes
- Comparing users who used the feature with those who did not.
- Treating GMV as success without checking ads revenue and retention.
- Ignoring novelty effects by stopping after a few days.
- Reading dozens of secondary metrics without correction.
- Assuming user-level randomization is clean in a networked, two-sided product.
- Skipping SRM and pre-trend checks.
Wrap-up
Randomize at the user level with ITT for speed, validate spillovers with a cluster or geo test, keep a long-term holdout, and decide on a pre-registered primary metric subject to guardrails and net revenue.