Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Monday, Dec 7.Claim the deal
1Framing the ProblemChapter 1

Every subscription product loses users. Some drift away gradually over weeks of declining engagement. Others vanish overnight after a payment failure or a bad experience. The business wants to find users heading toward the exit before they are gone, so a retention team can reach out with the right offer at the right time.

The first thing I would clarify in the interview is what "churn" means for this product. We are not predicting subscription cancellation dates. Churn here is behavioral: a user is considered churned if they have zero meaningful activity (logins, transactions, content creation, core feature usage) for 90 consecutive days. That distinction changes the label, the features, and the evaluation strategy.

The ML task is a user-level binary classification problem. Given a user's behavioral history over an observation window (the past 30 to 90 days of activity), predict the calibrated probability that the user will have zero meaningful activity in the following 90 days. The output is not a binary yes/no flag. It is a calibrated risk score that the retention team consumes via a ranked list or customer relationship management (CRM) integration, deciding whom to contact based on their limited outreach capacity.

The system runs as a daily batch pipeline. User activity events flow into an event warehouse. Spark computes point-in-time features per user for the current observation window. A gradient-boosted tree model produces a calibrated churn probability per user, and scores are written to a prediction store. The retention platform reads scores above an intervention threshold and pushes flagged users into the CRM for outreach. A separate offline training loop assembles labeled data as 90-day label windows mature, trains new models, and promotes them after temporal evaluation passes.

Your progressLogin to save progress
Spot an issue or have a suggestion?