2.1 Why Machine Learning?

Traditional computers work on fixed rules.

Example (Old Style):

  • If temperature > 38°C → Fever

Problem:

  • Real life is complex

  • Too many rules

Solution:
👉 Let the computer learn rules by itself using data.

2.2 What is Machine Learning?

Machine Learning is a subset of AI where machines learn from data instead of being programmed with rules.

Easy line:
“ML teaches computers by examples, not instructions.”

2.3 Real-Life ML Examples

SystemLearns From
YouTubeWatch history
NetflixMovies you like
Email SpamPast spam emails
BankFraud transactions

2.4 Types of Machine Learning

Supervised Learning

  • Data has labels (answers already given)

Example:

  • Photos labeled as Cat or Dog

Unsupervised Learning

  • No labels

  • Machine finds patterns

Example:

  • Grouping customers by behavior

Reinforcement Learning

  • Learning by reward and punishment

Example:

  • Game-playing AI

  • Robot learning to walk