Skip to content

s-kumar5/Customer-Churn-Analysis

Repository files navigation

📊 Customer Churn Analysis & Business Insights

Using Python & SQL


🔎 Project Overview

Customer churn is one of the biggest challenges for subscription-based businesses.
Losing customers directly impacts revenue, profitability, and long-term growth.

This project analyzes customer churn patterns using Python and SQL to:

  • Identify high-risk customer segments
  • Discover key churn drivers
  • Generate actionable business insights
  • Recommend retention strategies

The analysis simulates a real-world business scenario for telecom/subscription-based companies.


🎯 Business Problem

Companies struggle to answer:

  • Why are customers leaving?
  • Which customer segments are most at risk?
  • How can churn be reduced strategically?
  • What business actions improve retention?

This project addresses these questions using structured data analysis.


🛠 Tools & Technologies Used

  • Python
    • Pandas (Data Cleaning & Manipulation)
    • NumPy
    • Matplotlib
    • Seaborn
  • SQL
    • Aggregation Functions
    • CASE Statements
    • Group By Analysis
    • Window Functions
  • Jupyter Notebook

📁 Dataset Description

Dataset: Telco Customer Churn Dataset

The dataset includes:

  • Customer demographics
  • Contract details
  • Billing information
  • Service subscriptions
  • Churn status (Yes/No)

Target Variable: Churn


🧹 Data Cleaning & Preparation

The following preprocessing steps were performed:

  • Converted TotalCharges from object to numeric
  • Handled missing values
  • Created tenure-based customer segments
  • Validated data consistency

📊 Exploratory Data Analysis (EDA)

Key analyses performed:

  • Overall churn rate calculation
  • Churn distribution visualization
  • Contract type vs churn comparison
  • Tenure vs churn behavior
  • Monthly charges vs churn pattern
  • Tenure group segmentation

📈 Key Business Insights

  • Month-to-month contract customers show significantly higher churn.
  • Customers with low tenure (0–12 months) are most likely to churn.
  • Higher monthly charges correlate with increased churn probability.
  • Long-term contract customers demonstrate stronger retention behavior.
  • Early-stage customers require stronger engagement strategies.

💡 Business Recommendations

Based on analysis:

  • Promote long-term contracts with loyalty incentives.
  • Offer retention discounts for high monthly charge customers.
  • Improve onboarding strategy for new customers.
  • Design targeted campaigns for high-risk tenure segments.
  • Implement proactive engagement during first 12 months.

📷 Project Visualizations

Churn Distribution Contract Analysis Tenure Analysis MonthlyCharges Analysis


📌 Skills Demonstrated

  • Data Cleaning & Preprocessing
  • Exploratory Data Analysis
  • Business Insight Generation
  • SQL Aggregations & Conditional Logic
  • Data Visualization
  • Analytical Thinking
  • Problem Solving

🎓 Learning Outcome

This project demonstrates how structured data analysis can:

  • Identify churn drivers
  • Improve customer retention strategies
  • Support data-driven decision-making

It reflects real-world business analytics workflow used by Data Analysts.


👤 Author

Sunil Kumar Aspiring Data Analyst SQL | Power BI | Python | Business Analytics

About

Business analysis of customer churn patterns with exploratory data analysis, SQL queries, and strategic recommendations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors