Feature Importance Ranking
Feature Importance Ranking
Understanding which factors drive customer churn allows businesses to prioritize retention efforts effectively. In this project, we utilize the coefficients of the Logistic Regression model to rank features based on their influence on a customer's decision to leave or stay.
Key Predictors of Churn
The model identifies specific behavioral and service-related triggers. Features with positive coefficients increase the likelihood of churn, while those with negative coefficients indicate factors that contribute to customer retention.
| Feature | Impact Direction | Business Insight | | :--- | :--- | :--- | | Support Calls | Positive (High) | Frequent technical or billing issues are the strongest indicators of dissatisfaction. | | Monthly Bill | Positive | Higher costs relative to perceived value often lead customers to seek cheaper alternatives. | | Contract Type | Positive | Customers on "Month-to-Month" plans have higher churn flexibility compared to long-term contracts. | | Tenure Months | Negative (High) | Long-term customers are significantly less likely to churn, suggesting brand loyalty over time. | | AutoPay | Negative | Automated billing reduces "payment friction" and decreases the likelihood of service lapses. |
Visualizing Feature Influence
The following code snippet demonstrates how the model's coefficients are extracted and mapped to the dataset features to generate the importance ranking:
import pandas as pd
import matplotlib.pyplot as plt
# Extract coefficients from the trained Logistic Regression model
coeffs = pd.Series(model.coef_[0], index=X.columns)
# Sort and plot the features
coeffs.sort_values().plot(kind='barh', figsize=(10,6))
plt.title('Feature Influence on Churn')
plt.xlabel('Coefficient Value (Magnitude indicates strength of impact)')
plt.ylabel('Customer Attributes')
plt.show()
Strategic Recommendations
Based on the feature ranking, the following actions are recommended to reduce churn:
- Proactive Support: Flag customers who exceed 3–4 support calls in a single month for a proactive "Customer Success" reach-out.
- Incentivize AutoPay: Offer small discounts or rewards for customers who switch from manual billing to AutoPay.
- Contract Migration: Targeted promotions should encourage monthly subscribers to move to annual plans, as tenure is a strong predictor of retention.
- High-Bill Monitoring: Monitor accounts with sudden spikes in
MonthlyBillorDataUsageGB, as these customers are at a higher risk of "bill shock" churn.