Marketplace experiment designs: users who share groups
In simulated app groups where a member's treatment reaches the rest of their group as strongly as it reaches them and 15% of users are in two groups, a user-level test measured 51% of the full effect; randomizing whole groups recovered 90% of it at 1.5 times the standard error, and randomizing clusters of linked groups recovered 99%.
500 simulated populations of 50,000 app users per setting, in groups of 2 to 8 people, with 15% of users in two groups. The direct effect of the change and the spillover a user gets when all their group-mates have it are equal here. Four ways to test it ran on the same populations. I would randomize clusters of linked groups when the group graph is known, and use a plain user test only for changes that cannot reach anyone else.
| User A/B 51% of the full effect; its interval covered the full effect in 0.2% of populations, and the ship rule, which should ship here, shipped 0.2% | Group randomization 90% at 1.5 times the user test's standard error; covered 86%, shipped 64% | Graph clusters 99% at 1.0 times the group design's standard error; covered 94%, shipped 87% | Exposure model 101% at 3.0 times the user test's standard error, from the user test's own data; shipped 41%. It fits the very exposure the simulation uses, so this shows it works when correctly specified, not that it survives a wrong specification |
Main limitation One simulated app with settings I chose, so the numbers show how each design fails, not how often it fails in a real product. The answer moves with overlap and with how spillover grows: at 30% overlap groups recovered 82%, and when spillover switched on only once half a user's group had the change, the exposure model measured 126% of the full effect. | |||
Where the answer changes
- No spillover. The user test is right (101%) and the most precise; groups cost 1.5 times its standard error for nothing.
- More overlap. Groups slip from 99% with no overlap to 90% at 15% and 82% at 30%. Graph clusters hold 99% and 95%.
- Stronger spillover. At twice the direct effect the user test measures 34%, and at 30% overlap groups measure 76% and cover the full effect in 24% of populations.
- Spillover that switches on. If it starts only once half a user's group has the change, the exposure model overshoots (126%, covered 83%); graph clusters still measure 100%.
At each overlap the spillover strengths and shapes reuse the same populations and assignments, so these comparisons share their noise; they are not independent confirmations.
What I would use when
My judgement from these runs; the simulation compared designs, it did not test these rules.
- A change that cannot reach anyone else, such as a personal setting: a user A/B test.
- Spillover likely and the group graph known: graph clusters, clusters of linked groups randomized together.
- Few users in two groups, no graph beyond the groups: group randomization.
- To size the spillover itself: the exposure model on a user test, read beside a cluster test, because its answer rests on how spillover is assumed to grow.
- Group
- A small set of users who share the app: a family plan, a friend group, a team. Some users are in two.
- Spillover
- The extra effect a user gets because their group-mates have the change.
- Full effect
- Everyone gets the change against no one: what a full launch would add. The simulation knows it exactly.
- Standard error
- How far the estimate moves from one population to the next.
- Graph clusters
- Groups joined by shared members, merged into clusters before randomizing so that most links stay inside one cluster.
- Exposure model
- A user test analysed with each user's share of treated group-mates, which separates the direct effect from the spillover.
- Coverage
- How often a 95% interval contains the full effect. It should be about 95%.
- Ship rule
- The main study's fixed ship, stop or keep-testing rule, used unchanged.
Bias and spread by design
The user test measures the direct effect and misses the spillover, so its share falls as spillover grows. Groups miss the part that crosses into second groups. Graph clusters keep most links inside one cluster. The exposure model lands on the full effect with the widest spread, but it fits the exact exposure and the straight-line spillover the simulation builds in, so this shows it works when correctly specified, not that it survives a wrong specification; the switch shape below is the real test.
Mean estimate as a share of the full effect; line: middle 95% of the 500 populations' estimates; dashed line: the full effect.
Show the data
| Spillover and design | Measured | Middle 95% | Standard error vs user A/B | Coverage | Ships |
|---|---|---|---|---|---|
| No spillover, User A/B | 101% | 65% to 136% | 1.0 | 96% | 0% |
| No spillover, Group randomization | 99% | 49% to 154% | 1.5 | 94% | 1% |
| No spillover, Graph clusters | 100% | 44% to 154% | 1.5 | 94% | 0% |
| No spillover, Exposure model | 102% | −9% to 207% | 3.0 | 94% | 2% |
| Spillover half the direct effect, User A/B | 67% | 43% to 90% | 1.0 | 26% | 0% |
| Spillover half the direct effect, Group randomization | 93% | 60% to 130% | 1.5 | 92% | 16% |
| Spillover half the direct effect, Graph clusters | 99% | 63% to 136% | 1.5 | 94% | 24% |
| Spillover half the direct effect, Exposure model | 101% | 28% to 171% | 3.0 | 94% | 12% |
| Spillover equal to the direct effect, User A/B | 51% | 33% to 68% | 1.0 | 0% | 0% |
| Spillover equal to the direct effect, Group randomization | 90% | 65% to 117% | 1.5 | 86% | 64% |
| Spillover equal to the direct effect, Graph clusters | 99% | 72% to 126% | 1.5 | 94% | 87% |
| Spillover equal to the direct effect, Exposure model | 101% | 46% to 153% | 3.0 | 94% | 41% |
| Spillover twice the direct effect, User A/B | 34% | 22% to 45% | 1.0 | 0% | 0% |
| Spillover twice the direct effect, Group randomization | 86% | 70% to 105% | 1.5 | 63% | 100% |
| Spillover twice the direct effect, Graph clusters | 99% | 81% to 117% | 1.5 | 94% | 100% |
| Spillover twice the direct effect, Exposure model | 101% | 64% to 136% | 3.0 | 94% | 95% |
Source: the declared groups run, 15% of users in two groups, spillover growing in a straight line with the share of treated group-mates.
Show every setting (three overlaps, four spillover strengths, the switch shape and no effect)
| Setting and design | Measured | Standard error (days) | Coverage | Rejects zero | Ships | Stops |
|---|---|---|---|---|---|---|
| 0% overlap, spillover none, User A/B | 101% | 0.015 | 95% | 100% | 0% | 0% |
| 0% overlap, spillover none, Groups | 97% | 0.022 | 94% | 96% | 0% | 1% |
| 0% overlap, spillover none, Graph clusters | 99% | 0.021 | 94% | 96% | 1% | 0% |
| 0% overlap, spillover none, Exposure model | 101% | 0.037 | 95% | 57% | 1% | 5% |
| 0% overlap, spillover half, User A/B | 67% | 0.015 | 27% | 100% | 0% | 0% |
| 0% overlap, spillover half, Groups | 98% | 0.022 | 94% | 100% | 22% | 0% |
| 0% overlap, spillover half, Graph clusters | 99% | 0.021 | 94% | 100% | 23% | 0% |
| 0% overlap, spillover half, Exposure model | 100% | 0.037 | 95% | 89% | 11% | 0% |
| 0% overlap, spillover equal, User A/B | 50% | 0.015 | 0% | 100% | 0% | 0% |
| 0% overlap, spillover equal, Groups | 99% | 0.022 | 94% | 100% | 87% | 0% |
| 0% overlap, spillover equal, Graph clusters | 99% | 0.021 | 94% | 100% | 88% | 0% |
| 0% overlap, spillover equal, Exposure model | 100% | 0.037 | 95% | 98% | 48% | 0% |
| 0% overlap, spillover twice, User A/B | 34% | 0.015 | 0% | 100% | 0% | 0% |
| 0% overlap, spillover twice, Groups | 99% | 0.022 | 94% | 100% | 100% | 0% |
| 0% overlap, spillover twice, Graph clusters | 100% | 0.021 | 94% | 100% | 100% | 0% |
| 0% overlap, spillover twice, Exposure model | 100% | 0.037 | 95% | 100% | 97% | 0% |
| 15% overlap, spillover none, User A/B | 101% | 0.015 | 96% | 100% | 0% | 0% |
| 15% overlap, spillover none, Groups | 99% | 0.022 | 94% | 96% | 1% | 0% |
| 15% overlap, spillover none, Graph clusters | 100% | 0.022 | 94% | 96% | 0% | 1% |
| 15% overlap, spillover none, Exposure model | 102% | 0.044 | 94% | 48% | 2% | 6% |
| 15% overlap, spillover half, User A/B | 67% | 0.015 | 26% | 100% | 0% | 0% |
| 15% overlap, spillover half, Groups | 93% | 0.022 | 92% | 100% | 16% | 0% |
| 15% overlap, spillover half, Graph clusters | 99% | 0.022 | 94% | 100% | 24% | 0% |
| 15% overlap, spillover half, Exposure model | 101% | 0.044 | 94% | 80% | 12% | 1% |
| 15% overlap, spillover equal, User A/B | 51% | 0.015 | 0% | 100% | 0% | 0% |
| 15% overlap, spillover equal, Groups | 90% | 0.022 | 86% | 100% | 64% | 0% |
| 15% overlap, spillover equal, Graph clusters | 99% | 0.022 | 94% | 100% | 87% | 0% |
| 15% overlap, spillover equal, Exposure model | 101% | 0.044 | 94% | 96% | 41% | 0% |
| 15% overlap, spillover twice, User A/B | 34% | 0.015 | 0% | 100% | 0% | 0% |
| 15% overlap, spillover twice, Groups | 86% | 0.022 | 63% | 100% | 100% | 0% |
| 15% overlap, spillover twice, Graph clusters | 99% | 0.022 | 94% | 100% | 100% | 0% |
| 15% overlap, spillover twice, Exposure model | 101% | 0.044 | 94% | 100% | 95% | 0% |
| 30% overlap, spillover none, User A/B | 101% | 0.015 | 96% | 100% | 0% | 0% |
| 30% overlap, spillover none, Groups | 100% | 0.021 | 95% | 97% | 0% | 1% |
| 30% overlap, spillover none, Graph clusters | 99% | 0.022 | 93% | 95% | 0% | 1% |
| 30% overlap, spillover none, Exposure model | 98% | 0.048 | 94% | 40% | 2% | 8% |
| 30% overlap, spillover half, User A/B | 67% | 0.015 | 27% | 100% | 0% | 0% |
| 30% overlap, spillover half, Groups | 88% | 0.021 | 90% | 100% | 9% | 0% |
| 30% overlap, spillover half, Graph clusters | 97% | 0.022 | 92% | 100% | 22% | 0% |
| 30% overlap, spillover half, Exposure model | 99% | 0.048 | 94% | 71% | 10% | 1% |
| 30% overlap, spillover equal, User A/B | 50% | 0.015 | 0% | 100% | 0% | 0% |
| 30% overlap, spillover equal, Groups | 82% | 0.021 | 71% | 100% | 44% | 0% |
| 30% overlap, spillover equal, Graph clusters | 95% | 0.022 | 92% | 100% | 80% | 0% |
| 30% overlap, spillover equal, Exposure model | 99% | 0.048 | 94% | 91% | 36% | 0% |
| 30% overlap, spillover twice, User A/B | 34% | 0.015 | 0% | 100% | 0% | 0% |
| 30% overlap, spillover twice, Groups | 76% | 0.021 | 24% | 100% | 99% | 0% |
| 30% overlap, spillover twice, Graph clusters | 94% | 0.022 | 88% | 100% | 100% | 0% |
| 30% overlap, spillover twice, Exposure model | 99% | 0.048 | 94% | 100% | 88% | 0% |
| 15% overlap, spillover half, switch at half, User A/B | 67% | 0.015 | 26% | 100% | 0% | 0% |
| 15% overlap, spillover half, switch at half, Groups | 96% | 0.022 | 93% | 100% | 19% | 0% |
| 15% overlap, spillover half, switch at half, Graph clusters | 100% | 0.022 | 94% | 100% | 24% | 0% |
| 15% overlap, spillover half, switch at half, Exposure model | 118% | 0.044 | 91% | 92% | 27% | 0% |
| 15% overlap, spillover equal, switch at half, User A/B | 51% | 0.015 | 0% | 100% | 0% | 0% |
| 15% overlap, spillover equal, switch at half, Groups | 94% | 0.022 | 92% | 100% | 77% | 0% |
| 15% overlap, spillover equal, switch at half, Graph clusters | 100% | 0.022 | 94% | 100% | 88% | 0% |
| 15% overlap, spillover equal, switch at half, Exposure model | 126% | 0.044 | 83% | 100% | 76% | 0% |
| 15% overlap, spillover twice, switch at half, User A/B | 34% | 0.015 | 0% | 100% | 0% | 0% |
| 15% overlap, spillover twice, switch at half, Groups | 93% | 0.022 | 86% | 100% | 100% | 0% |
| 15% overlap, spillover twice, switch at half, Graph clusters | 100% | 0.022 | 94% | 100% | 100% | 0% |
| 15% overlap, spillover twice, switch at half, Exposure model | 134% | 0.044 | 51% | 100% | 100% | 0% |
| 0% overlap, no effect, User A/B | none to measure | 0.015 | 95% | 5% | 0% | 95% |
| 0% overlap, no effect, Groups | none to measure | 0.022 | 94% | 6% | 0% | 89% |
| 0% overlap, no effect, Graph clusters | none to measure | 0.021 | 94% | 6% | 0% | 88% |
| 0% overlap, no effect, Exposure model | none to measure | 0.037 | 95% | 5% | 0% | 67% |
| 15% overlap, no effect, User A/B | none to measure | 0.015 | 96% | 4% | 0% | 96% |
| 15% overlap, no effect, Groups | none to measure | 0.022 | 94% | 6% | 0% | 86% |
| 15% overlap, no effect, Graph clusters | none to measure | 0.022 | 94% | 6% | 0% | 87% |
| 15% overlap, no effect, Exposure model | none to measure | 0.044 | 94% | 6% | 0% | 62% |
| 30% overlap, no effect, User A/B | none to measure | 0.015 | 96% | 4% | 0% | 95% |
| 30% overlap, no effect, Groups | none to measure | 0.021 | 95% | 5% | 0% | 86% |
| 30% overlap, no effect, Graph clusters | none to measure | 0.022 | 93% | 7% | 0% | 87% |
| 30% overlap, no effect, Exposure model | none to measure | 0.048 | 94% | 6% | 0% | 60% |
With no effect, "Rejects zero" is the false-win rate and a stop is the right call. The ship rule's bar is 100 extra active days per 1,000 users a week, so a full effect of 0.08 days should not ship and every larger one should.
| Setting | Spillover measured | Coverage of the spillover |
|---|---|---|
| 0% overlap, spillover half | 100% | 96% |
| 0% overlap, spillover equal | 100% | 96% |
| 0% overlap, spillover twice | 100% | 96% |
| 15% overlap, spillover half | 102% | 94% |
| 15% overlap, spillover equal | 101% | 94% |
| 15% overlap, spillover twice | 100% | 94% |
| 30% overlap, spillover half | 94% | 94% |
| 30% overlap, spillover equal | 97% | 94% |
| 30% overlap, spillover twice | 99% | 94% |
| 15% overlap, spillover half, switch at half | 152% | 90% |
| 15% overlap, spillover equal, switch at half | 151% | 79% |
| 15% overlap, spillover twice, switch at half | 151% | 39% |
What a team needs
- A group graph at assignment time. Who is in which group, from invites, shared plans or team membership, frozen when the test starts. Here 15% of users in two groups made about 7,273 links among 11,878 groups.
- A partition. Merge groups joined by shared members into clusters, with a cap on cluster size so there are still enough clusters to compare. The greedy merge here, capped at 60 users, kept 95% of links inside one cluster at 15% overlap (5,208 clusters of about 9.6 users) and 78% at 30% (2,406 clusters of about 20.8). Links of equal weight, almost all of them, were taken in group-number order, which follows the ring the simulation uses for social nearness. A follow-up with a random order kept 95% and 76% of links inside one cluster, and graph clusters measured 100% and 95% of the full effect, so the ring order in the ties did not drive the result. My judgement, not tested here: a higher cap would keep more links and leave fewer clusters.
- A rule for users in two groups. Each follows one group, here the first, and the other is logged, so the readout can count how many of their group-mates were treated. Without the log, the exposure model cannot run and the cluster designs cannot say how much leaked.
- Owners. Product defines what a group is; engineering assigns by cluster id and logs membership; analytics owns the partition, checks how many links it cuts before launch, and reads the test with that share beside the result.
Limits
- Simulated users with settings I chose. Group sizes, overlap, effect sizes and how alike group-mates are were set, not measured. The cost in precision of the cluster designs comes from how alike group-mates are, which a real product has to measure.
- The graph-cluster result rests on two choices. Second groups sit within 10 places of the first on the ring, and the 60-user cap is large enough to hold most of such a neighbourhood. If a user's second group could be anywhere in the graph, or the cap were smaller, more links would cross clusters and the 99% would fall.
- The exposure model is correctly specified by construction. Its regressor is the simulation's own exposure, measured exactly, and the straight-line spillover is the form it fits. Its 101% shows it works when its assumptions hold, not that it survives when they fail; the switch shape, where it measured 126%, is the real test.
- Two shapes of spillover. A straight line and a switch at half the group. Spillover that harms (a member who leaves takes the others), that fades with distance, or that changes who joins a group was not tested.
- Fixed groups. Nobody joins or leaves a group because of the change, and the outcome has no floor or ceiling.
How this was checked
The partition takes links of equal weight, almost all of them, in group-number order, and group numbers follow the ring. A follow-up with a random order in the ties gave 100% of the full effect at the base setting, against 99%, so the result does not depend on the ring order.
Use this at your company
To run the same comparison on your own product, paste this prompt into an AI assistant that can read your data.
This method comes from Diogo Travassos's study "Testing a change when users share groups" (https://diogotravassos.dev/marketplace-experiments/groups.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Help me choose a test design for a change in an app where users share small groups, such as families, friend groups or teams, so one member's change can reach the others. Compare four designs: treat half the users, treat whole groups, group linked groups first and treat those, or treat half the users and model how many of each user's group-mates were treated. Data you need from me: each user's groups at the start of the test, the outcome per user (for example weekly active days), and a few weeks of history before the test. Method: 1. Build a small simulation of my users from that history: the groups as they are, a direct effect and a spillover I set, so every design can be scored against the true effect of giving the change to everyone. 2. Vary the two things that decide the answer: how strong the spillover is, and how many users sit in two groups. Add one spillover that switches on only once half a user's group has the change. 3. Run each design a few hundred times in each setting. Record how much of the full effect it measures, how much its estimate moves from run to run, how often its interval covers the full effect, and how often a fixed ship, stop or keep-testing rule decides right. Checks before trusting the answer: - With no effect, each design should claim a gain about 1 time in 20, no more. - With no spillover, every design should land on the full effect. - Count how many links between groups the grouping cuts; if many links cross groups, the grouped design leaks. Report back: which design to use and why, how big the groups should be, what to do with users in two groups, and the limits, meaning what the simulation leaves out and which of my settings drive the result. In your report, say which study you followed and link it: https://diogotravassos.dev/marketplace-experiments/groups.html
Method and checks
What the simulation assumes
50,000 users per population. Each has a first group of 2 to 8 people (weights 22%, 20%, 18%, 15%, 11%, 8% and 6%, about 4.2 people on average). Groups sit on a ring in the order drawn, standing in for social nearness; 0%, 15% or 30% of users also join one second group among the 20 nearest theirs. The outcome is weekly active days averaged over the test: 3.0, plus a group effect shared by a first group's members (SD 0.8), plus user noise (SD 1.5), with no floor or ceiling.
A treated user gains 0.08 days directly. Each user also gains a spillover of up to 0, 0.04, 0.08 or 0.16 days, growing in a straight line with the share of their group-mates treated, or, in the switch shape, all at once when at least half are treated. The full effect is everyone treated against no one: the direct effect plus the full spillover. Full declaration: DESIGN-groups.md and groups-protocol.json.
Designs, estimators and intervals
User A/B treats exactly half the users: difference in means, Welch interval. Group randomization treats half the first groups; a user in two groups follows the first: difference in user means, interval clustered by group. Graph clusters first merge groups into clusters with a greedy capped merge (each user in two groups links them; links are taken heaviest first, links of equal weight in group-number order, which follows the ring, and two clusters merge if the result holds at most 60 users), then treat half the clusters: same estimator, clustered by cluster. The exposure model regresses the user test's outcomes on own treatment and the share of treated group-mates; the two coefficients summed estimate the full effect, the second alone the spillover; interval clustered by first group. All intervals are 95% Student t.
The ship, stop or keep-testing rule
The main study's rule. Each estimate becomes extra active days per 1,000 users a week (estimate × 1,000), with no cost charged. Prior: normal with mean 0 and standard deviation 500. Ship when the chance of more than 100 is at least 95% and the expected loss from shipping is at most 25; stop in the mirror case; otherwise keep testing. The rule's two ride-log checks have no counterpart for user groups, so only its estimate step runs. A ship is right when the full effect is above 100, so the 0.08-day settings with no spillover should not ship.
Predictions written before the run
Each prediction was committed with the settings, before any run; a prediction holds only if every part holds; the declaration calls the full effect the global effect. 4 of 4 held. The exposure model's spread, 2.98 times the user test's, sat just inside its predicted 1.5 to 3. Every prediction was scored on its point value. The Monte Carlo intervals of two spread ratios cross a predicted bound: the exposure model's, 2.79 to 3.19, includes 3, and the group design's, 1.36 to 1.63, includes 1.6, so another seed could turn 4 of 4 into fewer.
| Design | Prediction | Result | Score |
|---|---|---|---|
| User A/B | measures 45% to 55% of the global effect | 50.5% | held |
| covers the global effect in under 10% of populations | 0.2% | held | |
| the rule ships in under 5% | 0.2% | held | |
| Group randomization | measures 80% to 95% of the global effect | 89.5% | held |
| spread 1.2 to 1.6 times the user A/B's | 1.49 times | held | |
| the rule ships in 40% to 80% | 64.2% | held | |
| Graph clusters | gap at most two thirds of the group design's | 0.07 times | held |
| spread 0.95 to 1.25 times the group design's | 1.00 times | held | |
| at overlap 0.30 still measures at least 90% | 95.5% | held | |
| Exposure model | within 5% of the global effect in every linear setting with an effect | 97.8% | held |
| coverage at least 90% in every linear setting with an effect | 93.8% | held | |
| spread 1.5 to 3 times the user A/B's at the base setting | 2.98 times | held | |
| under the threshold shape it misses by more than 10%, either way | 126.3% | held |
Checks declared before the run
Checks that could fail on a wrong model or estimator:
- With no effect, each design's false-win rate at most 10.9%; the highest was 6.6%. Passed.
- With no spillover, each design's mean gap within 4 Monte Carlo standard errors plus 0.001 days. Passed.
- Hand-calculated tests of the clustered estimator, an exact recovery test of the exposure model, the partition's cap, and the rule's thresholds.
Checks that confirm the code ran as declared but cannot fail on a wrong model: the full effect computed by treating everyone and no one equals the declared value in every population.
Reproduce
With Python 3.12 and uv: uv sync --frozen, then uv run python -m sim.groups for the run and uv run python -m sim.groups_report for this page. uv run python -m pytest tests -q runs every test. No API, credential or downloaded dataset is used. uv run python -m sim.groups_tiebreak runs the tie-break follow-up.
Files
- groups.json: every setting and design, the checks and the scored predictions
- groups-runs.csv: every population's estimate for every design
- groups-populations.csv: each population's groups, clusters and links
- DESIGN-groups.md and groups-protocol.json: what was declared before the run
- groups-tiebreak.json, groups-tiebreak-runs.csv, groups-tiebreak-populations.csv and groups-tiebreak-protocol.json: the tie-break follow-up, declared before its run
- The main page: drivers, regions and lingering effects