Sub topic 7
Comparing cohorts: is the product getting better?
This chapter assumes you can already build a cohort retention table, where rows are signup months, columns are age in months, and cells are the share of the cohort still active. If you can't, review the chapter on building one first. Basic pandas helps for the code, but the reasoning matters more than the syntax.
A single retention curve describes the users who joined in one period. It can't tell you whether the product is improving. For that you put successive cohorts side by side and ask whether newer users stick around better than older ones.
Why compare cohorts
Aggregate numbers hide this. A product's overall "monthly active users" figure can rise for years while every new cohort retains worse than the last. Growth in signups masks the decay. Cohort comparison removes that mask because each row is measured against its own starting size.
Comparing cohorts answers three questions:
- Is the product improving? Newer cohorts should retain at least as well as older ones at the same age.
- Did a specific change help? Compare cohorts that joined before and after a release.
- Is growth bringing in the right users? A drop in retention after a marketing push often means the new audience fits the product less well.
Compare at the same age, never at the same date
The most important rule is to compare cohorts at equal age. The January cohort at age 3 is March data. The April cohort at age 3 is July data. Both are "month 3 retention", and that is the like-for-like comparison.
Comparing the January cohort's latest value to the April cohort's latest value is wrong. January's latest cell may be age 10 and April's age 7, and retention generally falls with age, so older cohorts look worse for no real reason.
In the table, this means reading down a column, not along the diagonal edge.
| Cohort | Size | Month 1 | Month 3 | Month 6 |
|---|---|---|---|---|
| Jan | 420 | 35% | 22% | 18% |
| Feb | 380 | 33% | 21% | 17% |
| Mar | 510 | 37% | 23% | 19% |
| Apr | 450 | 38% | 24% | 20% |
| May | 600 | 41% | 27% | not yet observed |
Read down the Month 3 column: 22, 21, 23, 24, 27. That is an upward trend. The empty cell for May at Month 6 is not zero. It means that period has not happened yet. The pitfalls chapter covers incomplete periods in more detail, but you must respect the blank here as well.
Looking at more than one age
One column is a snapshot. Check several ages, because an improvement can appear at one point of the curve and not another.
- Better early retention (month 1) and no change later usually means onboarding improved. More people reach the first value moment, but the long-term product is the same.
- Better late retention (month 6 and beyond) means the product is more useful over time. This is the stronger signal of fit.
- A higher plateau in newer cohorts is the clearest sign of improvement. The curve flattens at a larger share of users than before.
- A higher start with the same plateau means you are acquiring users better, not necessarily serving them better.
Plot one line per cohort, with age on the x-axis. If newer lines sit above older ones, the product is improving. If the lines overlap, nothing has changed. If lines are stacked in reverse order, newer cohorts are doing worse. A heatmap of the table, with color by retention, shows the same pattern: look for color getting warmer going down a column.
Separating signal from noise
Every cell is a proportion from a finite group. A cohort of 40 users that retains 30% has a wide margin of error. A difference of three points between two small cohorts is usually noise.
A rough guide for a proportion near 35% with a 95% confidence interval:
| Cohort size | Approximate margin |
|---|---|
| 50 | about ±13 points |
| 400 | about ±5 points |
| 2,000 | about ±2 points |
So two cohorts of 400 that differ by 3 points are not distinguishable. Two cohorts of 2,000 that differ by 3 points are borderline. If you can't separate a gap from noise, pool adjacent cohorts (for example, a quarter instead of a month) to get a larger sample, at the cost of slower feedback.
The code below computes Wilson confidence intervals for each cohort's retention at a fixed age, then tests the early group against the late group with a two-proportion z-test. It skips cohorts that have not reached the age yet.
import numpy as np
import pandas as pd
cohorts = pd.DataFrame({
"cohort": pd.period_range("2026-01", periods=6, freq="M"),
"size": [420, 380, 510, 450, 600, 560],
"m1": [147, 125, 188, 171, 246, 235],
"m3": [92, 80, 117, 108, 162, np.nan],
})
def wilson(k, n, z=1.96):
p = k / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
half = z * np.sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return centre - half, centre + half
def compare(df, col):
d = df.dropna(subset=[col]).copy()
d["rate"] = d[col] / d["size"]
bounds = [wilson(k, n) for k, n in zip(d[col], d["size"])]
d["low"] = [b[0] for b in bounds]
d["high"] = [b[1] for b in bounds]
return d[["cohort", "size", "rate", "low", "high"]].round(3)
def two_proportion_z(k1, n1, k2, n2):
p1, p2 = k1 / n1, k2 / n2
pooled = (k1 + k2) / (n1 + n2)
se = np.sqrt(pooled * (1 - pooled) * (1 / n1 + 1 / n2))
return (p2 - p1) / se
print(compare(cohorts, "m1"))
print(compare(cohorts, "m3"))
early, late = cohorts.iloc[:3], cohorts.iloc[3:]
z = two_proportion_z(
early["m1"].sum(), early["size"].sum(),
late["m1"].sum(), late["size"].sum(),
)
print(f"Month 1, early vs late cohorts: z = {z:.2f}")Here the early group (January to March) retains about 35% at month 1 and the late group (April to June) about 40%. The z value comes out near 3, which is well beyond the usual cutoff of about 2. That is more convincing than any single month's change, because each individual cohort's interval is wide enough to overlap its neighbors.
Why a cohort gap may not mean the product improved
Even a real, statistically solid gap can have causes other than product quality. Check these before you credit the product.
- Mix shift. If newer cohorts include a higher share of a naturally sticky segment (for example, teams instead of individuals), overall retention rises while retention inside each segment is flat. Segment the cohorts to check. This is Simpson's paradox in practice.
- Channel changes. Paid traffic from a new channel can bring lower-intent users and lower retention. A referral program can do the reverse. Compare by acquisition source.
- Seasonality. A cohort that joins in January for a fitness app behaves differently from one that joins in July. Compare against the same month of the previous year when you have it.
- Definition drift. If the "active" event changed, say a new tracked action was added to the definition, retention can jump without any change in behavior. Recompute old cohorts with the new definition.
- Instrumentation changes. New logging, a changed identity-matching rule, or a bug that duplicates or drops events can shift every cell.
- Survivorship in the first period. Changes to signup, such as adding a verification step, remove low-intent users before they enter the cohort. Retention among those who remain goes up, but fewer people got in. Look at cohort size and activation together.
Connecting cohort gaps to changes
When a change shipped on a known date, compare the cohorts just before and just after it. Users who signed up before the release and were exposed to it later are a mixed group, so exclude the transition period or analyze only cohorts that were fully exposed from day one.
A convincing story has several features:
- The gap appears starting with the cohort that first saw the change, not earlier.
- The gap shows at the ages the change should affect. An onboarding fix should move month 1, not month 9.
- The gap persists in following cohorts instead of spiking once.
- Segments that did not experience the change did not move. This works like a control group.
If you can run an experiment, a randomized holdout beats any before/after comparison, because it removes seasonality and mix shift in one step.
A worked reading
Suppose the table above is for a team collaboration tool. Month 1 retention rose from 35% to 41% over five cohorts, and Month 3 rose from 22% to 27%. Both columns move together, and the gap holds up in the pooled test. Early retention and later retention both improved, which suggests the product itself gained value rather than only the onboarding.
Before concluding, you check cohort mix. Suppose the share of team signups rose from 30% to 55% over those months, and team accounts retain far better than individuals. Then part of the improvement is mix. Split the cohorts by account type: if retention inside each type is flat, nothing improved and the product merely attracted a better audience. If retention inside each type also rose, the improvement is real. Either finding is useful, but they lead to different decisions.
What a fair judgment sounds like
State what you saw, how sure you are, and what else could explain it. For example: "Month 1 and month 3 retention rose about five points across the last three cohorts, beyond what noise explains, and the rise holds within both account types. The two newest cohorts have not reached month 6 yet, so we can't say whether the plateau has risen."
That sentence names the evidence, rules out one alternative, and states the limit. It is more useful than "retention is improving."
Exercise
Cohort A (800 users, joined in February) shows 30% retention at month 2. Cohort B (150 users, joined in May) shows 38% at month 2. A teammate says the product has clearly improved. Give two reasons to be cautious and one step you would take.
Show answer
First, cohort B is small, so its margin of error is roughly ±8 points, and its interval overlaps cohort A's range, so the 8-point gap may be noise. Second, the cohorts differ in season and possibly in acquisition channel or user mix, so the gap may not reflect the product. Next step: pool May with neighboring cohorts to get a larger sample, or segment both cohorts by account type and channel and compare within segments. Also check that the activity definition did not change between February and May.
Exercise
Retention at month 1 rose from 30% to 36% after you added mandatory email verification at signup, and cohort size fell by 40%. Did the product improve? What do you check?
Show answer
Not necessarily. Verification filters out low-intent users before they enter the cohort, so retention among those who remain rises through selection, not through a better product. Check the number of retained users per week of signup, not just the percentage. If the absolute count of retained users is flat or lower, you lost users without improving the product. Also compare the original funnel from landing page visit to month-1 active user across both periods.