Measure Week-One Reading Retention for New Kindle Unlimited Subscribers
Last updated: November 29, 2026
Quick Overview
For each weekly cohort of new Kindle Unlimited subscribers, compute the share who read at least one page between day 7 and day 13 after their subscription start.
Amazon
November 29, 20260
0
0 solved
For each weekly cohort of new Kindle Unlimited subscribers, compute the share who read at least one page between day 7 and day 13 after their subscription start.
A retention query in the style of Amazon Devices and Digital content analytics, where early engagement predicts whether a trial converts to paid. The interviewer looks for a precise window definition, exclusion of cohorts that cannot be measured yet, and a left join that preserves non-readers.
What the Interviewer Expects
- Define day 7 to 13 precisely relative to each subscriber's start date
- Exclude subscribers whose week-one window is not fully observed
- Keep non-readers in the denominator with a LEFT JOIN
- Deduplicate readers so multiple sessions count once
- Group cohorts by start week
Key Topics to Cover
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
- How would you compute a full day 0 to day 28 retention curve?
- How would you compare subscribers who came from a free trial versus a paid start?
- What if a subscriber cancels on day 5: are they in the denominator?
- How would you test whether a new onboarding email changed week-one retention?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice SQL ProblemsSample Answer
Clarify the Data
Tables:
ku_subscriptions(customer_id, start_date, source): one row per subscription start.reading_sessions(customer_id, session_date, pages_read): one row per reading session.
Assumptions: u...
Approach
- First start per customer.
- Keep only subscribers with
start_date + 13on or before the last date in the reading data, otherwise recent starters look like non-readers. - Find distinct customers...