Sub topic 7
Comparing cohorts: is the product getting better?
This chapter assumes you can read a cohort retention table (rows are signup cohorts, columns are age) and know basic pandas. A single cohort tells you how well the product holds users. Several cohorts side by side tell you whether it is holding them better than before.
Compare at the same age
Compare cohorts at equal age, never at equal calendar date. January's cohort at age 2 is March. February's cohort at age 2 is April. Reading down one column of the table keeps age fixed. Reading across a row follows one cohort through time.
Pick one or two ages that matter for your product, such as age 1 for a monthly product or age 3 near the plateau. Then track that column across cohorts.
import numpy as np
import pandas as pd
cohorts = pd.PeriodIndex(
["2026-01", "2026-02", "2026-03", "2026-04"], freq="M", name="cohort"
)
retention = pd.DataFrame(
{
0: [1.0, 1.0, 1.0, 1.0],
1: [0.42, 0.45, 0.51, 0.55],
2: [0.30, 0.33, 0.40, np.nan],
3: [0.26, 0.29, np.nan, np.nan],
},
index=cohorts,
)
size = pd.Series([400, 520, 610, 700], index=cohorts, name="size")
age = 1
p = retention[age]
margin = 1.96 * np.sqrt(p * (1 - p) / size)
summary = pd.DataFrame(
{"size": size, "retention": p, "change": p.diff(), "margin": margin}
)
print(summary.round(3))The change column is the difference from the previous cohort. The margin column is an approximate 95% margin of error for a proportion. If the change is smaller than the margins of the two cohorts, it may be noise.
Read the whole curve, not one point
An improvement at age 1 can come with no improvement at age 3. That usually means onboarding got better, so more people stay for the first month, but the long-term value of the product did not change. Overlay the curves and check three things:
- Whether the early drop is smaller (activation or onboarding improved).
- Whether the plateau level is higher (more users find lasting value).
- Whether the curves keep the same shape and only shift up (a change in who signs up, not in the product).
Why a rise may not mean a better product
Several things move retention without the product changing:
- Acquisition channel shifts. A switch from paid ads to referrals often raises retention because referred users arrive with better intent.
- Pricing or free-tier changes. Removing a free plan filters out casual users and lifts retention among those who remain.
- Definition drift. If the "active" event changed, or logging was fixed, old and new cohorts are no longer comparable.
- Seasonality. A cohort that starts in January may behave differently from one that starts in July.
Compare cohorts by channel or plan, as the segmentation chapter shows. If the improvement appears inside every segment, the product is more likely the cause. If it appears only because a high-retention segment grew, the product did not change. The mix did.
Which cohorts to trust
Only compare cells that have fully elapsed. In the table above, the April cohort has no age-2 value yet, and that cell is correctly blank rather than zero. Small cohorts need wider margins. A cohort of 40 users can swing by 15 points through chance alone.
For a stable view, group several weeks into one cohort, or compare quarterly cohorts. This trades timeliness for reliability.
What counts as "getting better"
A reasonable bar is: successive cohorts show higher retention at the same ages, the gap exceeds the margin of error, it holds within major segments, and it persists for at least three cohorts. One good cohort is a result. A trend over several cohorts is evidence.
Exercise
Your March cohort has 50 users and 60% month-1 retention. February had 500 users and 45%. A teammate says the product improved. What do you check before agreeing?
Show answer
Check the margin of error. With 50 users it is about 1.96 sqrt(0.6 0.4 / 50), roughly 14 points, so the true value could be near 46%, which is close to February. Also check whether the user mix or channel changed, and wait for more cohorts to confirm a trend before concluding the product improved.