Skip to content

bozkusemine/Customer-Segmentation-using-RFM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Customer Segmentation using RFM Analysis in Python

What is RFM?

It is a score that consists of the initials of the words Recency, Frequency, and Monetary, and is formed by combining these three metrics after calculating them. It helps customers to analyze their current status and segment them according to these scores.

  • Recency: It gives information such as how long the customer has received service from the website/store, and how long he has been a member. The calculation is usually obtained by subtracting the last subscription date/last order date from today.
  • Frequency: It is the metric that shows how often the customer makes a purchase and how often he logs into the site. It usually results in counting the order number/order code.
  • Monetary: It is the sum of the customer’s expenses. The turnover brought to the e-commerce site can also be defined as the revenue collected after the services it receives.
  • image

Business Problem

We load the data named ‘Online Retail II Data Set’ from the UCI Machine Learning Repository database and start the process. https://archive.ics.uci.edu/ml/datasets/Online+Retail+II

Data Set Information:

This Online Retail II data set contains all the transactions occurring for a UK-based and registered, non-store online retail between 01/12/2009 and 09/12/2011. The company mainly sells unique all-occasion giftware. Many customers of the company are wholesalers.

Attribute Information:

  • InvoiceNo: Invoice number. Nominal. A 6-digit integral number is uniquely assigned to each transaction. If this code starts with the letter ‘c’, it indicates a cancellation.
  • StockCode: Product (item) code. Nominal. A 5-digit integral number is uniquely assigned to each distinct product.
  • Description: Product (item) name. Nominal.
  • Quantity: The quantities of each product (item) per transaction. Numeric.
  • InvoiceDate: Invoice date and time. Numeric. The day and time when a transaction was generated.
  • UnitPrice: Unit price. Numeric. Product price per unit in sterling.
  • CustomerID: Customer number. Nominal. A 5-digit integral number is uniquely assigned to each customer.
  • Country: Country name. Nominal. The name of the country where a customer resides. image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages