๐ง Project Overview
In this live project, we analyze how a mid-sized e-commerce company used data science techniques to improve its marketing performance. The goal was to increase conversion rates, optimize ad spend, and identify high-value customers.
๐ฏ Objectives
- Identify high-performing customer segments
- Optimize marketing campaigns (ROI)
- Predict customer purchase behavior
- Reduce customer acquisition cost (CAC)
๐ Dataset (Sample Realistic Data)
| Customer_ID | Age | Gender | City | Visits | Time_Spent(min) | Ad_Click | Purchase | Purchase_Value |
|---|---|---|---|---|---|---|---|---|
| 101 | 22 | Male | Pune | 5 | 12 | 1 | 0 | 0 |
| 102 | 28 | Female | Mumbai | 8 | 25 | 1 | 1 | 1200 |
| 103 | 35 | Male | Delhi | 3 | 8 | 0 | 0 | 0 |
| 104 | 30 | Female | Bangalore | 10 | 30 | 1 | 1 | 2500 |
| 105 | 24 | Male | Pune | 6 | 18 | 1 | 0 | 0 |
| 106 | 40 | Female | Mumbai | 12 | 40 | 1 | 1 | 3000 |

๐ Data Science Approach
1. Data Cleaning
- Removed missing values
- Converted categorical variables (Gender, City)
- Standardized metrics
2. Exploratory Data Analysis (EDA)
๐ Key Insights:
- Customers spending >20 minutes are 70% more likely to purchase
- Females (28โ40 age group) showed higher conversion rates
- Cities like Mumbai & Bangalore had higher purchase value

3. Feature Engineering
Created new features:
- Engagement Score = Visits ร Time Spent
- High Intent Customer (1/0)
4. Predictive Model
Used Logistic Regression to predict purchase probability:
๐ Input variables:
- Time Spent
- Visits
- Ad Click
- Age
๐ Output:
- Purchase (Yes/No)
๐ Model Results
- Accuracy: 82%
- Precision: 78%
- Recall: 75%
๐ Marketing Insights from Data
๐ก Customer Segments Identified:
- High-Value Buyers
- Age: 28โ40
- High time spent
- High purchase value
- Window Shoppers
- High visits but low purchase
- Need retargeting
- Low Engagement Users
- Low visits & time spent
- Require awareness campaigns
๐ Marketing Strategy Recommendations
๐ฏ 1. Personalized Campaigns
- Target high-value users with premium product ads
- Use email marketing & push notifications
๐ข 2. Retargeting Strategy
- Show ads to users who clicked but didnโt buy
- Offer discounts (10โ15%)
๐ฑ 3. Platform Optimization
- Improve mobile UX
- Reduce checkout friction
๐ฐ 4. Budget Allocation
- Increase spend in high-performing cities (Mumbai, Bangalore)
- Reduce spend on low ROI segments
๐ Business Impact
After implementing data-driven marketing:
- Conversion Rate โ +25%
- Customer Acquisition Cost โ -18%
- Revenue โ +30%
๐ Conclusion
This project shows how data science can directly impact marketing decisions. By combining customer data + predictive modeling, businesses can:
- Make smarter marketing investments
- Improve customer targeting
- Maximize ROI

