Foundations of Marketing Analytics Specialization (Emory)
A six-course specialization teaching marketing analytics skills using Excel, from exploratory data analysis to predictive modeling and forecasting.
Cohort analysis groups customers by a shared starting event, usually the month they signed up or first bought, and tracks how each group behaves over time. Instead of one blended retention number, you get a table showing how every cohort retains in month 1, month 2, month 3 and beyond. That reveals whether retention is genuinely improving or just being masked by growth.
Cohort analysis is one of the most useful techniques a business or product analyst can learn. It answers questions that a single dashboard number can't: Are customers who joined after the redesign sticking around longer? Did the discount campaign bring in loyal buyers or one-time bargain hunters? Is churn getting better, or are we just acquiring more people?
Imagine your app reports "48% of users are active one month after signing up." That sounds stable. But that number blends together users from very different periods. If newer users retain much better than older ones, or much worse, the average hides it.
Cohort analysis fixes this by comparing like with like: users who started in the same period, measured at the same age.
| Question | Single metric | Cohort view |
|---|---|---|
| Is retention improving? | Can't tell: mixes old and new users | Compare month-1 retention across cohorts |
| Did a product change help? | Diluted by everyone else | Look at cohorts that started after the change |
| When do most users drop off? | Hidden | Visible as the steepest step in each row |
| Is growth hiding churn? | Yes, often | No: each cohort is tracked on its own |
A subscription app tracks how many users from each monthly signup cohort are still active in later months.
Step 1: Count active users by cohort and month since signup.
| Signup cohort | Users | Month 0 | Month 1 | Month 2 | Month 3 | Month 4 |
|---|---|---|---|---|---|---|
| January | 1,000 | 1,000 | 420 | 350 | 310 | 290 |
| February | 1,200 | 1,200 | 540 | 450 | 400 | |
| March | 900 | 900 | 450 | 396 | ||
| April | 1,100 | 1,100 | 605 |
Step 2: Convert to retention rates by dividing each cell by the cohort's starting size.
| Signup cohort | Month 0 | Month 1 | Month 2 | Month 3 | Month 4 |
|---|---|---|---|---|---|
| January | 100% | 42.0% | 35.0% | 31.0% | 29.0% |
| February | 100% | 45.0% | 37.5% | 33.3% | |
| March | 100% | 50.0% | 44.0% | ||
| April | 100% | 55.0% |
This triangular table is the classic cohort retention table. Newer cohorts have fewer columns simply because less time has passed.
Step 3: Read it in three directions.
Step 4: Compare with the blended number. Across all four cohorts, month-1 retention is (420 + 540 + 450 + 605) ÷ (1,000 + 1,200 + 900 + 1,100) ≈ 48%. That single number hides the most important finding in the table: retention is improving month after month.
You need just two pieces of information per customer: the cohort date (first purchase or signup) and the activity dates after that.
In SQL, the pattern is:
MIN() or a window function.In pandas, the same logic is a groupby on cohort month and month offset, followed by pivot_table and division by the first column. See Pandas for Beginners for the core operations.
In Excel or BI tools, a PivotTable with cohort month in rows, month offset in columns and distinct customers as values gets you there, followed by a calculated percentage.
Cohort analysis is flexible. The design choices matter more than the tool.
| Choice | Common options | Tip |
|---|---|---|
| Cohort definition | Signup month, first purchase, first use of a feature, acquisition channel | Match it to the decision. Evaluating a campaign? Cohort by campaign. |
| Time grain | Day, week, month | Daily for apps, monthly for subscriptions, quarterly for B2B |
| Metric | Active users, retained subscribers, revenue, orders | Revenue cohorts show whether customers grow their spending over time |
| "Active" definition | Logged in, purchased, used a core feature | Use the action that reflects real value, not just opening the app |
Revenue cohorts deserve a special mention. Because some customers expand their spending, revenue retention can exceed 100%. That's the idea behind net revenue retention, a key SaaS metric.
Analyst and product-analytics interviews often include a case such as "Retention dropped last quarter. How would you investigate?" A strong answer mentions cohort analysis early: split users by signup period, compare retention at the same age, then segment by channel or platform. You may also be asked to write the SQL. Practice the first-activity-month pattern until it's second nature. A cohort analysis on a public e-commerce dataset also makes an excellent portfolio project.
Cumulative profit by cohort is the basis of the most defensible CLV estimate; see Customer Lifetime Value Explained.
Cohorts are one part of a wider discipline; What Is Product Analytics? shows how they fit with events, funnels and retention.
Cohort analysis sits at the heart of customer and marketing analytics. Foundations of Marketing Analytics (Emory) covers customer metrics and segmentation, while Customer Analytics in Python (Udemy) shows how to segment customers and model purchase behaviour in code. To sharpen the SQL side, read SQL Window Functions Explained. Browse all Marketing & Customer Analytics courses.
What is the difference between cohort analysis and segmentation? Segmentation groups customers by attributes such as region, plan or age. Cohort analysis groups them by when a shared event happened and tracks them over time. You can combine both, for example monthly cohorts split by acquisition channel.
What is a good retention rate? It depends heavily on the industry and product. Consumer apps often lose most users in the first weeks, while B2B software retains far more. Benchmarks are less useful than your own trend across cohorts.
How many cohorts do I need? Enough to see a pattern: usually at least six to twelve periods. Make sure each cohort is large enough that one or two customers don't swing the percentages.
Can I do cohort analysis in Google Analytics or Power BI? Yes. Google Analytics 4 includes a cohort exploration report, and Power BI or Tableau can build cohort tables from transaction data with a cohort column and a month-offset column.
A single retention number blends very different customers together. Cohort analysis separates them by start date and compares them at the same age, so you can see whether retention is really improving, when users drop off and which changes made a difference. Build the table, read it across rows, down columns and along diagonals, and treat what you find as a hypothesis to test.