Data Analyst Interview Question

How would you build a cohort retention analysis, and what would you look for in it?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Group users by the period they first did something (usually signup month), then measure the share of each cohort still active in each subsequent period, aligned by periods since start rather than calendar date. Read it two ways: down a column to see whether newer cohorts retain better than older ones, and across a row to see where in the lifecycle users drop off.

Why interviewers ask this

Cohort analysis is the standard tool for separating growth from churn, and interviewers want to know you can build it and interpret it. The key signals are defining active precisely, aligning on periods since start rather than calendar time, and knowing that the interesting comparison is between cohorts rather than the absolute numbers.

How to structure your answer

  • Define the cohort key and the active definition precisely.
  • Align on periods since first activity, not calendar months.
  • Explain reading down columns versus across rows.
  • Watch for the incomplete most recent cohort.
  • Connect a finding to a decision someone can act on.

Example answer

Spoken example, first person

First I pin down two definitions, because everything depends on them: what starts a cohort, usually first purchase or signup month, and what counts as retained, which has to be a real action rather than a login. Then it is a matrix, cohort down the side, months since start across the top, with the percentage of that cohort active in each month. Aligning on months since start rather than calendar months is what makes cohorts comparable at all. Reading down a column tells me whether product and onboarding changes are working, so if the month three retention of recent cohorts is climbing, something we did is landing. Reading across a row tells me where the lifecycle problem is. On a subscription product I worked on, the drop was almost entirely between month one and month two, which pointed at onboarding rather than long term value, and that reframed the roadmap. The trap I always flag is the newest cohort, which is incomplete and will look artificially bad if you plot it uncritically.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you define active for a product used weekly rather than daily?
  • How do you handle the partial data in the most recent cohort?
  • What is the difference between retention and churn rate here?

Related data analyst questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot