L02 — Supervised Learning: the A→B Machine
One idea, most of the value
A supervised model learns to turn an input A into an output B, by being shown many examples where both are already known.
That is the whole idea. It is worth stating flatly because the majority of commercial AI in production today is exactly this, wearing different clothes.
| Input A | Output B | What it becomes |
|---|---|---|
| A credit application | Will it default? | Underwriting |
| A card transaction | Is it fraudulent? | Payments risk |
| A dealing-room call | The text transcript | Trade capture, compliance |
| A scanned invoice | Amount, date, counterparty | Accounts payable |
| A support message | Which team handles it | Client service routing |
| Yesterday’s order book | Tomorrow’s staffing need | Operations planning |
Six unrelated products across six unrelated functions. One shape.
Why writing it this way is worth the discipline
Forcing a proposal into the A→B form takes about ninety seconds and does three things at once.
It exposes vagueness. “Use AI to improve client retention” has no A and no B. It is a wish. It cannot be costed, built or measured, and the ninety seconds you spend discovering that is the cheapest ninety seconds in the project.
It reveals the data requirement. Once A and B are named, you know exactly what has to be collected and roughly how many examples of it you need.
It fixes the measure of success. Once B is named, error is defined, and arguments about whether the thing worked become arithmetic rather than opinion.
Note what the form does not ask: which algorithm, which vendor, which cloud. Those are downstream decisions, they are not yours to make early, and making them early is how organisations end up with a tool in search of a problem.
If nobody in the room can state B in a single noun phrase, the project is not ready to be funded.
The loop
- Collect — gather examples where both A and B are known. This is the part that takes months.
- Fit — adjust the model’s internal numbers until its guesses on those examples approach the known answers.
- Test — measure on examples the model has never seen.
- Deploy — point it at live inputs, where the answer is not yet known.
- Monitor — watch the error rate. The world moves.
Steps one and five carry most of the cost. Step two is the part people picture when they imagine an AI project, and it is often a few days’ work.
A worked row
A single row of a lending file, as the model sees it:
| Field | Value | Role |
|---|---|---|
| Requested amount | 18,500 | Input A |
| Term | 48 months | Input A |
| Income, verified | 54,200 | Input A |
| Existing obligations / income | 0.31 | Input A |
| Months at current employer | 26 | Input A |
| Defaulted within 24 months | No | Output B — the label |
That final row is what makes this supervised learning, and it exists only because time passed and somebody recorded what happened. This is why a genuinely new product with no history cannot be underwritten this way, however sophisticated the model on offer.
What the model ends up holding
After training, the model is a large collection of numbers and a rule for combining them. Feed it a new application, it produces a score.
- It has found patterns that were predictive in the history it was shown.
- It has no notion of why those patterns held.
- It cannot tell you what would happen if you changed one of the inputs.
A supervised model is a very fast, very consistent correlation finder. That is genuinely valuable. It is not a causal claim, and treating a score as an explanation is the most common analytical error in this field.
Two flavours
Classification — B is a category, usually with a confidence attached: default or not, fraud or legitimate or review. Measured with accuracy, precision and recall.
Regression — B is a number on a continuous scale: expected loss in currency, days until this invoice is paid. Measured by the size of the average error, not by accuracy.
Ask which one a vendor is selling. It determines what the word “accurate” is even allowed to mean in the conversation.
Three sets of data, three jobs
- Training set — the model sees the answers and fits its parameters to them.
- Validation set — used to choose between candidate models and settings. Touched many times.
- Test set — untouched until the end, then looked at once, to estimate behaviour on cases nobody has seen.
If a test set has been consulted repeatedly, it has quietly become a validation set and the reported number is optimistic. This happens constantly and almost never deliberately.
Four questions worth asking whenever a number is presented to you:
| What you are told | What to ask | Why |
|---|---|---|
| “94% accurate” | On which set, and collected when? | Accuracy on training data is close to meaningless. |
| “Beats the incumbent” | On the same period and population? | Two models measured on different samples cannot be compared. |
| “Validated by the vendor” | Can we run it on our own held-out month? | Their test set is marketing; yours is evidence. |
| “Improves every quarter” | Is the test set being reused? | Repeated tuning against a fixed test set inflates the number invisibly. |
Why performance kept climbing
Classical statistical methods absorb a certain amount of data and then stop improving; feeding them more changes little. Large neural networks keep converting additional data into additional performance well past that point. That difference in shape is why the field changed when it did — and it only matters to you if you have the data and the compute to feed them.
Three things had to arrive together:
- Data, from the digitisation of ordinary processes. The labels are a by-product of running the business on systems that record what happened, not of any AI effort.
- Compute, in the form of parallel hardware that suited the arithmetic training requires, cutting experiment times from months to hours.
- Method, in the form of training techniques that let much larger networks be fitted without collapsing.
Only the first is under your control, and it decides whether your organisation can participate at all.
Labels are the expensive part
| Label | Where it comes from | What it costs |
|---|---|---|
| Did this transaction turn out to be fraud? | Chargeback records, weeks later | Cheap — the process already produces it |
| Did this borrower default? | The passage of 24 months | Free, but slow, and you cannot compress it |
| Is this clause unusual for this counterparty? | A lawyer reading contracts | Expensive per label, hard to scale |
| Were these support tickets resolved well? | Nobody currently records it | Requires a process change before any model is possible |
Before asking whether a model can be built, ask where the labels come from and how long they take to arrive. Projects rarely die on the algorithm. They die on the last row of that table.
Leakage: the failure that flatters everyone
The most dangerous failure mode in supervised learning is leakage: a field creeps into the inputs that would not have existed at the moment of the decision. A collections flag. A write-off code. A status that is only ever set after the outcome is known.
The sequence is always the same. Test performance looks extraordinary. Nobody questions a result that good. The system is approved on that number. In production, the field is empty — because the future has not happened yet — and performance collapses.
The defence is a single question asked of every input: would this value have been available, in this form, at the moment the decision was made?
And a disposition: a result that looks too good is a reason to investigate, not to celebrate.
Three things it will never give you
Causation. It learns what accompanies the outcome, not what produces it. Acting on a correlation as though it were a lever is how good models cause bad decisions.
Explanation. Attribution tools show which inputs moved the score. That is not the same as a reason a regulator, a client or a court will accept.
Novelty. It reproduces the regularities of the past. When the regime changes it is confidently wrong, and it will not tell you that it has become so.
Exercise
- Pick three recurring decisions in your function that a competent person makes in a few seconds of looking at a document or a screen.
- For each, write A and B as single noun phrases. If you cannot, that is the finding.
- For each B, write where the label comes from and how long it takes to arrive.
- Rank the three by how quickly the labels appear. That ranking is usually the correct build order, and it rarely matches the ranking by enthusiasm.
Introduction to AI Masterclass: frequently asked questions
Do I need a technical background?
No. There is no mathematics or programming, and no assumed technical background.
How much does Introduction to AI Masterclass cost?
Introduction to AI Masterclass costs $99.
How long does Introduction to AI Masterclass take?
It is designed to be completed in about 7 weeks, at your own pace.
What level is Introduction to AI Masterclass?
The course is rated beginner level.
Is this financial advice?
No. The course is educational only and is not personal financial advice.