Question: Objective: Calculate Recency, Frequency, and Monetary ( RFM ) values for each customer, using total sales as the Monetary measure. This analysis will help understand
Objective: Calculate Recency, Frequency, and Monetary RFM values for
each customer, using total sales as the Monetary measure. This analysis will
help understand customer behavior and identify key customer segments.
Instructions
Data Preparation:
Load the provided retail dataset from Week and
Ensure the data includes columns such as CustomerID, InvoiceDate,
InvoiceNo, Quantity, and UnitPrice.
Calculate a new column, TotalSales, defined as Quantitytimes UnitPrice.
Calculating RFM Metrics:
Recency: Calculate the number of days since the last purchase for
each customer, based on the last date in the dataset.
Frequency: Count the total number of unique invoices or transactions
for each customer.
Monetary: Sum the TotalSales for each customer to get the total
sales as the Monetary value.
RFM Scoring:
Assign each customer a score from to for Recency, Frequency,
and Monetary, with being the best. Use quantiles to segment the
scores:
Top : Score
Next : Score
And so on
Create an overall RFM score by concatenating the three scores for
each customer eg RFM Score:
Customer Segmentation:
Based on RFM scores, segment customers into groups eg Top
Customers, HighValue, ModerateValue, LowValue
Describe each segment in one or two sentences, summarizing characteristics
such as spending habits or engagement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
