Inspect
Check grain, repeat activity, dates and duplicate rows.
↗RESEARCH NOTE / EXPLORATORY DATA ANALYSIS / 07
An exploratory analysis that checked the dataset before choosing a model.
EXPLORE THE STORY ↓99,457 transaction records
THE BUSINESS PROBLEM
RFM needs variation in purchase frequency. This dataset had one transaction per customer.
Illustration of the observed structure: every customer has exactly one transaction. Frequency cannot separate repeat-purchase segments.
WHAT I DID
Check grain, repeat activity, dates and duplicate rows.
↗Keep valid transactions; exclude 119 missing ages only from demographic analysis.
↗Flag the partial period and choose H&M for repeat-behaviour research.
↗THE RESULTS
Repeat-purchase RFM was unsuitable. The analysis prevented a segmentation story the data could not support.
Transactions inspected.
Duplicate rows found.
Per customer. No frequency variation.
Match the business question to the data’s grain before building a model.
↗THE EVIDENCE / GO DEEPER
LET’S DISCUSS YOUR PROJECT ↗Could this dataset support customer segmentation based on repeat purchasing, alongside a view of category and time-based shopping patterns?
Every customer had exactly one transaction. Frequency was therefore constant, making meaningful repeat-purchase RFM segmentation unsuitable for this dataset. This informed the choice of H&M for the repeat-behaviour and forecasting research.
Converted invoice dates, checked prices and quantities, and separated demographic missingness from transaction retention. The 119 missing ages were excluded from demographic analysis rather than causing valid transactions to be dropped. The partial March 2023 period was flagged before forecasting.
A technically valid model can still answer the wrong question. Inspecting grain and repeat activity first avoided presenting a segmentation result the data could not support.
Source: executed Istanbul research notebook. Academic analysis of the public Customer Shopping Dataset; findings are descriptive.
YOUR NEXT MOVE