Master's · Master's

Convex optimization

f(λx + (1−λ)y) ≤ …

The idea

For a convex function (like a bowl) every local minimum is also global — and easy to find.

The board

  1. Convex: the segment between two points of the graph lies above the graph.
  2. x2, |x|, ex are convex; sin x isn't.
  3. A bowl has only one bottom → gradient descent always gets there.
  4. Logistics, portfolios, machine learning — many problems reduce to convex ones.

The most common mistake

Thinking neural networks are convex. They aren't — that's why training them is an art.

The trick

A sum of convex functions is convex — that's how big models are built from small pieces.

Problems

Which function is convex?

  • sin x
  • −x²
  • x²
  • x³
Show the answer

x² — A bowl.

For a convex f, a local minimum is…

  • nonexistent
  • fake
  • a maximum
  • global
Show the answer

global — The bowl has one bottom.

Take the lesson · exercises and XPFree, no sign-up needed.

You need to know