Unsupervised Learning

how supervised learning works

Unsupervised learning is a branch of Machine Learning where the model learns from unlabeled data. Unlike supervised learning, there is no "supervisor" to guide the process. Instead, the model acts as a detective, scouring the data to find its own hidden structures and patterns.


☆ How it works?

In unsupervised learning, the algorithm receives input data (e.g., thousands of customer profiles) but no output labels (e.g., no "spam" or "non-spam" tags).

  1. Input Unlabeled Data
    The model is fed raw data without any instructions on what it represents.
  2. Pattern Discovery
    The algorithm looks for similarities, differences, or anomalies based on the mathematical distance between data points.
  3. Output Structure
    The model provides a new organization of the data—such as groups of similar items or a simplified version of the data.

☆ Key Concepts and Tasks

1. Clustering

The most common task in unsupervised learning. It involves grouping data points so that items in the same group (cluster) are more similar to each other than to those in other groups.
  • Example: A clothing brand uses clustering to group customers into "high spenders," "deal seekers," and "casual shoppers" based solely on their shopping habits
  • Common Algorithms: K-Means Clustering.

2. Association Rules

This technique discovers interesting relationships or "rules" that describe your data. It looks for variables that often occur together.
  • Example: "Market Basket Analysis" finds that people who buy beer also tend to buy diapers. Stores use this to place these items closer together.
  • Common Algorithms: Apriori Algorithm.

3. Dimensionality Reduction

This is the process of reducing the number of random variables under consideration by obtaining a set of principal variables. It simplifies complex data while keeping the most important information.
  • Example: Compressing a high-resolution image so it takes up less space but still looks clear to the human eye.
  • Common Algorithms: Principal Component Analysis (PCA).

4. Anomaly Detection

Identifying rare items, events, or observations which raise suspicions by differing significantly from the majority of the data.
  • Example: A bank's system notices a transaction in a foreign country that is 10x larger than your usual spending and flags it as potential fraud.

☆ Supervised vs. Unsupervised Learning

Feature Supervised Learning Unsupervised Learning
Data Type Labeled Unlabeled
Goal Predict outcomes for new data Find hidden patterns/structures
Feedback Direct (Correct/Incorrect) No feedback
Analogy Learning with a new teacher Learning by exploration

☆ Watch this YT Video!