Advanced
Open
Pro
Point-in-Time Correctness for a Churn Model
You're building weekly churn-prediction training rows: for each customer,
one row per week t, label = "cancelled within 30 days after t". The
warehouse gives you these tables: customers (current snapshot, one row
per customer, overwritten daily), support_tickets (event log with
timestamps), and subscription_events (event log: upgrades, downgrades,
cancellations, with timestamps).
- Identify two specific ways naively joining
customerswould leak future information, and explain the mechanism. - Design a leakage-safe way to compute
tickets_last_90dfor the row at week t. subscription_eventscontains the rowevent_type="cancelled". Is it ever safe to use this table to build features? What's the rule?
Share this question