Giter VIP home page Giter VIP logo

customer-segmentation's Introduction

Customer segmentation based on RFM method and K-Means clustering

General info

This project contains customer segmentation by combining the RFM method and K-Means clustering. The dataset includes sample sales data based on retail analytics. The analysis was performed in two approaches:

  • the first one uses RFM scoring (assigned RFM score) and K-means clustering;
  • the second raw calculated RFM variables and K-means clustering.

The dataset comes from Kaggle and can be find here.

Motivation

The customer segmentation is an effective method that enables to get better know clients and to better correspond, their various needs. Almost every company that sells products or services stores data of shopping. This type of data can be used to execute customer segmentation thus, the results of the analysis can be translated into marketing campaigns to increase sales. One of the most widely used techniques is RFM analysis, which allows to create personalized special offers to improve sales.

RFM stands for Recency, Frequency, Monetary Value and it is the technique of customer segmentation based on their transaction history. The RFM analysis is based on three criterias, which measure different customer characteristics:

  • Recency: Days since last purchase/order of the client;
  • Frequency: Total number of purchases the customer were made;
  • Monetary Value: Total money the customer spent per order.

Project contains:

  • First approach - Customer_segmentation.ipynb
  • Second approach - Segmentation_Kmeans.ipynb

Technologies

The project is created with:

  • Python 3.6
  • libraries: pandas, numpy, sklearn, scipy, seaborn, matplotlib.

Running the project:

To run this project use Jupyter Notebook or Google Colab.

customer-segmentation's People

Contributors

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