Chapter 3 · Simulation

Prisoner's Dilemma

← Chapter 3

Sam

Player 1

Total years0
Years in prison (Sam · John); fewer is better. Outlined cell = Nash equilibrium.
Sam \ JohnSilentBetray
Silent1 · 13 · 0
Betray0 · 32 · 2

John

Player 2

Total years0

History

    Round 0

    How to play

    Sam and John are arrested and questioned separately. Each, without knowing the other's choice, either stays silent or betrays the other.

    • Both silent: one year each. Both betray: two years each.
    • One betrays and the other stays silent: the betrayer goes free (0) and the silent one gets 3 years.

    In the two-player mode the first choice stays hidden ("locked") until the second player chooses; then both are revealed and the matching cell of the payoff matrix is highlighted. Next round plays again; years add up over the rounds. The computer can also play John.

    Sam's reasoning

    • If John stays silent: betraying gives Sam 0 years, silence gives 1 year. Betraying is better.
    • If John betrays: betraying gives Sam 2 years, silence gives 3 years. Betraying is better.

    Conclusion: betraying is a dominant strategy for Sam, and John reasons the same way. Although both would be better off at (Silent, Silent), (Betray, Betray) is the only Nash equilibrium. Individual rationality leads to a collectively worse outcome.

    Computer strategies for John

    • Tit-for-Tat: stays silent in round 1, then copies Sam's previous choice.
    • Always betray / Always silent: the same choice every round.
    • Random: each choice with probability 1/2.

    In the repeated game, cooperation can be sustained by strategies such as Tit-for-Tat that reward cooperation and punish betrayal.

    More

    Test yourself

    Payoffs are years in prison: fewer is better. Click an answer.

    1. If John stays silent, which choice gives Sam fewer years?

    2. If John betrays, which choice gives Sam fewer years?

    3. Is (Silent, Silent) a Nash equilibrium?

    4. Which outcome is Pareto-better than the (Betray, Betray) equilibrium?

    Score: 0 / 4