Cohort analysis: compare outcomes from a shared starting point
Define cohort entry, time, and denominator, then compare later outcomes fairly while accounting for incomplete follow-up and limits on causal claims.
Cohort analysis groups observations that share a starting condition or time, then compares how their behavior or outcomes change afterward. For example, you can compare repeat-purchase rates for customers by the month of their first purchase. The analysis shows differences in later outcomes between groups; it does not automatically prove what caused those differences.
The key design question is: “Who entered which cohort, when, and under what rule—and what counted as an outcome afterward?” Without fixed definitions, two retention rates with the same label can count different things.
What does a cohort group together?
A cohort is a group of analysis units that share a defined criterion. The unit might be a person, account, or store. A common approach groups by acquisition time, such as a first visit, signup, or first paid purchase. You can also group people who first performed the same behavior, such as using a feature or completing onboarding. Google Analytics, for example, describes cohorts based on acquisition date or first transaction.
Do not assume that cohort membership is automatically exclusive or permanent. Define whether someone who meets an entry condition more than once enters only once or joins a new cohort each time. “Month of first purchase” can assign a customer once, while a weekly purchase condition can place the same person in multiple weekly groups. Google Analytics documents this as product-specific behavior when users repeatedly satisfy an inclusion criterion. Label whether the cohort is reusable and fixed or allows repeated entry.
Separate entry criteria from the outcome
Separating the rule that defines a cohort from the outcome you measure makes the question clearer. “Month of first purchase” is the entry criterion; “made another purchase in each later month” is an outcome. If you measure time from signup to paid conversion, signup is the start event and the first payment is the outcome. Using a broad condition such as “any activity” for both can make it unclear what the metric means.
Document:
Unit and identity rule: person, account, and how devices or accounts are linked.
Entry criterion and anchor time: first signup, first purchase, first feature use, and so on.
Cohort interval: day, week, or month; calendar period or elapsed time; timezone and week start.
Later outcome: return, completion of a core action, purchase, cancellation, or another event.
Numerator and denominator: unique people or event counts; the original cohort or only people observable through that interval.
Repeat-entry and exclusion rules: whether one person may appear in multiple cohorts and how test or duplicate records are handled.
Analytics products may use “cohort” and “segment” differently. Conceptually, a cohort is useful for following a group defined by a starting condition over time; a segment is useful for filtering data by an attribute or condition. Check the product’s own documentation instead of assuming those labels work the same everywhere. Amplitude, for example, distinguishes segments as analysis filters and cohorts as user sets that meet conditions in a fixed or dynamic date range.
Read the rows, columns, and denominator
Rows represent cohorts that share a start time or behavior; columns represent elapsed periods after entry. A cell counts or reports the share of the cohort that meets the outcome in that period. The table below is an explicitly hypothetical example: it groups customers by the month of their first paid purchase and counts customers who purchase again. The numbers are illustrative, not observed data.
| First-purchase cohort | Customers at entry | Repeat purchase, month 1 | Month 2 | Month 4 |
|---|---|---|---|---|
| January | 100 | 42 (42%) | 31 (31%) | 25 (25%) |
| February | 120 | 54 (45%) | 36 (30%) | Not yet observable |
| March | 110 | 50 (45%) | In progress | Not yet observable |
Here each rate means “unique customers who purchased again in that month ÷ customers who entered that cohort.” So 31% in month 2 for January means 31 of the 100 starting customers made at least one repeat purchase during that interval. State the event rule so readers do not confuse a period-specific rate with a cumulative one. “Purchased exactly in month 2” and “purchased in month 2 or later” answer different questions. Product names and calculations can vary, so verify the metric definition.
The blank later periods for February and March do not mean a 0% repeat-purchase rate. There has not been enough follow-up time to observe those outcomes. Replacing blanks with zero or comparing them with January’s month-4 result unfairly penalizes newer cohorts. Compare the same elapsed periods that every group has reached, or mark immature cells and disclose how they were excluded.
A fair comparison workflow
Write the decision question in one sentence. Example: “Do groups entering before and after onboarding completion differ in core-feature use during their first four weeks?”
Fix the unit and entry rule. Decide whether the first qualifying event or repeated events define entry, and whether people can be assigned more than once.
Fix time calculation. Specify week boundaries, timezone, and whether a month means a calendar month or 30 elapsed days. Products can differ between rolling 24-hour windows and calendar dates.
Record the outcome and denominator. A person active exactly in an interval, active at least once by that point, or active in every interval produces a different measure.
Show cohort size and observable follow-up alongside rates. Recent cohorts may have less follow-up; rates in small cohorts can move sharply when only a few people change behavior.
Compare groups under the same rules. Use the same event definitions, timezone, filters, periods, and denominator. Record changes in instrumentation, product, pricing, and campaigns with their dates.
Inspect group composition when explaining differences. A change in acquisition channel or plan mix may alter the overall result. Where useful, show the overall result and key subgroups, and do not hide uncertainty in small samples.
A cohort difference is not a causal effect
If a cohort’s return rate rises after a feature launch, that alone does not show the feature caused the increase. Acquisition channels, seasonality, prices, customer mix, or tracking code may have changed at the same time. Cohort analysis is good at finding “which groups that started when had different later outcomes?” It cannot answer “what caused the difference?” on its own. If a causal effect is needed for a decision, seek additional evidence such as a randomized experiment or a suitable comparison design.
References
Google Analytics Help: Cohort — <https://support.google.com/analytics/answer/9355644?hl=en>
Google Analytics Help: GA4 cohort exploration — <https://support.google.com/analytics/answer/9670133?hl=en>
Amplitude Docs: Segments and cohorts — <https://amplitude.com/docs/analytics/segments/segments-and-cohorts>
Amplitude Docs: How retention is calculated — <https://amplitude.com/docs/analytics/charts/retention-analysis/retention-analysis-calculation>
Amplitude Docs: Time in retention analysis — <https://amplitude.com/docs/analytics/charts/retention-analysis/retention-analysis-time>