This project analyzes customer churn in a telecommunications company using machine learning and data visualization techniques. The analysis is based on the IBM Telco Customer Churn Dataset from Kaggle. The analysis includes customer demographics, service usage patterns, and predictive modeling to identify key factors contributing to customer churn. This project analyzes customer churn in a telecommunications company using machine learning and data visualization techniques. The analysis includes customer demographics, service usage patterns, and predictive modeling to identify key factors contributing to customer churn.
PRO_1.py
: Initial exploratory data analysis and basic statisticsPRO_2.py
: Advanced analysis with visualizations and machine learning modelanalysis_summary.py
: Executive summary with key findings and recommendationsplots/
: Directory containing generated visualizationstelco.csv
: Original dataset
- Overall churn rate: 26.54%
- Fiber Optic service has highest churn rate (40.72%)
- Top churn reasons are competitor-related (better devices, better offers)
- Model achieves 92% accuracy in predicting churn
The project generates six key visualizations:
- Customer Demographics Analysis
- Customer Value Analysis
- Service Usage Patterns
- Top Churn Reasons
- Correlation Analysis
- Feature Importance in Churn Prediction
Random Forest Classifier Results:
- Overall Accuracy: 92%
- Precision: 93% (Non-churn), 90% (Churn)
- Recall: 96% (Non-churn), 81% (Churn)
- Python 3.x
- pandas
- numpy
- matplotlib
- seaborn
- scikit-learn
- Clone the repository
- Ensure all required packages are installed
- Run the scripts in order:
python3 PRO_1.py python3 PRO_2.py python3 analysis_summary.py
-
Service Improvement:
- Focus on Fiber Optic service quality
- Enhance device offerings
- Implement competitive pricing
-
Customer Support:
- Improve support staff training
- Implement regular satisfaction surveys
- Develop proactive support protocols
-
Retention Strategy:
- Target high-risk customers
- Create competitive counter-offers
- Focus on early tenure customers
MIT License