Convex and Concave Functions
Convex and Concave Functions
Convex and concave functions are central concepts in optimization, machine learning, economics, and statistics. They describe how a function “curves” and determine whether optimization problems are easy or difficult to solve.
1. Convex Functions
1.1 Definition
A function
is called convex if for all and for all ,
This inequality is known as Jensen’s inequality (two-point form).
1.2 Geometric Interpretation
-
The graph of a convex function lies below the straight line (chord) joining any two points on the graph.
-
In 1D, the curve is cup-shaped (opens upward).
-
In higher dimensions, the surface curves upward.
📌 Key consequence:
Every local minimum of a convex function is a global minimum.
1.3 Examples of Convex Functions
Basic Examples
-
Linear (affine) functions:
-
Quadratic functions:
-
Norms:
-
Exponential:
-
Log-sum-exp:
1.4 Identification Tests for Convex Functions
(a) First-Order Condition
If is differentiable, then is convex iff
for all
(b) Second-Order Condition
If is twice differentiable, then
(Hessian matrix is positive semidefinite.)
1.5 Convex Functions in Optimization & ML
-
Linear regression (MSE loss)
-
Logistic regression (log-loss)
-
Support Vector Machines (hinge loss)
-
Regularization (, )
✔ Guarantees:
-
Unique global optimum
-
Fast convergence
-
Stable algorithms
2. Concave Functions
2.1 Definition
A function
is concave if for all ,
📌 A function is concave if and only if its negative is convex:
2.2 Geometric Interpretation
-
The graph lies above the chord connecting any two points.
-
In 1D, the curve is cap-shaped (opens downward).
📌 Key consequence:
Every local maximum of a concave function is a global maximum.
2.3 Examples of Concave Functions
-
Linear functions (both convex and concave)
-
Logarithmic function:
-
Square root:
-
Negative quadratic:
2.4 Identification Tests for Concave Functions
-
First-order:
-
Second-order:
(Hessian is negative semidefinite.)
3. Relationship Between Convex and Concave Functions
| Property | Convex | Concave |
|---|---|---|
| Shape | Cup-shaped | Cap-shaped |
| Inequality | ≤ (Jensen) | ≥ (reverse Jensen) |
| Hessian | PSD | NSD |
| Optimization | Minimize | Maximize |
| Local optimum | Global minimum | Global maximum |
4. Strict Convexity and Concavity
Strictly Convex
for .
📌 Leads to unique minimizer.
Strictly Concave
Reverse inequality with strict .
5. Convexity of Sets vs Functions (Key Link)
-
Sublevel sets of convex functions are convex:
-
Superlevel sets of concave functions are convex:
6. Applications
Machine Learning
-
Loss functions → convex
-
Regularization → convex
-
Likelihood functions → concave (maximization)
Economics
-
Utility functions → concave
-
Cost functions → convex
.png)
.png)
Comments
Post a Comment