Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Customer-Behavior-Clustering

πŸ›οΈ Customer Segmentation using RFM Analysis and Clustering This project segments customers based on their purchasing behavior using RFM (Recency, Frequency, Monetary) analysis and clustering algorithms. It helps businesses identify different types of customers (e.g., loyal, lost, at-risk) and improve marketing strategies.

πŸ“Œ Problem Statement "Segment customers of an online retail store based on their purchasing behavior using unsupervised learning. The goal is to discover meaningful groups like loyal customers, at-risk customers, and high spenders to enable targeted marketing."

πŸ“‚ Dataset Name: Online Retail Dataset

Source: UCI Machine Learning Repository

Attributes:

InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country

πŸ”§ Techniques Used 🧼 Data Cleaning

Removed canceled orders (InvoiceNo starting with "C")

Dropped rows with missing CustomerID

Removed rows with negative or zero Quantity or UnitPrice

πŸ“Š RFM Feature Engineering

Recency: Days since last purchase

Frequency: Number of unique purchases

Monetary: Total amount spent

πŸ“ˆ Unsupervised Clustering

k-Means with Elbow Method to determine optimal k

Cluster labeling: Champions, Loyal Customers, At Risk, Lost, etc.

πŸ“‰ Visualization

3D Plot using Plotly

Cluster heatmaps, bar charts

πŸ“¦ Libraries Used bash Copy Edit pandas numpy matplotlib seaborn plotly scikit-learn ydata-profiling πŸ“Š Key Visuals πŸ“Œ Elbow Curve to choose number of clusters

πŸ”Ί 3D Scatter Plot of RFM Clusters

πŸ”₯ Heatmap of average RFM values per segment

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages