RFM analysis is a technique used to categorize customers according to their purchasing behaviour.
Recency: This is the date when the customer made the last purchase. It is calculated by subtracting the customer's last shopping date from the analysis date.
Frequency: This is the total number of purchases of the customer. In a different way, it gives the frequency of purchases made by the customer.
Monetary: It is the total monetary value spent by the customer.
An e-commerce company wants to segment its customers and determine marketing strategies according to these segments. For example, it is desirable to organize different campaigns to retain customers who are very profitable for the company, and different campaigns for new customers.
The Online Retail II data set includes the sales of an online retail store based in the UK between dec1/12/2009 and 09/12/2011. The product catalog of this company includes souvenirs. The vast majority of the company's customers are corporate customers.
InvoiceNo: Invoice number. A unique number for each transaction. If it starts with C which means cancelled operations.
StockCode: Product code. A unique number for each product.
Description: Product name.
Quantity: It refers to how many of the products in the invoices have been sold.
InvoiceDate: Invoice date.
UnitPrice: Product price (pound)
CustomerID: Unique customer number.
Country: The name of the country where the customer lives.