This file is part of IDEAS, which uses RePEc data


[ Papers | Articles | Software | Books | Chapters | Authors | Institutions | JEL Classification | NEP reports | Search | New papers by email | Author registration | Rankings | Volunteers | FAQ | Blog | Help! ]

Simulating Evolutionary Games: A Python-Based Introduction

Author info | Abstract | Publisher info | Download info | Related research | Statistics
Author Info
Alan G. Isaac ()

Additional information is available for the following registered author(s):

Abstract

This paper is an introduction to agent-based simulation using the Python programming language. The core objective of the paper is to enable students, teachers, and researchers immediately to begin social-science simulation projects in a general purpose programming language. This objective is facilitated by design features of the Python programming language, which we very briefly discuss. The paper has a 'tutorial' component, in that it is enablement-focused and therefore strongly application-oriented. As our illustrative application, we choose a classic agent-based simulation model: the evolutionary iterated prisoner's dilemma. We show how to simulate the iterated prisoner's dilemma with code that is simple and readable yet flexible and easily extensible. Despite the simplicity of the code, it constitutes a useful and easily extended simulation toolkit. We offer three examples of this extensibility: we explore the classic result that topology matters for evolutionary outcomes, we show how player type evolution is affected by payoff cardinality, and we show that strategy evaluation procedures can affect strategy persistence. Social science students and instructors should find that this paper provides adequate background to immediately begin their own simulation projects. Social science researchers will additionally be able to compare the simplicity, readability, and extensibility of the Python code with comparable simulations in other languages.

Download Info
To download:

If you experience problems downloading a file, check if you have the proper application to view it first. Information about this may be contained in the File-Format links below. In case of further problems read the IDEAS help file. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL: http://jasss.soc.surrey.ac.uk/11/3/8.html
File Format: text/html
File Function:
Download Restriction: no

Publisher Info
Article provided by Journal of Artificial Societies and Social Simulation in its journal Journal of Artificial Societies and Social Simulation.

Volume (Year): 11 (2008)
Issue (Month): ()
Pages:
Download reference. The following formats are available: HTML, plain text, BibTeX, RIS (EndNote), ReDIF
Handle: RePEc:jas:jasssj:2008-8-2

Contact details of provider:

For technical questions regarding this item, or to correct its listing, contact: ().

Related research
Keywords: Agent-Based Simulation Python Prisoner's Dilemma

Statistics
Access and download statistics

Did you know? All bibliographic data on IDEAS has been put in the public domain by the publishers.

This page was last updated on 2008-9-25.


This information is provided to you by IDEAS at the Department of Economics, College of Liberal Arts and Sciences, University of Connecticut using RePEc data on a server sponsored by the Society for Economic Dynamics.