This project performs customer segmentation and prediction using the Kaggle dataset 'Customer Personality Analysis'.
This project analyzes customer behavior and segments them effectively based on their demographic data, spending habits, and response to marketing campaigns.
The dataset includes customer demographic data, spending habits, and response to marketing campaigns.
- Data Cleaning & Feature Engineering: Dates were parsed, age and total spending were calculated, and categorical variables were encoded.
- Exploratory Data Analysis:
- Age distribution was analyzed.
- Income vs. total spending was visualized.
- Predictive Modeling:
- Linear Regression: Predicted
Total_Spendusing demographic and campaign data. - Decision Tree Classifier: Predicted
Response(likelihood of purchase).
- Linear Regression: Predicted
- Customer Segmentation:
- Used KMeans clustering on key features like income, spending, and age.
- Visualized clusters for strategic marketing insights.
- Younger customers tend to spend more on certain categories.
- Income and total spending are positively correlated.
- Distinct customer segments were identified using clustering.
- Download the dataset from Kaggle: https://www.kaggle.com/datasets/imakash3011/customer-personality-analysis
- Install the required libraries: bash pip install kagglehub pandas numpy matplotlib seaborn scikit-learn
- Run the Jupyter notebook to perform the analysis.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.