Retention
On this page
Definition
Retention is the share of users who return after their first action, over a given period. Classic retention counts those returning strictly on a specific day, rolling retention within a window, and unbounded retention on any day after start. The meaning of the metric depends entirely on how “returned” is defined and which window is used.
How to compute
Group users into cohorts by start day and, for each period, compute the share still active: Rt=returned on day t/N0. Assemble the result into a cohort matrix whose columns are periods since start. State the activity definition separately: opening the app, a key action, or a payment.
Pitfalls
Without an explicit activity definition retention is meaningless: the same number yields different metrics at different thresholds. The first period is the noisiest. Compare cohorts over the same window length. Calendar events and seasonality distort cohort-to-cohort comparisons.
Related terms
Terms
- Cohort
A cohort is a group of users sharing a common start time or event. It is the foundation of cohort-based retention analysis.
- Retention curve
A retention curve plots the share of returning users by period after start. Its shape is the signature of the product and its stability.
- Churn
Churn is the share of users who stop being active over a period. It is the flip side of retention and a direct input to LTV.
- Funnel
A funnel is a sequence of steps from entry to a target action with conversion between them. It shows where users are lost.
Projects
- Cohort Analysis Dashboard
Python inside Tableau: 4 cohort calculations on a TabPy server and 65 tests; a triangular retention matrix with per-cohort ARPU and LTV, an observation-age caveat and a CSV + Hyper export.
Mentioned in
Site material that links to this page.
Projects
- Data Analyst Telegram Bot
A Telegram bot for the analyst without BI: a raw CSV export becomes p-value, lift and 95% CI in 30 seconds — 12 commands, history and HTML export.
- Causal / Uplift — CUPED and Individual Treatment Effects
CUPED cut the standard error by 26% — same power on 5.5k users per arm instead of 10k — and a pre-registered break-even threshold of 0.05 ships the campaign to new users only.
- Churn Prediction — Leakage-Free Retention Model
A leakage-free churn model: recall@top-10% 0.544, 5.44x lift at 0.916 ROC-AUC on a chronological split; 1.75x on the at-risk subgroup, where 69.7% of the cohort is a near-guaranteed negative.
- ClickHouse — ten SQL cases on 50M rows
Nine SQL cases on 50 million events plus an optimisation that leaves the query text untouched: a projection reads a key range instead of a full scan, and seven DuckDB twins cross-check every case.
- Cohort Analysis Dashboard
Python inside Tableau: 4 cohort calculations on a TabPy server and 65 tests; a triangular retention matrix with per-cohort ARPU and LTV, an observation-age caveat and a CSV + Hyper export.
- Browser Mini-Games — Analytics Arcade
10 playable mini-games as self-contained SVGs: 7 analytics (A/B to p<0.05, funnel drop, cohort catch, retention day) and 3 arcade. One file per game, zero dependencies, no build.
- TaskFlow — PostHog Product Analytics Pipeline
Onboarding test on a seeded event stream: completion 55.9% → 70.8% (+26.6%), χ² = 40.10, p < 0.0001 at SRM p = 0.90; 6.3% of completed signups reach a paid upgrade.
- Product A/B & Funnel Analytics — Conversion versus Retention
A 12 000 → 9 623 → 3 384 funnel and A/B on 2 552 users: onboarding lifts activation → paid by 19.59% (p=0.000946), verdict SHIP; at an equal step, conversion adds 10.00% to LTV, retention 8.65%.
- RAG Evaluation Harness — retrieval and generation metrics
RAG pipeline with an offline harness: recall@5 and MRR = 1.00 on 20 questions, correctness 0.37, 0.00 on retrieval-miss control set. TF-IDF, no API keys; faithfulness ≡1.00 — an extractive invariant.
- RFM Analysis of Bank Clients
Segmented a bank's clients into 6 RFM segments: the top 20% hold 38.2% of revenue (Gini 0.324). Synthetic dataset — 1,983 clients, 9,492 transactions.
- SQL Analytics Case Study
26 SQL cases: 25 on a synthetic ~183k-event dataset + 1 real-data case on UCI Online Retail II. Funnel, retention, LTV, attribution, anomalies, dbt layer on DuckDB, live report on GitHub Pages.
- Product Analytics Dashboard (Streamlit)
A product analytics dashboard on a synthetic SaaS dataset (8,000 users): AARRR funnel, cohort retention, revenue (MRR, ARPU, churn) and segmentation — 5 Streamlit pages.
- Product Analytics + A/B on Supabase
Full-stack analytics on Supabase: an A/B on a seeded event stream lifted conversion +11.1pp (p ≈ 1.7e-10, chi-square), with a Streamlit dashboard reading live data through RLS.
- Volta Neobank — Product Analytics
Fixed a neobank's onboarding bottleneck with an A/B test: +5.72pp KYC conversion, €208.5K in 12 mo at 13.9× ROI. 23 projects: funnel → A/B → retention → segmentation → Market & Jobs → RAT v2 → causal.
Posts
- Calibrating A/B methods with simulation: how to verify a method before production
A p-value from a textbook doesn't prove a method — a simulation does. How to test every A/B module with an A/A check under the null and a power curve under the effect: CUPED, peeking, ratio metrics, mSPRT.
- Why the aggregate lies: cohort retention triangles
Average retention across all cohorts mixes customers with different lifetimes and lies upward. How to build a triangular cohort matrix, read observation age, and compare cohorts honestly.
Connections map
Interactive subgraph: 12 nodes and 28 links around this page. Each node is keyboard-focusable; press Enter or Space to open its page. A full list of nodes and their links follows the graphic.
- Cohort Analysis Dashboard : Cohort (Explicit link), Retention (Explicit link), Retention curve (Explicit link), Time to convert (Explicit link), retention (Thematic link)
- Churn : Retention (Explicit link), LTV (Explicit link), NPS (Explicit link), Retention curve (Explicit link), retention (Thematic link)
- Cohort : Retention (Explicit link), Retention curve (Explicit link), Time to convert (Explicit link), Cohort Analysis Dashboard (Explicit link), retention (Thematic link)
- DAU / MAU and stickiness : Retention (Explicit link), North Star metric (Explicit link), Retention curve (Explicit link)
- Funnel : North Star metric (Explicit link), Retention (Explicit link), Time to convert (Explicit link)
- LTV : Churn (Explicit link), Retention (Explicit link)
- North Star metric : DAU / MAU and stickiness (Explicit link), Funnel (Explicit link), Retention (Explicit link)
- NPS : Retention (Explicit link), Churn (Explicit link)
- Retention : Churn (Explicit link), Cohort (Explicit link), DAU / MAU and stickiness (Explicit link), Funnel (Explicit link), LTV (Explicit link), North Star metric (Explicit link), NPS (Explicit link), Retention curve (Explicit link), Cohort Analysis Dashboard (Explicit link), Time to convert (Explicit link), retention (Thematic link)
- Retention curve : Cohort (Explicit link), DAU / MAU and stickiness (Explicit link), Retention (Explicit link), Churn (Explicit link), Cohort Analysis Dashboard (Explicit link), retention (Thematic link)
- Time to convert : Cohort (Explicit link), Funnel (Explicit link), Retention (Explicit link), Cohort Analysis Dashboard (Explicit link), retention (Thematic link)
- retention : Churn (Thematic link), Cohort (Thematic link), Retention (Thematic link), Retention curve (Thematic link), Time to convert (Thematic link), Cohort Analysis Dashboard (Thematic link)
Terms, articles and projects connected to this concept. Tap or click opens a node.