Module 4 · Lesson 6 · 16 min read
Decision-making under uncertainty
Decision-Making Under Uncertainty
Introduction
An agent makes decisions all the time: which tool to call, whether to ask the user for clarification, and whether to carry out an action that may not be reversible. The information is rarely complete. In this lesson we learn simple tools for making reasonable decisions: expected value, reversibility, confidence thresholds and escalation to a human, with a brief look at the tree of thoughts.
Learning objectives
- Represent a decision with options, outcomes, probabilities and utilities
- Compute expected value and compare options with it
- Bring reversibility and risk into the decision rules
- Design confidence thresholds that determine when the agent acts, asks or escalates
- Briefly explain the idea of the Tree of Thoughts
The elements of any decision
Every decision an agent faces can be described with four elements:
- Options: what can be done? Such as: act now, ask the user, or escalate to a staff member.
- Outcomes: what might happen after each option?
- Probabilities: how likely is each outcome? Usually a rough estimate, not an exact number.
- Utility: how good or bad is each outcome?
This is the core of the utility-based agent you saw in the types of agents lesson: it is not enough to reach the goal; it chooses between routes according to their expected quality.
Expected value
The expected value of an option is the sum of the utility of each outcome multiplied by its probability. If an option has two outcomes: success with a utility of 10 and a probability of 0.8, and failure with a utility of -20 and a probability of 0.2, its expected value = 10 × 0.8 + (-20) × 0.2 = 4.
But expected value alone is not enough for agents, for two reasons:
- The probabilities are estimates: the model's stated confidence is not a calibrated probability, so do not treat it as an exact number.
- Some errors cannot be undone: deleting a record or sending a message to every student is a mistake that many successes do not make up for. So we add hard rules for irreversible actions.
Confidence thresholds and escalation
A common practical rule that combines confidence and reversibility:
| Confidence in understanding the request | Reversible action | Irreversible action |
|---|---|---|
| High | Act | Ask for confirmation, then act |
| Medium | Act and show the result for review | Ask a clarifying question |
| Low | Ask a clarifying question | Escalate to a human |
A practical example: a request to drop a course
A student wrote: "Drop the course from my timetable." The student has two courses that they might mean, and dropping after the end of the change period cannot be undone. The following example in plain Python combines expected value with hard rules:
OPTIONS = {
"Drop it now": [(0.55, 10), (0.45, -100)], # a 55% chance of understanding the right course
"Ask a clarifying question": [(1.0, 6)], # a small delay in exchange for certainty
"Escalate to the academic advisor": [(1.0, 2)],
}
IRREVERSIBLE = {"Drop it now"}
def expected_value(outcomes):
return sum(p * u for p, u in outcomes)
def decide(options, confidence, threshold=0.9):
scored = {name: expected_value(o) for name, o in options.items()}
for name, ev in sorted(scored.items(), key=lambda x: -x[1]):
print(f"{name}: expected value = {ev:.1f}")
allowed = {n: v for n, v in scored.items()
if n not in IRREVERSIBLE or confidence >= threshold}
return max(allowed, key=allowed.get)
print("Decision:", decide(OPTIONS, confidence=0.55))The expected value of dropping now is negative (-39.5) because of the large loss in case of error, and the clarifying question gets 6, so it is chosen. Even if the expected value of dropping were positive, the hard rule would prevent it as long as the confidence is below 0.9. Notice that the numbers here are teaching assumptions set by the designer, not measurements extracted from a model.
A brief look at the tree of thoughts
The Tree of Thoughts paper (Yao and colleagues, 2023) proposed that the model explore several reasoning paths instead of one: it generates alternatives at each step, evaluates them, expands the promising ones and backs out of the weak paths. The idea resembles searching a decision tree. It helps in problems that need exploration, such as puzzles and planning with many options, but it multiplies the number of model calls and their cost. So it is used selectively, not for every decision.
Summary
A decision is described with options, outcomes, probabilities and utilities, and expected value is a simple way to compare options. But in agents the probabilities are estimates, and irreversible actions need additional hard rules. Confidence thresholds determine when the agent acts, asks or escalates to a human, and a clarifying question is a smart option, not a failure. The tree of thoughts explores and evaluates several paths, but it is costly, so it is used selectively.
Terms
| Term | English | Definition |
|---|---|---|
| Expected value | Expected Value | The sum of the outcomes' utilities multiplied by their probabilities |
| Utility | Utility | A numeric value that expresses how preferred a particular outcome is |
| Irreversible action | Irreversible Action | An action whose effect cannot be undone after it is carried out |
| Confidence threshold | Confidence Threshold | The minimum confidence required to carry out a particular action |
| Escalation | Escalation | Handing the decision to a human when it goes beyond the agent's limits |
| Tree of thoughts | Tree of Thoughts | Exploring several reasoning paths, evaluating them and backing out of the weak ones |
Review questions
- Compute the expected value of an option whose success has a utility of 8 and a probability of 0.7, and whose failure has a utility of -10.
- Why is expected value alone not enough for decisions about irreversible actions?
- Design a thresholds table for an agent that books medical checkup appointments at the university clinic.
- When is the tree of thoughts worth its extra cost?
References
- Tree of Thoughts: Deliberate Problem Solving with Large Language Models arxiv.org Reviewed on 2026-11-18
- NIST AI Risk Management Framework www.nist.gov Reviewed on 2026-11-18
- Building effective agents (Anthropic) www.anthropic.com Reviewed on 2026-11-18
