g↗genai/ learner
Data and Evaluation / Lesson 03

Probability and uncertainty

A 90% forecast is an estimated chance, not a promise. Checking how closely predicted probabilities match what actually happens across many cases tells you whether those numbers are well calibrated.

Concept + interactive labBeginner friendly

90% is an estimate, not a promise.

Suppose your weather app says there is a 90% chance of rain this afternoon, so you pack an umbrella—and it stays completely dry. It is tempting to conclude the app was broken, because people often read 90% as “basically certain.”

In reality, a 90% forecast still leaves a 10% chance of staying dry. One dry day does not prove a 90% probability was wrong; it is built into what 90% means.

This lesson introduces five ideas in order:

  1. Probability (predicted probability): an estimated chance of an outcome from 0% to 100% (or 0 to 1), not a guarantee.
  2. Uncertainty: the remaining room for a different outcome (for example, a 90% rain forecast leaves 10% uncertainty).
  3. Observed rate: how often an outcome actually happened across a group of similar past cases.
  4. Calibration: how closely a model’s predicted probabilities match the observed rate across many cases given the same forecast.
  5. Overconfident vs underconfident: whether a model’s predicted probabilities are more extreme than reality or more cautious than reality.
Running example: The Riverside Weather App

To keep things concrete, we will follow an invented weather app for the town of Riverside. Each morning it predicts a probability of afternoon rain—such as 20%, 50%, 70%, or 90%—and we compare those forecasts with whether rain actually fell.

Look at an invented set of 10 days where Riverside’s app predicted a 90% chance of rain:

Day 1Forecast: 90%Rain
Day 2Forecast: 90%Rain
Day 3Forecast: 90%Rain
Day 4Forecast: 90%Dry
Day 5Forecast: 90%Rain
Day 6Forecast: 90%Rain
Day 7Forecast: 90%Rain
Day 8Forecast: 90%Rain
Day 9Forecast: 90%Rain
Day 10Forecast: 90%Rain

Rain fell on 9 of the 10 days and Day 4 stayed dry. In real life, a small 10-day sample can vary by chance—a well-calibrated 90% forecast might produce 8, 9, or 10 rainy days in any given stretch of 10.

The same idea applies outside weather. If a parcel tracker estimates an 80% chance your package arrives today, roughly 2 out of 10 similar deliveries will arrive later instead.

Diagram titled 90% is not a guarantee with subtitle A probability estimates how often an outcome happens across similar cases. Left card shows 90% rain forecast across 10 similar days, flowing via an arrow labelled Typical split to Expected outcomes showing ~9 rainy days, ~1 dry day, and a chip 10% uncertainty remains. Bottom cards show Analogy (Like drawing from 9 blue and 1 yellow marble—yellow is rare, not impossible.) and Key takeaways (Probabilities are estimates, not guarantees; 90% still leaves 10% room to miss; One dry day does not break a 90% forecast).
A 90% estimate means rain is likely across similar days, while leaving 10% uncertainty for a dry outcome.

What makes a probability well calibrated.

Since a single outcome cannot tell you whether a 90% forecast was reliable, how do you check? You group many past cases that received the same forecast and compare the predicted probability against the observed rate—how often the event actually occurred in that group.

A reliability bar places those two numbers side by side for a forecast group so you can see at a glance whether the model’s predictions match reality. Using that single comparison (predicted probability versus observed rate), three patterns stand out:

Well calibrated

Predicted probabilities closely match observed rates across forecast groups.

Example: on 100 days given an 80% forecast, rain actually falls on about 80 days (80%).

Overconfident

Predicted probabilities sit further from 50% (more extreme) than observed outcomes support.

Example: predicting a 90% chance when rain falls only 60% of the time—or predicting 20% when rain actually falls 35% of the time.

Underconfident

Predicted probabilities sit closer to 50% (more cautious) than observed outcomes support.

Example: predicting a 60% chance when rain actually falls 85% of the time—or predicting 20% when rain falls only 10% of the time.

Diagram titled Checking calibration with subtitle Compare predicted probability against the observed rate across many cases. Three side-by-side cards show horizontal reliability bars: Well calibrated (Predicted: 80%, Observed: 80%, Matches reality), Overconfident (Predicted: 90%, Observed: 60%, Too extreme), and Underconfident (Predicted: 60%, Observed: 85%, Too cautious). Bottom cards show Analogy (Like checking whether a thermometer matches the real room temperature.) and Key takeaways (Group many cases with the same forecast; Compare predicted % to observed %; Well-calibrated numbers match actual rates).
Calibration checks whether predicted percentages match actual observed rates across many cases given the same forecast.

Try it: inspect the reliability bar.

Think of checking a kitchen scale by placing known weights on it and comparing the reading to the true weight. In a similar way, a reliability bar checks a model’s predicted probabilities against observed rates across many past cases (though real weather outcomes involve chance, unlike a fixed weight).

Worked trace: checking Riverside’s 90% forecast group

Take 100 invented past days where an app predicted a 90% chance of rain. If rain actually fell on 60 of those 100 days (60% observed), the observed bar falls 30 percentage points short of the predicted bar—showing the app is overconfident.

  1. Start on 1. Compare weather apps with App A (Well calibrated) and notice how the predicted and observed bars match at 90%.
  2. Switch to App B (Overconfident) and inspect both the 90% forecast and the 20% forecast to see overconfidence at both ends.
  3. Switch to App C (Underconfident) and compare its bars against App B.
  4. Open 2. Judge the forecast to classify three everyday scenarios, then click Reset lab to start fresh.
Choose an invented Riverside weather app:

Across 100 past days in each forecast group, rain actually fell at the same rate App A predicted.

Pick a forecast group (100 past days each):
Reliability bar: App A (Well calibrated) — 90% groupWell calibrated
Predicted probability90%
Observed rate (90 of 100 days rained)90%

Gap: 0 percentage-point gap

Predicted a 90% chance of rain, and rain fell on 90 of 100 days (90%). The remaining 10 dry days are expected uncertainty, not a bug.

Forecast groupRainy days (of 100)Observed rateStatus
20%2020%Well calibrated
50%5050%Well calibrated
70%7070%Well calibrated
90%9090%Well calibrated

Invented illustrative numbers for learning—not measurements from a live weather service or production model. Real calibration checks use larger sets of separate test examples and expect small random variation.

What calibration does—and does not—tell you.

Good calibration helps you read a model’s probability numbers more accurately on similar cases, yet it is only one part of evaluating a model. Keep four limits in mind:

  • Calibration alone does not make a model useful: in a town where it rains on 30% of all days, a lazy app that predicts “30% chance of rain” every single day is well calibrated (it rains on 30% of the days it predicts 30%), yet it never separates rainy days from dry days.
  • Small samples are noisy: checking only 5 or 10 cases can make a well-calibrated model look off by chance, so teams check calibration across larger groups of past outcomes.
  • Conditions shift over time: a model calibrated on summer weather or last year’s shoppers can drift out of calibration when seasons or habits change.
  • Raw AI scores are not automatically calibrated: many models that sort cases into categories output raw scores between 0 and 1 that look like percentages (as noted in Lesson 4.3), so teams check whether those scores match observed rates on separate test examples and calibrate them if needed before treating them as real-world probabilities.

This lesson focuses on reading and checking probability estimates. Lesson 5.4 covers how to update probabilities when new evidence arrives, and Lesson 5.8 covers turning scores into yes/no decisions with accuracy, precision, and recall.

  • If a 90% rain forecast turns out dry, was the forecast broken?

    No. A 90% estimate still leaves a 10% chance of a dry day. You can only judge calibration across many similar forecasts, not a single day.

  • Can a well-calibrated model still be unhelpful?

    Yes. Predicting the same overall average (such as 30% every day) can match the long-run observed rate without helping you tell rainy days from dry days.

  • Does a model outputting 90% mean it has been calibrated?

    No. Many models output raw scores that look like percentages (such as 0.90) without matching real-world observed rates until teams check and calibrate them.

✎ Try it yourselfKnowledge check · Practice only

Check your understanding.

An invented parcel-delivery model predicts a 90% chance of same-day delivery for a group of 100 orders. When the team checks what actually happened, 62 of those 100 orders arrived the same day (62%) and 38 arrived late. What does this tell you about the model's 90% predictions?

Take this with you.

Probabilities are estimates, not guarantees. A 90% forecast still leaves 10% uncertainty. To judge whether you can trust a model’s numbers, check calibration across many similar cases: compare the predicted probability to the observed rate to spot whether the model is well calibrated, overconfident, or underconfident—and remember that calibration alone does not guarantee a model is useful.

Ready to continue? Return to Data and Evaluation.