Sub topic 11
Cohort Analysis and Retention-Based LTV
This chapter assumes you can compute CAC, ARPA (average revenue per account), gross margin, monthly churn, and the simple LTV formula from earlier chapters. It also assumes you can read short Python snippets.
Why the simple LTV formula needs a check
The formula LTV = ARPA × gross margin × (1 / churn) assumes every customer has the same chance of leaving in every month. Real customers rarely behave that way. Many subscription products lose a large share of customers in the first month or two, then lose them slowly. A single churn number averaged over all customers hides that shape.
A cohort table shows the shape directly. It measures what happened to real customers, instead of assuming a pattern.
What a cohort is
A cohort is a group of customers who share a starting point, usually the month they signed up. Cohort analysis follows each group over time and asks what share is still active after 1 month, 2 months, and so on.
The unit of time is months since signup, not calendar month. Month 0 is the signup month, and retention in month 0 is 100% by definition. This lets you compare a January cohort with a March cohort at the same age.
Building a retention table
Suppose you track three monthly signup cohorts. Each cell is the share of the cohort still active at that age.
| Cohort | Customers | Month 0 | Month 1 | Month 2 | Month 3 |
|---|---|---|---|---|---|
| Jan | 100 | 100% | 80% | 70% | 65% |
| Feb | 120 | 100% | 78% | 69% | 63% |
| Mar | 90 | 100% | 82% | 72% | (not yet observed) |
Read the table by row to see one cohort age. Read it by column to compare cohorts at the same age. If the Month 1 column rises from 78% to 82%, a change in onboarding or product may be working.
Two points about missing cells:
- A cell is empty because the cohort is too young, not because retention is zero. Never fill it with 0%.
- When you average a column, include only cohorts that have reached that age. Better, weight each cohort by its customer count.
# Customers per cohort and share still active at each age (None = not yet observed).
cohorts = {
"Jan": (100, [1.00, 0.80, 0.70, 0.65]),
"Feb": (120, [1.00, 0.78, 0.69, 0.63]),
"Mar": (90, [1.00, 0.82, 0.72, None]),
}
max_age = 3
pooled = []
for age in range(max_age + 1):
active = 0.0
total = 0
for size, curve in cohorts.values():
if age < len(curve) and curve[age] is not None:
active += size * curve[age]
total += size
pooled.append(active / total)
print([round(p, 3) for p in pooled]) # [1.0, 0.8, 0.7, 0.64]The pooled curve weights big cohorts more heavily. At Month 3 only the Jan and Feb cohorts contribute, so that figure rests on 220 customers, not 310.
Retention-based LTV
Once you have a retention curve, LTV becomes a sum. For each month, multiply the share of the original cohort still active by the gross profit one active customer produces that month. Add up the months.
This is the third code example from the plan, using a six-month curve:
# Share of a cohort still active in each month since signup (month 0 = 100%).
retention = [1.00, 0.80, 0.70, 0.65, 0.62, 0.60]
arpa_monthly = 100
gross_margin = 0.80
# Gross profit per originally acquired customer over the observed months.
observed_ltv = sum(r * arpa_monthly * gross_margin for r in retention)
print(round(observed_ltv, 2)) # 349.6The result, $349.60, is gross profit per customer acquired over six observed months. It is not extrapolated. Compare it with the simple formula's $2,000 from the earlier example. The gap exists because six months is only a slice of the customer lifetime, not because one of the methods is wrong.
Notice also that the denominator is originally acquired customers. A customer who leaves in month 1 still counts in the base, with a retention weight of 0 afterward. This keeps LTV aligned with CAC, which is also spent per acquired customer.
Comparing to CAC with observed data
The observed sum gives you a conservative, defensible number. Compare it with CAC directly:
- If observed LTV already exceeds CAC, you have recovered acquisition cost from real data.
- If it does not, you have not yet paid back CAC, and you must judge whether the remaining tail will close the gap.
With CAC of $500 and observed LTV of $349.60, the cohort has not paid back after six months. Cumulative gross profit by month tells you when payback happens:
retention = [1.00, 0.80, 0.70, 0.65, 0.62, 0.60]
arpa_monthly = 100
gross_margin = 0.80
cac = 500
cumulative = 0.0
for month, r in enumerate(retention):
cumulative += r * arpa_monthly * gross_margin
status = "paid back" if cumulative >= cac else "not yet"
print(month, round(cumulative, 2), status)The cumulative total reaches $349.60 and never crosses $500 within the data. Payback needs a projection beyond month 5.
Extending the curve: the tail
Because customers keep paying after your data ends, you usually need to estimate the tail. A common approach is to look at the late-month decline and assume it continues.
In the curve above, retention falls from 0.62 to 0.60 between months 4 and 5, a month-over-month ratio of about 0.968, or roughly 3.2% monthly churn among surviving customers. If that late-stage rate holds, the tail's value is the month-5 retention continuing to decay geometrically:
retention = [1.00, 0.80, 0.70, 0.65, 0.62, 0.60]
arpa_monthly = 100
gross_margin = 0.80
late_churn = 1 - 0.60 / 0.62 # about 0.0323
monthly_profit = arpa_monthly * gross_margin
observed = sum(r * monthly_profit for r in retention)
# Value after month 5: retention keeps decaying by (1 - late_churn) each month.
last = retention[-1]
tail = last * (1 - late_churn) * monthly_profit / late_churn
print(round(observed, 2)) # 349.6
print(round(tail, 2)) # 1440.0
print(round(observed + tail, 2)) # 1789.6The tail contributes about 80% of this projected LTV. That is the key limit of the method: most of the number is an assumption about months you have not seen.
Choosing a horizon
A practical alternative is to cap the lifetime. Many teams report 12-month or 24-month LTV and ignore later months. This understates value for sticky products but avoids relying on a long extrapolation. Always state the cap.
Why cohorts beat a single churn number
| Issue | Simple churn formula | Cohort retention |
|---|---|---|
| Early drop-off then flat retention | Averages them, understating lifetime of survivors | Shows the shape directly |
| Mix of old and new customers | Blends old stable customers with new risky ones | Separates them by age |
| Product or pricing changes | Hard to detect | Newer cohorts differ visibly |
| Data needed | Two numbers | A table of cohorts over time |
The blended-churn problem is common. If your customer base is mostly old, loyal accounts, current monthly churn looks low. New customers, who churn faster, are the ones your CAC just bought. Cohorts expose that difference.
Common errors
- Using calendar months instead of cohort age. Mixing a January cohort's month 3 with a March cohort's month 1 produces a meaningless column.
- Treating unobserved cells as zero. This drags the curve down for recent cohorts.
- Computing retention over surviving customers only. The base must be the original cohort, or LTV will not line up with CAC.
- Counting revenue instead of gross profit. Use gross margin, as in earlier chapters, or LTV is overstated.
- Ignoring cohort size. A cohort of 8 customers can swing a percentage by 12 points with one cancellation.
- Defining "active" inconsistently. Decide whether active means paying, logged in, or not cancelled, and keep the rule fixed across cohorts.
- Mixing segments. If acquisition channels shift over time, a falling retention curve may reflect a change in who you acquire, not a worse product. The next chapters on segmentation address this.
Revenue retention versus logo retention
The table above counts customers, which is logo retention. If accounts expand or contract in value, dollar retention can differ. A cohort with 60% of its customers left may still hold 110% of its original revenue if survivors upgrade. For LTV, you can build the table in dollars of gross profit per cohort instead of customer counts, and divide the cumulative total by the number of customers acquired. Keep the dollar and logo views separate, and say which one you used.
Exercise
A cohort of 200 customers has retention [1.00, 0.75, 0.60, 0.55]. ARPA is $80 per month and gross margin is 75%. CAC is $150. (a) What is the observed gross profit per acquired customer over these four months? (b) Has the cohort paid back its CAC by month 3?
Show answer
Monthly gross profit per active customer is 80 × 0.75 = $60. (a) The retention sum is 1.00 + 0.75 + 0.60 + 0.55 = 2.90, so observed LTV is 2.90 × 60 = $174. (b) Cumulative profit is 60 after month 0, 105 after month 1, 141 after month 2, and 174 after month 3. It crosses $150 during month 3, so yes, payback is reached in the fourth month of data (month index 3).
Exercise
Your Month 3 retention figure is the average of the Jan, Feb and Mar cohorts, but the Mar cohort has only reached month 2. A teammate filled Mar's month 3 with 0%. What is wrong, and how should you fix it?
Show answer
An unobserved cell is missing data, not zero retention. Filling it with 0% pulls the average down and understates retention and LTV. Exclude the Mar cohort from the Month 3 average, and weight the remaining cohorts by customer count. Note that the figure is based on fewer customers.