Giter VIP home page Giter VIP logo

customer-segmentation's Introduction

Project Overview

Aim is to check out the customers behavior based on the CutomerId,InvoiceNo,Quantity,UnitPriceand Countryetc. This is an unsupervised leaning project.

Learnings from the project

Concepts utilised

  • Data preprocessing
  • Data Visualisation
  • k means clustering

Approach taken to solve the problem

Steps involved:

  1. Subsetting the data. We will be working only on data from United Kingdom.
  2. Create customer-level dataset - The original dataset was organized long, with invoices nested within customer. Our aim is to create a customer-level dataset and add recency, frequency, and monetary value data to it.first calculate the recency. The recency variable refers to the number of days that have elapsed since the customer last purchased something (so, smaller numbers indicate more recent activity on the customer’s account).
  3. Frequency refers to the number of invoices with purchases during the year. Now let's calculate the frequency of purchase.
  4. Calculate the Monetary - Some customers have negative monetary values. These customers probably returned something during the year that they had purchased before the year started.
  5. Standardizing the input variables by taking the log of the features.
  6. Use the elbow method to find the optimum number of clusters.
  7. Use Kmeans to cluster data.

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.