You are handed a large database of unstructured customer transaction logs with no labels or pre-defined categories. Your goal is to identify distinct shopping patterns and group similar customers together. Which machine learning task does this represent?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Think of it like this: supervised learning is like having a teacher who points to a picture of a cat and says "that's a cat." But what if you don't have any labels? What if you just have a massive pile of customer data and you want to group them by how they shop? That's unsupervised learning. You let the algorithm look at the unlabeled data and find the natural groups on its own. Customer segmentation is the classic example here. It groups customers based on behaviors or traits without you telling it what the groups are beforehand. Things like image classification or spam detection need clear labels, so they're supervised.
Full explanation below image
Full Explanation
Machine learning is broadly categorized into supervised and unsupervised learning based on the presence of labels in the training data.
1. Supervised Learning: The algorithm is trained on a labeled dataset, meaning each input is paired with its corresponding correct output. The model learns a mapping function from inputs to outputs. Examples include image classification, speech/voice recognition, and spam detection. 2. Unsupervised Learning: The algorithm is provided with unlabeled data and must discover hidden structures, relationships, or patterns on its own. The primary tasks are: - Clustering: Grouping data points so that points in the same group are more similar to each other than to those in other groups (e.g., customer segmentation based on purchasing behavior). - Dimensionality Reduction: Simplifying data without losing critical information (e.g., PCA). - Association Rule Learning: Finding interesting relationships between variables in large databases (e.g., market basket analysis).
- Option B (Image classification) is supervised because the model requires labeled images (e.g., 'pneumonia' or 'normal') to learn. - Option C (Voice recognition) is supervised because it trains on audio inputs mapped to specific text transcriptions or speaker labels. - Option D (Spam detection) is supervised because it requires a dataset of emails labeled as 'spam' or 'ham' to train its classifier.