InterviewStack.io LogoInterviewStack.io

Cohort Analysis and Retention Metrics Questions

Cohort analysis and retention metrics cover methods for grouping users into cohorts by acquisition date, behavior, channel, geography, or other attributes and tracking their behavior over time. Candidates should be comfortable defining cohorts, computing retention curves and retention tables, and calculating key metrics such as day one retention, day seven retention, rolling retention, repeat engagement, churn rates, and cohort lifetime value. Understand how to interpret retention curve shapes and cohort trends to diagnose product market fit, onboarding problems, or channel quality, and how retention drives unit economics and revenue. Practical skills include writing queries in structured query language to segment users and produce cohort tables, plotting retention curves, comparing cohorts across acquisition channels, running cohort based experiments and A B tests, and using cohort insights to prioritize product changes and growth experiments.

MediumTechnical
41 practiced
Explain survivorship bias in cohort analysis, provide three concrete examples where it can mislead product decisions (e.g., analyzing active users only), and propose statistical or instrumentation mitigations for each example.
MediumTechnical
41 practiced
Using Python and seaborn/matplotlib, write a code sketch to plot retention curves for multiple cohorts with 95% confidence bands per point. Assume input is a pivoted DataFrame where rows are cohort labels and columns are day offsets containing retention rates. Explain how you would compute pointwise confidence intervals for each cell.
MediumTechnical
30 practiced
Write an efficient SQL query (Postgres or BigQuery) that produces a weekly retention table for acquisition cohorts (cohort_week) showing unique active users per cohort for weeks 0..12. Schema: users(user_id, created_at), events(user_id, event_time). Aim to minimize scans of the events table and explain trade-offs if you choose pre-aggregation.
HardTechnical
37 practiced
Design an offline evaluation framework to test a recommender system intended to improve retention. Define necessary datasets, how to construct training and testing sessions, metrics that reflect long-horizon retention (not just immediate click-through), and how to address selection bias when using historical logs.
EasyTechnical
55 practiced
Define the following terms precisely and give an example calculation: churn rate, retention rate, rolling retention, repeat engagement, and day-N retention. For example, compute each metric for a cohort of 1000 users where 200 return on day 1 and 150 return on day 7.

Unlock Full Question Bank

Get access to hundreds of Cohort Analysis and Retention Metrics interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.