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≻BA \succ B when the agent strictly prefers outcome AA to outcome BB, and A∼BA \sim B when it is indifferent. An uncertain prospect is a lottery L=[p1,S1; … ; pn,Sn]L = [p_1, S_1;\ \dots;\ p_n, S_n]: outcome SiS_i occurs with probability pip_i, 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 UU that assigns a real number to every outcome so that, for any lotteries L1L_1 and L2L_2,


L1≻L2  ⟺  U(L1)>U(L2),U(L)=∑i=1npi U(Si).L_1 \succ L_2 \iff U(L_1) > U(L_2), \qquad U(L) = \sum_{i=1}^{n} p_i\, U(S_i).


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 UU represents the preferences, so does U′(S)=aU(S)+bU'(S) = aU(S) + b for any constants a>0a > 0 and bb, because expectation passes through affine maps: E[aU+b]=aE[U]+bE[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)=0U(A) = 0, U(B)=4U(B) = 4 and U(C)=9U(C) = 9. A lottery giving AA or CC with equal probability has expected utility 4.54.5, so the agent prefers it to BB for sure. Take square roots: the utilities become 0, 2 and 3, the lottery is worth 1.51.5, and now the sure BB wins.



Utility of money and risk attitude

Assume monetary utility UU is continuous and strictly increasing over the relevant payment interval. When outcomes are amounts of money xx, compare a lottery's expected monetary value EMV(L)\text{EMV}(L) with its expected utility. The certainty equivalent CE(L)\text{CE}(L) is the unique sure amount the agent values exactly as much as the lottery:


U(CE(L))=U(L),risk premium=EMV(L)−CE(L).U\big(\text{CE}(L)\big) = U(L), \qquad \text{risk premium} = \text{EMV}(L) - \text{CE}(L).


Example: With U(x)=xU(x) = \sqrt{x}, a lottery paying $0 or $100 with equal probability has an EMV of $50 and U(L)=0.5(0)+0.5(10)=5U(L) = 0.5(0) + 0.5(10) = 5. Solving CE=5\sqrt{\text{CE}} = 5 gives a certainty equivalent of $25, so the agent would give up $25 of expected value to avoid the gamble.


A concave curve for U of x equal to the square root of x, with a dashed chord from 0 to 100 dollars, marking the certainty equivalent at 25 and the expected monetary value at 50.


Under these assumptions, curvature determines the risk-premium sign. By Jensen's inequality, concave UU satisfies E[U(x)]≤U(E[x])E[U(x)] \le U(E[x]); convex UU reverses this inequality.


Risk attitude

Shape of U(x)U(x)

Lottery versus its EMV

Risk premium

Risk-averse

Concave

U(L)≤U(EMV(L))U(L) \le U(\text{EMV}(L))

Nonnegative

Risk-neutral

Linear

U(L)=U(EMV(L))U(L) = U(\text{EMV}(L))

Zero

Risk-seeking

Convex

U(L)≥U(EMV(L))U(L) \ge U(\text{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)\sum_i p_i U(S_i).
  • An agent maximising expected utility chooses the action whose lottery has the highest U(L)U(L).
  • Positive affine rescalings aU+baU + b with a>0a > 0 change no choice; other increasing transformations can reverse choices between lotteries.
  • The certainty equivalent solves U(CE)=U(L)U(\text{CE}) = U(L), and the risk premium is EMV−CE\text{EMV} - \text{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)=xU(x) = \sqrt{x} for a payment of xx 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\text{EMV}_A = 64 credits.


For Route B, the on-time branch contributes 0.6×144=0.6 \times 144 = ________ and the late branch contributes 0.4×16=0.4 \times 16 = ________, so


EMVB=86.4+6.4=92.8 credits\text{EMV}_B = 86.4 + 6.4 = 92.8\ \text{credits}


For Route C,


EMVC=0.5(196)+0.5(0)=98 credits\text{EMV}_C = 0.5(196) + 0.5(0) = 98\ \text{credits}


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 UU to each payment, then weight the utilities by the probabilities.


Route A: U(A)=64=8U(A) = \sqrt{64} = 8.


Route B: 144=\sqrt{144} = ________ and 16=\sqrt{16} = ________, so


U(B)=0.6(12)+0.4(4)=7.2+1.6=8.8U(B) = 0.6(12) + 0.4(4) = 7.2 + 1.6 = 8.8


Route C: 196=\sqrt{196} = ________ and 0=0\sqrt{0} = 0, so


U(C)=0.5(14)+0.5(0)=7U(C) = 0.5(14) + 0.5(0) = 7


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:


CEB=8.8⇒CEB=8.82=77.44 credits\sqrt{\text{CE}_B} = 8.8 \quad\Rightarrow\quad \text{CE}_B = 8.8^2 = 77.44\ \text{credits}


The risk premium is the expected value the agent gives up in exchange for certainty:


EMVB−CEB=92.8−77.44=15.36 credits\text{EMV}_B - \text{CE}_B = 92.8 - 77.44 = 15.36\ \text{credits}


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+5U_1(x) = 10\sqrt{x} + 5 and U2(x)=(x)2=xU_2(x) = \big(\sqrt{x}\big)^2 = x. Which route does the agent choose under each, and why do the answers differ?


U1U_1 is a positive affine transformation of UU with a=10a = 10 and b=5b = 5, so every expected utility becomes 10U+510U + 5: U1(A)=10(8)+5=85U_1(A) = 10(8) + 5 = 85, U1(B)=10(8.8)+5=U_1(B) = 10(8.8) + 5 = ________ and U1(C)=10(7)+5=75U_1(C) = 10(7) + 5 = 75. Route B still wins.


U2U_2 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 U2U_2 for each route is its EMV from part a, namely 64, 92.8 and 98 credits. Under U2U_2 the agent chooses Route C.


Both replacements rank sure payments exactly as UU does, yet only the affine one preserves the choice between lotteries.

Match each term used to describe how an intelligent agent values uncertain outcomes with the description that defines it. Each description is used exactly once.

Match each term
A.

Weak preference for a sure expected monetary payoff over the gamble, represented by increasing concave utility of money

B.

Mapping from outcomes to real numbers whose order matches the agent's preferences

C.

Rescaling aU+baU + b with a>0a > 0 that leaves every choice among gambles unchanged

D.

Set of possible outcomes, each paired with a probability, with the probabilities summing to 1

E.

Sure amount whose utility equals the expected utility of a gamble

F.

Expected monetary value of a gamble minus the sure amount judged equally good

Risk premium

Risk aversion

Certainty equivalent

Lottery

Utility function

Positive affine transformation

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An agent's preferences over outcomes satisfy the von Neumann–Morgenstern axioms and are represented by a utility function UU. The designer wants a replacement U′U' that makes exactly the same choice as UU between every pair of lotteries. Which of the following replacements are guaranteed to do so? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A software agent's utility for money is U(x)=ln⁡xU(x) = \ln x, where xx 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?

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice