Search

Search papers and lessons

Stochastic Dominance

Level 3 · 12 min read

One random quantity stochastically dominates another when it is at least as likely to be large at every threshold, so every expected-utility maximiser prefers it.

On this page

  • Colour = topic mix
  • Probability
  • Calculus
  • Optimization
  • Discrete math
  • Linear algebra
  • Sign in to see your progress

TL;DR

Stochastic dominance is a way of saying one uncertain quantity is better than another without knowing the exact rules for "better". If XX is at least as likely as YY to exceed every threshold, then XX gives a higher expected value of every reasonable reward function, so anyone who prefers more to less should pick XX. A second-order version covers the narrower group of people who also dislike risk, and it holds more often. Both only need the two quantities to be compared as whole distributions.

Where you'll see it: in comparing investments, insurance contracts and service-time guarantees, in proofs that one policy is safer than another, and as the building block for Positive Regression Dependence.

Intuition

Comparing whole distributions, not numbers

Suppose you must choose between two lightbulbs. Bulb A lasts 1000 hours on average and bulb B lasts 1200. Averages alone do not settle every question, because a bulb that always lasts 1200 hours and a bulb that lasts 0 or 2400 hours with equal chance have the same average. Stochastic dominance asks a sharper question: for each lifetime tt, is bulb B more likely than bulb A to still be working past tt? If yes at every tt, then B is better for any sensible purpose, whatever the exact payoff for each extra hour.

That is the first-order idea. It is a comparison of two curves: the cumulative distribution functions, which show how much probability has piled up up to each value. If one curve sits everywhere below the other, its variable tends to take larger values.

The second-order idea adds a taste for safety. Two bets with the same average can differ in spread. A person who dislikes risk prefers the steady option. Stochastic dominance of second order captures exactly the preferences of all such people at once, by comparing the area under the CDFs rather than the CDFs themselves.

0500100015002000250030003500400000.20.40.60.81hoursP(lifetime ≤ hours)
  • bulb A, mean 1000 h
  • bulb B, mean 1200 h
Each curve is the chance a bulb has failed by a given time. The dashed curve for B sits below A everywhere, which is what first-order dominance looks like.

The picture is the whole argument. At every hour, B has a smaller chance of having already failed than A does, so B is more likely to be alive at any given time. Nothing else about the payoff matters.

flowchart LR
  A[First-order dominance: CDF of X is below CDF of Y everywhere] --> B[Second-order dominance: area under CDF of X is below area under CDF of Y]
  A --> C[Every nondecreasing reward is better for X]
  B --> D[Every nondecreasing concave reward is better for X]

The math

Definitions

Definition: First-order stochastic dominance

For random variables XX and YY with cumulative distribution functions FX(t)=P(X≤t)F_X(t) = P(X \le t) and FY(t)=P(Y≤t)F_Y(t) = P(Y \le t), we say XX dominates YY in the first order, written X⪰1YX \succeq_1 Y, if

FX(t)≤FY(t)for every real t.F_X(t) \le F_Y(t) \quad \text{for every real } t.

Here tt is any threshold. The condition says XX puts no more probability at or below any level than YY does, so XX tends to be larger. Equivalently, P(X>t)≥P(Y>t)P(X \gt t) \ge P(Y \gt t) for all tt. Read the CDF as a running total of probability, and the dominance statement as one running total always lagging behind the other.

Definition: Second-order stochastic dominance

Define the integrated CDF IX(t)=∫−∞tFX(s) dsI_X(t) = \int_{-\infty}^{t} F_X(s)\, ds. We say XX dominates YY in the second order, written X⪰2YX \succeq_2 Y, if

IX(t)≤IY(t)for every real t.I_X(t) \le I_Y(t) \quad \text{for every real } t.

Integrating the CDF is the same as adding up probability over thresholds, so IX(t)I_X(t) measures how much the variable falls short of tt on average. A smaller value means less shortfall, so XX is better.

Equivalent statements in terms of rewards

The definitions above are the practical tests. The reason they matter is the following pair of equivalences, which connect them to choices. For a reward function uu:

  • X⪰1YX \succeq_1 Y holds exactly when E[u(X)]≥E[u(Y)]\mathbb{E}[u(X)] \ge \mathbb{E}[u(Y)] for every nondecreasing uu.
  • X⪰2YX \succeq_2 Y holds exactly when E[u(X)]≥E[u(Y)]\mathbb{E}[u(X)] \ge \mathbb{E}[u(Y)] for every nondecreasing and concave uu.

A function is concave when its negative is convex: chords between two points lie on or below the graph. Concave utility encodes diminishing returns, which is the mathematical form of risk aversion. So the second equivalence says that every risk-averse person with an increasing utility ranks XX above YY whenever second-order dominance holds.

Why first-order dominance implies the expected-value ranking

Take XX and YY that are nonnegative, and a nondecreasing differentiable uu with u(0)u(0) finite. For any x≥0x \ge 0,

u(x)=u(0)+∫0∞u′(t) 1{x>t} dt,u(x) = u(0) + \int_0^{\infty} u'(t)\, \mathbf{1}\{x \gt t\}\, dt,

because the integral adds up the increments of uu up to xx, and 1{x>t}\mathbf{1}\{x \gt t\} is 1 when xx exceeds tt and 0 otherwise. Take expectations of both sides, swap the expectation with the integral, and use E[1{X>t}]=P(X>t)\mathbb{E}[\mathbf{1}\{X \gt t\}] = P(X \gt t):

E[u(X)]=u(0)+∫0∞u′(t) P(X>t) dt.\mathbb{E}[u(X)] = u(0) + \int_0^{\infty} u'(t)\, P(X \gt t)\, dt.

The same formula holds for YY. Because u′≥0u' \ge 0 and P(X>t)≥P(Y>t)P(X \gt t) \ge P(Y \gt t) for every tt, the integral for XX is at least as large. So E[u(X)]≥E[u(Y)]\mathbb{E}[u(X)] \ge \mathbb{E}[u(Y)]. This argument is the core of the result, and the second-order version follows the same pattern with the integrated CDF in place of the CDF.

Quantile view

There is a second description of first-order dominance that makes it concrete. Write F−1F^{-1} for the quantile function, the inverse of the CDF. Then FX≤FYF_X \le F_Y everywhere holds exactly when FX−1(u)≥FY−1(u)F_X^{-1}(u) \ge F_Y^{-1}(u) for every pp in (0,1)(0,1). Generate one uniform random number UU and set X=FX−1(U)X = F_X^{-1}(U) and Y=FY−1(U)Y = F_Y^{-1}(U). Then X≥YX \ge Y in every sample. So first-order dominance means you can drive both variables with the same randomness and see XX come out on top every time.

Worked examples

Example
A three-point example, by hand

Let XX take the values 1, 2 and 3, each with probability 13\tfrac{1}{3}. Let YY take the values 2 and 3, each with probability 12\tfrac{1}{2}.

  1. Compute the CDF of XX: FX(1)=13F_X(1) = \tfrac{1}{3}, FX(2)=23F_X(2) = \tfrac{2}{3}, FX(3)=1F_X(3) = 1.
  2. Compute the CDF of YY: FY(1)=0F_Y(1) = 0, FY(2)=12F_Y(2) = \tfrac{1}{2}, FY(3)=1F_Y(3) = 1.
  3. Test whether FX≤FYF_X \le F_Y. At t=1t = 1, FX=13F_X = \tfrac{1}{3} but FY=0F_Y = 0, so it fails.
  4. Test whether FY≤FXF_Y \le F_X. At t=1t = 1: 0≤130 \le \tfrac{1}{3}. At t=2t = 2: 12≤23\tfrac{1}{2} \le \tfrac{2}{3}. At t=3t = 3: 1≤11 \le 1. No other thresholds matter, because both CDFs are flat between these points. So the test passes.
  5. Conclusion: Y⪰1XY \succeq_1 X. Check the means: E[X]=2\mathbb{E}[X] = 2 and E[Y]=2.5\mathbb{E}[Y] = 2.5, which agrees with the ranking.

Interpretation: YY never has more probability on small values than XX does, so it is better for anyone who prefers larger outcomes.

Example
Bulb lifetimes, with a realistic reward

Let bulb A have an exponential lifetime with mean 1000 hours, and bulb B have one with mean 1200 hours. For an exponential lifetime with mean θ\theta, P(L>t)=e−t/θP(L \gt t) = e^{-t/\theta}.

  1. Compare survival at each time: P(LA>t)=e−t/1000P(L_A \gt t) = e^{-t/1000} and P(LB>t)=e−t/1200P(L_B \gt t) = e^{-t/1200}.
  2. Since t/1200<t/1000t/1200 \lt t/1000 for every t>0t \gt 0, we have e−t/1200>e−t/1000e^{-t/1200} \gt e^{-t/1000}. So P(LB>t)≥P(LA>t)P(L_B \gt t) \ge P(L_A \gt t) at every tt. First-order dominance holds, LB⪰1LAL_B \succeq_1 L_A.
  3. Check one number: at t=1000t = 1000, P(LA>1000)=e−1≈0.3679P(L_A \gt 1000) = e^{-1} \approx 0.3679, and P(LB>1000)=e−5/6≈0.4346P(L_B \gt 1000) = e^{-5/6} \approx 0.4346.
  4. Now pick a reward that depends on lifetime and is capped, for example the hours of light that count toward a warranty: u(x)=min⁡(x,2000)u(x) = \min(x, 2000). This is nondecreasing, so the theorem applies.
  5. For an exponential with mean θ\theta, E[min⁡(L,c)]=θ (1−e−c/θ)\mathbb{E}[\min(L, c)] = \theta\,(1 - e^{-c/\theta}). For A with c=2000c = 2000: 1000 (1−e−2)≈1000×0.8647=864.71000\,(1 - e^{-2}) \approx 1000 \times 0.8647 = 864.7 hours.
  6. For B: 1200 (1−e−5/3)≈1200×0.8111=973.31200\,(1 - e^{-5/3}) \approx 1200 \times 0.8111 = 973.3 hours.
  7. Interpretation: B gives more capped warranty hours, as the theorem promised. The ranking holds for any nondecreasing reward, not only this one.
Example
A sure thing against a gamble: second-order dominance

Let D=1D = 1 with certainty. Let GG be 0 or 2, each with probability 12\tfrac{1}{2}. Both have mean 1, so the first-order test fails. Check whether D⪰2GD \succeq_2 G.

  1. CDFs: FD(t)=1{t≥1}F_D(t) = \mathbf{1}\{t \ge 1\}. FG(t)F_G(t) is 0 for t<0t \lt 0, 12\tfrac{1}{2} for 0≤t<20 \le t \lt 2, and 1 for t≥2t \ge 2.
  2. First-order test: at t=0.5t = 0.5, FG=12F_G = \tfrac{1}{2} but FD=0F_D = 0, so FG≤FDF_G \le F_D fails. Neither first-order ordering holds.
  3. Integrated CDFs. For DD: ID(t)=max⁡(t−1,0)I_D(t) = \max(t - 1, 0). For GG: IG(t)=0I_G(t) = 0 for t<0t \lt 0, IG(t)=t/2I_G(t) = t/2 for 0≤t<20 \le t \lt 2, and IG(t)=t−1I_G(t) = t - 1 for t≥2t \ge 2.
  4. Compare: for t<1t \lt 1, ID=0≤IGI_D = 0 \le I_G. For 1≤t<21 \le t \lt 2, ID=t−1≤t/2I_D = t - 1 \le t/2, because t−1≤t/2t - 1 \le t/2 is equivalent to t≤2t \le 2. For t≥2t \ge 2, both equal t−1t - 1. So ID≤IGI_D \le I_G everywhere and D⪰2GD \succeq_2 G.
  5. Check with a risk-averse reward, u(x)=xu(x) = \sqrt{x}, which is nondecreasing and concave. E[u(D)]=1=1\mathbb{E}[u(D)] = \sqrt{1} = 1. E[u(G)]=12(0+2)≈0.707\mathbb{E}[u(G)] = \tfrac{1}{2}(\sqrt{0} + \sqrt{2}) \approx 0.707.
  6. Interpretation: 1≥0.7071 \ge 0.707, so the sure thing wins for this risk-averse person, as the theorem said. Note that DD wins only for risk-averse utility, not for every nondecreasing utility. That is the difference between the two orders.

Tradeoffs and failure modes

First-order dominance is the strongest and simplest claim, and it needs the least assumption about preferences. The price is that it rarely holds for two real options, because the CDFs often cross. Second-order dominance holds more often, but it assumes the decision maker is risk averse, which is a modelling choice that must be defended.

SituationWhat goes wrongBetter choice
CDFs cross, so neither dominatesRanking by expected value alone hides the trade-off between tailsCompare the integrated CDFs, or make an explicit utility assumption
Two options with the same meanFirst-order says nothing; ranking by mean is a coin tossUse second-order dominance and assume risk aversion
Preferences are unknownAny single utility function may misrepresent the decision makerUse dominance as a robust argument that holds for a whole class of utilities
Samples are smallEmpirical CDFs are noisy, so an apparent crossing may be noiseTest the difference with a [[p-value
Variables are not nonnegative or have heavy tailsThe expected-value argument needs finite expectationsCheck that the means exist, or use truncated comparisons

Dominance is a partial order. Many pairs of options are simply incomparable, and that is an honest answer, not a failure. Do not report dominance when only the means differ.

History

The idea of comparing whole distributions through their ordering grew out of statistics in the mid-1950s. Erich Lehmann studied families of distributions that are ordered by a parameter, which led to the notion of stochastically larger variables. In the late 1960s, economists studying choice under uncertainty, including Michael Hadar and William Russell, and Giora Hanoch and Haim Levy, showed that second-order dominance captures the preferences of all risk-averse expected-utility maximisers. Michael Rothschild and Joseph Stiglitz then made the idea of a mean-preserving spread central to the study of risk in 1970. The concept caught on because it gives conclusions that do not depend on the exact shape of anyone's utility function, which is exactly what a decision analyst or a regulator needs.

Check yourself

QuestionTwo random variables have CDFs FX(t)=tF_X(t) = t and FY(t)=t2F_Y(t) = t^2 on [0,1][0,1]. Does XX dominate YY in the first order?Show answer

Compare the CDFs. For tt in (0,1)(0,1), t2<tt^2 \lt t, so FY(t)<FX(t)F_Y(t) \lt F_X(t). First-order dominance of XX over YY requires FX≤FYF_X \le F_Y, which fails. Check the other direction: FY≤FXF_Y \le F_X holds everywhere on [0,1][0,1], so YY dominates XX in the first order. Interpretation: YY has more probability at large values, so it is the stochastically larger variable.

QuestionA variable XX is uniform on [0,2][0,2] and YY is uniform on [1,3][1,3]. What is P(X>1.5)P(X \gt 1.5) and P(Y>1.5)P(Y \gt 1.5), and what does the comparison tell you?Show answer

For XX, P(X>1.5)=(2−1.5)/2=0.25P(X \gt 1.5) = (2 - 1.5)/2 = 0.25. For YY, P(Y>1.5)=(3−1.5)/2=0.75P(Y \gt 1.5) = (3 - 1.5)/2 = 0.75. At t=1.5t = 1.5 the YY tail is far heavier. Checking the whole range, P(Y>t)≥P(X>t)P(Y \gt t) \ge P(X \gt t) for every tt in [0,3][0,3], because YY is XX shifted up by 1. So YY first-order dominates XX.

QuestionWhy does a risk-averse person with concave utility prefer a sure 1 to a gamble giving 0 or 2 with equal chance, even though the means are equal?Show answer

Concave utility means the gain from moving from 0 to 1 exceeds the loss from moving from 1 to 2 in utility terms. With u(x)=xu(x) = \sqrt{x}, the sure thing gives utility 1, and the gamble gives an average of about 0.707. The safe outcome avoids the low outcome, which costs more utility than the high outcome gains. Second-order dominance guarantees this ranking for every concave nondecreasing utility.

QuestionExplain in one sentence why first-order dominance implies that E[u(X)]≥E[u(Y)]\mathbb{E}[u(X)] \ge \mathbb{E}[u(Y)] for every nondecreasing uu.Show answer

Writing u(X)u(X) as an integral of its increments, the expectation becomes u(0)u(0) plus the integral of u′(t)u'(t) times P(X>t)P(X \gt t); since u′≥0u' \ge 0 and P(X>t)≥P(Y>t)P(X \gt t) \ge P(Y \gt t), the expectation for XX is at least as large as for YY.

Sources