Direct answer
Machine learning has three main paradigms, distinguished by what kind of training signal the model gets. Supervised learning learns from labeled examples (input paired with the correct output). Unsupervised learning finds structure in unlabeled data, with no correct-answer signal at all. Reinforcement learning (RL) learns by taking actions in an environment and receiving a reward signal that tells it how good the outcome was, rather than being told the correct action directly.
Structured elaboration
- Supervised learning: every training example is
(input, correct output). The model's job is to learn a function that generalizes from those pairs to new inputs. Example: predicting whether an email is spam, given a labeled history of spam and non-spam emails. The deciding factor for choosing supervised learning is label availability: do you have (or can you affordably get) a correct answer for enough examples?
- Unsupervised learning: there is no correct-output label at all. The model looks for structure the data has on its own, such as natural groupings or a lower-dimensional representation that still captures most of the variation. Example: grouping customers into segments based on purchasing behavior, with no predefined "correct" segment for anyone. You reach for unsupervised learning when you don't have labels, or when the goal is exploratory ("what structure is even in this data?") rather than predictive.
- Reinforcement learning: an agent takes actions in an environment and receives a reward signal after the fact, and its goal is to learn a policy (a strategy for choosing actions) that maximizes cumulative reward over time. Example: a system that decides which offer to show a user next, where the reward is whether the user converts, and the effect of an action may only become clear several steps later. The deciding factor is the presence of a reward signal tied to sequential decisions, rather than a single correct label per example.
- Semi-supervised learning sits between supervised and unsupervised: most of the data is unlabeled, but a small labeled subset exists and is used to guide learning on the rest. It's the pragmatic middle ground when full labeling is too expensive but some labels are affordable.
Worked example
Say you're building a system to flag fraudulent transactions. If you have a large history of transactions already labeled fraud or not, that's a supervised classification problem. If you instead wanted to explore what natural clusters of transaction behavior exist, with no fraud labels at all, that's unsupervised clustering. If you were instead building a system that decides, in real time, which of several verification steps to trigger for a given transaction, and only finds out much later (after a chargeback or its absence) whether that sequence of decisions was good, that shifts you toward a reinforcement-learning framing because the signal is a delayed reward tied to a sequence of actions, not a per-example label available up front.
Trade-offs and pitfalls
A common mistake is treating this as a purely academic taxonomy rather than a practical decision: the real question in an interview or on the job is always "what signal do I actually have, and does it match what this paradigm needs." Reaching for reinforcement learning when you actually have per-example labels available is over-engineering: supervised learning is almost always simpler, cheaper to train, and easier to evaluate when labels exist. Conversely, forcing a supervised framing onto a problem that's genuinely sequential and reward-driven (where today's action affects tomorrow's state) tends to ignore the delayed-consequence structure that actually matters. Semi-supervised learning is often glossed over, but it's frequently the realistic answer in production: you rarely have either abundant labels or none at all, you have some.