πŸ“– Convexity and uniqueness of optimizers#

⏱ | words

A path to globally sufficient conditions for optimality is through establishing the shape of the objective function

  • Concave functions \(\rightarrow\) local maxima are global maxima

  • Convex functions \(\rightarrow\) local minima are global minima

  • Strict concavity/convexity \(\rightarrow\) uniqueness of the maximum/minimum

Convexity / concavity are referred to as shape restrictions

  • Convexity is a shape property for sets

  • Convexity and concavity are shape properties for functions

Convex Sets#

Definition

A set \(C \subset \mathbb{R}^K\) is called convex if

\[ % x, y \text{ in } C \text{ and } 0 \leq \lambda \leq 1 \; \implies \; \lambda x + (1 - \lambda) y \in C % \]

Convexity \(\iff\) line between any two points in \(C\) lies in \(C\)

_images/convex.png

Fig. 74 Convex set#

A non-convex set

_images/non_convex.png

Fig. 75 Non-convex set#

Example

The β€œpositive cone” \(P := \{ x \in \mathbb{R}^K \colon x \geq 0 \}\) is convex

Example

Every \(\epsilon\)-ball in \(\mathbb{R}^K\) is convex.

Example

Let \(p \in \mathbb{R}^K\) and let \(M\) be the β€œhalf-space”

\[ % M := \{ x \in \mathbb{R}^K \colon p ' x \leq m\} % \]

The set \(M\) is convex

Fact

If \(A\) and \(B\) are convex, then so is \(A \cap B\)

Example

Let \(p \in \mathbb{R}^K\) be a vector of prices and consider the budget set

\[ % B(m) := \{ x \in \mathbb{R}^K \colon x \geq 0 \text{ and } p' x \leq m\} % \]

The budget set \(B(m)\) is convex

Convex Functions#

Let \(A \subset \mathbb{R}^K\) be a convex set and let \(f\) be a function from \(A\) to \(\mathbb{R}\)

Definition

\(f\) is called convex if

\[ % f(\lambda x + (1 - \lambda) y) \leq \lambda f(x) + (1 - \lambda) f(y) % \]

for all \(x, y \in A\) and all \(\lambda \in [0, 1]\)

\(f\) is called strictly convex if

\[ % f(\lambda x + (1 - \lambda) y) < \lambda f(x) + (1 - \lambda) f(y) % \]

for all \(x, y \in A\) with \(x \ne y\) and all \(\lambda \in (0, 1)\)

_images/convex_function.png

Fig. 76 A strictly convex function on a subset of \(\mathbb{R}\)#

Fact

\(f \colon A \to \mathbb{R}\) is convex if and only if its epigraph (aka supergraph)

\[ E_f := \{ (x, y) \in A \times \mathbb{R} \colon f(x) \leq y \} \]

is a convex subset of \(\mathbb{R}^K \times \mathbb{R}\)

_images/epigraph.png

Fig. 77 Convex epigraph/supergraph of a function#

_images/qform_pd.png

Fig. 78 A strictly convex function on a subset of \(\mathbb{R}^2\)#

Example

\(f(x) = \|x\|\) is convex on \(\mathbb{R}^K\)

Fact

If \(A\) is \(K \times K\) and positive definite, then

\[ % Q(x) = x' A x \qquad (x \in \mathbb{R}^K) % \]

is strictly convex on \(\mathbb{R}^K\)

Concave Functions#

Let \(A \subset \mathbb{R}^K\) be a convex and let \(f\) be a function from \(A\) to \(\mathbb{R}\)

Definition

\(f\) is called concave if

\[ f(\lambda x + (1 - \lambda) y) \geq \lambda f(x) + (1 - \lambda) f(y) \]

for all \(x, y \in A\) and all \(\lambda \in [0, 1]\)

\(f\) is called strictly concave if

\[ f(\lambda x + (1 - \lambda) y) > \lambda f(x) + (1 - \lambda) f(y) \]

for all \(x, y \in A\) with \(x \ne y\) and all \(\lambda \in (0, 1)\)

Exercise: Show that

  1. \(f\) is concave if and only if \(-f\) is convex

  2. \(f\) is strictly concave if and only if \(-f\) is strictly convex

Fact

\(f \colon A \to \mathbb{R}\) is concave if and only if its hypograph (aka subgraph)

\[ % H_f := \{ (x, y) \in A \times \mathbb{R} \colon f(x) \geq y\} % \]

is a convex subset of \(\mathbb{R}^K \times \mathbb{R}\)

_images/hypograph.png

Fig. 79 Convex hypograph/subgraph of a function#

Preservation of Shape#

Let \(A \subset \mathbb{R}^K\) be convex and let \(f\) and \(g\) be functions from \(A\) to \(\mathbb{R}\)

Fact

If \(f\) and \(g\) are convex (resp., concave) and \(\alpha \geq 0\), then

  • \(\alpha f\) is convex (resp., concave)

  • \(f + g\) is convex (resp., concave)

If \(f\) and \(g\) are strictly convex (resp., strictly concave) and \(\alpha > 0\), then

  • \(\alpha f\) is strictly convex (resp., strictly concave)

  • \(f + g\) is strictly convex (resp., strictly concave)

Hessian based shape criterion#

Fact

If \(f \colon A \to \mathbb{R}\) is a \(C^2\) function where \(A \subset \mathbb{R}^K\) is open and convex, then

  1. \(Hf(x)\) positive semi-definite (nonnegative definite) for all \(x \in A\) \(\iff f\) convex

  2. \(Hf(x)\) negative semi-definite (nonpositive definite) for all \(x \in A\) \(\iff f\) concave

In addition,

  1. \(Hf(x)\) positive definite for all \(x \in A\) \(\implies f\) strictly convex

  2. \(Hf(x)\) negative definite for all \(x \in A\) \(\implies f\) strictly concave

Proof: Omitted

Example

Let \(A := (0, \infty) \times (0, \infty)\) and let \(U \colon A \to \mathbb{R}\) be the utility function

\[ % U(c_1, c_2) = \alpha \ln c_1 + \beta \ln c_2 % \]

Assume that \(\alpha\) and \(\beta\) are both strictly positive

Exercise: Show that the Hessian at \(c := (c_1, c_2) \in A\) has the form

\[\begin{split} % H(c) := \begin{pmatrix} - \frac{\alpha}{c_1^2} & 0 \\ 0 & - \frac{\beta}{c_2^2} \end{pmatrix} % \end{split}\]

Exercise: Show that any diagonal matrix with strictly negative elements along the principle diagonal is negative definite

Conclude that \(U\) is strictly concave on \(A\)

Sufficiency of first order conditions#

There two advantages of convexity/concavity:

  1. Sufficiency of first order conditions for optimality

  2. Uniqueness of optimizers with strict convexity/concavity

Fact

Let \(A \subset \mathbb{R}^K\) be convex set and let \(f \colon A \to \mathbb{R}\) be concave/convex differentiable function.

Then \(x^* \in A\) is a minimizer/minimizer of \(f\) on \(A\) if and only if \(x^*\) is a stationary point of \(f\) on \(A\).

  • Note that weak convexity/concavity is enough for this result: first order condition becomes sufficient

  • However, the optimizer may not be unique (see below results on uniqueness)

Uniqueness of Optimizers#

Fact

Let \(A \subset \mathbb{R}^K\) be convex set and let \(f \colon A \to \mathbb{R}\)

  1. If \(f\) is strictly convex, then \(f\) has at most one minimizer on \(A\)

  2. If \(f\) is strictly concave, then \(f\) has at most one maximizer on \(A\)

Interpretation, strictly concave case:

  • we don’t know in general if \(f\) has a maximizer

  • but if it does, then it has exactly one

  • in other words, we have uniqueness

Sufficient Condition for Uniqueness#

We can now restate more precisely optimization results stated in the introductory lectures

Let \(f \colon A \to \mathbb{R}\) be a \(C^2\) function where \(A \subset \mathbb{R}^K\) is open, convex

Recall that \(x^* \in A\) is a stationary point of \(f\) if

\[ % \frac{\partial}{\partial x_i} f(x^*) = 0 \quad \text{for all $i$ in } 1, \ldots, K % \]

Fact

Let \(A \subset \mathbb{R}^K\) be convex set, let \(f \colon A \to \mathbb{R}\), and \(x^* \in A\) stationary, then

  1. \(f\) strictly concave \(\implies\) \(x^*\) is the unique maximizer of \(f\) on \(A\)

  2. \(f\) strictly convex \(\implies\) \(x^*\) is the unique minimizer of \(f\) on \(A\)

_images/concave_max.png

Fig. 80 Unique maximizer for a strictly concave function#

Roadmap for unconstrained optimization#

  1. Assuming that the domain of the objective function is the whole space, check that it is continuous and for derivative based methods twice continuously differentiable

  2. Derive the gradient and Hessian of the objective function. If it can be shown that the function is globally concave or convex, checking SOC (below) is not necessary, and global optima can be established

  3. Find all stationary points by solving FOC

  4. Check SOC to determine whether found stationary points are (local) maxima or minima and filter out saddle points

  5. Assess whether any of the local optima are global by comparing function values at these points, and inspecting the shape of the function to determine if its value anywhere exceeds the best local optimum (limits at the positive and negative infinities, possible vertical asymptotes, etc.)

References and reading#

References
  • Simon & Blume: 13.1, 13.2, 13.3, 14.1, 14.3, 14.4, 14.5, 14.8, whole of chapter 17

  • Sundaram: 1.4, 1.5, 2.1, 2.2, 4.1 to 4.4