RFM for Customer Segmentation and Value

RFM Segmentation enables you to focus on specific clusters of customers to generate higher response rates.

RFM is a method used for analysing customer value and for customer segmentation. It is commonly used in database marketing and direct marketing.

Recency (R): Days since last purchase.

Frequency (F): Total number of purchases.

Monetary Value (M): Total money spent by customer.

I have used the online_retail dataset for a UK online retailer to get to the Top 10 Customers using RFM.

Exploratory Data Analysis

Remove duplicates and group by Country:

Drill down on the United Kingdom as a country:

Customer ID has missing values = 106,429; however the Customer ID column is not relevant for this customer segmentation model Description has missing values however stock is not being analysed for this customer segmentation model.

Checking minimum values in the Quantity column.

The dataset has 474,938 rows of data with 8 columns.

Customer Segmentation

Create a RFM Table:

RFM Metrics per customer:

Customer ID 12748:

  • has a Frequency:2634; Monetary value:$22,879.66; Recency:365 days.

Customer ID 12746:

  • has Frequency:17; Monetary value:$254.55; Recency:540 days.

Definition of best customers

= lowest recency, highest frequency, high monetary values

Display Segment splits:

Top 10 Customers using RFM:

RFM SEGMENTATION

Keeping in mind that the RFM model only looks at 3 specific factors & excludes products purchased, prior campaign responses, demographic details.

For more Follow me on Medium https://medium.com/@aveshnee7