This is a great question about game theory, specifically the iterated prisoner's dilemma (IPD). Let me break this down carefully.
Iterated Prisoner's Dilemma (IPD)
First, let me recall the standard prisoner's dilemma payoff matrix:
| Cooperate | Defect |
|---|
| Cooperate | (3,3) | (0,5) |
| Defect | (5,0) | (1,1) |
The numbers represent payoffs for (row player, column player).
In the one-shot game, defection is always the best response regardless of what the other player does, making (Defect, Defect) the unique Nash equilibrium.
However, when this game is repeated infinitely, the dynamics change dramatically.
Why IPD is Different from One-Shot
In the iterated version with infinite or sufficiently long horizon, players can:
- Punish opponents for past defections
- Build reputation for cooperation
- Use contingent strategies that depend on history
This opens up new Nash equilibria where cooperation can be sustained.
Tit-for-Tat vs Always Defect
Tit-for-Tat (TFT) strategy:
- Cooperate in round 1
- In subsequent rounds, play whatever the opponent played in the previous round
Always Defect (AD):
Why TFT can outperform AD
Let me calculate the discounted payoffs:
Case 1: Two players playing Tit-for-Tat against each other
-
Round 1: Both cooperate → (3,3)
-
Round 2 onward: Both continue to cooperate → (3,3) each round
-
Total payoff for player 1: 3 + 3δ + 3δ² + 3δ³ + ... = 3/(1-δ)
-
where δ is the discount factor (0 < δ < 1), representing how much future payoffs matter
Case 2: TFT vs Always Defect
- Round 1: TFT cooperates, AD defects → TFT gets 0, AD gets 5
- Round 2 onward: TFT defects (punishing AD's defection), AD defects (as always) → (1,1) each round
- TFT's payoff: 0 + 1δ + 1δ² + 1δ³ + ... = δ/(1-δ)
- AD's payoff: 5 + 1δ + 1δ² + 1δ³ + ... = 5 + δ/(1-δ)
Case 3: Always Defect vs Always Defect
- Every round: both get (1,1)
- Total payoff: 1/(1-δ)
When comparing payoffs, two TFT players each earn 3/(1-δ), while two AD players each earn only 1/(1-δ). This shows TFT generates higher mutual payoffs than mutual defection.
For cooperation to be self-enforcing in an infinite game, players must have no incentive to deviate unilaterally. The Grim Trigger strategy accomplishes this by punishing any defection permanently—once a player deviates, both players defect forever after.
Under this strategy, cooperating yields 3/(1-δ) indefinitely. If a player defects once, they gain 5 that round but then face mutual defection forever, earning 5 + δ/(1-δ) total. Cooperation remains optimal when 3/(1-δ) exceeds this deviation payoff.
Rearranging the inequality by multiplying through by (1-δ) and simplifying: 3 ≥ 5 - 4δ, which gives δ ≥ 1/2. So Grim Trigger sustains cooperation only when the discount factor reaches at least one-half.
More broadly, this generalizes to δ ≥ (b - r)/(b - p), where b is the one-time gain from defection, r is mutual cooperation's payoff, and p represents what you earn when defecting against a cooperator.
Using standard game theory notation—R for mutual cooperation (3), T for the temptation payoff (5), P for mutual defection (1), and S for the sucker's payoff (0)—the condition becomes δ ≥ (T - R)/(T - S) = 2/5. But I need to reconsider this more carefully.
The value of cooperating indefinitely is V_c = R/(1-δ) = 3/(1-δ). If I defect now, I get T immediately, then face permanent punishment with payoff P, so V_d = T + δ·V_p where V_p = P/(1-δ).
For cooperation to be sustainable, V_c must exceed V_d. Working through the algebra: R/(1-δ) ≥ [T - Tδ + δP]/(1-δ), which simplifies to δ ≥ (T - R)/(T - P) = 2/4 = 1/2. So the discount factor needs to be at least 1/2 for the Grim Trigger strategy to support cooperation as a Nash equilibrium.
The intuition here connects to broader principles about repeated games. When players are sufficiently patient—valuing future payoffs heavily—they'll maintain cooperation because the threat of permanent punishment outweighs any short-term gain from defecting. Simple strategies like Grim Trigger work by making the cost of deviation clear: one defection triggers eternal retaliation. This mechanism allows a much wider range of equilibria than one-shot games permit, as long as the discount factor is high enough. and T - P represents the full swing from temptation down to punishment. The intuition is clear: when punishment is weak relative to temptation, or when the temptation payoff is much larger than cooperation, I need to be sufficiently patient for the threat of future punishment to deter deviation.
I can verify this by comparing the present values directly. Cooperating forever yields R/(1-δ), while deviating once and facing permanent punishment gives T + δP/(1-δ). For cooperation to be worthwhile, the first must exceed the second, which after multiplying through by (1-δ) and rearranging confirms δ ≥ (T - R)/(T - P).
Plugging in the standard prisoner's dilemma payoffs where R=3, T=5, P=1, S=0, I get δ ≥ 1/2. This threshold makes sense—with a discount factor of at least 0.5, the future punishment from defection outweighs the immediate gain.
Iterated Prisoner's Dilemma: A Complete Explanation
The Setup
The iterated prisoner's dilemma repeats the one-shot game indefinitely (or for a very long horizon). Players use contingent strategies that depend on history, unlike the one-shot game where defection dominates regardless of the opponent's move.
Standard payoff matrix (per round):
| Cooperate | Defect |
|---|
| Cooperate | (3, 3) | (0, 5) |
| Defect | (5, 0) | (1, 1) |
Why Tit-for-Tat Outperforms Always Defect
Tit-for-Tat Strategy
- Cooperate in round 1
- Each subsequent round: play what opponent played last round
Payoff Comparison (with discount factor δ ∈ (0,1))
Two TFT players:
- Both cooperate forever → 3 + 3δ + 3δ² + ... = 3/(1−δ)
Two Always-Defect players:
- Both defect forever → 1 + 1δ + 1δ² + ... = 1/(1−δ)
Result: 3/(1−δ) > 1/(1−δ), so TFT earns more mutual cooperation
Key Advantage
- Punishment mechanism: When faced with defection, TFT responds with defection in the next round, imposing costs on the deviator
- Forgiveness: TFT returns to cooperation, allowing for mutual recovery
- Defectors can't exploit TFT indefinitely; they face retaliation
Discount Factor Condition for Cooperation
Using the Grim Trigger strategy (cooperate until anyone defects, then defect forever):
No-Deviation Incentive Condition
A player should not want to defect if:
Value of cooperating forever:
VC=1−δR
Value of defecting once (temptation), then being punished forever:
VD=T+δ⋅1−δ
For cooperation to be a Nash equilibrium:
1−δR≥T+1−δ
Multiplying by (1−δ):
R≥T(1−δ)+δP
Rearranging:
δ≥T−PT−R
Standard Prisoner's Dilemma Example
With R=3, T=5, P=1:
δ≥5−15−3=4
Interpretation: Players must discount the future by at most 50% (δ ≥ 0.5). Only sufficiently patient players sustain cooperation.
Intuitive Breakdown
| Component | Meaning |
|---|
| T − R = 2 | Temptation gain: short-term benefit of defecting |
| T − P = 4 | Punishment swing: cost of being caught defecting |
| Ratio | High punishment-to-temptation ratio allows lower δ |
The Folk Theorem Connection
This analysis extends to the Folk Theorem: in infinitely repeated games, nearly any feasible, individually rational payoff can be sustained as a Nash equilibrium with:
- High enough δ (patient players)
- Appropriate threat strategies that punish deviations
This explains why cooperation is possible in repeated settings despite one-shot defection dominance.