An e-commerce company has a dataset of customer purchase histories with no predefined categories. The data analyst wants to identify natural groupings of customers based on their purchasing behavior to target marketing campaigns. Which type of machine learning should the analyst use?
Clustering is an unsupervised machine learning technique that groups unlabeled data points based on feature similarity, making it ideal for customer segmentation. Algorithms like K-means partition customers into clusters where those with similar purchase frequency, recency, and monetary value are grouped together, revealing actionable segments without requiring predefined labels. This directly matches the e-commerce goal of identifying distinct customer segments from raw purchase data.
Why this answer
Clustering is the correct choice because it is an unsupervised learning technique used to discover inherent groupings in data without predefined labels. In this scenario, the analyst wants to identify natural customer segments based on purchase behavior, which aligns perfectly with clustering algorithms like K-Means or DBSCAN that partition data into clusters of similar patterns.
Exam trap
The trap here is that candidates often confuse clustering with classification because both involve grouping, but clustering is unsupervised (no labels) while classification is supervised (requires labeled data).
How to eliminate wrong answers
Option A is wrong because regression is a supervised learning technique used for predicting continuous numerical values (e.g., sales amount), not for discovering natural groupings. Option B is wrong because classification is a supervised learning method that requires labeled training data to assign predefined categories, whereas the dataset has no predefined categories. Option D is wrong because reinforcement learning involves an agent learning optimal actions through trial-and-error interactions with an environment to maximize cumulative reward, which is unrelated to grouping customers based on historical data.