Skip to content

theammarngp-makes/ecommerce-rfm-customer-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 E-Commerce RFM Customer Segmentation

📌 Problem Statement

Segment customers based on purchasing behavior using RFM (Recency, Frequency, Monetary) analysis to identify high-value users, detect churn risk, and improve retention strategies.

⚡ Quick Snapshot

  • 📊 Dataset: Olist E-commerce (Brazil)
  • 🛠 Tools: SQL, Python, Tableau
  • 🎯 Technique: RFM Segmentation
  • 📈 Goal: Customer segmentation & revenue optimization

📁 Repository Structure

Folder / File Content
📁 Pandas RFM.py - Python EDA>
📁 dashboard RFM.png & rfm_python.png — Tableau visual assets.
📁 data RFM.csv & RFM Segmentation.csv — Insights generated from SQL queries.
📁 insights insights.md — Detailed business analysis summary.
📁 sql RFM.sql & RFM Segmentation Analysis.sqlTechnical documentation and script logic.
📄 README.md Project overview and navigation.
⚖️ LICENSE MIT License information.

📊 RFM Segment Summary

Segment Customers Revenue Revenue %
🟢 Loyal 41,740 5.05M 32.12%
🔵 Others 25,402 4.09M 26.00%
🟡 Champions 13,354 4.09M 25.98%
🔴 Lost 12,593 2.07M 13.18%
🟠 At Risk 1,900 0.43M 2.72%

🔍 Key Highlights

  • Loyal customers form the largest segment and contribute the highest revenue share
  • Champions generate high revenue despite a smaller customer base
  • Revenue is heavily concentrated among repeat customers
  • Lost customers contribute a significant portion of revenue, indicating churn impact
  • At-Risk customers represent early churn signals and require timely intervention

📊 Dashboard Preview

RFM

🌐 Live Interactive Dashboard

View Interactive Dashboard

💡 Business Recommendations

  • Retain high-value customers (Champions) through personalized engagement
  • Increase revenue from Loyal customers via upselling and cross-selling
  • Re-engage At-Risk users before churn
  • Run win-back campaigns for Lost customers

📂 Dataset

Dataset not included due to size limitations.

Source: https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce

👤 Author

Mohammad Ammar
Aspiring Data Analyst | SQL | Tableau

🔗 Related Projects

⭐ If you found this project useful, consider giving it a star!

🚀 Skills & Tools Used

🎯 Project Outcome

This project demonstrates the ability to apply customer segmentation techniques to derive actionable insights for improving retention, revenue, and marketing strategies.

About

RFM (Recency, Frequency, Monetary) analysis using SQL to segment customers and identify high-value, loyal, and at-risk users in an e-commerce dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages