Design a Reputation Badge A/B Test for a P2P Marketplace
Statistics & ExperimentsModel answerLast updated
Design a rigorous experiment to measure whether a seller reputation badge increases transaction volume on a peer-to-peer platform, handling network interference and fairness concerns.
Background
A peer-to-peer marketplace is rolling out a "Verified Seller" badge that users can earn after completing an identity and track-record check. The product team believes the badge will reduce hesitation between strangers, leading to more completed transactions and stronger long-term retention.
Before a full launch, you need to design a controlled experiment to find out whether the badge actually moves those numbers — or whether it just shifts behavior around without creating net value.
Your task
1. Metrics
Define a primary metric that captures trust through revealed behavior (not a survey). Then list at least two guardrail metrics that would tell you the platform is being destabilized or that certain users are being harmed.
2. Hypothesis
Write a precise, testable hypothesis. Be explicit about what the treatment is and what it is not.
3. Experimental unit and randomization strategy
The badge is visible across users: if a treated user transacts with a control user, the control user's behavior may change. Explain why this violates a core assumption of standard A/B testing, and propose a randomization unit that contains the spillover. Compare at least two options.
4. Power analysis and test duration
Walk through how you would estimate the minimum detectable effect (MDE) and how you would adjust sample-size calculations when your randomization unit is not the individual user. What inputs do you need, and where do you get them?
5. Bias and fairness checks
Describe how you would detect whether the badge disproportionately benefits or harms specific groups of users — both in terms of access to the badge and impact from the experiment.
What a strong answer looks like
- A clear primary metric tied to a concrete user action, not a proxy like clicks
- Recognition of the SUTVA violation and a well-reasoned choice of clustering unit
- Correct inflation of sample size for cluster-level variance (intra-cluster correlation)
- Separation of "who can get verified" bias from "who benefits from the feature" bias
- Awareness of self-selection: verification is a choice, so naive comparisons are confounded
Hints
Hint 1
The badge is seen by the *counterparty*, not just the badge holder — think about where the treatment effect actually lands and which randomization unit prevents it from leaking into the control group.
Hint 2
Standard sample-size formulas assume independent observations. When you randomize clusters, every user inside a cluster is correlated. The design effect formula DE = 1 + (m − 1) × ICC tells you how many more users you need; estimate ICC from historical data before you run the experiment.
Hint 3
Fairness has two separate questions: (1) Does the verification process reject certain groups at higher rates? (2) Do unverified users inside treated clusters transact less because counterparties now prefer verified sellers? These require different data and different tests.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
How to think about this problem
Three things are being tested at once: your ability to operationalize a fuzzy concept ("trust") into a metric, your awareness that peer-to-peer interactions break the independence assumption underpinning standard A/B tests, and your ability to do power math that accounts for that clustering. Strong answers separate these cleanly.
1. Hypothesis
State this as an intent-to-treat (ITT) hypothesis. The treatment is the availability of the feature, not being verified — because verification is a choice users make, not something you can randomly assign.
Making the Verified Seller badge available to a group of users will increase the number of completed, non-reversed transactions per eligible user over a 28-day window, without increasing fraud rates or suppressing transaction volume among unverified users.
Keeping it ITT matters: if you instead compared verified users to everyone else, you'd be measuring selection (motivated sellers self-verify) rather than the feature's causal effect.
2. Metrics
Primary metric: completed, non-reversed transactions per eligible user over 28 days. This is behavioral — it measures what users actually do, not what they say in a survey or whether they clicked a badge.
Secondary signals worth tracking:
- Completion rate on transactions with a first-time counterparty (highest trust friction, most sensitive signal)
- Share of counterparty pairs who transact again within 28 days (repeat behavior)
- Trust-related support contacts per 1,000 transactions ("is this seller real?")
- 60 and 90-day retention as a long-horizon readout
Guardrail metrics:
- Fraud and dispute rate per transaction (the badge must not become a scam vector)
- New-user onboarding and verification funnel completion (the process must not be a bottleneck)
- Transaction volume of unverified users inside treated groups — this is the fairness guardrail. If unverified sellers are being crowded out, the feature shifts value rather than creating it.
3. Experimental unit and randomization
Why individual randomization fails
If user A is in treatment and user B is in control, and they transact with each other, B is exposed to the badge through A. B's behavior changes. This is a SUTVA violation: the control group is contaminated, and the estimated effect is biased (usually toward zero, because "control" users partially experience the treatment).
Comparing units
| Unit | Spillover containment | Statistical power | Notes |
|---|---|---|---|
| Individual user | Poor — leaks on every cross-group transaction | Highest (many units) | SUTVA violated |
| Geography (city/country) | Moderate — still leaks across borders | Very few units, hard to power | Regulatory differences add confounding |
| Social-graph cluster | Good — most edges stay within clusters | Hundreds of clusters, workable | Recommended |
Recommended approach: graph-cluster randomization
- Build a weighted transaction graph from the past 90 days (nodes = users, edge weight = transaction count).
- Apply community detection (Louvain or Leiden) to partition the graph into clusters of roughly 200–2,000 users.
- Measure cross-cluster edge share — target under 10–15%. Higher means more spillover.
- Users with no transaction history form their own stratum and can be randomized individually.
- Stratify clusters by size, region, and baseline volume, then randomize 50/50 within strata.
Optional but strong: use a randomized saturation design — assign clusters to 0%, 50%, or 100% treatment density. Comparing control users in 50%-treated clusters to those in 0%-treated clusters directly estimates the spillover magnitude, which tells you how much of the effect is network-driven versus individual.
4. Power analysis and duration
Starting point: individual-level calculation
Suppose the baseline 28-day repeat-interaction rate is 20% and you want to detect a +2 percentage point lift (10% relative), with α = 0.05 two-sided and 80% power:
n = (1.96 + 0.84)² × 2 × p(1−p) / δ²
= 7.84 × 0.32 / 0.0004
≈ 6,300 users per arm
Inflating for clustering
Independent-user formulas understate variance when users are correlated within clusters. The design effect is:
DE = 1 + (m − 1) × ICC
where m is average cluster size and ICC is the intra-cluster correlation on the primary metric. With m = 500 and ICC = 0.01:
DE = 1 + 499 × 0.01 ≈ 6
Adjusted n = 6,300 × 6 = ~38,000 users per arm → ~76 clusters per arm
Estimate ICC from historical data by running a one-way ANOVA on past transaction counts grouped by the same community-detection clusters. CUPED (using pre-period volume as a covariate) typically cuts residual variance by 30–50%, which lowers the required cluster count.
In practice, traffic is often fixed, so you run the calculation in reverse: given the clusters you have, what is the smallest effect you can reliably detect? Then ask whether that MDE is large enough to be worth acting on.
Duration: run enrollment for at least two full weeks (covers weekly cycles and any volatility events), measure the primary metric over 28 days post-enrollment, and keep a 5% holdback of clusters for a 90-day retention readout. Watch the treatment curve over time — badge novelty can inflate early results.
5. Bias and fairness
These are two different questions and should not be conflated.
Access bias (who can get verified):
- Compare verification start, completion, and rejection rates across geography, account age, device type, document type, and language.
- Flag any segment where completion is below 0.8× the platform-wide rate.
- Check whether rejection rates differ for users who appear comparable in other dimensions — this surfaces gaps in document coverage or ID-type support.
Heterogeneous treatment effects (who gains and who loses):
- Pre-register the segments you care about before looking at the data. Estimate treatment × segment interaction terms with Benjamini–Hochberg correction for multiple comparisons.
- For exploratory discovery, fit a causal forest and validate findings on held-out clusters.
- Most importantly: within treated clusters, test whether unverified users' transaction volume falls. A drop here signals that the badge redistributes demand toward verified sellers rather than growing the pie — a meaningful fairness and business concern.
Common mistakes to avoid
- Randomizing individuals and assuming independence. This is the most frequent error and it biases results.
- Comparing verified vs. unverified users and calling it an experiment. That measures who chooses to verify, not what the feature does.
- Ignoring ICC in the power calculation. It can increase your required sample by 5–10×.
- Skipping the fairness guardrail on unverified users. If the badge harms a large segment, a positive average effect is still a bad outcome.
- Running too short. Crypto and marketplace transaction volumes are lumpy. Two weeks minimum for enrollment, four weeks for measurement.