← All writing
Machine Learning · 5 min read · 29 Nov 2026

Supervised, Unsupervised, and Reinforcement Learning, Honestly

Three learning paradigms get lumped together in intro slides. Here is what actually separates them, with one worked example each.

Cover image for the article: Supervised, Unsupervised, and Reinforcement Learning, Honestly

Why the labels get muddled

Most people meet these three terms in a single slide: supervised learning uses labels, unsupervised learning finds patterns, reinforcement learning learns from reward. That is true as far as it goes, but it hides the thing that actually matters in practice, which is what signal the algorithm gets to learn from and when it gets it. The three paradigms are not just different techniques, they are different information environments, and confusing them leads to real mistakes, like evaluating a clustering model with accuracy, or expecting a supervised classifier to improve itself over time without new labels.

I find it more honest to describe each one through a concrete worked example rather than a definition, because the definitions tend to blur at the edges. So here is one example each, chosen to be ordinary rather than exotic, because the ideas do not need exotic examples to make sense.

Supervised learning: predicting house prices

Supervised learning means you have input examples paired with correct answers, and the job is to learn a mapping from one to the other. Say you have a spreadsheet of 2,000 houses sold last year, each row giving square footage, number of bedrooms, postcode, and the actual sale price. The sale price is the label. You train a model, perhaps a simple linear regression or a gradient boosted tree, to predict price from the other columns.

The honesty check here is about leakage and generalisation, not about the algorithm. If you split your 2,000 houses randomly into training and test sets, but several houses in the test set were sold by the same agent in the same new-build estate as houses in the training set, your test error will look better than it should, because the model is partly memorising local pricing patterns rather than learning general ones. A proper split groups by estate or by time, training on houses sold before a cut-off date and testing on houses sold after it. Suppose the naive random split gives a mean absolute error of 15,000 pounds, while the time-based split gives 22,000 pounds. The second number is the honest one, because it reflects what will happen when the model meets houses it genuinely has not seen anything like before.

What makes supervised learning distinct is that the target is fixed and known in advance. You are not discovering what matters, you are learning how much it matters, and you can always check your answer against ground truth. That is both its strength and its limit: it only works where labels exist, and labels are often expensive, delayed, or simply unavailable.

thermostat on wall

Unsupervised learning: grouping customers without labels

Unsupervised learning drops the labels entirely. You have inputs and nothing else, and the goal is to find structure: groups, compressed representations, or densities. A common case is customer segmentation. Say a retailer has purchase histories for 10,000 customers, described by features like average basket size, visit frequency, and category mix. There is no correct segment number attached to each customer, because segments are not a fact about the world, they are a pattern you are proposing.

Run k-means with four clusters and you might get groups that look like occasional big spenders, frequent small spenders, bargain hunters, and a mixed middle group. Run it with six clusters and the groups subdivide further. Neither four nor six is objectively correct in the way a house price prediction can be objectively close to or far from the real sale price. This is the part that trips people up: unsupervised learning does not have a single honest accuracy number. You evaluate it with proxies, such as silhouette score, or by checking whether the resulting segments are stable across different random seeds, or more usefully, by seeing whether marketing campaigns targeted at each segment actually perform differently in practice.

The intellectually honest stance is to treat unsupervised output as a hypothesis, not a result. A clustering gives you a lens on the data, and it is only validated once it proves useful for a downstream decision, like which customers get which offer. Without that downstream check, a clustering is just a plausible-looking pattern that might not mean anything stable at all.

Reinforcement learning: a thermostat that learns

Reinforcement learning is different again, because there is no fixed dataset at all. An agent takes actions in an environment, receives a reward signal, and tries to maximise cumulative reward over time, with no one telling it the correct action at each step. A simple, ungrand example is a smart thermostat controller. The agent observes room temperature and time of day, chooses whether to heat, cool, or do nothing, and receives a reward that combines occupant comfort with energy cost, say plus one for staying within a comfortable range and minus 0.1 for every unit of energy spent heating.

Early on, the agent might overheat the room constantly because it has not yet learned that energy costs accumulate, so its average reward over the first week of simulated days might sit around 2.4 per day. After enough episodes, perhaps several thousand simulated days, it learns to anticipate temperature drops before they happen and pre-heats efficiently, pushing average reward up to around 6.1 per day. Nobody labelled the correct heating level at each timestep; the agent discovered a policy through trial, error, and delayed consequence.

The honesty issue in reinforcement learning is usually about the reward function and the simulation gap. If the reward only weights comfort and energy, the agent might learn to ignore equipment wear, because nothing in its signal penalises it. And a policy trained in a simulated house with idealised thermal dynamics often degrades when deployed in a real house with draughts, uneven insulation, and sensor noise. Reporting only simulated performance, without acknowledging that gap, is the reinforcement learning equivalent of the leaky random split in the house price example.

spreadsheet of house prices on screen

The practical takeaway

The honest difference is not about which algorithm sounds more advanced. Supervised learning answers a question you already know how to grade. Unsupervised learning proposes structure you must validate externally. Reinforcement learning learns a behaviour through consequences, which means the reward function is doing the job that labels do elsewhere, and getting it wrong is just as damaging as a leaky split or an unvalidated cluster. Before choosing a paradigm, ask plainly: do I have ground truth, am I looking for structure I cannot yet name, or am I trying to shape behaviour over time? The answer tells you not just which method to reach for, but which mistakes you need to guard against.

← All writing See the project case studies →