PlaylistPro: End-to-End Customer Churn Analytics & Optimization

Client: PlaylistPro

Executive Summary: PlaylistPro, a subscription-based music streaming service, faced a critical business challenge: nearly 50% of subscribers were churning, directly threatening recurring revenue and long-term profitability. This project delivered a comprehensive analytics solution combining descriptive analytics, predictive modeling (XGBoost, Random Forest), and prescriptive optimization (Mixed-Integer Linear Programming) to identify at-risk customers, quantify churn risk, and optimize retention resource allocation—achieving a 2,319% ROI on targeted interventions.

Technical Skills Demonstrated: Python • R • Machine Learning (XGBoost, Random Forest, Logistic Regression) • Optimization (Gurobi MILP) • Statistical Analysis • Data Visualization • Business Strategy

Three-Stage Analytics Framework

📊 Stage 1: Descriptive

What happened?

Analyzed 125K customers across 19 variables. Discovered behavioral patterns (not demographics) drive churn: low listening hours, high skip rates, subscription pauses.

🤖 Stage 2: Predictive

Who will churn?

Built 4 ML models. XGBoost achieved 94% AUC, ranking customers by churn risk. Top predictors: subscription type, service inquiries, listening hours.

🎯 Stage 3: Prescriptive

How to act optimally?

MILP optimization under budget constraints. Achieved 2,319% ROI by targeting 75 high-value customers, balanced across tiers with fairness constraints.

The Problem: A Company Losing Half Its Customers

Customer Churn Distribution

The numbers told a stark story: 51.3% of PlaylistPro's 125,000 customers had churned. This wasn't a small segment or niche issue—it was a systemic retention crisis threatening the company's survival. With churn and retention nearly equal, every customer decision mattered.

The business question was urgent: How can we identify customers at highest risk of churning before they leave, and deploy retention resources optimally to protect revenue?

The company's reactive approach wasn't working. Marketing dollars were wasted on loyal customers who would have stayed anyway, while truly at-risk users received insufficient attention. PlaylistPro needed a data-driven system to predict churn risk and guide intervention strategies.

Stakeholders & Business Impact

This analysis directly addresses the needs of multiple organizational stakeholders:

Discovery: What Drives Customers Away?

Analyzing 125,000 customer records across 19 behavioral and demographic variables, we discovered that no single factor alone explained churn. Instead, churn emerged from patterns of behavior that, when combined, signaled customer disengagement. The business needed a sophisticated model to detect these patterns early.

Feature Correlation Heatmap

Correlation analysis reveals behavioral factors cluster together, driving churn patterns

Key Behavioral Signals Emerged:

The Solution: Predicting Risk Before Customers Leave

We built and tested four machine learning models to predict which customers would churn: Logistic Regression (baseline), Stepwise Logistic Regression (feature selection), Random Forest (ensemble), and XGBoost (gradient boosting).

Model Accuracy Comparison

XGBoost emerged as the winner with 84.79% accuracy and an AUC of 0.94—meaning it could reliably rank customers by churn risk. But accuracy alone wasn't the goal. We needed to understand why the model made its predictions so we could guide business strategy.

What Mattered Most: Variable Importance

XGBoost Variable Importance Random Forest Variable Importance

Across all models, three factors consistently ranked as the most powerful churn predictors:

  1. Subscription Type: Free and student tiers churned at far higher rates than premium and family plans
  2. Weekly Listening Hours: Low engagement was the strongest behavioral signal of impending churn
  3. Customer Service Inquiries: High inquiry frequency indicated unresolved friction driving customers away

This cross-model consistency gave leadership confidence: these weren't statistical artifacts—they were real, actionable business levers.

Prescriptive Optimization: Maximizing ROI Under Real-World Constraints

Prediction alone doesn't drive business value—optimization determines how to act on those predictions. I developed a Mixed-Integer Linear Programming (MILP) model using Gurobi to optimize retention spending under PlaylistPro's budget and operational constraints.

The Technical Challenge

This wasn't a simple ranking problem. The optimization had to balance competing objectives:

The Technical Implementation

The MILP model optimizes binary decision variables (contact/no contact for each customer) subject to linear constraints. The objective function maximizes: Σ (churn_probability × CLV × retention_effectiveness - intervention_cost) for selected customers.

Key constraints implemented:

Optimization Results: Quantified Business Impact

At $150 Weekly Budget:

  • ✅ 75 customers targeted out of 250 (30% contact rate)
  • ✅ $3,478 expected net retained value
  • ✅ 2,319% return on investment
  • ✅ 100% budget utilization (fully optimized)
  • ✅ Equitable tier coverage across all subscription types

Sensitivity Analysis: Testing budget scenarios from $50 to $1,000 per week revealed that marginal returns diminish after $400-$500, defining the optimal spending range. This allows leadership to make data-driven budget allocation decisions with clear ROI expectations.

ROI vs Weekly Budget Net Value vs Weekly Budget

Fairness & Targeted Coverage Analysis

The optimization doesn't just maximize ROI—it ensures equitable treatment across customer segments while intelligently targeting based on churn risk and customer lifetime value.

Churn Risk vs CLV Scatter Budget Coverage Analysis

Why This Demonstrates Both Technical and Business Skills

Technical depth: Formulated a constrained optimization problem, implemented it in Gurobi (industry-standard solver), and validated the solution with sensitivity testing across multiple parameter ranges.

Business acumen: Translated abstract model outputs into actionable metrics (ROI, budget efficiency curves, fairness guarantees) that non-technical stakeholders can use to make strategic decisions. The model doesn't just find optimal solutions—it explains why those solutions matter financially.

Taking Action: A Risk-Based Retention System

The optimization framework guides a real-time, risk-based intervention system that personalizes retention offers:

This tiered approach optimizes every dollar spent on retention. Low-risk customers don't get unnecessary discounts. High-risk customers receive compelling offers calibrated to their likelihood of churning.

Business Recommendations: What Leadership Should Do Next

1. Launch Engagement Campaigns Immediately

Weekly listening hours is the dominant predictor. Marketing should deploy personalized email nudges featuring new releases in users' favorite genres, push notifications for followed artists, and weekly listening summaries that gamify usage. Monitor engagement as a leading indicator and trigger retention offers when usage drops.

2. Redesign Free and Student Tier Strategy

These tiers exhibit dramatically higher churn. Leadership must decide: Are they effective acquisition funnels worth the churn cost, or should resources focus on converting and retaining paying customers? Consider tier-specific campaigns emphasizing upgrade paths and transition discounts.

3. Proactively Address Service Friction

High inquiry frequency predicts churn because it signals unresolved issues. Flag customers who contact support multiple times within a short window for retention follow-up. Analyze inquiry themes (billing issues, technical bugs, feature confusion) to identify and fix systemic product problems.

4. Improve Content Recommendation Quality

Higher skip rates correlate with churn. Invest in recommendation algorithms that dynamically adjust based on skip behavior. Introduce genre exploration features and test whether giving users more control over recommendations reduces skip rates and improves retention.

5. Segment Strategies by Age

The U-shaped age-churn relationship requires targeted approaches. For younger users, emphasize social features and gamification. For older users, simplify the interface and provide curated playlists. Middle-aged users benefit from family plans and loyalty rewards.

Measurable Business Value Delivered

Full Technical Documentation

Explore the complete analytical methodology, model diagnostics, optimization implementation, and statistical validation:

View GitHub Repository
← Back to Home