Customer segmentation is the process of dividing a customer base into groups of individuals with similar characteristics. This project uses R to analyze customer data and implement clustering techniques to identify meaningful segments.
- File:
Mall_Customers.csv
- Columns:
CustomerID
: Unique customer identifierGender
: Male/FemaleAge
: Customer ageAnnual Income (k$)
: Customer's yearly incomeSpending Score (1-100)
: Score assigned based on spending behavior
- Data Exploration
- Displaying the first few rows
- Checking for missing values
- Summary statistics and standard deviation analysis
- Data Visualization
- Gender distribution
- Age distribution
- Income vs. Spending Score plots
- Clustering
- Using the Elbow method to determine optimal clusters
- Applying K-means clustering
- Visualizing cluster results
- Identified optimal clusters for customer segmentation
- Visualized customer groups based on spending behavior and income
- Gender Analysis: The dataset shows that female customers are slightly more than male customers, indicating potential targeted marketing strategies for different demographics.
- Age Distribution: The majority of customers fall within the 30-35 age group, suggesting that marketing campaigns should focus on this age range.
- Spending Behavior: Customers with mid-range annual incomes tend to have higher spending scores, highlighting a key target audience for promotional offers.
- Cluster Findings:
- High-income, high-spending customers form a premium segment, ideal for luxury product marketing.
- Low-income, low-spending customers represent a budget-conscious segment that may respond well to discounts.
- Young customers with moderate income and high spending scores indicate an opportunity for trendy and lifestyle-based promotions.
- R (version 4.0+ recommended)
- Required libraries:
ggplot2
,dplyr
,cluster
,factoextra
- Install required libraries using
install.packages("package_name")
- Run the provided R script or execute the notebook step by step
This project provides an insightful analysis of customer segmentation, helping businesses target specific customer groups more effectively.
Hari Patel