What is Machine Learning?

Teaching computers to learn from data — not from rules. From spam filters to self-driving cars, ML is reshaping every industry on the planet.
The Paradigm Shift
Traditional programming writes rules by hand. Machine learning flips this — give the computer data and answers, and let it discover the rules on its own.
ML way: Data + Answers → Rules
Traditional vs Machine Learning
Try writing the rules for “is there a face in this photo?” by hand. Every rule you think of has an exception.
A Brief History
From the first artificial neuron to the deep learning revolution — nearly 70 years of breakthroughs.
Supervised Learning
You provide labeled examples — input-output pairs — and the model learns to map new inputs to the correct outputs.
Unsupervised Learning
No labels — the algorithm finds hidden patterns and structure in the data on its own. Think of grouping customers by behavior without telling it the groups.
Reinforcement Learning
Learn by trial and error. An agent takes actions, receives rewards or penalties, and learns the best strategy over time.
The ML Pipeline
Building a model is a multi-step process — every step matters.
- Collect — gather raw data
- Preprocess — clean, normalize, split
- Train — fit the model to data
- Evaluate — test on unseen data
The Math Behind It
At its core, a model learns weights and a bias that map inputs to a prediction.
x the inputs (say, a house’s size and rooms) · w how much each input counts · b a fixed starting amount, called the bias · ŷ (“y-hat”) the prediction.
Overfitting vs Underfitting
The bias-variance tradeoff is the central challenge of machine learning. Here bias means error from a model too simple for the pattern, and variance error from one so flexible it chases noise — not the b of the last slide.
ML Everywhere
You interact with ML dozens of times a day, often without realizing it.
- Recommendations — Netflix, YouTube, Amazon
- Medical diagnosis — cancer detection in scans
- Fraud detection — real-time transaction monitoring
- Autonomous vehicles — vision + decision-making
What you learned
Machine learning is the art of finding patterns in data. Three paradigms, one pipeline, and a constant battle between underfitting and overfitting.