Course contentsShow
← Machine Learning and Deep Learning
Lesson 337 of 3,5388. Unsupervised Learning: ClusteringFree lesson

What is Clustering?

Understanding unsupervised learning, clustering objectives, and how K-Means partitions data into groups.

What is Clustering?

You'll learn: What clustering is and why it's a fundamental approach in unsupervised learning.


A New Paradigm: Learning Without Labels

So far, you've studied supervised learning—algorithms like logistic regression, SVMs, decision trees, and Naive Bayes that learn from labeled data. But what if you have a dataset with no labels at all? No one has told you which class each observation belongs to. This is where unsupervised learning comes in.

Clustering is a core unsupervised learning technique that groups similar data points together based on their features alone. The algorithm discovers natural groupings—or "clusters"—in your data without being told what those groups should be.


The Clustering Objective

Think of clustering like organizing a messy drawer. You have items scattered everywhere, but no instructions. You instinctively group similar things together: pens with pens, batteries with batteries, keys with keys. You're creating clusters based on similarity.

In machine learning terms, clustering algorithms aim to:

  • Maximize similarity within each cluster (intra-cluster similarity)
  • Maximize dissimilarity between different clusters (inter-cluster separation)

One popular algorithm, K-Means, partitions your data into K distinct groups by iteratively assigning points to the nearest cluster center and updating those centers.


Real-World Applications

Clustering is used for customer segmentation, image compression, document organization, anomaly detection, and exploratory data analysis—anywhere you need to find hidden structure in unlabeled data.


Key Takeaway: Clustering is an unsupervised learning technique that automatically groups similar data points together without labels, discovering hidden patterns and structure in your data.