ES-1-outcome (Endogenous Separation conditioned on the previous outcome)

Luis R. Izquierdo, Segismundo S. Izquierdo & Robert Boyd

HOW TO INSTALL THE MODEL

To use ES-1-outcome, you will have to install NetLogo 6.4 (free and open source) and download the model itself. Unzip the downloaded file and click on ES-1-outcome.nlogo

OVERVIEW OF THE MODEL

ES-1-outcome (Endogenous Separation conditioned on the previous outcome) is a model designed to formally analyze the mechanism of endogenous separation (or conditional dissociation) in the evolutionary emergence of cooperation. This section gives an informal and brief overview of ES-1-outcome. The figure below provides a sketch that illustrates the sequence of events within each time-step.

Timeline of events within each time step

Sketch of the sequence of events within each time-step. The "Remaining Pairs" and "Singles" at the end of a time-step are identical to the "Existing Pairs" and "Singles" in the next time-step.

We use bold red italicised Arial font to denote parameters (i.e. variables that can be set by the user). In ES-1-outcome, there is a population of n-of-players players that are matched in couples (partnerships) to play a 2×2 symmetric game. The 2 possible actions players can take in the game are denoted C (for Cooperate) and D (for Defect).

After having played the game, partnerships may dissolve in two ways:

Players who separate are randomly re-matched in the following period and continue playing the stage game with their new partner.

The model can be used to simulate processes with endogenous separation (if option-to-leave? = on) and processes without endogenous separation (if option-to-leave? = off).

DESCRIPTION OF THE MODEL

This section explains the formal model that ES-1-outcome implements. The information provided here should suffice to re-implement the same formal model in any sophisticated enough modelling platform.

The game

Consider a population of n-of-players individuals; some of the individuals are matched in pairs and some may be single.

Every individual who is single at the beginning of the time-step is randomly matched with another single. Thus, after this random matching of singles, every individual is paired with another individual.

In each time-step, the two members of every pair play a symmetric 2×2 game once, where each of them can undertake one of two possible actions. These two possible actions are called C (for Cooperate) and D (for Defect). The action selected by each of the players determines the payoff that each of them receives in that time-step: CC-payoff, CD-payoff, DC-payoff, or DD-payoff, where AB-payoff denotes the payoff that an individual choosing action A obtains when her counterpart chooses action B.

Memory-one strategies

Each individual carries five "genes" that shape her behaviour. These five genes determine the individual's strategy.

A strategy thus specifies a course of action at every possible juncture in an individual's life. The number of possible memory-one strategies in the model with the option to leave (i.e., if option-to-leave? = on) is 2·3·3·3·3 = 162. The memory-one strategies for the model without the option to leave (option-to-leave? = off) are the 2·24 = 32 strategies with no L.

We use these five genes to name the different strategies. An example of a strategy is D-C-L-D-C. A player with this strategy:

Thus, Tit-For-Tat corresponds to C-C-D-C-D, Win-Stay-Lose-Shift is C-C-D-D-C, and C-C-D-D-D is a strategy that chooses to cooperate with new partners and keeps on cooperating if and only if there is mutual cooperation; otherwise it defects.

Errors

There is also the possibility of errors when playing the game. Every time an individual must decide what action to take in the game (C or D), she will make an error (i.e. choose the unintended action) with probability action-error. Thus, the agent will take the action prescribed by her strategy with probability (1 - action-error) and the other one (C or D), with probability action-error:

The time line

The population process advances in discrete time-steps t = 1, 2, 3,... which are called 'ticks' in the interface of the model. In each time-step, the following events occur in sequence (see figure above):

  1. Random matching of singles. At the beginning of each time-step, single individuals are randomly matched. Note that all individuals are single at the beginning of the very first time-step.
  2. The stage game. All pairs play the 2×2 symmetric game described above once and obtain the corresponding payoff. Each individual's action (C or D) is determined by (the corresponding gene in) her strategy, potentially affected by action-error.
  3. Exogenous separation. Every partnership is exogenously broken with probability (1-1/exp-n-of-interactions). Thus, parameter exp-n-of-interactions is the expected number of interactions of partnerships whose members do not choose to break up. If a partnership is broken, both players join the pool of singles.
  4. Revision of strategies. Players whose partnership has been exogenously broken may revise their strategy, with independent probability prob-revision. The revision process is as follows:
  5. Endogenous separation. Every individual involved in a partnership decides whether to leave or stay, according to her strategy. Individuals involved in partnerships that are broken join the pool of singles entering the next time-step.

HOW TO USE IT

Interface of the model

Type of model: with or without the option to leave

The user can choose to simulate a) a process with the option to leave (162 possible strategies), by setting option-to-leave? = on, or b) a process without that possibility (32 possible strategies), by turning option-to-leave? off.

Payoffs

Population parameters

Buttons

MONITORS AND PLOTS

Monitors

Plots

Switch show-plots? controls whether plots are updated every tick or not. The model runs significantly faster if show-plots? is off. Importantly, all plots refer to the situation after the processes of exogenous and endogenous breakup have taken place but before any player revises her strategy.

LICENCE

ES-1-outcome (Endogenous Separation conditioned on the previous outcome) is a model designed to formally analyze the mechanism of endogenous separation (or conditional dissociation) in the evolutionary emergence of cooperation.
Copyright (C) 2025 Luis R. Izquierdo, Segismundo S. Izquierdo & Robert Boyd

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You can download a copy of the GNU General Public License by clicking here; you can also get a printed copy writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Contact information:
Luis R. Izquierdo
University of Burgos, Spain.
e-mail: lrizquierdo@ubu.es

MODELLERS

This program has been designed and implemented by Luis R. Izquierdo, Segismundo S. Izquierdo & Robert Boyd.