Demo Project

Customer Segmentation

RFM analysis on 200 customers. Segments into Champions, Loyal Customers, Potential Loyalists, At Risk, and Lost based on Recency, Frequency, and Monetary scores.

Key Metrics

200
Customers Analyzed
5
Segments Identified
28%
Revenue from Top Segment

Static Output

Customer Segmentation chart

Four-panel visualization: segment distribution, average spend by segment, recency vs spend scatter, and frequency histogram.

Interactive Chart Try It

Hover over data points to see customer details. Zoom and pan for deeper exploration.

Open interactive chart full screen

Segment Breakdown

How It Works

Each customer gets scored 1-5 on three dimensions:

Recency
Days since last purchase. Lower is better.
Frequency
Total purchases. Higher is better.
Monetary
Total amount spent. Higher is better.

Combined RFM score (3-15) maps to one of five customer segments.

Notebook

Run this analysis step by step in Jupyter Notebook. Each cell is documented with explanations.

Download .ipynb Notebook

Tech Stack

Python Pandas NumPy Matplotlib Seaborn Plotly Scikit-learn
View Repository Download Script Architecture Getting Started Interactive Chart