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 (your strategy) chosen from a feasible set, and an adversarial or uncertain parameter chosen from its own feasible set, with a cost function , the minimax problem is
In plain English: for every candidate you might choose, first imagine the adversary picks the that makes things worst for that particular (the inner ), then choose the that makes this worst case as small as possible (the outer ). This is fundamentally different from (the adversary committing first) — in general these two quantities differ, with always holding (this gap is closely related to weak duality), and only equal under special conditions such as convexity in , concavity in , 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 . Choosing "wide" has worst case . 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 (worst to best case) depending on unmodeled risk. For a simple one-asset allocation of weight , portfolio return under the worst case is (cash return zero), i.e., the worst case is always , monotonically worsening as increases. Minimizing the worst case alone would pick (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).
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.
and 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 is convex in and concave in 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