Machine learning comes in three main types, and the data you have usually decides which one fits. This lesson explains supervised, unsupervised and reinforcement learning with a typical use for each, then covers three terms the exam pairs with them: fit, bias and fairness.
Supervised learning
Supervised learning trains on labeled data: examples where the right answer is already known. The model learns to map inputs to those answers, then predicts the answer for new inputs. Two common jobs are classification, which predicts a category ("fraud" or "not fraud"), and regression, which predicts a number (next month's sales, a house price). If a scenario has historical examples with a known outcome column, supervised learning is the natural choice.
Unsupervised learning
Unsupervised learning works on unlabeled data and finds structure nobody defined in advance. The most common job is clustering: grouping similar items, such as customers with similar buying habits. Other uses include spotting unusual records (anomaly detection) and finding items that often occur together, such as products bought in the same basket. Choose it when you want to discover groups or patterns rather than predict a known answer. Because there's no answer key, a person still has to judge whether the groups it finds are useful.
A middle ground, semi-supervised learning, uses a small labeled set alongside a larger unlabeled one. It's useful when labels are expensive.
Reinforcement learning
Reinforcement learning (RL) learns by trial and error. A software agent takes actions in an environment and receives a reward or penalty for each outcome. Over many attempts, it learns which actions earn the most reward over time. No dataset of correct answers is needed, only a way to score what happened. RL suits sequences of decisions: robot movement, game playing, or tuning prices or ad placements as conditions change. It's also the idea behind training language models with human feedback, where people's ratings act as the reward.
Fit, bias and fairness
Fit describes how well a model captures the real pattern. An overfit model has memorised its training data, noise included, so it scores very well in training but poorly on new data. An underfit model is too simple to capture the pattern, so it does poorly on both.
Bias has two meanings. In the statistical sense, it is systematic error from a model that is too simple, which goes with underfitting. In the responsible AI sense, it means outcomes that are skewed against certain groups, often because the training data under-represents them. Fairness is the goal of a model treating people and groups equitably. It's checked by comparing a model's results across groups.
On the exam
| Clue in the scenario | Learning type |
|---|---|
| Historical data with a known outcome to predict | Supervised |
| No labels; find groups or unusual items | Unsupervised |
| An agent, actions and a reward or score | Reinforcement |
For fit, remember the pattern: great on training data and poor on new data means overfitting; poor on both means underfitting.