Game Parameters
Payoffs:
Cooperator: r·(nC/N) - c
Defector: r·(nC/N)
Simulate cooperators producing public goods and cheaters free-riding—explore the tragedy of the commons
Payoffs:
Cooperator: r·(nC/N) - c
Defector: r·(nC/N)
A public goods game models situations where individuals can contribute to a common resource that benefits everyone, but cooperation is costly and defection is tempting. This captures the essence of many real-world dilemmas: climate action, team projects, public infrastructure, and environmental conservation.
The dilemma arises when 1 < r < N. The public good is valuable (r > 1 means contributions increase total wealth), but each individual benefits more from defecting (r/N < 1 means you get back less than you contribute). Defection dominates cooperation, yet universal defection gives everyone a payoff of zero, while universal cooperation gives everyone r - c > 0 when r > N·c.
The tragedy of the commons was popularized by Garrett Hardin (1968), though the concept dates back to Aristotle's observation that "what is common to the greatest number has the least care bestowed upon it." Public goods games have been studied experimentally since the 1980s, revealing that humans cooperate more than game theory predicts, especially when punishment is available. Elinor Ostrom won the Nobel Prize in Economics (2009) for showing how communities can self-organize to manage commons without top-down regulation.