Published April 11, 2025 | Version v1
Software Open

Agent-based model for "The Ecological Origins of Collectivism"

Authors/Creators

Description

MATLAB code to implement agent-based simulations, based on evolutionary game theory, of a mixed population of collectivists and individualists who interact through a step-level public goods game, the Collective Risk Dilemma. Each agent can switch between two strategies (Cooperate and Defect) depending on own payoffs (individualist) or a linear combination of own and group payoffs (collectivists). The script calculates the frequency of collectivism and cooperation after n Monte-Carlo steps. This script has been used to generate the data for the manuscript "The Ecological Origins of Collectivism".

Files

Files (9.3 kB)

Name Size Download all
md5:0e27b31605c5a7a778aaea6ec472998c
1.7 kB Download
md5:07675bf7e5e250d8843b2bb6393437a3
3.1 kB Download
md5:f3da55fbc54a11df809fbe48e56bc193
4.6 kB Download