Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 14 of 21 in this unit

Build AI Systems · ORIGINAL LEARN AI LESSON

Know what a prediction leaves uncertain.

Separate noisy observations, multiple physical outcomes and disagreement across fitted models.

By the end: Compare point predictions, empirical predictive distributions and bootstrap disagreement, then diagnose a confidently wrong prediction outside collected coverage.

Start with the exampleJump to the experimentRead the explanation
Prerequisites and path options

Why learn this? Separate sensor error, possible outcomes and shared model blind spots before trusting a confident prediction.

01 · TRY

Start with something concrete.

Two sensors report slightly different speeds for the same cart. That does not mean the cart has two speeds. But a hidden gust can actually send the cart to two different speeds. Decide which kind of variation each experiment contains.

Try the interactive model
02 · PREDICT
Before you experiment

Five models agree on the next speed under a force absent from their training data. What does that establish?

Five models agree on the next speed under a force absent from their training data. What does that establish?
03 · EXPERIMENT

Change one thing. Watch what follows.

Loading this browser experiment…

04 · UNDERSTAND
READ & CONNECT

Understand what changed.

Back to the experiment

A shorter explanation, with the original worked examples available below. Both explain the same experiment and its limits.

Same learning goal in both modes: Compare point predictions, empirical predictive distributions and bootstrap disagreement, then diagnose a confidently wrong prediction outside collected coverage.

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 and export temporary captures if needed. This is repeated development practice; project evidence and human review remain separate. The worked reference below gives the exact calculation and assumptions.

Open the full worked examples, calculations and limitations

This is the same reference used in Technical mode. Expand it whenever you need the exact numbers, assumptions or further explanation.

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.

v′=0.4+0.1[u−0.08+0.8 sign⁡(u)max⁡(0,∣u∣−1)2+w]v' = 0.4 + 0.1\left[u - 0.08 + 0.8\,\operatorname{sign}(u)\max(0,|u|-1)^2 + w\right]

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.

v^(u)=a+bu,ri=yi−v^(ui),Y(u)∈{v^(u)+r1,…,v^(u)+r24}\hat v(u)=a+bu,\qquad r_i=y_i-\hat v(u_i),\qquad Y(u)\in\{\hat v(u)+r_1,\ldots,\hat v(u)+r_{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.

05 · APPLY
Check your understanding

Training residuals include sensor error. You shift those residuals onto a fitted mean at a new action. What does this produce?

Training residuals include sensor error. You shift those residuals onto a fitted mean at a new action. What does this produce?
06 · CONTINUE

Take this idea with you.

Ask what varies, what was observed and what the model can express. Outcome spread, sensor noise and fitted-model disagreement answer different questions; none removes the need to test coverage and model adequacy.

My Learning
Explore related topics and the topic map

How this topic connects

Explore this topic on the interactive map

Use these connections to review a foundation or choose where to go next. You can open any topic without completing the others.

What it builds on

  • Learn continuous dynamics

    Learn what a prediction model gains from collected motion and when a simpler baseline already earns its place before adding planning cost.

  • Sampling and uncertainty

    Judge how much confidence a small sample deserves before making a larger commitment.

You are hereKnow what a prediction leaves uncertain

Separate noisy observations, multiple physical outcomes and disagreement across fitted models.

What it enables