Agent Utility Functions
A rational agent rarely chooses between sure things. A delivery robot picks a route that is usually fast but sometimes blocked, and a trading agent weighs a safe return against a risky one. To act consistently, the agent needs a number for every outcome and a rule for combining those numbers when outcomes are uncertain. A utility function supplies both. This lesson shows where such a function comes from, which rescalings leave its advice unchanged, and how its shape encodes the agent's attitude to risk.
From preferences to numbers
Write A≻B when the agent strictly prefers outcome A to outcome B, and A∼B when it is indifferent. An uncertain prospect is a lottery L=[p1,S1; …; pn,Sn]: outcome Si occurs with probability pi, and the probabilities sum to 1. The outcomes of a lottery may themselves be lotteries.
The von Neumann–Morgenstern theorem states that if the agent's preferences satisfy six axioms (orderability, transitivity, continuity, substitutability, monotonicity and decomposability), then there is a utility function U that assigns a real number to every outcome so that, for any lotteries L1 and L2,
The second equation is what makes utility useful: the value of a gamble is the probability-weighted average of its outcomes' utilities. An agent that follows the MEU principle ranks its actions by this number.
Notice the direction of the argument. The axioms describe preferences, and the numbers follow from them. An agent with intransitive preferences, for example, can be offered a cycle of trades, each of which it accepts for a small fee, that returns it to its starting outcome with less money. That is why the axioms are treated as requirements of rational choice rather than conveniences.
Which rescalings change nothing
Utility is not unique. If U represents the preferences, so does U′(S)=aU(S)+b for any constants a>0 and b, because expectation passes through affine maps: E[aU+b]=aE[U]+b. A transformation that is merely increasing, such as taking square roots, keeps the ranking of sure outcomes but can reverse choices between lotteries.
Example: Suppose U(A)=0, U(B)=4 and U(C)=9. A lottery giving A or C with equal probability has expected utility 4.5, so the agent prefers it to B for sure. Take square roots: the utilities become 0, 2 and 3, the lottery is worth 1.5, and now the sure B wins.
Utility of money and risk attitude
Assume monetary utility U is continuous and strictly increasing over the relevant payment interval. When outcomes are amounts of money x, compare a lottery's expected monetary value EMV(L) with its expected utility. The certainty equivalent CE(L) is the unique sure amount the agent values exactly as much as the lottery:
Example: With U(x)=x, a lottery paying $0 or $100 with equal probability has an EMV of $50 and U(L)=0.5(0)+0.5(10)=5. Solving CE=5 gives a certainty equivalent of $25, so the agent would give up $25 of expected value to avoid the gamble.
Under these assumptions, curvature determines the risk-premium sign. By Jensen's inequality, concave U satisfies E[U(x)]≤U(E[x]); convex U reverses this inequality.
Risk attitude | Shape of U(x) | Lottery versus its EMV | Risk premium |
|---|---|---|---|
Risk-averse | Concave | U(L)≤U(EMV(L)) | Nonnegative |
Risk-neutral | Linear | U(L)=U(EMV(L)) | Zero |
Risk-seeking | Convex | U(L)≥U(EMV(L)) | Nonpositive |
Strict concavity or convexity across a non-degenerate lottery's outcomes makes the corresponding inequality strict and the premium positive or negative, respectively. Non-degenerate means at least two distinct amounts have positive probability. Linear portions permit equality.
A risk-neutral agent maximises EMV directly, so for it utility and money agree up to a positive affine rescaling. The same agent can be risk-averse over large stakes and nearly risk-neutral over small ones, because a smooth concave curve looks almost straight over a short interval.
What to remember
- Preferences that satisfy the six axioms imply a utility function, and the value of a lottery is ∑ipiU(Si).
- An agent maximising expected utility chooses the action whose lottery has the highest U(L).
- Positive affine rescalings aU+b with a>0 change no choice; other increasing transformations can reverse choices between lotteries.
- The certainty equivalent solves U(CE)=U(L), and the risk premium is EMV−CE.
- For continuous, strictly increasing monetary utility, concavity implies risk aversion and a nonnegative premium; convexity implies risk seeking and a nonpositive premium. Linear utility gives risk neutrality and zero premium.
Example: Choosing a delivery route with a risk-averse agent
A delivery agent is paid in credits and maximises expected utility with U(x)=x for a payment of x credits. For its next job it can choose one of three routes:
- Route A: a guaranteed payment of 64 credits.
- Route B: 144 credits with probability 0.6 (on-time bonus) and 16 credits with probability 0.4 (late penalty).
- Route C: 196 credits with probability 0.5 and 0 credits with probability 0.5 (the job may be cancelled).
a) Find the expected monetary value of each route.
The expected monetary value is the probability-weighted average of the payments, ignoring utility.
Route A pays 64 credits for sure, so EMVA=64 credits.
For Route B, the on-time branch contributes 0.6×144= ________ and the late branch contributes 0.4×16= ________, so
For Route C,
Ranked by money alone, C (98 credits) beats B (92.8 credits), which beats A (64 credits), so a risk-neutral agent would take Route C.
b) Find the expected utility of each route and state which route the agent chooses.
Apply U to each payment, then weight the utilities by the probabilities.
Route A: U(A)=64=8.
Route B: 144= ________ and 16= ________, so
Route C: 196= ________ and 0=0, so
The ranking is B (8.8), then A (8), then C (7), so the agent chooses Route B. Route C has the highest EMV but the lowest expected utility: under a concave utility, the even chance of earning nothing costs more utility than the extra credits add.
c) Find the certainty equivalent and the risk premium of Route B.
The certainty equivalent is the sure payment whose utility equals the expected utility of Route B:
The risk premium is the expected value the agent gives up in exchange for certainty:
The agent would swap Route B for any guaranteed payment above 77.44 credits. Route A's 64 credits falls short of that, which agrees with the choice in part b.
d) The designer considers two replacement utilities, U1(x)=10x+5 and U2(x)=(x)2=x. Which route does the agent choose under each, and why do the answers differ?
U1 is a positive affine transformation of U with a=10 and b=5, so every expected utility becomes 10U+5: U1(A)=10(8)+5=85, U1(B)=10(8.8)+5= ________ and U1(C)=10(7)+5=75. Route B still wins.
U2 squares the original utilities. Squaring is increasing on non-negative numbers, but it is not affine, and here it makes the agent risk-neutral: the expected value of U2 for each route is its EMV from part a, namely 64, 92.8 and 98 credits. Under U2 the agent chooses Route C.
Both replacements rank sure payments exactly as U does, yet only the affine one preserves the choice between lotteries.
An agent's preferences over outcomes satisfy the von Neumann–Morgenstern axioms and are represented by a utility function U. The designer wants a replacement U′ that makes exactly the same choice as U between every pair of lotteries. Which of the following replacements are guaranteed to do so? Select all that apply.
A software agent's utility for money is U(x)=lnx, where x is a payment in dollars. It is offered a lottery that pays $1600 with probability 0.25 and $100 with probability 0.75. What is the agent's risk premium for this lottery, in dollars, to the nearest dollar?