Code Monkey home page Code Monkey logo

customer-segmentation's Introduction

Customer Segmentation Analysis with R

Overview

This project, developed during the Statistical Inference course at FCIS, Ain Shams University, employs R to conduct customer segmentation analysis. Various clustering algorithms, including k-means, DBSCAN, and hierarchical clustering, were implemented to derive meaningful insights from the dataset. The project focuses on data preprocessing, exploratory data analysis, and visualization techniques to uncover patterns in customer behavior.

Table of Contents

Dataset

The dataset, sourced from "CustomerSegmentation.csv," contains information about customers, including age, annual income, and spending score.

Data Preprocessing

The dataset underwent thorough preprocessing steps, including handling missing values, removing negative values, and encoding categorical data. Descriptive statistics and visualizations were utilized to ensure data quality.

Exploratory Data Analysis

Exploratory Data Analysis (EDA) involved visualizing gender distribution, age distribution, and analyzing annual income and spending score patterns. These insights formed the basis for subsequent clustering.

Clustering Algorithms

K-means

The optimal number of clusters was determined using the elbow method, silhouette method, and gap statistic. The K-means algorithm was then applied to segment customers.

DBSCAN

DBSCAN clustering was performed with an estimated epsilon value, visualizing the clusters and their characteristics.

K-medoids

PAM algorithm was employed to estimate the optimal number of clusters, and K-medoids clustering was visualized.

Hierarchical Clustering

Hierarchical clustering using both hclust and agnes methods was executed, and a dendrogram was plotted.

Results

The project resulted in distinct customer segments identified through various clustering algorithms, providing valuable insights for business decision-making.

Contributing

Contributions are welcome! Fork the repository and create a pull request with your enhancements.

customer-segmentation's People

Contributors

aliabdallah7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.