Improving Performance through Customer Segmentation and Shipping Cost Optimization: A Case Study on Walmart
Roll Number: 23f1001947
Program: IITM BS Degree, Indian Institute of Technology, Madras
Submission Date: November 27, 2024
This project focuses on analyzing Walmart's retail sales operations in the United States, addressing two key challenges:
- Shipping Cost Optimization – Reducing shipping expenses by optimizing shipping modes based on order characteristics and priority.
- Customer Segmentation and Retention – Enhancing customer engagement and retention through targeted marketing strategies based on customer segmentation.
- Optimize Shipping Costs to improve profit margins while maintaining timely deliveries.
- Segment Customers to provide tailored marketing strategies and enhance customer satisfaction.
The project uses the Walmart Retail Sales Data sourced from data.world.
- Size: 1,037,247 rows, 23 features
- Key Features:
city: The city where the order was placedcustomer_age: Age of the customerorder_priority: Priority level of the order (Critical, High, Medium, Low)ship_mode: Shipping method (Regular Air, Express Air, Delivery Truck)unit_price: Price per unit of the productshipping_cost: Cost of shipping each order
- Removed invalid or missing data.
- Converted object-type columns to numerical or datetime types.
- Scaled numerical features and encoded categorical variables for machine learning models.
- Correlation Analysis: Identified significant correlations between shipping cost, unit price, and order quantity.
- Visualization: Used bar charts, scatter plots, and line graphs to understand patterns and relationships in the data.
- Model Used: Ridge Regression (L2 regularization)
- Key Insights:
- Higher-priced items incur higher shipping costs due to handling and logistics.
- Order quantity has a smaller but notable impact on shipping expenses.
- Performance:
- Mean Absolute Error (MAE): 968.80
- R² Score: 0.5623
- Clustering Algorithm: K-means clustering
- Features Used: Customer age, order quantity, sales, profit, and product category.
- Cluster Characteristics:
- Cluster 0: Younger customers, high order quantities, moderate sales.
- Cluster 4: Mid-age customers, high sales, and interest in Technology and Office Supplies.
- Other clusters exhibited distinct purchase behaviors and profit levels.
- Critical Orders: Express Air is cost-effective for urgent deliveries.
- High Priority Orders: Regular Air provides significant savings without compromising delivery speed.
- Medium & Low Priority Orders: Delivery Truck is the most cost-effective option.
- Younger customers (Cluster 0) favor Office Supplies, while high-value customers (Cluster 4) prefer Technology.
- Older customers (Clusters 1 and 3) purchase smaller quantities but consistently, indicating potential for loyalty programs.
- Bulk Shipping & Negotiated Rates: Implement bulk shipping and negotiate rates for high-value items.
- Targeted Marketing:
- Cluster 0: Introduce loyalty programs and small-business discounts.
- Cluster 4: Offer exclusive product releases and bulk purchase discounts.
- Tiered Shipping Policy:
- Critical Orders: Use Express Air for timely delivery.
- High Priority Orders: Shift to Regular Air for cost savings.
- Medium & Low Priority Orders: Use Delivery Truck for bulk items to reduce expenses.
This project provides a strategic framework to enhance operational efficiency and customer engagement for Walmart. By optimizing shipping costs and implementing targeted marketing strategies, Walmart can improve profitability and customer satisfaction.
Proposal.pdf: Project proposal with background, objectives, and expected outcomes.Final_Report.pdf: Detailed final report with analysis, findings, and recommendations.Presentation.pptx: Project presentation summarizing the key insights and outcomes.
Special thanks to data.world for providing the dataset and the faculty of IITM BS Degree for their guidance throughout this project.