The Prisoner's Dilemma
Why two sensible players end up worse off, and how repetition, reciprocity and evolution bring cooperation back.
Two roommates share a kitchen. Each would rather the other one did the dishes, and so the sink fills up. Both would prefer a clean kitchen, and neither can get one alone. That is the Prisoner’s Dilemma.
One round
Each player either cooperates or defects. The payoffs are temptation , reward , punishment and sucker , and two inequalities make it a dilemma (Axelrod and Hamilton, 1981, Fig. 1):
Defect is your better reply in both columns. They reason the same way, so you both get 1 instead of 3.
Defect is a dominant strategy, so mutual defection is the only Nash equilibrium. Both players act sensibly and both end up worse off.
Many rounds
Now suppose you will probably meet again: after each round, another one follows with probability . Say your partner cooperates until you defect once, and then never cooperates again. Cheating pays once and forever after, so it stops paying when
Cheating wins one big round and loses every round after it. Once another round is likely enough, those lost rounds outweigh the windfall.
The tournament
In the late 1970s the political scientist Robert Axelrod asked game theorists to submit programs for a round-robin tournament of the repeated game. Of the 14 entries, Tit for Tat won: cooperate first, then copy the opponent’s last move. It won again in a second, larger tournament (Axelrod and Hamilton, 1981).
No nice program can beat the opponent in front of it by much. They top the table by doing well against everyone.
In this field Tit for Two Tats edges ahead of Tit for Tat, but the split is the one Axelrod found: every nice program (one that never defects first) finishes above every program that is not. He named two more traits of the winners: retaliatory (answer a defection) and forgiving (go back to cooperating afterwards).
Evolution
Now let strategies breed: a strategy’s share grows when it scores above average. That is the replicator equation, where is the share of strategy , its average payoff and the population mean:
Players also make mistakes: with some small probability, a move comes out the opposite of what the strategy intended.
Tit for Tat clears out the defectors, then loses to Pavlov, which recovers from a slip in two rounds instead of feuding. Pavlov in turn is slowly undercut by defectors, and the cycle repeats.
Mistakes are hard on Tit for Tat: one slip between two copies starts an echo of retaliation. Pavlov (win-stay, lose-shift) gets back to cooperating in two rounds, which is why it beat Tit for Tat in Nowak and Sigmund’s 1993 simulations. I replicated that paper in Java a few years ago and saw the same rise of Pavlov, and its collapse late in the run.