Convexity and Optimization for Economists

Convex sets

The segment condition, the intersection property, and the convex sets optimization relies on.

Definition

A set SRnS \subseteq \mathbb{R}^n is convex if for all x,xSx, x' \in S and all λ[0,1]\lambda \in [0, 1],

λx+(1λ)xS.\lambda x + (1 - \lambda)\, x' \in S.

The point λx+(1λ)x\lambda x + (1-\lambda)x' is a convex combination of xx and xx'; as λ\lambda runs from 00 to 11 it traces the segment from xx' to xx. So: a set is convex when the segment joining any two of its points stays inside it.

To show a set is not convex, exhibit one pair whose segment leaves it. A disk and a half-space {x:axb}\{x : a \cdot x \le b\} are convex; an annulus and the union of two disjoint disks are not.

Key properties

Intersection. If each SiS_i is convex, so is iSi\bigcap_i S_i. Proof: if x,xiSix, x' \in \bigcap_i S_i then both lie in every SiS_i, so for λ[0,1]\lambda \in [0,1] the point λx+(1λ)x\lambda x + (1-\lambda)x' lies in every SiS_i, hence in the intersection.

This is the property that does the work: most convex sets in economics are convex because they are intersections of convex sets. (The union of convex sets need not be convex — the two-disk example.)

In economics

Budget set. B={xRn:x0, pxM}B = \{x \in \mathbb{R}^n : x \ge 0,\ p \cdot x \le M\} is an intersection of half-spaces (xi0x_i \ge 0 for each ii, and pxMp \cdot x \le M), so it is convex.

Convex preferences. Preferences are convex when each upper contour set {x:xx}\{x' : x' \succeq x\} is convex — averages are weakly preferred to extremes.

Worked examples

Example 1 — a half-space is convex. Let H={x:axb}H = \{x : a \cdot x \le b\}. Take x,xHx, x' \in H, so axba \cdot x \le b and axba \cdot x' \le b. For λ[0,1]\lambda \in [0,1],

a(λx+(1λ)x)=λ(ax)+(1λ)(ax)λb+(1λ)b=b,a \cdot \big(\lambda x + (1-\lambda)x'\big) = \lambda\,(a \cdot x) + (1-\lambda)\,(a \cdot x') \le \lambda b + (1-\lambda) b = b,

so λx+(1λ)xH\lambda x + (1-\lambda)x' \in H. Hence HH is convex.

Example 2 — the budget set is convex. Write B=(i=1n{x:xi0}){x:pxM}B = \big(\bigcap_{i=1}^{n} \{x : x_i \ge 0\}\big) \cap \{x : p \cdot x \le M\}. Each piece is a half-space, so convex by Example 1; BB is their intersection, so convex.

Exercises

  1. Prove directly from the definition that the intersection of two convex sets is convex.
  2. Give two convex sets whose union is not convex, and name the segment that escapes.
  3. Show that the unit simplex Δ={xRn:x0, ixi=1}\Delta = \{x \in \mathbb{R}^n : x \ge 0,\ \sum_i x_i = 1\} is convex.
  4. Show that if SS is convex then so are tS={tx:xS}tS = \{tx : x \in S\} for t0t \ge 0 and S+v={x+v:xS}S + v = \{x + v : x \in S\}.