Skip to content

Cahid Arda Öz

Istanbul, Turkey

← The Logic of Crowds
Blog Essays, opinions, and how-tos. / 2 min read

Everyone Is Best-Responding

Nash equilibrium in pictures: follow the best-response arrows around five tiny games and watch them settle, or spin forever.


Two drivers meet on a narrow bridge. Each one’s best move depends on what the other does. A game is just that: players, their strategies, and a payoff for every combination of choices, and a Nash equilibrium is where nobody wants to change alone (chapter 6 of Easley and Kleinberg’s Networks, Crowds, and Markets).

Follow the arrows

Each cell below is one outcome: blue’s payoff, then red’s. An arrow means one player can do better by switching on their own. Blue moves up and down, red moves left and right. A cell with no arrow leaving it is a Nash equilibrium: every player is already giving their best response to the others.

ui(si∗,s−i∗)≥ui(si,s−i∗)for every player i and every strategy siu_i(s_i^*, s_{-i}^*) \ge u_i(s_i, s_{-i}^*) \quad \text{for every player } i \text{ and every strategy } s_i u_i is player i's payoff. s* is the equilibrium profile; s_-i means everyone except i. No single player can raise their own payoff by switching alone.
GT-01.1best-response arrows2 players · 2 moves
blue ↕red ↔CooperateDefectCooperateDefect3,30,55,0NASH1,1+2+1+2+1
pure equilibria
1
token: someone wants to move

Defect beats Cooperate whatever the other does. One equilibrium, and it is the bad one.

hover a game to preview it, click to keep it; click a cell to drop the token

In the Prisoner’s Dilemma, Defect is a dominant strategy: it is the better reply to anything the other player does, so both blue arrows and both red arrows point at it. Most games have no dominant strategy. The stag hunt and the coordination game have two equilibria, and the arrows alone cannot say which one people will reach.

When the arrows never stop

In Matching Pennies, the token never rests. The way out is to randomize. If red shows Heads with probability qq, blue’s two moves pay the same exactly when

q⋅1+(1−q)(−1)=q(−1)+(1−q)⋅1⟹q=12q \cdot 1 + (1-q)(-1) = q(-1) + (1-q) \cdot 1 \quad \Longrightarrow \quad q = \tfrac12
GT-01.2the mixed way outmatching pennies
blue's payoff from each move
+10−10½1red's P(Heads)HeadsTails
both best replies
Nash (½, ½)01½red's P(Heads)01blue's P(Heads)
blue's best reply
Tails
earns +0.40 a round
red shows Heads
30%
of the time

Any lean by red gives blue a sure edge. Only at 50% is blue indifferent, so both mixing 50:50 is the one equilibrium.

drag either chart (or use ← →) to change how often red shows Headsequilibrium: both play Heads 50%

When both players flip a fair coin, neither can do better by changing their odds. That is a mixed equilibrium, and John Nash proved in 1950 that every finite game has at least one equilibrium once mixing is allowed.

Stable is not the same as good

An equilibrium only says nobody wants to move alone. It says nothing about whether the outcome is good. An outcome is Pareto-optimal when you cannot make one player better off without making the other worse off.

GT-01.3equilibrium vs everyone's bestpayoff plane
001122334455blue's payoff →red's payoff →better for bothC,C(3, 3)C,D(0, 5)D,C(5, 0)D,D(1, 1) Nash
equilibrium total
2
blue + red at Nash
best total
6
blue + red, best cell

Green dots are Pareto-optimal: you cannot help one player without hurting the other. The equilibrium (1, 1) is not one of them, and nobody can reach (3, 3) alone.

hover a game to preview it, click to keep it

Mutual cooperation in the Prisoner’s Dilemma is better for both, and it is not an equilibrium. The next page is about getting there anyway.

EX-01 In real life Gaming the Ballot: 1789 and 1800 → Federalist electors in a best-response puzzle: write Adams second, unless too many others do.