Code Monkey home page Code Monkey logo

customer-segmentation's Introduction

Mall Customer Segmentation

Define the problem

Customer segmentation is the process of dividing customers into groups based on common characteristics so companies can market to each group effectively and appropriately. This is the unsupervised clustering problem and five popular algorithms will be presented and compared: KMeans, Hierarchical, Affinity Propagation and DBSCAN.

The data set is taken from Kaggle. It consists customers information related to their age, gender, annual income, and spending score. The spending score is a numeric variable ranging from 1 to 100 and was assigned to customers based on behavior parameters and purchasing data.

Steps to solve the problem:

  1. Importing Libraries
  2. Loading the Dataset
  3. Exploratory Data Analysis
    3.1 Distribution of values in Age , Annual Income and Spending Score
    3.2 Correlations between numerical variables
  4. Clustering]
    4.1 K-Means Clustering
         4.1.1 K-Means 5 Clusters
         4.1.2 K-Means 6 Clusters
    4.2 Fuzzy C-Means Clustering]
    4.3 DBSCAN (Density Based Spatial Clustering of Applications with Noise)
    4.4 Heirarchal (Agglomerative)
    4.5 Affinity Propagation
  5. Comparison and Conclusion

Built with

  • numpy
  • pandas
  • seaborn
  • matplotlib
  • sklearn
  • scipy
  • yellowbrick
  • mpl_toolkits.mplot3d

customer-segmentation's People

Contributors

jamesnan 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.