Code Monkey home page Code Monkey logo

customer_segmentation's Introduction

Customer segmentation

Introduction

This is a source code for my Medium blog post Data Driven Cistomer Segmentation.

Motivation

I believe that the best way to learn about marketing data science is to work through examples.

Customer segmentation

Customer segmentation is the process of dividing customers into groups based on common characteristics, which allows companies market each group effectively and appropriately.

Data

For this analysis I am using a public dataset from UCI Machine Learning Repositiry, which can found here. This dataset contains information on transactions occurring between 01/12/2010 and 09/12/2011 for a UK-based and registered non-store online retail. The company mainly sells unique all-occasion gifts. Many customers of the company are wholesalers.

Getting started

You need an installation of Python, plus the following libraries:

  • numpy
  • pandas
  • matplotlib.pyplot
  • seaborn
  • sklearn

Summary and key findings

  • We applied k-means clustering to understand the difference between segments of an online retail shop
  • Using Elbow method and Silhouette coefficient, we found the optimal number of segments, which is 4
  • We looked at the most popular items bought by the group of high-value customers, which may help to sell the same/similar items to this high-value group and increase conversion.

customer_segmentation's People

Contributors

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