An Interactive Study Guide for Class 11 AI Students
Master the fundamentals of ML with examples, visualizations, and interactive demos!
Machine Learning (ML) is a part of Artificial Intelligence that enables computers to learn from data and make predictions or decisions without being explicitly programmed for each task.
Imagine teaching a child to identify fruits:
This is exactly how Machine Learning works! Instead of programming rules, we show the computer examples, and it learns patterns.
| Traditional Programming | Machine Learning |
|---|---|
| 👨💻 Programmer writes specific rules | 🤖 Computer learns rules from data |
| 📝 Input: Rules + Data → Output | 📊 Input: Data + Output → Rules |
| 🔧 Need to update code for new scenarios | 📈 Improves automatically with more data |
| Example: Calculator (fixed operations) | Example: Spam filter (learns from emails) |
There are three main types of Machine Learning, each used for different purposes. Let's understand them with simple examples!
What is it? Learning with a teacher! The computer is given labeled data (data with answers) to learn from.
Think of it as: Learning math with a textbook that shows both questions AND answers.
Training Phase:
After Learning: When a new email arrives, the system can predict if it's spam or not!
Predicts continuous numbers
Examples: Predicting house prices, forecasting temperature.
Predicts categories
Examples: Spam/Not Spam, Dog/Cat.
What is it? Learning without a teacher! The computer finds patterns in data without being told what to look for.
ML finds groups like "electronics buyers", "grocery buyers", etc. Useful for targeting and personalization.
What is it? Learning by trial and error with rewards.
Correlation measures how two things are related to each other. When one thing changes, does the other thing change too?
Both increase together. Example: Study time ↑ → Grades ↑
One increases, other decreases. Example: Exercise ↑ → Weight ↓
No relationship. Example: Shoe size ≠ Intelligence
Pearson's Correlation Formula:
r = Σ(x - x̄)(y - ȳ) / √[Σ(x - x̄)² × Σ(y - ȳ)²]Two things may move together due to a third cause (e.g., hot weather → both ice-cream sales and swimming rise).
Regression predicts a continuous value (a number). Linear regression fits a straight line to data points to predict outputs from inputs.
Use the same input fields in the Correlation demo (they share the canvas). After computing correlation, press Fit Line to draw best-fit line and see slope/intercept.
Classification predicts categories or labels (e.g., spam or not spam). It's a common supervised learning task.
Given fruits with size and color, k-NN uses nearest labelled fruits to decide the label of a new fruit.
Clustering groups similar items together without labels. It is a key unsupervised technique (Teacher Handbook: Unit on Machine Learning algorithms).