Code to accompany the paper 'Corruption Drives the Emergence of Civil Society' by Abdallah et al (http://arxiv.org/abs/1307.6646)
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PLOT.png
README.md
transition_matrix_x_y_z_v_w_c_h.py

README.md

This code accompanies 'Corruption Drives the Emergence of Civil Society' by Abdullah et al (2013).

The code estimates the transition matrix between strategies (described in the paper) playing a public goods game from which the stationary distribution is calculated using the power iteration method. Finally a phase diagram is plotted as a function of B (or any other arbitrary parameter).

The method is based on 'Social Learning promotes Institutions for Governing the Commons' Sigmund et al, Nature 2010.

Dependencies

Requires NumPy, SciPy and Matplotlib