One mechanism, many products
A spam filter, a camera, a chatbot and a video feed look like four different technologies. Prediction is a useful common idea, but they do not all use the same model, output or training method.
- The spam filter sees an email and predicts a label: spam or not.
- The camera sees a dim, noisy sensor reading and predicts what a sharper, brighter photograph of the same scene would have looked like.
- The chatbot sees the conversation so far and predicts the next chunk of text.
- The feed sees your history and predicts which video you will watch to the end.
Once you have the word prediction in place, the whole field stops looking like magic and starts looking like one idea applied in many directions. It also tells you where the failures will be, which is the more useful half.
How the prediction gets good
For a neural model trained with a supervised or self-supervised prediction objective, one simplified loop has three steps.
- The model makes a prediction on an example whose right answer is known.
- The difference between the prediction and the right answer is measured. That difference has a name: the loss.
- An optimiser adjusts trainable parameters using a signal intended to reduce that loss.
Gradient-based optimisation uses this shape: guess, compare, adjust, repeat. Successful fitting should reduce the chosen training loss, but that alone does not establish good performance on new cases. Other learning methods, such as fitting decision-tree branches, work differently.
You can watch this happen without any AI tooling at all. Open LibreOffice Calc or Google Sheets, put twenty points on a scatter chart, and add a trend line. A least-squares linear trend line fits coefficients to the points. It may be calculated directly rather than by repeated gradient steps. It is a small model fitted from data, not proof that every learning method is the same algorithm scaled up.
What prediction cannot do, by construction
Here is the limitation that follows directly from the mechanism, and it is the most important idea in this lesson.
A predictive objective is not automatically the outcome we want in the world. Value judgements already enter when people choose the data, labels, loss, thresholds and use of the result. A low loss can reward reproducing a harmful historical pattern; it does not establish that the target or the deployment was appropriate.
Consider a model trained to predict rearrest. A recorded arrest is different from a measure of all offending. Reporting and policing affect which incidents enter those records. A model can therefore learn patterns in the recording process as well as patterns in offending. Research on predictive policing shows how using police-discovered incidents can reinforce patrol patterns under some conditions. A hiring model fitted to past selection decisions can reproduce unfair patterns in those decisions. Check what target it was trained to predict and how its errors affect applicants.
A system can fit its chosen target while failing the intended real-world goal. That does not rule out software or data faults; it shows why evaluating only that target can be inadequate.
The second limitation: correlation is enough for the loss
The loop rewards anything that reduces the error, including features that are associated with the answer for reasons that have nothing to do with cause.
Consider an illustrative medical-imaging scenario, not a reported study: a classifier relies on an image-corner marker associated with portable equipment in one hospital. If that marker happens to correlate with illness in the training data, the model can exploit it. A different hospital can break the association. The teaching point is shortcut learning; the numbers in the exercise are hypothetical.
The model was not stupid. In this illustrative example, it used a shortcut that helped its training score. That does not mean the shortcut will work elsewhere. Which patterns a model learns also depends on its architecture, data and optimisation.
What to do with this
Two questions, and they work on every system you will meet:
What exactly is it predicting? Not what it is for: what quantity is it actually trying to get right? A feed trained to predict watch time is not directly measuring what is good for you. A hiring filter trained to imitate past selections is not directly measuring future job performance. Products can use other targets too; inspect the actual system.
Where did the answers come from? In the supervised example here, each training target was produced by a person or a recording process. Check what it measures and what it misses. Models can generalise beyond individual examples, but a score for reproducing a proxy target does not prove they learned the real-world goal. Other learning setups use different signals.
Check your understanding
In an illustrative exercise, an X-ray classifier scores 94% at one hospital and 61% at another. An audit finds it relied on a corner marker correlated with illness only in the first dataset. What does this show?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meenal, your AI tutor