Back to World Models and Predictive Planning
World Models and Predictive Planning · Lesson 3 of 3 in this module
Understand prediction uncertainty
- Starting information
Two models fit observed transitions similarly
- Relationship or operation
They disagree in an unobserved region
- Consequence
A warning about unsupported predictions
Agreement on training data does not establish confidence everywhere. Model disagreement and observation noise are different sources of uncertainty.
The idea in everyday terms
A cart can really move differently because of a gust. A sensor can report a slightly wrong speed. A model can also make a bad guess because it has seen only gentle pushes. Keep those three explanations separate.
What to watch in the experiment
Collect 24 short examples and compare one fitted guess, a set of guesses made by adding past errors, and five models fitted on reshuffled copies of the same examples. The past errors include sensor error. They describe possible readings under an assumption that those errors transfer; they are not guaranteed limits on the cart’s motion.
Turn sensor noise off while keeping wind on. The physical cart can still have two outcomes. Turn both off and collect gentle forces, then try a strong force. All five models can agree and still be wrong because none has learned the stronger response. Collect broad forces and test both an endpoint and a force between examples.
Keep the comparisons honest
The rows are a deliberately balanced teaching collection, not fresh random observations on each click. Resampling repeats some examples and omits others; it adds no new environmental evidence. A seed changes those resamples. The public simulator supplies true outcomes only for comparison, never for fitting. The figure uses fixed axes and counts clipped values; exact values remain available.
Use the result to choose a next step
Decide whether to improve measurement, account for different possible outcomes, collect missing examples or change the kind of model. Agreement alone does not establish that a model is trustworthy. Record your reason. This is repeated development practice. The worked reference below gives the exact calculation and assumptions.
Full worked explanation, calculations and control definitions
Use this reference for the detailed mechanism and control meanings. Derivations explicitly marked optional are enrichment.
Three different questions
A point prediction compresses a range of possibilities into one number. A cart may have two possible next velocities because an unobserved gust can push either way. A sensor can add error to either outcome. A model fitted on limited examples can also be wrong about both. These are different mechanisms, even when all appear as variation in a spreadsheet.
Observation noise changes what is recorded. Outcome uncertainty means several physical outcomes remain possible given the supplied state and action. Model uncertainty concerns what the fitted predictor has not learned. The distinction depends on available information: measuring the gust could turn an uncertain outcome into a predictable conditional outcome.
A small experiment with explicit ground truth
All episodes start at velocity 0.4 m/s and last 0.1 s. This lesson uses a separate fictional actuator with additional response beyond force magnitude 1 N. It is not the preceding lesson’s drag model. In the following rule, numerical constants carry the units needed to express acceleration in m/s²; force is expressed in newtons for a 1 kg cart.
Wind w is either zero or equally likely −0.6/+0.6. A measurement adds independent error of zero or equally likely −0.02/+0.02 m/s. The public diagnostic display enumerates these possibilities exactly. Their probabilities are authored simulator assumptions, not frequencies learned from a robot.
Collection supplies three forces, eight one-step episodes at each, balanced across all wind and sensor signs. This deliberately balanced dataset is not a new random sample each time. Only measured velocity and force enter fitting; hidden wind and true velocity remain diagnostic fields.
Fit a point and a small distribution
The point model learns an intercept and a slope by least squares on the 24 measured examples. Subtract each fitted value from its measured target to obtain a residual. At a probe force, add each of the 24 residuals to the point prediction and give each result mass 1/24.
This empirical distribution predicts measurements, including sensor error. Moving the same residuals to another force assumes their pattern transfers. Residuals also contain model error, so this recipe does not identify noise sources from data. The minimum and maximum are empirical support, not a 95% interval or a physical safety guarantee. Fitting and checking on the same rows can understate error.
With exact sensing and wind enabled, the mean can sit between two possible outcomes without being either outcome. At +2 N the diagnostic physical velocities are 0.612 and 0.732 m/s. With sensor noise, a reading of 0.592 m/s is possible even though physical velocity is always above 0.6 m/s. Do not confuse a probability about readings with one about motion.
Fit several models without pretending they are independent evidence
Each of five models fits a bootstrap sample: 24 episode indices drawn with replacement from the same measured collection. Some rows repeat and others are omitted. The displayed standard deviation measures a typical distance from the five predictions’ average: subtract the average, square each difference, average those squares by dividing by five, then take the square root. Its unit is m/s, matching the predictions. It is neither the spread of physical outcomes nor a calibrated probability of correctness. A constant-force bootstrap would leave slope unidentified; the implementation explicitly falls back to its observed mean.
Seeds 7, 19 and 41 change resampling, not the underlying observations. Changing a seed does not produce new environmental evidence. This bounded affine demonstration is not an implementation of the neural Deep Ensembles research method linked in the references.
Agreement can be confidently wrong
Disable wind and sensor noise, collect only −0.25, 0 and +0.25 N, then probe +2 N. All training points lie on a line, and the fitted lines agree to numerical precision. They predict 0.592 m/s while the plant gives 0.672 m/s: 0.08 m/s error despite essentially zero disagreement.
Broader collection fixes this particular endpoint. It does not make the straight line the right model everywhere: at +1 N the broader line predicts 0.532 m/s while truth is 0.492 m/s. A range box is not coverage of every condition, and data cannot make a restricted model family express every mechanism.
Decide what evidence to collect next
If sensor error dominates, improve or characterize measurement. If actual outcomes differ, preserve the distribution or observe the missing cause. If coverage is poor, collect relevant actions. If a model family misses the response shape, change the model and evaluate again. These interventions address different problems.
Record the conditions, point error, distribution assumption, ensemble spread and proposed next action. The fixed public probes are repeated development practice. Temporary captures do not authenticate learning or replace the later project assessment, independent implementation or human review.