Unsupervised Learning Notes
Unsupervised Learning Notes
How it works?
Instead of writing code to tell the computer what to do
step-by-step, we give it data and a model, and it
figures out the patterns or rules on its own.
Types of Machine Learning:
Supervised Learning – Learn from labeled data.
Example: Predicting house prices from past data
(features + price).
Unsupervised Learning – Find patterns in unlabeled
data.
Example: Customer segmentation in marketing.
Reinforcement Learning – Learn by trial and error with
rewards.
Example: A robot learning to walk.
Real-Life Applications:
Spam email detection
Movie or product recommendations
Facial recognition
Self-driving cars
Fraud detection in banking
What is Unsupervised Learning?
Unsupervised Learning is a type of machine learning
where the model learns from data that is not labeled —
meaning there are no predefined categories or
outcomes.
In supervised learning, the data comes with answers
(like "spam" or "not spam").
In unsupervised learning, there are no answers — the
algorithm tries to find hidden patterns or structures in
the data on its own.
Example:
Imagine you have a bunch of customer data (age,
income, purchase habits), but you don’t know anything
about who they are.
With unsupervised learning, the algorithm might:
Group similar customers together (this is called
clustering).
Algorithm: Apriori
Objective of Clustering:
K-Means Clustering
Hierarchical Clustering
K-Means Clustering
Distance formula:
Hierarchical Clustering
2. Divisive (Top-Down)