Sub topic 3
Classic, bracket, and rolling retention
This chapter assumes you know what a cohort is and have chosen an activity event and time unit, as covered earlier. It also assumes you can read a short pandas snippet. Here you will learn three ways to decide whether a user counts as "retained" at a given age. They give different numbers for the same data, so you need to know which one you are looking at.
One user, three questions
Every retention definition starts from the same setup. Each user has a start day (day 0), and each later event has an age in days. The definitions differ in which events count toward day N.
- Classic (N-day) retention asks: was the user active on exactly day N? Day-7 retention counts only users with an event on day 7.
- Bracket retention asks: was the user active at any time inside a window around N? Week-1 retention might count activity on days 7 to 13.
- Rolling (unbounded) retention asks: was the user active on day N or at any later time? A user who disappears for a month and then returns counts as retained for every earlier N.
Computing all three
The script below builds five users and measures them at N = 7 with a bracket of days 7 to 13.
import pandas as pd
events = pd.DataFrame({
"user_id": [1, 1, 1, 2, 2, 3, 4, 4, 5],
"day": [0, 1, 7, 0, 9, 0, 0, 30, 0],
})
n = 7
cohort_size = events["user_id"].nunique()
classic = events.loc[events["day"] == n, "user_id"].nunique() / cohort_size
bracket = events.loc[events["day"].between(n, n + 6), "user_id"].nunique() / cohort_size
rolling = events.loc[events["day"] >= n, "user_id"].nunique() / cohort_size
print(f"classic={classic:.0%}, bracket={bracket:.0%}, rolling={rolling:.0%}")The output is classic=20%, bracket=40%, rolling=60%. Only user 1 was active on day 7. User 2 returned on day 9, so the bracket definition catches them. User 4 was silent until day 30, and only rolling retention counts that user.
How the definitions compare
| Definition | Counts a user if active... | Strictness | Can the curve rise? |
|---|---|---|---|
| Classic | exactly on day N | Strictest | Yes |
| Bracket | in a window containing N | Middle | Yes |
| Rolling | on day N or later | Loosest | No, it only falls |
When the bracket contains day N, the three numbers always satisfy classic ≤ bracket ≤ rolling.
Choosing one
Match the definition to how often people should use the product.
- Daily or near-daily products (messaging, games): classic retention works because users are expected on specific days.
- Weekly or irregular products (expense tools, travel, marketplaces): classic day-N retention undercounts, since a healthy user may skip day 7 and return on day 8. Use a bracket sized to the natural usage cycle, such as a week or a month.
- Rolling retention answers a different question: "how many users have not permanently left?" It suits churn-style analysis. It is a poor fit for judging whether the product is working today.
Common errors
- Mixing definitions in one table. If one column is classic and the next is bracket, the curve's shape means nothing. Fix one definition for the whole table.
- Using a window that does not fit the product. A one-day bracket on a monthly-use product reads as near-zero retention even when the product is working.
- Forgetting to state the definition. "Day-30 retention is 25%" is incomplete. Say whether it is classic, bracket, or rolling, and give the activity event.
The next chapter uses one chosen definition to build the full cohort retention table.
Exercise
A budgeting app expects users to open it about once a week. Its day-7 classic retention is 12%, and a stakeholder worries the product is failing. Which definition would you check next, and why might the number change?
Show answer
Check a bracket definition such as days 7 to 13. Weekly users often open the app on day 6 or day 9 rather than exactly day 7, so classic day-7 retention misses them. A bracket sized to the weekly usage cycle would count these users and probably give a higher, more representative number.