EDK All work

One-day project · Game theory + markets

IPD in Dynamic Markets

What happens when the incentives in a Prisoner’s Dilemma change along with the market?

In this one-day project with two peers, I adapted the Iterated Prisoner’s Dilemma to represent an oligopoly—a market in which a small number of players can materially affect one another. Traditional IPD simulations hold their payoff matrices constant. Our model instead let earlier cooperation, cheating, and retaliation change the incentives players encountered in later rounds, treating the market itself as dynamic.

Tit for Tat begins by cooperating, then mirrors your previous move.

Choose your first move.

Stacked bar chart comparing payoffs across ten strategy pairings
01Pairing-level results across Cooperator, Defector, Random, and Tit for Tat. Cooperative and reciprocal pairings produced the largest combined payoffs.
Line chart showing the percentage payoff difference between Tit for Tat and Cooperator as population increases
02Tit for Tat maintained a modest, relatively stable payoff advantage over unconditional cooperation as the population scaled.
Line chart showing the percentage payoff difference between Tit for Tat and Cheater rising with population size
03The clearest scaling result: Tit for Tat’s relative payoff advantage over the non-adaptive Cheater strategy increased consistently with population size.
  1. 01Defined four strategies: Cooperator always cooperates, Defector always defects, Random chooses either action with equal probability, and Tit for Tat mirrors its opponent’s previous move.
  2. 02Built a symmetric initial payoff matrix and a percent-change matrix that updated future rewards and penalties according to each round’s outcome.
  3. 03Ran round-robin tournaments in which every strategy played every other strategy 100 times, allowing behavior and the changing payoff structure to influence one another.
  4. 04Scaled the simulated population and compared total and relative payoffs, focusing on exploitation, stable cooperation, and whether adaptive strategies retained their advantage.

Mutual cooperation produced the highest combined payoffs. Tit for Tat maintained a modest advantage over unconditional cooperation while defending itself against Defectors; most notably, its relative advantage over the non-adaptive Cheater strategy grew consistently as the simulated population increased.