{"course":{"slug":"ai-actually-explained","title":"AI, Actually Explained","url":"https://addaly.com/learn/ai-actually-explained","level":"beginner","track":"start"},"lesson":{"slug":"prediction-is-the-engine","title":"Nearly all of it is prediction","url":"https://addaly.com/learn/ai-actually-explained/prediction-is-the-engine","position":6,"of":92,"minutes":8,"answer":"Optimising a chosen prediction target can reward misleading shortcuts; test errors and consequences.","keyIdea":"Optimising a chosen prediction target can reward misleading shortcuts; test errors and consequences."},"body":{"format":"markdown","text":"## One mechanism, many products\n\nA 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.\n\n- The spam filter sees an email and predicts a label: spam or not.\n- The camera sees a dim, noisy sensor reading and predicts what a sharper, brighter photograph of the same scene would have looked like.\n- The chatbot sees the conversation so far and predicts the next chunk of text.\n- The feed sees your history and predicts which video you will watch to the end.\n\nOnce 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.\n\n## How the prediction gets good\n\nFor a neural model trained with a supervised or self-supervised prediction objective, one simplified loop has three steps.\n\n1. The model makes a prediction on an example whose right answer is known.\n2. The difference between the prediction and the right answer is measured. That difference has a name: the **loss**.\n3. An optimiser adjusts trainable parameters using a signal intended to reduce that loss.\n\nGradient-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.\n\n> Figure: A simplified prediction-training loop. Steps: 1. Predict (Produce an output for a training example with a specified target); 2. Measure a loss (Compute the chosen mismatch between output and target); 3. Adjust trainable parameters (Use an optimiser signal intended to reduce that loss); 4. Repeat, then evaluate (Continue fitting and check performance on held-out cases and relevant groups). This is one gradient-based learning setup, not all machine learning. People choose the training data, targets and objective. Reducing training loss does not establish useful or fair behaviour on new cases.\n\nYou 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.\n\n## What prediction cannot do, by construction\n\nHere is the limitation that follows directly from the mechanism, and it is the most important idea in this lesson.\n\nA 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.\n\nConsider 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.\n\nA 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.\n\n## The second limitation: correlation is enough for the loss\n\nThe loop rewards anything that reduces the error, including features that are associated with the answer for reasons that have nothing to do with cause.\n\nConsider 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.\n\nThe 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.\n\n## What to do with this\n\nTwo questions, and they work on every system you will meet:\n\n**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.\n\n**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":{"question":"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?","options":[{"text":"The model was undertrained and needed more passes over the data before it would find the real signal.","correct":false,"tempting":"More passes can reinforce a shortcut that reduces training loss. Improvement on a new setting needs testing."},{"text":"The second hospital's images were of lower quality, so the model's true accuracy is the 94% figure.","correct":false,"tempting":"Blames the test data rather than the learned rule, which is how this failure survives review in practice."},{"text":"A marker that reduces training error can become a shortcut, even when it is not useful evidence in a new setting.","correct":true},{"text":"The token was a labelling mistake, and removing it from the images would leave the model's medical reasoning intact.","correct":false,"tempting":"Presumes there is separate medical reasoning underneath; the shortcut may be most of what the model learned."}]},"prev":{"slug":"what-a-model-actually-is","title":"A neural model has weights — and a size","url":"https://addaly.com/learn/ai-actually-explained/what-a-model-actually-is"},"next":{"slug":"why-it-is-called-learning","title":"Why \"learning\" is a borrowed word","url":"https://addaly.com/learn/ai-actually-explained/why-it-is-called-learning"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Nearly all of it is prediction', in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/prediction-is-the-engine (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Nearly all of it is prediction","courseTitle":"AI, Actually Explained","module":{"index":1,"slug":"what-the-word-names","title":"What this word actually means"},"answer":null,"keyIdea":"Optimising a chosen prediction target can reward misleading shortcuts; test errors and consequences.","hero":{"kind":"figure","figure":{"t":"figure","label":"Figure","figure":{"type":"flow","title":"A simplified prediction-training loop","caption":"This is one gradient-based learning setup, not all machine learning. People choose the training data, targets and objective. Reducing training loss does not establish useful or fair behaviour on new cases.","steps":[{"label":"Predict","detail":"Produce an output for a training example with a specified target"},{"label":"Measure a loss","detail":"Compute the chosen mismatch between output and target"},{"label":"Adjust trainable parameters","detail":"Use an optimiser signal intended to reduce that loss"},{"label":"Repeat, then evaluate","detail":"Continue fitting and check performance on held-out cases and relevant groups"}]},"alt":"Figure: A simplified prediction-training loop. Steps: 1. Predict (Produce an output for a training example with a specified target); 2. Measure a loss (Compute the chosen mismatch between output and target); 3. Adjust trainable parameters (Use an optimiser signal intended to reduce that loss); 4. Repeat, then evaluate (Continue fitting and check performance on held-out cases and relevant groups). This is one gradient-based learning setup, not all machine learning. People choose the training data, targets and objective. Reducing training loss does not establish useful or fair behaviour on new cases."}},"blocks":[{"t":"h2","id":"one-mechanism-many-products","runs":[{"text":"One mechanism, many products"}]},{"t":"p","runs":[{"text":"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."}]},{"t":"ul","items":[[{"text":"The spam filter sees an email and predicts a label: spam or not."}],[{"text":"The camera sees a dim, noisy sensor reading and predicts what a sharper, brighter photograph of the same scene would have looked like."}],[{"text":"The chatbot sees the conversation so far and predicts the next chunk of text."}],[{"text":"The feed sees your history and predicts which video you will watch to the end."}]]},{"t":"p","runs":[{"text":"Once you have the word "},{"text":"prediction","i":true},{"text":" 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."}]},{"t":"h2","id":"how-the-prediction-gets-good","runs":[{"text":"How the prediction gets good"}]},{"t":"p","runs":[{"text":"For a neural model trained with a supervised or self-supervised prediction objective, one simplified loop has three steps."}]},{"t":"ol","start":1,"items":[[{"text":"The model makes a prediction on an example whose right answer is known."}],[{"text":"The difference between the prediction and the right answer is measured. That difference has a name: the "},{"text":"loss","b":true},{"text":"."}],[{"text":"An optimiser adjusts trainable parameters using a signal intended to reduce that loss."}]]},{"t":"p","runs":[{"text":"Gradient-based optimisation uses this shape: "},{"text":"guess, compare, adjust, repeat","b":true},{"text":". 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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"what-prediction-cannot-do-by-construction","runs":[{"text":"What prediction cannot do, by construction"}]},{"t":"p","runs":[{"text":"Here is the limitation that follows directly from the mechanism, and it is the most important idea in this lesson."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"the-second-limitation-correlation-is-enough-for-the-loss","runs":[{"text":"The second limitation: correlation is enough for the loss"}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"what-to-do-with-this","runs":[{"text":"What to do with this"}]},{"t":"p","runs":[{"text":"Two questions, and they work on every system you will meet:"}]},{"t":"p","runs":[{"text":"What exactly is it predicting?","b":true},{"text":" Not what it is "},{"text":"for","i":true},{"text":": 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."}]},{"t":"p","runs":[{"text":"Where did the answers come from?","b":true},{"text":" 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":{"question":[{"text":"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?"}],"options":[{"text":[{"text":"The model was undertrained and needed more passes over the data before it would find the real signal."}],"correct":false,"tempting":[{"text":"More passes can reinforce a shortcut that reduces training loss. Improvement on a new setting needs testing."}]},{"text":[{"text":"The second hospital’s images were of lower quality, so the model’s true accuracy is the 94% figure."}],"correct":false,"tempting":[{"text":"Blames the test data rather than the learned rule, which is how this failure survives review in practice."}]},{"text":[{"text":"A marker that reduces training error can become a shortcut, even when it is not useful evidence in a new setting."}],"correct":true,"tempting":null},{"text":[{"text":"The token was a labelling mistake, and removing it from the images would leave the model’s medical reasoning intact."}],"correct":false,"tempting":[{"text":"Presumes there is separate medical reasoning underneath; the shortcut may be most of what the model learned."}]}],"order":[0,3,2,1],"why":null},"prev":{"slug":"what-a-model-actually-is","title":"A neural model has weights: and a size","minutes":9},"next":{"slug":"why-it-is-called-learning","title":"Why “learning” is a borrowed word","minutes":8}}}