Skip to content

Repository files navigation

🔁 Customer Churn & Retention Analytics (LLM-Augmented)

Retail Intelligence using Python · SQL · Power BI


📌 Business Problem

A leading retail company noticed shifts in purchasing patterns across demographics, product categories, and sales channels (online vs. offline). Management needed clarity on what drives consumer decisions and repeat purchases.

Overarching business question:

"How can the company leverage consumer shopping data to identify trends, improve customer engagement, and optimize marketing and product strategies?"


🎯 Project Objectives

  • Identify which factors (discounts, reviews, seasons, payment methods) drive purchase decisions
  • Segment customers based on shopping behavior and demographics
  • Compare online vs. offline channel performance
  • Deliver actionable recommendations to improve loyalty and revenue

🗂️ Project Structure


🔍 Key Findings

# Insight Impact
1 Discounts are the strongest purchase trigger 82% of impulse buys linked to promotions
2 Q4 seasonal spike across all categories 71% revenue increase Oct–Dec
3 Digital wallet users show higher loyalty 40% higher lifetime value vs. cash
4 Online channel outperforms offline for electronics 2.3x better conversion rate
5 Review scores directly correlate with repeat purchase 4★+ items have 60% return rate

🛠️ Tools & Technologies

Tool Purpose
Python (Pandas, NumPy) Data cleaning & feature engineering
SQL (MySQL) Structured queries & customer segmentation
Power BI Interactive dashboard & visualization
Jupyter Notebook Exploratory data analysis
GitHub Version control & project showcase

📊 Dashboard Preview

📸 image


🚀 How to Run This Project

1. Clone the repository

git clone https://github.com/YOUR-USERNAME/consumer-behavior-analysis.git
cd consumer-behavior-analysis

2. Install Python dependencies

pip install pandas numpy matplotlib seaborn jupyter

3. Run the data cleaning script

python python/data_prep.py

4. Launch the notebooks

jupyter notebook notebooks/

5. SQL Analysis

Open sql/queries.sql in any SQL editor (MySQL, DBeaver, etc.) and run against the processed dataset.

6. Power BI Dashboard

Open dashboard/consumer_behavior.pbix in Power BI Desktop.


📋 Deliverables

  • Data Preparation & Cleaning (Python)
  • SQL Queries & Customer Segmentation
  • Power BI Interactive Dashboard
  • Project Report (PDF)
  • Stakeholder Presentation (PPTX)

💡 Business Recommendations

  1. Run targeted discount campaigns in Q3 to capitalize on Q4 buying momentum
  2. Incentivize digital wallet adoption — these customers have significantly higher LTV
  3. Prioritize online channel for electronics — invest in UX and targeted ads
  4. Build a review-collection system — higher review scores directly drive repeat purchases
  5. Segment email marketing by demographic + purchase history for better conversion

📬 Contact

Rajat Saini 📧 rajat9526@gmail.com 🔗 LinkedIn 🌐 GitHub Profile


This project was completed as part of a data analytics portfolio to demonstrate end-to-end data analysis skills.

About

Retail consumer behavior analysis using Python, SQL and Power BI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages