Using a reinforcement-learning algorithm, we model an agent-based simulation of a public goods game with endogenous punishment institutions. We propose an outcome-based model of social preferences that determines the agent’s utility, contribution, and voting behavior during the learning procedure. Comparing our simulation to experimental evidence, we find that the model can replicate human behavior and we can explain the underlying motives of this behavior. We argue that our approach can be generalized to more complex simulations of human behavior.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.