Quant Memo
Core

Minimax and Worst-Case Optimization

A decision approach that optimizes for the worst case an adversary or nature could throw at you, rather than the average or expected case — choosing the option whose worst possible outcome is the least bad.

Prerequisites: Duality and the Dual Problem, Convex Sets and Convex Functions

Most optimization so far assumes you know the objective function precisely and are just trying to find its minimum. But many real decisions face genuine uncertainty about what the "objective" even looks like — a market maker doesn't know which direction an informed trader will pick off her quote, and a portfolio manager doesn't know exactly how future returns or correlations will behave. Optimizing for the average case can leave you badly exposed if reality turns out to be worse than average. Minimax optimization instead asks: across every strategy I could choose, and every scenario an adversary (or an uncooperative world) could choose in response, what's the best guarantee I can make about my worst possible outcome?

An analogy: choosing an umbrella, not betting on the weather

Suppose you're picking a coat for a trip with unknown weather. Betting on the average forecast might mean packing a light jacket, which is fine most days but leaves you soaked if it rains hard. A minimax approach instead asks: for each possible coat, what's the worst weather could do to me while wearing it? A heavy raincoat's worst case (mild sunburn on a hot day) is much better than a light jacket's worst case (soaked and cold in a storm) — so minimax picks the raincoat, even though on an average day the light jacket might have been more comfortable. It optimizes against the worst scenario, not the typical one.

The framework, one symbol at a time

Given a decision variable xx (your strategy) chosen from a feasible set, and an adversarial or uncertain parameter yy chosen from its own feasible set, with a cost function f(x,y)f(x, y), the minimax problem is

minx  maxy  f(x,y).\min_x \; \max_y \; f(x, y) .

In plain English: for every candidate xx you might choose, first imagine the adversary picks the yy that makes things worst for that particular xx (the inner max\max), then choose the xx that makes this worst case as small as possible (the outer min\min). This is fundamentally different from maxyminxf(x,y)\max_y \min_x f(x,y) (the adversary committing first) — in general these two quantities differ, with minxmaxyfmaxyminxf\min_x\max_y f \geq \max_y\min_x f always holding (this gap is closely related to weak duality), and only equal under special conditions such as convexity in xx, concavity in yy, and a compact feasible set (the minimax theorem).

Worked example 1: a simple 2x2 payoff table

A market maker must set a spread as either "wide" or "narrow," and the market can turn out either "calm" or "volatile." Costs (in expected $ lost, lower is better) are: wide+calm = 3, wide+volatile = 4, narrow+calm = 1, narrow+volatile = 9. Choosing "narrow" has worst case max(1,9)=9\max(1,9) = 9. Choosing "wide" has worst case max(3,4)=4\max(3,4)=4. The minimax choice is "wide," with guaranteed worst-case cost of 4 — even though "narrow" is much better ($1 vs $3) if the market happens to be calm, minimax refuses to bet on that, and picks the option that limits maximum possible damage.

Worked example 2: robust portfolio weight under return uncertainty

A quant doesn't trust a single return estimate for an asset and instead considers it could be anywhere in [2%,6%][-2\%, 6\%] (worst to best case) depending on unmodeled risk. For a simple one-asset allocation of weight w[0,1]w \in [0,1], portfolio return under the worst case is w×(2%)+(1w)×0%w \times (-2\%) + (1-w)\times 0\% (cash return zero), i.e., the worst case is always 2w%-2w\%, monotonically worsening as ww increases. Minimizing the worst case alone would pick w=0w=0 (no exposure at all) — a valid but maximally conservative answer, illustrating why pure minimax is often blended with expected-value considerations (a portfolio manager rarely uses raw worst-case optimization alone, since it can be needlessly pessimistic; it's more often used to set risk limits rather than the entire allocation).

calm volatile wide narrow 3 4 (max) 1 9 (max) minimax picks "wide": worst case 4 beats "narrow"'s worst case 9
Minimax compares each strategy's worst-case column value and picks the row whose worst case is smallest — here "wide" (worst case 4) beats "narrow" (worst case 9), even though narrow is better in the calm scenario.

What this means in practice

Minimax reasoning underlies robust portfolio optimization (protecting against the worst plausible set of returns rather than trusting a single point estimate), adversarial machine learning (training models to resist worst-case perturbations), and market-making spread-setting when the counterparty's information advantage is unknown. It's also the backbone of two-player zero-sum game theory, where the minimax value is provably the rational outcome both sides converge to.

Minimax optimization picks the strategy whose worst-case outcome, across every scenario an adversary or uncertain world could produce, is the least bad — a fundamentally different goal from minimizing average or expected cost, and one that can lead to a very different, more conservative choice.

minxmaxyf(x,y)\min_x \max_y f(x,y) and maxyminxf(x,y)\max_y \min_x f(x,y) are generally not equal — swapping the order of who commits first changes the answer, and confusing the two (or assuming the minimax theorem's equality always applies without checking its convexity/concavity conditions) is a classic error. Only under specific conditions, most commonly when ff is convex in xx and concave in yy over compact sets, do the two orders coincide at a single well-defined "value of the game."

Related concepts

Practice in interviews

Further reading

  • Boyd & Vandenberghe, Convex Optimization, ch. 5
  • Osborne & Rubinstein, A Course in Game Theory, ch. 2
ShareTwitterLinkedIn