Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

Marketplace experiment designs: a retention test in shared groups

In a simulated app with assumed group coupling, a retention test that randomized users measured 87% of a full launch's effect at moderate coupling and 78% at strong, while randomizing whole groups measured 96% and 94%.

200 simulated histories per setting of the app from the forecasting page, each with about 2,300 active users put into a six-month retention test. Treatment raised a user's log-odds of being active each month by 0.3, an assumed lift. Treated users pull their group-mates along, so a user test's control arm gets part of the treatment through its treated group-mates and its treated arm misses the push from untreated ones. With no coupling both tests land on the full effect, as they must by construction. I would randomize groups when members influence each other: it cost little precision here.

User test 87% of the full effect at moderate coupling (95% interval for the average over 200 simulated histories, 84% to 90%): about 1.0 point short, smaller than one test's noise (a spread near 1.8 points); 78% at strong, 97% with noneGroup test 96% at moderate coupling (95% interval for the average, 93% to 99%), 94% at strong; it leaks only through the users in two groupsPrecision cost of groups 1.07 times the user test's spread at moderate coupling; both tests found the lift in 96% and 95% of historiesLonger tests miss more 85% measured by a 12-month user test at moderate coupling, 70% at strong; the group test held at 97% and 94%

Main limitation One simulated app with a coupling and a lift I set, and I wrote both the simulation and the tests, so this shows how the two designs behave on a process I know, not on a real product. That both tests are unbiased with no coupling is true by construction.

Where the answer changes

  • No coupling. The user test measured 97% and the group test 98%, both intervals containing 100%: with no path from one user to another, neither test can be biased, so this row checks the code, not the designs.
  • Stronger coupling. The user test's share falls from 97% to 87% and 78%. Its 95% interval still contained the full effect in 94% of histories at moderate coupling and 87% at strong: on average it fell 1.0 and 1.9 points short of full effects near 8.2 and 8.5 points. At moderate coupling that is smaller than one test's noise (a spread near 1.8 points), and at strong coupling about the same size (1.9 points), so a single test would usually not show it, but it understates the launch every time.
  • Longer tests. The push between group-mates compounds month after month: at strong coupling the user test measured 87% after 3 months and 70% after 12, and its interval contained the full effect in only 65% of histories.
  • A smaller lift. At half the lift (0.15) the shares are similar, 84% and 93% at moderate coupling, but both tests find the lift in under half of histories at this size.

Within a history, every setting starts from the same app, and the four worlds compared (nobody treated, everyone treated, each test) share every random draw, so they differ only by who is treated.

What I would use when

My judgement from these runs; the simulation compared two designs, it did not test these rules.

  • When members influence each other's activity: randomize whole groups. Here it cost about 1.07 times the spread and recovered most of what the user test missed.
  • If only a user test is possible: read its result as a lower bound on the launch effect, and more so the longer the test runs.
  • Users in more than one group: they are where a group test leaks. The shared-groups page compares graph-cluster tests and an exposure model for that case; this page does not repeat it.
Coupling
How much a user's chance of being active this month rises with the share of their group-mates who were active last month. Set, not measured.
Test users
Users active in the month the test starts. Nobody else is treated.
Lift
The rise in a treated user's log-odds of being active each month. Assumed.
Full effect
Every test user treated against none treated, in the same history: what a launch to all of them would give. The target both tests are scored against.
User test
Half of the test users treated at random.
Group test
The same test users, with half of their groups treated at random; everyone takes their first group's assignment.
Share measured
The test's mean estimate over the full effect's mean, over histories.

What each test measured

The full effect is what treating every test user would give against treating none, in the same history: about 8.2 points more users active after six months at moderate coupling, from 60.6% to 68.8%. Both tests use the same test users; only the unit that is randomized differs.

How much of a full launch's effect each test measured

Share of the full effect; line: 95% interval for the average over 200 histories. Single tests vary more: see the spread in the data. Lift 0.3, six-month test.

Share of the full effect each test measured, by couplingDots: mean estimate over the mean full effect, 200 simulated histories per setting; lines: 95% interval for that average, not the range of single tests. Lift 0.3, six-month test.No couplingUser test, No coupling: measured 97% of the full effect; 95% interval for the average over histories 93% to 100%User test97%Group test, No coupling: measured 98% of the full effect; 95% interval for the average over histories 94% to 101%Group test98%Moderate couplingUser test, Moderate coupling: measured 87% of the full effect; 95% interval for the average over histories 84% to 90%User test87%Group test, Moderate coupling: measured 96% of the full effect; 95% interval for the average over histories 93% to 99%Group test96%Strong couplingUser test, Strong coupling: measured 78% of the full effect; 95% interval for the average over histories 75% to 81%User test78%Group test, Strong coupling: measured 94% of the full effect; 95% interval for the average over histories 91% to 97%Group test94%60%70%80%90%100%Share of the full effect measured
Show the data
Every setting, lift, test length and design, 200 histories each; the interval is for the average over histories, and the spread shows how far single tests vary
Setting, lift, length and testShare measured95% interval for the averageBias, pointsSpread, pointsInterval contains the full effectFinds the lift
No coupling, lift 0.30, 3 months, User test99%95% to 103%−0.061.6796%91%
No coupling, lift 0.30, 3 months, Group test99%95% to 103%−0.051.7898%88%
No coupling, lift 0.30, 6 months, User test97%93% to 100%−0.241.9096%97%
No coupling, lift 0.30, 6 months, Group test98%94% to 101%−0.161.8398%96%
No coupling, lift 0.30, 12 months, User test99%96% to 102%−0.071.9795%98%
No coupling, lift 0.30, 12 months, Group test100%97% to 103%−0.021.9798%98%
No coupling, lift 0.15, 3 months, User test98%90% to 105%−0.071.7596%34%
No coupling, lift 0.15, 3 months, Group test100%92% to 108%−0.011.7997%34%
No coupling, lift 0.15, 6 months, User test95%87% to 102%−0.211.9696%45%
No coupling, lift 0.15, 6 months, Group test96%89% to 103%−0.151.9098%46%
No coupling, lift 0.15, 12 months, User test98%91% to 104%−0.102.0494%51%
No coupling, lift 0.15, 12 months, Group test98%91% to 105%−0.072.0796%46%
Moderate coupling, lift 0.30, 3 months, User test92%88% to 96%−0.521.7395%89%
Moderate coupling, lift 0.30, 3 months, Group test97%93% to 101%−0.171.9098%86%
Moderate coupling, lift 0.30, 6 months, User test87%84% to 90%−1.041.8494%96%
Moderate coupling, lift 0.30, 6 months, Group test96%93% to 99%−0.341.9797%95%
Moderate coupling, lift 0.30, 12 months, User test85%82% to 88%−1.392.0591%95%
Moderate coupling, lift 0.30, 12 months, Group test97%94% to 100%−0.282.1898%97%
Moderate coupling, lift 0.15, 3 months, User test88%81% to 96%−0.371.7895%30%
Moderate coupling, lift 0.15, 3 months, Group test95%86% to 104%−0.151.9798%35%
Moderate coupling, lift 0.15, 6 months, User test84%78% to 91%−0.681.9096%41%
Moderate coupling, lift 0.15, 6 months, Group test93%87% to 100%−0.282.0397%37%
Moderate coupling, lift 0.15, 12 months, User test82%76% to 88%−0.852.1394%47%
Moderate coupling, lift 0.15, 12 months, Group test97%91% to 104%−0.132.2498%46%
Strong coupling, lift 0.30, 3 months, User test87%83% to 91%−0.751.7493%83%
Strong coupling, lift 0.30, 3 months, Group test96%92% to 101%−0.241.9096%81%
Strong coupling, lift 0.30, 6 months, User test78%75% to 81%−1.891.8587%94%
Strong coupling, lift 0.30, 6 months, Group test94%91% to 97%−0.512.1497%94%
Strong coupling, lift 0.30, 12 months, User test70%68% to 73%−3.091.9765%94%
Strong coupling, lift 0.30, 12 months, Group test94%91% to 97%−0.632.3297%96%
Strong coupling, lift 0.15, 3 months, User test84%76% to 92%−0.501.8196%30%
Strong coupling, lift 0.15, 3 months, Group test95%86% to 104%−0.161.9796%28%
Strong coupling, lift 0.15, 6 months, User test75%69% to 81%−1.121.9792%37%
Strong coupling, lift 0.15, 6 months, Group test93%86% to 100%−0.302.2098%39%
Strong coupling, lift 0.15, 12 months, User test69%63% to 74%−1.652.0888%45%
Strong coupling, lift 0.15, 12 months, Group test92%86% to 98%−0.422.4397%48%

retention-test.json · retention-test-runs.csv (every history)

Source: the declared retention test run, 200 histories per coupling setting, months 37 to 48 of the forecasting page's simulated apps.

One history, arm by arm

History 0 at moderate coupling, declared before the run as the example; it is not chosen to show a pattern. It has 2,316 test users in 1,001 groups. With nobody treated, 60.3% of them were active six months later; with everyone treated, 69.1%: a full effect of 8.8 points.

  • User test. 1,158 users treated at random. The control arm ended at 61.1%, 0.6 points above the same users with nobody treated, because some of their group-mates were treated. The treated arm ended at 68.9%, 0.3 points below the same users with everyone treated, because some of their group-mates were not. It measured 7.9 points.
  • Group test. 1,153 users treated, in half of the groups. Its arms ended at 69.1% and 59.8%, so it measured 9.4 points. Its control arm moved 0.1 points, through users in two groups. It overshot here because the coin put more of the users who would stay anyway in treated groups: the ordinary noise of any test, which averages out over histories.

Why the user test falls short

Each test's gap from the full effect splits into three pieces that add up by construction: the treated arm falling short of the same users with everyone treated, minus the control arm rising above the same users with nobody treated, plus chance imbalance, the remainder from which users the coin put in each arm. At moderate coupling the user test's control arm rose 0.43 points and its treated arm fell 0.39 points short; the group test's pieces are about a fifth as large. Chance imbalance is noise: its interval contains zero in every row. With no coupling the first two pieces are exactly zero, by construction.

Where each test's gap from the full effect comes from, lift 0.3, six months, mean over 200 histories
Setting and testGap, pointsTreated arm short of everyone treatedControl arm above nobody treatedChance imbalance
No coupling, User test−0.240.000.00−0.24
No coupling, Group test−0.160.000.00−0.16
Moderate coupling, User test−1.04−0.39+0.43−0.22
Moderate coupling, Group test−0.34−0.08+0.09−0.17
Strong coupling, User test−1.89−0.78+0.89−0.22
Strong coupling, Group test−0.51−0.17+0.19−0.14

What I wrote down before the run

Six predictions were committed with the settings, before any declared history was run. 6 of 6 held. "Primary" means the lift of 0.3 and the six-month test. The first could not fail except by Monte Carlo noise, so it is a safe bet; the other five could have missed. The bands were wide: they say the direction and rough size held, not that I could call the exact figures.

Declared predictions and how they scored
No.PredictionResultScore
1.With no coupling, at the primary lift and length, the user test and the group test each measure 95% to 105% of the full effect. A safe bet: with no coupling no user's activity depends on another's, so both are unbiased by construction; only Monte Carlo noise could fail it.96.9% and 97.9%held (a safe bet)
2.At moderate coupling, primary lift and length, the user test measures 70% to 95% of the full effect.87.4%held
3.At strong coupling, primary lift and length, the user test measures less than at moderate coupling, and less than 85% of the full effect.77.8%held
4.At the primary lift and length, the group test measures at least 92% of the full effect in every coupling setting.97.9%, 95.9% and 94.1%held
5.At moderate coupling, primary lift and length, the group test's spread is 1.0 to 1.5 times the user test's.1.07 timesheld
6.At moderate coupling and the primary lift, the user test measures a smaller share of the full effect at 12 months than at 3 months.84.9% at 12 monthsheld

Limits

  • A self-test. I wrote the simulation and both tests, and the coupling and the lift are built in, so this shows how the designs behave on a process I know, not how they do on a real product. That both tests are unbiased with no coupling is true by construction.
  • Assumed coupling and lift. The coupling is a straight line in the share of active group-mates on the log-odds scale, and the lift is the same for every treated user and month. A change that spreads through invitations or shared features would leak differently.
  • Fixed groups. Nobody joins or leaves a group because of the change, and 15% of users sit in a second group, which is the only way the group test leaks. More overlap would leak more.
  • One test size. About 2,300 test users. The bias is a share of the effect and does not shrink with size, but the noise does: a larger test would show the user test's bias more often.
  • Test design is covered elsewhere. Graph-cluster tests and an exposure model, which target users in two groups, are compared on the shared-groups page and not rerun here.

How this was checked

The run replays the forecasting page's apps: with nobody treated, all 28,800 monthly active counts (months 1 to 48, every setting and history) equal that page's published counts, with 0 mismatches. The tests show a changed coupling failing this check, so it can fail.

With no coupling, each test's mean gap from the full effect had to stay within 4 Monte Carlo standard errors plus 0.1 point at every lift and length; it did. The tests show the leak appearing as soon as coupling is on, so a test that leaked without coupling would fail.

Checks that confirm the code ran as declared but cannot fail on a wrong model: every value finite, the user test treating exactly half of the test users, and the pieces of each gap adding up. The tests check the mechanics on a small population with a different seed and read no effect size.

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 "A retention test when group-mates pull each other along" (https://diogotravassos.dev/marketplace-experiments/retention-test.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 check how much a retention test underestimates a launch when users belong to small groups, such as families, friend groups or teams, and one member's activity may pull the rest of their group along. Compare a test that randomizes users with one that randomizes whole groups of the same users.

Data you need from me: each user's group memberships, which users were active in each month, and, if a test has run, each user's assignment.

Method:
1. Measure the coupling: does a user's chance of being active next month rise with the share of their group-mates active this month, after allowing for their own activity this month? Report it with an interval.
2. Simulate my app with that coupling and a range of lifts and test lengths. In each simulated history, run a user test and a group test of the same users, and compare each with treating everyone against treating no one.
3. Report the share of the full effect each test measured, its spread, how often its interval contains the full effect, and how often it finds the lift.
4. If a user test already ran, compare its control users' activity by how many of their group-mates were treated.

Checks before trusting the answer:
- With the coupling set to zero, both tests should measure the full effect; if not, the simulation leaks.
- Write down what you expect before running, and report what missed.
- Keep users in more than one group visible: they are where a group test leaks.

Report back: which design to use, how much a user test would understate a launch, how that grows with test length, and the limits, meaning what the coupling estimate cannot tell and which choices drive the result.

In your report, say which study you followed and link it: https://diogotravassos.dev/marketplace-experiments/retention-test.html

Method and checks

What the simulation assumes

The forecasting page's simulated apps, unchanged: 14,000 possible users per history in groups of 2 to 8, with 15% of users also in a second group, groups arriving at a growing rate, and monthly activity on the log-odds scale with a base of −2.2, plus 3.6 if active last month, a user effect, a first-group effect, a month shock shared by every user, and the coupling: coupling times the share of the user's joined group-mates who were active last month, minus one half. Coupling is 0, 1 or 2. Months 1 to 36 replay that page's random draws exactly. Full assumptions: DESIGN-group-forecast.md.

The two tests

Test users: everyone active in month 36. From the next month, a treated user's log-odds of being active rise by the lift, 0.30 or 0.15. The outcome is being active in the test's last month, after 3, 6 or 12 months. The user test treats half of the test users (rounded down) at random and reads the difference in the share active with a Welch interval. The group test gives each test user their first group's assignment, treats half (rounded down) of the first groups holding a test user at random, and reads the same difference with an interval clustered by first group. The full effect is every test user treated against none treated in the same history. The four worlds share every activity draw.

Measures and intervals

Share measured: the mean estimate over histories divided by the mean full effect. Bias: the mean of estimate minus the history's full effect. Both carry a 95% Monte Carlo interval for the average, from 2,000 bootstrap resamples of histories; it says how precisely the average is known, not where one test lands. Spread: the standard deviation of estimate minus full effect over histories. Interval contains the full effect: the share of histories whose 95% interval does. Finds the lift: the share whose interval lies above zero. The three pieces of each gap are defined so they add up exactly; chance imbalance is the remainder.

Reproduce

With Python 3.12 and uv: uv sync --frozen, then uv run python -m sim.retention_test for the run and uv run python -m sim.retention_test_report for this page. uv run python -m pytest tests -q runs every test. No API, credential or downloaded dataset is used.

Files