Measuring prediction error: construct validity, tasks and common confounds

A tone repeats at regular intervals. One tone arrives at a different pitch, and an electrical recording from the scalp changes. A researcher may call the difference a prediction-error response. That label is a hypothesis about the process behind the signal, not a direct reading of a quantity inside the listener. The unusual tone differs in physical features, frequency of presentation and perhaps attention; each difference can influence the recording. A useful measurement study asks which part of the response can be attributed to a violated expectation and what would happen under an alternative explanation.

Measuring prediction error means specifying a predicted event, an observed event and a rule that compares them, then testing whether a behavioral or neural measure tracks that comparison. This Methods & Measures entry concerns construct validity: whether the chosen task and measure represent the particular prediction error named in a claim. Prediction error in sensory inference is not automatically the same as reward prediction error in learning. Neither is identical to a person’s feeling of surprise. The distinction matters because the same word is used for quantities with different units, assumptions and consequences.

Start with the proposed quantity

In a simple learning model, a prediction error can be written as an observed outcome minus an expected outcome. If a reward worth ten units was expected to be worth six, the signed difference is positive four. If the reward was worth two, the signed difference is negative four. The sign can matter when a model updates a value estimate. The absolute magnitude can be used to describe how different the outcome was, while a probabilistic model may define surprise in terms of how improbable an event was under the model. These are related but not interchangeable quantities.

The phrase “the brain made a prediction” can also conceal whose model produced the estimate. An experimenter can fit a learning rule to choices and calculate a trial-by-trial expected value. That fitted value is a model-derived estimate, not a direct measurement of a participant’s belief. A participant may use different cues, remember a different history or expect a different outcome. When a neural response correlates with the fitted error, the result supports a relation to that modeled variable under the study’s assumptions. It does not show that the brain literally implements the researcher’s exact equation.

Construct validity therefore begins before data collection. The investigator must say whether the target is a sensory mismatch, a reward-value difference, an omitted event, a discrepancy between a bodily state and an interoceptive expectation, or a subjective judgment that something was surprising. The task should make that target vary independently from plausible alternatives as far as possible. Otherwise a statistically clear signal may answer an unclear question.

Schultz, Dayan and Montague’s influential account connected dopamine responses in reward-learning experiments with deviations from expected reward. It established a productive computational interpretation of specific observations. It did not turn every dopamine response, every scalp voltage or every unexpected event into the same biomarker. Translating a model across measurement modalities requires fresh tests of what each modality can distinguish.

Reward-learning tasks and their fitted errors

A common reward-learning task presents cues followed by outcomes. The cue may signal a probability of money, points or another reward. As trials unfold, a participant chooses, receives feedback and may update a value estimate. A researcher can fit a model with parameters such as learning rate and then compute the difference between the outcome and the modeled expectation on each trial. That sequence yields a regressor for analysis of behavior or neural activity.

The fitted error depends on the model. A model that assumes one learning rate for gains and losses may generate different trialwise errors from a model with separate rates. A model that assumes people track changing reward probabilities differs from one that assumes fixed probabilities. If the task supplies explicit probabilities, a participant may use them directly, learn them imperfectly or ignore them. The variable entered into a brain analysis should be named as the error from a stated model, not “prediction error” without qualification.

Daw’s methodological chapter on trial-by-trial computational analysis explains both the promise and the risks of relating fitted variables to behavior and neural data. Models can make hypotheses precise, but their fitted latent quantities are only as informative as the model comparison, parameter recovery and behavioral fit supporting them. A model can describe choices acceptably while attributing them to the wrong process. A neural correlation cannot repair a behavior model that fails to distinguish its own alternatives.

Timing matters too. A response to a cue may reflect the predicted value, the salience of information or a shift of attention. A response after an outcome may reflect a difference from expectation, but also the outcome’s sensory impact or motor response. If larger rewards are brighter, louder or more likely to elicit movement, those features can covary with the calculated error. A strong design varies expectation and outcome in ways that permit their contributions to be estimated separately.

Reward timing itself can change the represented value. Kobayashi and Schultz studied how delayed rewards affected dopamine-neuron responses in a task involving reward timing and choice. Their results show why an experiment cannot assume that two physically identical rewards have identical expected value when one arrives later. The relevant comparison depends on what the animal has learned about delay, and the result is specific to that task and recorded population.

Reward prediction error is usually a signed learning quantity. A negative value after a worse-than-expected outcome need not be consciously felt as a distinct “negative surprise.” The participant’s description is a separate measure. Asking for expectancy ratings can help check the fitted values, but ratings can change attention and learning. A study may use occasional probes, a separate cohort or model comparisons to balance those costs. There is no measurement choice that removes all tradeoffs.

Sensory mismatch and the oddball paradigm

In an auditory oddball task, frequent standard sounds create a regular sequence and infrequent deviants break it. Researchers often subtract the brain response to standards from the response to deviants and examine a component called mismatch negativity. Garrido and colleagues review several possible mechanisms behind this response, including memory-based comparison, sensory adaptation and predictive processing. The difference waveform is an observation. Interpreting it as prediction error requires additional evidence about the mechanism.

The most immediate confound is repetition. A standard sound is repeated often; a deviant is not. Neurons responding to the standard may adapt, so a larger response to the deviant could arise partly because it is less adapted. Physical differences between sounds add another complication. If the deviant has a new pitch, the waveform can include a response to that pitch itself. A simple deviant-minus-standard subtraction combines several changes unless the design supplies controls.

One solution is to compare a sound when it is surprising with the same sound in a control context where it is less surprising, while accounting for how often it has been presented. Another is to vary the probability of repetitions or use a roving sequence so expectations change over time. Summerfield and colleagues manipulated expectations about visual repetition and reported that repetition suppression depended on those expectations. Their experiment supports a role for expectation in a particular visual paradigm; it does not prove that all repetition effects are prediction errors.

Even a control condition can introduce a new confound. Changing the sequence may alter attention, fatigue or the interval since a sound was last heard. A carefully matched control is an improvement, not a guarantee of a pure signal. The analysis should report what was matched and what remains different. If a method claims to isolate prediction error, the strongest evidence shows that the measured response changes when expectation changes while relevant sensory input and recent exposure are held as comparable as the task permits.

Neural signals also differ in temporal and spatial resolution. EEG can locate a response in time but has limited ability to identify its precise neural source. Functional MRI can reveal where blood-oxygen signals covary with a model variable, but its slow time course and indirect relation to neural activity limit what can be inferred about a fast comparator operation. Neither method by itself reads out a unique internal error quantity.

Prediction error, surprise and valence

An event can be surprising without being good or bad. A highly unlikely neutral sound has low probability under a learned sequence, yet its reward value may be zero. A reward outcome can be worse than expected while still being positive in absolute terms. A signed reward error, unsigned mismatch and subjective feeling of surprise may therefore diverge. Combining them under one label can make two studies appear to replicate when they measured different things.

Fouragnan, Retzler and Philiastides’ fMRI meta-analysis examined neural representations related to prediction-error valence and surprise. The authors discuss evidence for partially separate patterns and the methodological difficulty of distinguishing those terms across studies. A meta-analysis can help identify regularities, but it also inherits the different task definitions and models of its component studies. Its results do not establish one anatomical location where all forms of prediction error are stored.

Subjective surprise can be measured with a rating, but a rating is not a transparent copy of a computational variable. It may depend on memory, language, how much the outcome matters and the scale offered by the experimenter. A person may report surprise because an event was rare, because it was consequential or because it violated a personal expectation the experimenter’s model omitted. To compare subjective and modeled surprise, a study needs both measures and a clear prediction about when they should align or differ.

One useful design asks participants what they expect before a subset of outcomes and how surprising an outcome feels afterward. The responses can test whether the formal model approximates their beliefs. Yet probing on every trial may change the task and slow learning. An article should disclose the probing schedule and avoid claiming that an unasked experience was measured. The distinction between an internal computational account and a verbal report is substantive, not merely terminological.

What neural data can and cannot identify

Researchers may describe a neural response as “encoding” prediction error when its amplitude covaries with a model-derived error. That relation is evidence, especially if it follows specific trialwise predictions and survives plausible controls. But it is not automatically evidence of causal computation. The signal might covary with another variable that shares the same trial pattern: arousal, novelty, reward magnitude, attention, movement or uncertainty about the task.

Collinearity is a particular problem. In a poorly designed task, large prediction errors occur only on rare trials, only after one kind of cue or only with large rewards. A regression model cannot cleanly attribute the signal when its candidate predictors rise and fall together. The remedy is primarily design: create cases in which expectation, outcome, probability and value come apart. A more elaborate analysis of confounded data cannot manufacture independent variation that the task never supplied.

Model comparison is also essential. A reinforcement-learning model may explain a choice sequence, but so may a win-stay rule, a habit model or a model that tracks recent outcomes without representing probabilities. If several models fit equally well yet imply different trialwise errors, the neural association is fragile. Investigators can compare predictive fit on held-out behavior, simulate whether parameters can be recovered and examine whether the selected model predicts new patterns. These steps narrow interpretation rather than certify a final mechanism.

A stronger causal claim might require an intervention that changes expected outcomes while holding sensory events comparable, or changes a candidate neural circuit and tests predicted changes in behavior. Such interventions have their own limitations and ethical constraints. Correlational EEG and fMRI studies remain valuable, but their conclusions should be phrased as model-consistent associations unless the design supports more.

Schultz and colleagues’ reward work, sensory mismatch experiments and fMRI meta-analysis each use different signals and tasks. Their convergence around prediction-based explanation is intellectually important, yet the measures are not interchangeable. A signal in a scalp electrode, a dopamine neuron and a blood-oxygen voxel has a different biological meaning. The construct earns validity separately in each measurement chain.

Common confounds to report explicitly

First, physical novelty can be mistaken for violated expectation. A new sound or image differs from the standard even if a participant did not form a prediction. Controls should compare equivalent stimuli under different expectation contexts where possible. Second, repetition and adaptation can mimic a mismatch response. The study should report stimulus frequencies, recent histories and timing, not only average category labels.

Third, reward magnitude can be mixed with reward prediction error. If the best outcome is always the most surprising, a neural response may track value rather than the difference from expectation. Fourth, attentional state can change both the measured signal and the probability that a participant learns the sequence. Even tasks that do not require overt attention should avoid assuming attention was constant.

Fifth, model specification can create the quantity being correlated with the brain. Researchers should explain how expectations were estimated, which alternatives were compared and whether parameters were fit to the same data later used to test the neural relation. Sixth, movement and measurement artifacts may vary with outcome. Eye movements, button presses and muscle activity matter for some neural recordings. Seventh, statistical flexibility can magnify apparently precise findings if time windows, regions or models were selected after seeing the signal.

These confounds do not make prediction-error research impossible. They specify what a claim needs to survive. A useful methods report includes enough information to reconstruct the predicted variable, reproduce the stimulus sequence, understand exclusions and judge whether controls target the rival explanations. That transparency supports cumulative work more than a broad assertion that a neural peak “is” prediction error.

Construct validity across contexts

A measure can be valid for one use and weak for another. An oddball response may be a sensitive index of processing changes in a particular auditory protocol. That does not make it a general score of a person’s ability to predict social events, bodily states or future rewards. Transfer across contexts must be demonstrated with independent tasks and a theory of why the same latent quantity should matter in each.

Interoceptive prediction error adds further difficulty. The underlying bodily state may be measured imperfectly; the person’s expectation may be inferred rather than stated; and physiological changes can arise from action, environment or measurement itself. An article about interoception may use predictive language to propose a mechanism. A methods claim about measuring that mechanism needs operational definitions and tests that separate prediction from the body’s incoming signal and from a person’s interpretation.

Likewise, a difference between expected and observed outcomes in a classroom or workplace can be described colloquially as a prediction error. That description may be useful for reflection. It is not evidence that a neural prediction-error circuit was measured. Researchers and practitioners can use the same conceptual question, “What was expected and what occurred?”, while keeping the evidentiary claims at their appropriate level.

Reliability matters too. If an individual score changes substantially with small changes in stimuli, task comprehension, sleep or analysis choices, it may be unsuitable for comparing people even if a group average is reproducible. A group-level effect and an individual biomarker are different claims. Before using a measure to classify learners, patients or employees, one would need evidence about test-retest stability, population validity, meaningful thresholds and consequences of error. The studies cited here do not supply a universal clinical or educational cutoff.

A review checklist for a prediction-error study

Begin with the paper’s exact definition. Is the error signed or unsigned? Is the expectation about a sensory feature, probability, value or bodily state? Is the expectation observed from a participant report, imposed by the task, or inferred from a fitted model? Write the equation or operational comparison in plain language before interpreting a graph. A coefficient without a clear construct is difficult to evaluate.

Then examine the task. Which variables change together? Are surprising events also rare, physically different or more rewarding? Was a control designed to isolate expectation from repetition? Does the analysis include the outcome itself and plausible rival variables? If the answer is no, the study may still demonstrate an interesting response to unusual events, but the more specific prediction-error interpretation remains open.

Next ask whether the model explains behavior. A fitted regressor can look orderly even if participants did not learn the proposed contingencies. Compare candidate models, inspect predictive performance and report uncertainty in parameter estimates. Check whether the neural effect survives reasonable alternative specifications. A robust measurement claim is not one that survives every imaginable model, but one whose important assumptions have been exposed and tested.

Finally, scale the conclusion to the evidence. “This EEG component was larger for unexpected tones under these controls” is narrower and often stronger than “we measured the brain’s prediction error.” “The blood-oxygen signal covaried with this model’s trialwise reward error” identifies both the signal and the model. Precise wording makes it easier to compare studies, discover disagreements and design the next experiment.

What the evidence does not show

The cited research does not establish a single prediction-error biomarker spanning sensory, reward and interoceptive domains. It does not show that every response to novelty is generated by predictive coding, that every dopamine response is a reward error, or that a neural signal is the same as conscious surprise. An error regressor is calculated under a model; its correlation with a measurement is not direct access to the underlying computation.

Oddball and repetition tasks remain vulnerable to physical difference, adaptation and attention confounds. Reward tasks remain vulnerable to correlations among outcome value, rarity, movement and model-derived error. Meta-analytic patterns can motivate hypotheses, but they cannot erase variation in the underlying task definitions. Individual diagnostic uses need reliability and validity evidence beyond group-average experimental effects.

The operational checklist in this entry is Institute synthesis drawn from the methods literature, not a validated universal test. Broad theories of predictive processing and active inference can motivate hypotheses, but their breadth does not establish a specific measurement method. Research with identifiable tasks and explicit alternative explanations is needed to evaluate the proposed quantity.

Return to the altered tone

The altered tone can produce a clear electrical response. The next question is what the response means. A researcher can compare the same tone in different sequence contexts, document recent repetitions, estimate the listener’s expectations and test rival models. Each step narrows the interpretation. None requires pretending that the electrical trace is a transparent copy of an inner quantity.

Prediction error is powerful because it turns a broad idea about learning into a testable relation between expectation and outcome. Measurement is credible when that relation is specified for a task, distinguished from competing explanations and described at the level the data support. The result may be less dramatic than a universal biomarker, but it is more useful for building evidence that can be challenged, repeated and improved.

Research references

  1. Schultz, W., Dayan, P., & Montague, P. R. (1997). A neural substrate of prediction and reward. Science, 275(5306), 1593–1599. View source
  2. Daw, N. D. (2011). Trial-by-trial data analysis using computational models. In M. R. Delgado, E. A. Phelps, & T. W. Robbins (Eds.), Decision Making, Affect, and Learning: Attention and Performance XXIII (pp. 3–38). Oxford University Press. View source
  3. Garrido, M. I., Kilner, J. M., Stephan, K. E., & Friston, K. J. (2009). The mismatch negativity: A review of underlying mechanisms. Clinical Neurophysiology, 120(3), 453–463. View source
  4. Summerfield, C., Trittschuh, E. H., Monti, J. M., Mesulam, M.-M., & Egner, T. (2008). Neural repetition suppression reflects fulfilled perceptual expectations. Nature Neuroscience, 11(9), 1004–1006. View source
  5. Fouragnan, E., Retzler, C., & Philiastides, M. G. (2018). Separate neural representations of prediction error valence and surprise: Evidence from an fMRI meta-analysis. Human Brain Mapping, 39(7), 2887–2906. View source
  6. Kobayashi, S., & Schultz, W. (2008). Influence of reward delays on responses of dopamine neurons. The Journal of Neuroscience, 28(31), 7837–7846. View source