Applied and computational mathematics
Game theory
The mathematics of strategic decisions among rational agents, with concepts like Nash equilibrium.
IntuitionWhen your best move depends on someone else's move
Two food trucks must each choose where to park on a street before seeing where the other parks. Choosing the busy end is best if the other truck picks the quiet end — but worst if both pick the busy end and split the same crowd. Optimization alone cannot solve this: there is no single best choice, only a best choice given what the other player does. Game theory is the mathematics of exactly this kind of interdependent decision.
This shape is not a coincidence. In many two-player competitive games, one player's payoff is exactly the negative of the other's — a zero-sum game — and the payoff, viewed as a function of both players' choices, is convex in the minimizer's strategy and concave in the maximizer's: exactly the saddle shape above. The flat point at the center is a saddle point, and it turns out to correspond precisely to rational play by both sides.
UndergraduateNormal-form games
Definition: Normal-form game
A normal-form game consists of a finite set of players ; for each player , a finite set of pure strategies ; and for each player , a payoff function giving player 's payoff for every combination of strategies chosen by all players simultaneously.
A two-player game is often written as a payoff matrix. In the classic Prisoner's Dilemma, two suspects independently choose to stay Silent or Confess; entries show (row player's years in prison, column player's years in prison) — smaller is better for each:
| Row \ Column | Column: Silent | Column: Confess |
|---|---|---|
| Row: Silent | ||
| Row: Confess |
UndergraduateMixed strategies and von Neumann's minimax theorem
Definition: Mixed strategy
A mixed strategy for player is a probability distribution over : instead of committing to one pure strategy, the player randomizes. This matters most in games without a stable pure-strategy outcome — like Matching Pennies, where any predictable pure choice can be exploited by the opponent.
For a two-player zero-sum game, the row player's payoff matrix (an matrix of real numbers) is exactly the negative of the column player's, so the row player wants to maximize and the column player wants to minimize it, where and are the players' mixed strategies (probability vectors).
For every real matrix , , where and are the sets of probability vectors of length and . This common value is the value of the game.
Why is it true?
Without randomization, whoever moves "second" (choosing after learning the opponent's strategy) has an advantage, so maximin (row commits first) is generally at most minimax (column commits first). The surprising content of the theorem is that with mixed strategies this gap closes completely: randomizing removes any advantage from acting second, because the opponent can no longer predict — and exploit — a fixed choice.
Proof
Weak duality. For any fixed and : . Taking of the left side and of the right side preserves the inequality: . This direction needs no randomization argument at all.
Reduction to a linear program. Since is linear, its minimum over the simplex is attained at a vertex, i.e. at some pure strategy : . So the row player's problem is the linear program: maximize subject to for every , and .
The dual program. By the standard theory of linear programming duality, the dual of this LP is: minimize subject to for every , and — which is exactly the linear-programming formulation of the column player's problem .
Strong duality. Both the primal and dual feasible regions ( and ) are nonempty and compact, so the linear program is feasible and bounded; the strong duality theorem for linear programming then guarantees the primal and dual optimal values coincide: . Combined with weak duality, which already gave in this direction, equality holds, proving the theorem.
UndergraduateNash equilibrium and its existence
Definition: Nash equilibrium
A strategy profile is a Nash equilibrium if no player can improve their payoff by unilaterally switching to a different strategy while every other player's strategy stays fixed: for every player and every pure strategy , , where denotes the strategies of all players other than .
In the Prisoner's Dilemma above, (Confess, Confess) is the unique Nash equilibrium: Confess strictly beats Silent no matter what the other suspect does, so neither has any incentive to deviate — even though (Silent, Silent) gives both suspects a strictly better outcome. This gap between equilibrium and the best joint outcome is the heart of the "dilemma," and shows equilibria need not be efficient.
Every finite normal-form game (any number of players , each with a finite pure-strategy set ) has at least one Nash equilibrium in mixed strategies.
Why is it true?
The proof builds a continuous "improve your strategy a little" map on the space of all strategy profiles: nudge probability toward any pure strategy currently doing better than average. Since the space of strategy profiles is compact and convex, Brouwer's fixed-point theorem guarantees this map has a fixed point — a profile that the map does not want to change. The proof's remaining work shows a fixed point is exactly a profile with no profitable deviation, i.e. a Nash equilibrium.
Proof
Let , the product of the players' mixed-strategy simplices — a compact, convex subset of Euclidean space. For , player , and pure strategy , define the gain function , the payoff player would gain by switching entirely to pure strategy , or if that switch would not help. Define by ; since is continuous (indeed multilinear) in , is continuous, so is continuous, and each is again a probability vector by construction.
By Brouwer's fixed-point theorem, the continuous map on the compact convex set has a fixed point with . Write ; the fixed-point equation for each reads , i.e. .
Fix a player and let , so . Multiply the fixed-point equation by and sum over : on the left, , using and .
On the right, . Equating both sides, , a sum of squares equal to zero, so every term vanishes: there is no with . Since was arbitrary, for every player and every pure strategy — precisely the Nash equilibrium condition. Hence is a Nash equilibrium.
UndergraduateReal-World Applications and Worked Examples
Game theory shapes how economists model competition and pricing, how security engineers reason about attackers and defenders, how biologists explain animal behavior through evolutionary stable strategies, and how auction designers (including for online ad markets) construct mechanisms where truthful bidding is each participant's best response.
Example: Mixed-strategy equilibrium in a network-defense game
An attacker chooses to attack Server A or Server B; a defender chooses which one to monitor. If the attacker targets the monitored server, the attack is caught (attacker payoff ); if it targets the unmonitored one, it succeeds, earning against Server A or against Server B (more valuable). This is zero-sum with attacker payoff matrix (rows: attack A, attack B; columns: monitor A, monitor B) . Find the attacker's optimal mixed strategy and the value of the game.
Solution
Check for a pure saddle point first: row minima are and , so maximin ; column maxima are and , so minimax . Since , there is no pure-strategy saddle, so a mixed strategy is required.
Let the attacker attack A with probability (and B with probability ). The expected payoff if the defender monitors A is ; if the defender monitors B, it is . An optimal must make these equal — otherwise the defender would always pick whichever is smaller for the attacker, and the attacker could do better by adjusting .
Solving : , so . The attacker should attack Server A with probability and Server B with probability .
The value of the game is : even playing optimally, the attacker's expected payoff is slightly negative, meaning the defender's monitoring strategy holds a slight edge overall.
Example: Multiple pure Nash equilibria in a standards-adoption game
Two smartphone makers must each choose charging Standard A or Standard B; profits are highest when both choose the same standard, thanks to network effects and shared accessories. Payoffs (Firm 1, Firm 2) are: , , , . Find all pure-strategy Nash equilibria.
Solution
Check each of the four cells for a profitable unilateral deviation. At : Firm 1 switching to B (with Firm 2 fixed at A) gives , no gain; by symmetry Firm 2 has no gain either. So is a Nash equilibrium.
At : Firm 1 switching to A (Firm 2 fixed at B) gives , no gain; symmetric for Firm 2. So is also a Nash equilibrium.
At : Firm 1 gets ; switching to B (Firm 2 stays at B) gives , a strict improvement, so Firm 1 deviates — is not an equilibrium. By the same logic is not an equilibrium either.
So this game has two pure Nash equilibria, and — both stable in the sense that neither firm wants to deviate alone, yet the theory alone does not say which one the market will settle on; this equilibrium selection problem (matching the historical VHS-versus-Betamax standards battle) is a genuine subtlety beyond existence.
A zero-sum game has payoff matrix (to the row player) . There is no pure-strategy saddle point. What is the value of the game?
Which condition correctly defines a Nash equilibrium ?
Two suspects each choose Silent or Confess. Both Silent: 1 year each. Both Confess: 3 years each. One Confesses while the other stays Silent: the confessor goes free (0 years), the silent one gets 5 years. Confessing gives a strictly better outcome than Silent no matter what the other suspect does. What is the Nash equilibrium of this game?
A tennis server can aim Left or Right; the returner guesses Left or Right. The server wins the point with probability when the returner guesses the wrong direction, and only when the returner guesses correctly — symmetric for both directions. At the mixed-strategy Nash equilibrium, what probability should the server assign to aiming Left?
References
- John von Neumann, Oskar Morgenstern (1944). Theory of Games and Economic Behavior
- John F. Nash Jr. (1950). Equilibrium points in n-person games · DOI:10.1073/pnas.36.1.48
- John F. Nash Jr. (1951). Non-Cooperative Games · DOI:10.2307/1969529
- Constantinos Daskalakis, Paul W. Goldberg, Christos H. Papadimitriou (2009). The Complexity of Computing a Nash Equilibrium · DOI:10.1137/070699652