Open Access
This article is

- freely available
- re-usable

*Games*
**2017**,
*8*(3),
35;
doi:10.3390/g8030035

Article

Cooperation in Public Goods Games: Stay, But Not for Too Long

^{1}

Departamento de Física, Universidade Federal de Minas Gerais, Caixa Postal 702, Belo Horizonte CEP 30161-970, MG, Brazil

^{2}

Instituto de Física, Universidade Federal do Rio Grande do Sul, Caixa Postal 15051, Porto Alegre CEP 91501-970, RS, Brazil

^{*}

Author to whom correspondence should be addressed.

Received: 16 June 2017 / Accepted: 15 August 2017 / Published: 18 August 2017

## Abstract

**:**

Cooperation in repeated public goods game is hardly achieved, unless contingent behavior is present. Surely, if mechanisms promoting positive assortment between cooperators are present, then cooperators may beat defectors, because cooperators would collect greater payoffs. In the context of evolutionary game theory, individuals that always cooperate cannot win the competition against defectors in well-mixed populations. Here, we study the evolution of a population where fitness is obtained in repeated public goods games and players have a fixed probability of playing the next round. As a result, the group size decreases during the game. The population is well-mixed and there are only two available strategies: always cooperate (ALLC) or always defect (ALLD). Through numerical calculation and analytical approximations we show that cooperation can emerge if the players stay playing the game, but not for too long. The essential mechanism is the interaction between the transition from strong to weak altruism, as the group size decreases, and the existence of an upper limit to the number of rounds representing limited time availability.

Keywords:

evolutionary game theory; public goods game; repeated games; fixation probability## 1. Introduction

Cooperation in humans is different from other animals [1]. Humans have developed cooperative strategies that rely on advanced cognitive capacities [2,3,4]. The emergence of human language gave rise to cultural evolution [5,6], with humans following norms and internalizing them as emotions. The fear of being retaliated, or being rewarded, in future interactions make individuals more cautions, or more prone to cooperate [7,8]. Repetitive interactions opened new paths for the evolution of cooperation in populations. In repeated games, individuals can condition their current behavior on previous interactions. The winning strategy in the Axelrod tournament [9], called tit-for-tat strategy (TFT starts with cooperation in the first round and does whatever the opponent did in the previous round) outcompeted all opponents in that tournament. In the context of evolutionary game theory, TFT can resist invasion by ALLD (to defect in all rounds) if the average number of rounds is not too small [10]. In other words, cooperation is stable if players stay playing the game.

The possibility of terminating an interaction and leaving the game is a feature of mobile organisms [11]. Beneficial interactions should last and unfavourable ones should be interrupted. In Axelrod tournaments, the average number of rounds was determined by a constant, behavior-independent probability of playing the next round. The probability of leaving the game may depend on the behavior of the players. In a two-person repeated prisoner’s dilemma game, it was shown that TFT can invade a population of ALLD if a player decision to leave the game depends on whether she cooperated or defected in the previous round [12]. Most interestingly, even ALLC can be stable against invasion of ALLD if the players’ probability of continuation after the player herself has cooperated is sufficiently high [12]. The introduction of a continuation probability enlarges the strategy space: depending on the outcome of the current round, should one cooperate, defect or leave the game in the next round? With this larger set of strategies, it was shown that conditional dissociation allows the coexistence of defectors and a type of strategy that responds defection by leaving the game [13]. Several other models have been proposed to study conditional leaving, but they all combine different mechanisms, making it hard to isolate the effect of conditional dissociation [14,15,16]. We must stress that the possibility of terminating an interaction is not always possible, for example, when population has static spatial structure resulting in a fixed neighborhood. In this case, spatial structure may create reciprocity, favouring cooperation [17,18,19,20].

Instead of leaving an ongoing game, individuals may have the option to stay aside, not playing the game, and rely on a small but fixed income. Research on exit of public goods games usually focus on how outside options affect contributions. Both positive and negative consequences of exiting having been pointed out [21,22,23,24,25,26]. A common feature of these models is that player can join the game after exiting. Interestingly, most models study collective behaviour in groups of size two. One reason for this choice is that there is no complete understanding of the effect of the group size on public goods games yet. Terminating a pair-wise interaction implies the end of the game, but opting-out when there are more players raises the question of how to define the public goods benefits. One possibility is to rescale the multiplicative factor in order to keep the marginal return constant [22,27]. In this case, the social dilemma is present independently of the group size.

Another approach to deal with variable group size is to keep the multiplicative factor constant. In this case, the marginal return can vary and the game may change from a regime where defection is the best option to a regime where cooperation is best one. More specifically, in a public goods game, a cooperator contributes 1 token to a common endeavour. The total contribution is multiplied by r and is evenly split among the M members of the group. Thus, cooperators receive $rk/M$ and defectors receive $rk/M+1$, where k is the number of cooperators in the group. Each one unit contributed to the pool returns $r/M$ units to the contributor. Therefore, if $M<r$, then the best choice is to contribute. The regime $M<r$ is called weak altruism [28]. It is a weak altruism because it is of the best interest for cooperators to contribute and, at the same time, defectors do better at the expenses of cooperators. This possibility was explored in an experiment with humans and, theoretically, in the context of evolutionary dynamics. If cooperators, defectors, punishers and nonparticipants are the available types, it was shown that nonparticipants pave the way for cooperation in the context of public goods game [29,30]. In the absence of punishers, non-participants spread in the population at first. Since most players do not participate in the game, the average size of the groups playing the public goods game is small and the social dilemma disappears: the payoff of cooperators are, on average, larger than the payoff of defectors. The advantage for cooperators appears when groups of size M are randomly sampled in a population. In small groups cooperators take advantage of the weak altruism regime and, on average, do better than defectors [31].

In repeated public goods game, if players leave the group during the game, then the group size may decrease and the weak altruism threshold may be reached. If players do not return to the game, the weak altruism regime may last for a sufficiently large number of rounds, conferring advantage to cooperators. Here, we study the evolutionary dynamics of a well-mixed population where fitness is obtained in repeated public goods games. Individuals play the next round with a probability w that is constant and independent of the behavior and do not return to the game after leaving. The multi-round game is over either because the group vanishes or because a maximum number of rounds is reached, which is set to constant value. There are only two unconditional strategies: ALLC and ALLD. We show that cooperation is favored by selection if players stay playing the game, but not for too long.

## 2. The Model

The game consists of several rounds of a public goods game. Initially, M players are randomly selected in a well-mixed population of size N to play the multi-round public goods game. Each player plays the next round with probability equal to w. So, the group size can decrease throughout the rounds. If the number of players is less than two, the game is over. The maximum number of rounds is set to a fixed number, ${n}_{max}$, to avoid the case of infinite repeated games if $w=1$. There are two strategies: cooperation (C) and defection (D). At the beginning of each round, each player that is participating in the game has an initial endowment of one token. Cooperators contribute with one token to a common pool. The total of contributions is multiplied by r and is split evenly among all the participants, including defectors. Defectors keep the initial endowment. Let ${M}_{n}$ be the number of individuals playing the game in round n and ${k}_{n}$ be the number of cooperators in this group. The payoffs of the cooperators and the defectors that are playing the game in round n are given by

$$\begin{array}{ccc}\hfill {\pi}_{C}^{n}& =\hfill & \frac{r{k}_{n}}{{M}_{n}},\phantom{\rule{7.0pt}{0ex}}\hfill \\ \hfill {\pi}_{D}^{n}& =\hfill & \frac{r{k}_{n}}{{M}_{n}}+1.\hfill \end{array}$$

Players accumulate their gains through the rounds and stop to collect the total payoff when they leave the game. Following the usual procedure of evolutionary game dynamics, the cumulative payoff is interpreted as reproductive success and a Moran process is implemented [10]. At the end of each multi-round game, an individual is randomly chosen to die and another individual is chosen to reproduce with a probability proportional to $1-s+s\pi $, where $\pi $ is the cumulative payoff and s is the intensity of selection. After the reproduction step, the payoff of each player is equated to zero and, again, M players are randomly selected to play a new multi-round game. Players that are not selected to play the multi-round game have cumulative payoff equal to zero. Notice that the payoff defined in Equation (1) comply with the usual definition adopted in experiments with humans, differing from the alternative definition where, instead of an initial endowment, there is a cost to contribute to public good [29]. The results in our work are the same for both payoff definitions.

This model sets up the most severe scenario for cooperation in terms of the relation between interaction rate and selection rate. It was shown that, if only few individuals collect payoff before a reproduction step takes place (recall that, in our model, a game is actually a multi-round one), then the fixation probability of a cooperator is drastically reduced. In contrast, if all players have the opportunity to play the game, then cooperation has a higher chance to survive [32]. Since in our model only M individuals play the multi-round game before a reproduction step takes place, we are at the most severe scenario. We also checked the model where the process of selecting M players is repeated several times before the reproduction step. Since it does change our results qualitatively, we do not present the analysis of this variation here.

## 3. Results

To see if natural selection favors cooperation in finite well-mixed populations, we look at the probability that a single cooperator in a population of defectors turns the population to full cooperation. This probability is called fixation probability [10], and is given by
where $\u2329{\pi}_{C}({n}_{c})\u232a$ and $\u2329{\pi}_{D}({n}_{c})\u232a$ are the average cumulative payoff of a cooperator and a defector, respectively, in a population of size N with ${n}_{c}$ cooperators. If the game plays no role in the evolution of strategies, that is, if $s=0$, then the fixation of a mutant is driven only by random drift and is given by $\rho =1/N$. If $s\ne 0$, we say that cooperation is favored by selection if $\rho >1/N$ and that cooperation is inhibited by selection if $\rho <1/N$ [10].

$$\rho =\frac{1}{1+{\sum}_{k=1}^{N-1}{\prod}_{{n}_{c}=1}^{k}\frac{1-s+s\u2329{\pi}_{D}({n}_{c})\u232a}{1-s+s\u2329{\pi}_{C}({n}_{c})\u232a}},$$

The weak selection limit is usually appropriated to incorporate the game payoffs into the fitness, since we do not expect the game to be a major fitness component. In the limit of weak selection, a Taylor approximation for $s\to 0$ on Equation (2) leads to

$$\rho \approx \frac{1}{N}\left[1+s{\displaystyle \sum _{{n}_{c}=1}^{N-1}}\frac{N-{n}_{c}}{N}\left(\u2329{\pi}_{C}({n}_{c})\u232a-\u2329{\pi}_{D}({n}_{c})\u232a\right)\right].$$

To calculate the fixation probability in the limit of weak selection using Equation (2), we must have the expression for $\u2329{\pi}_{C}({n}_{c})\u232a$ and $\u2329{\pi}_{D}({n}_{c})\u232a$. Since we can not derive a closed expression for the average payoffs, we first solved Equation (2) numerically, with the values of $\u2329{\pi}_{C}({n}_{c})\u232a$ and $\u2329{\pi}_{D}({n}_{c})\u232a$ obtained from computer simulations of the payoff accumulation phase. Second, we developed an analytical approximation, starting with Equation (3) (see below in this section). Figure 1 shows the fixation probability as a function of w in the weak selection regime for both the numerical and analytical methods. Note that, for small w, the fixation probability is quite close to the neutral fixation probability ($\rho =1/N$). For sufficiently large r, the probability increases, until it reaches a maximum. After this point, the probability decreases to values lower than the neutral fixation probability, as w tends to 1. Notice that the probability of fixation and the value of w at which the fixation is maximum increase for higher values of ${n}_{max}$ So, to increase cooperation in a population constrained to a fixed maximum number of rounds, players should stay in the game, but not for too long.

To understand these results, let us derive an analytical approximation for this model. In a population of N players, with ${n}_{c}$ cooperators, the probability that there are k cooperators in the randomly selected group of size M in the first round is given by the hypergeometric distribution

$$H(k,M,{n}_{c},N)=\frac{\left(\begin{array}{c}{n}_{c}\\ k\end{array}\right)\left(\begin{array}{c}N-{n}_{c}\\ M-k\end{array}\right)}{\left(\begin{array}{c}N\\ M\end{array}\right)}.$$

Thus, the average payoff of cooperators and defectors in the first round is given by

$$\begin{array}{ccc}\hfill {\pi}_{C}^{1}& =& {\displaystyle \sum _{k=0}^{M}}H(k,M,{n}_{c},N)\frac{kr}{M}\frac{k}{{n}_{c}},\hfill \\ \hfill {\pi}_{D}^{1}& =& {\displaystyle \sum _{k=0}^{M}}H(k,M,{n}_{c},N)\left(\frac{kr}{M}+1\right)\frac{M-k}{N-{n}_{c}}\hfill \end{array}$$

The term $\frac{k}{{n}_{c}}$ stands for the fraction of cooperators playing the game. This term guarantees the null payoff of players that are not selected to play the game. The same holds for the term $\frac{M-k}{N-{n}_{c}}$, which is the fraction of defectors playing the game. We stress that, in other models of public games in finite population [29], all players have the opportunity to play the game. Therefore, the average payoff of a cooperator, for example, is calculated supposing that one of the players in the group is already a cooperator, implying that $H(k,M-1,{n}_{c}-1,N-1)$ should be used. Note that this is not our case. Returning to our model, a simple calculation leads to

$$\begin{array}{ccc}\hfill {\pi}_{C}^{1}& =& \frac{r}{N}\left[1+({n}_{c}-1)\frac{M-1}{N-1}\right],\hfill \end{array}$$

$$\begin{array}{ccc}\hfill {\pi}_{D}^{1}& =& \frac{M}{N-{n}_{c}}\left[1+(r-1)\frac{{n}_{c}}{N}\right]-\frac{{n}_{c}}{N-nc}{\pi}_{C}^{1}.\hfill \end{array}$$

The average group size in round n is given by ${M}_{n}={M}_{n-1}w$. This recurrence relation yields

$${M}_{n}=M{w}^{n-1}.$$

Now we use the approximation of replacing M by ${M}_{n}$ in Equations (5) and (6). Within this approximation, the average payoff of cooperators and defectors in round n is given by

$$\begin{array}{ccc}\hfill {\pi}_{C}^{n}& =& \frac{r}{N}\left[1+({n}_{c}-1)\frac{M{w}^{n-1}-1}{N-1}\right],\hfill \\ \hfill {\pi}_{D}^{n}& =& \frac{M{w}^{n-1}}{N-{n}_{c}}\left[1+(r-1)\frac{{n}_{c}}{N}\right]-\frac{{n}_{c}}{N-nc}{\pi}_{C}^{n}.\hfill \end{array}$$

The multi-round game is over when there is less than two players or when the maximum number of rounds ${n}_{max}$ is reached. The average number of rounds, ${n}^{\ast}$, is given by

$${n}^{\ast}=min\left({n}_{max},1+\frac{ln(1/M)}{ln(w)}\right)\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{for}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}0<w<1.$$

If $w=0$, the average number of rounds is given by ${n}^{\ast}=1$ and if $w=1$ it is given by ${n}^{\ast}={n}_{max}$. Therefore, the average cumulative payoff at the end of ${n}^{\ast}$ rounds is given, within our approximation, by

$$\begin{array}{ccc}\hfill \u2329{\pi}_{C}\u232a& =\hfill & {\displaystyle {\sum}_{n=1}^{{n}^{\ast}}}{\pi}_{C}^{n}\phantom{\rule{7.0pt}{0ex}}\hfill \\ & =\hfill & \frac{r}{N}{n}^{\ast}\left(1-\frac{{n}_{c}-1}{N-1}\right)+\frac{r}{N}\frac{{n}_{c}-1}{N-1}M\frac{{w}^{{n}^{\ast}}-1}{w-1}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \u2329{\pi}_{D}\u232a& =\hfill & {\displaystyle {\sum}_{n=1}^{{n}^{\ast}}}{\pi}_{D}^{n}\phantom{\rule{7.0pt}{0ex}}\hfill \\ & =\hfill & \frac{M}{N-{n}_{c}}\frac{{w}^{{n}^{\ast}}-1}{w-1}\left(1+(r-1)\frac{{n}_{c}}{N}\right)-\frac{{n}_{c}}{N-{n}_{c}}\u2329{\pi}_{C}\u232a\hfill \end{array}$$

The analytical approximation of the fixation probability in the limit of weak selection is obtained after the insertion of Equations (8) and (9) in Equation (3). Interestingly, the term $\u2329{\pi}_{C}\u232a-\u2329{\pi}_{D}\u232a$ does not depend on ${n}_{c}$, that is,

$$\u2329{\pi}_{C}\u232a-\u2329{\pi}_{D}\u232a=\frac{1}{N(N-1)}\left[M\frac{{w}^{{n}^{\ast}-1}}{w-1}(N+r-1)-{n}^{\ast}Nr\right].$$

So, Equation (3) simplifies to

$$\rho \approx \frac{1}{N}\left[1-\frac{s}{2N}\left(M\frac{{w}^{{n}^{\ast}}-1}{w-1}(N+r-1)-{n}^{\ast}Nr\right)\right].$$

Selection favours cooperation if $\rho >1/N$. This inequality is satisfied if

$$M\frac{{w}^{{n}^{\ast}}-1}{w-1}(N+r-1)<{n}^{\ast}Nr.$$

Inequality (11) defines two regions in the parameter space $w\times r$. In one region, selection favours cooperation and in the other one selection inhibits cooperation. Figure 2 shows the probability of fixation in the parameter space $w\times r$. Notice that transforming the inequality (11) into an equality yields the curve that separates both regions.

Cooperators win the competition against defectors if their cumulative payoffs are greater than the payoff of defectors. Indeed, cooperators have larger cumulative payoff if inequality (11) is satisfied, which is the same inequality that defines the region where selection favors cooperation. Inequality (11) can be rewritten as

$$\sum _{n=1}^{{n}^{\ast}}}(N+r-1){M}_{n}<{\displaystyle \sum _{n=1}^{{n}^{\ast}}}Nr.$$

Since $Nr$ is a constant term and ${M}_{n}$ is monotonically decreasing (recall ${M}_{n}$ is an average quantity), there must exist a ${n}^{\u2020}$ such that, if $n>{n}^{\u2020}$, then $(N+r-1){M}_{n}<Nr$. That is,

$${M}_{n}<\frac{Nr}{N+r-1}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{for}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}n>{n}^{\u2020}.$$

The value of ${n}^{\u2020}$ can be obtained by replacing the expression of ${M}_{{n}^{\u2020}}$ ( recall ${M}_{n}=M{w}^{n-1}$) into inequality (12):

$${n}^{\u2020}=1+\frac{ln\frac{Nr}{M(N+r-1)}}{lnw}.$$

The round at which the group size is small enough and cooperators start to do better than defectors is implicitly defined in Inequality (12). The meaning of this inequality is more clear in the limit of large N, where it simplifies to

$${M}_{n}<r.$$

In other words, from the moment that the group size is smaller than a critical size, cooperators do better than defectors. In the limit of large population, the critical size is equal to the multiplicative factor r, a result that is characteristic of weak altruism in finite populations. Hence, cooperators should stay playing the game so they can reach the weak altruism regime.

Note that, to enter in the weak altruism regime, the group size must have decreased so Inequality (12) is satisfied before ${n}_{max}$ is reached. If w is small, the game is over before reaching ${n}_{max}$. On the other hand, as w approaches one, the group size remains almost unchanged, round ${n}_{max}$ is reached and the group size remains above the critical size defined by Inequality (12). More specifically, on average, defectors do better than cooperators when $1\le n<{n}^{\u2020}$ and cooperators do better than defectors when ${n}^{\u2020}\le n\le {n}^{\ast}$. The number of rounds where cooperators do better is given by ${n}^{\ast}-{n}^{\u2020}$. Figure 3 shows the graph of ${n}^{\ast}$, ${n}^{\u2020}$, ${n}^{\ast}-{n}^{\u2020}$ and $\rho $ as a function of w. Notice that ${n}^{\ast}$ grows faster than ${n}^{\u2020}$ as w increases. Therefore, as w increases, cooperators play more rounds where they do better than defectors. However, ${n}^{\ast}$ increases only until ${n}_{max}$, putting a limit on the positive effect that increasing w has on cooperation. In other words, as w gets closer to one, most players keep playing the game and ${n}_{max}$ is reached before the group size enters in the weak altruism regime. The value of w at which ${n}^{\ast}$ reaches ${n}_{max}$ is obtained from Equation (7), and is given by

$${n}_{max}=1+\frac{ln1/M}{ln{w}^{peak}}.$$

After a simple transformation we have

$${w}^{peak}={\left(\frac{1}{M}\right)}^{\frac{1}{{n}_{max}-1}}.$$

For $w>{w}^{peak}$, ${n}^{\ast}-{n}^{\u2020}$ starts to decreases and the probability of fixation becomes a decreasing function in the interval $({w}^{peak},1]$. In other words, ${w}^{peak}$ is the value of w at which the probability of fixation is maximum. Since ${w}^{peak}$ approaches one as ${n}_{max}$ goes to infinity, the values of w where the probability of fixation is a decreasing function vanishes. Hence, if there is no constraint in the maximum number of rounds, cooperators should stay playing.

## 4. Discussion and Conclusions

Repeated interactions create the possibility of leaving the game as a strategic action. If the decision of leaving is conditioned on partners behavior, there can be assortment between cooperators and it is more likely that cooperation will be favored. In contrast, in our model the probability of leaving the game is a constant, behavior-independent parameter. In our model there is no assortment and no distinction is made between cooperators and defectors.

The probability of continuation can be interpreted as an environmental effect that prevents continuation in long repeated interactions. In our model, it is an external parameter upon which players have no control. If each player can decide with which probability they should play the next round, similar to what was done in [13], the equilibrium analysis of a multi-round game implies that defectors should stay playing all rounds. After all, why should a defector leave the game if it is always beneficial to participate in it? It is the cooperators that should opt out if they believe it is not worth to participate in the game. We stress that this is not the case of the present study, since we focus only on non-contingent strategies subjected to equal environmental effect.

The consequence of leaving the game is to reduce the group size. The critical group size where the dilemma changes from strong to weak altruism determines the fate of cooperation. We obtained the critical threshold as a function of N and r. In the limit of large N, the threshold is simply ${M}_{n}<r$. The Nash equilibrium is to defect if ${M}_{n}>r$ and to cooperate if ${M}_{n}<r$. In terms of absolute fitness, contribution increases an individual’s payoff if ${M}_{n}<r$ (the return of one contributed token is greater than keeping it). However, in terms of relative fitness, defectors do better than cooperators in a single multi-round game since, by Equation (1), we have ${\pi}_{D}^{n}={\pi}_{C}^{n}+1$ in all rounds. It is only through the sampling process that cooperators have the chance to earn more than defectors. This is called the Simpson’s paradox [33], a phenomena that happens when a trend appears in isolated groups (payoffs in each single-round public goods game), but disappears when combined (the average payoff).

The probability of continuation determines whether or not the group will reach the weak altruism regime. If the players leave the game quickly, the group enters in the weak regime after a few rounds. However, the group will also disappear quickly and cooperators will not enjoy the benefits of the weak altruism regime. For greater persistence, more rounds in the weak altruism regime are played and cooperators accumulate larger payoffs. The immediate consequence is an increase on the fixation probability to values greater than $1/N$. If there was an unlimited number of rounds, the advantage of cooperators would continue to increase. However, there can not be infinite rounds. If the number of rounds reaches its maximum, the group size may not have its size reduced in time. If players start playing for too long, due to the maximum number of rounds, the fixation probability decreases and selection starts to inhibit cooperation. Therefore, to say that cooperators should not play for too long is equivalent to say that w should not be greater than its critical value, with the critical value depending on ${n}_{max}$.

So, if players start playing for too long, due to the maximum number of rounds, the fixation probability decreases and selection starts to inhibit cooperation. We stress that mechanisms that yield differential payoff accumulation, as we studied here, are important to define the fate of cooperation in a population. For example, in [34], a different mechanism creates a payoff accumulation scenario favourable to cooperation. In their mean field approach, there are two groups: in one there is only cooperators (ALLC) and in the other there are both cooperators and defectors (ALLD). If cooperators play for enough time, they accumulate large payoffs and, after a migration, they may invade the other group.

To sum up, we showed that cooperation is favored in repeated interaction if individuals stay playing, but not for too long. The basic mechanism is the interaction between the transition from strong to weak altruism and the existence of an upper limit to the number of rounds representing limited time availability.

## Acknowledgments

The author thanks to CNPq and FAPEMIG, Brazilian agencies.

## Author Contributions

All authors contributed equally to research and writing of the manuscript.

## Conflicts of Interest

The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

## References

- Fehr, E.; Fischbacher, U. The nature of human altruism. Nature
**2003**, 425, 785–791. [Google Scholar] [CrossRef] [PubMed] - Stevens, J.R.; Hauser, M.D. Why be nice? Psychological constraints on the evolution of cooperation. Trends Cogn. Sci.
**2004**, 8, 60–65. [Google Scholar] [CrossRef] [PubMed] - Hammerstein, P. Why Is Reciprocity So Rare in Social Animals? A Protestant Appeal. In Genetic and Cultural Evolution of Cooperation; MIT Press in Cooperation with Dahlem University Press: Cambridge, MA, USA, 2003. [Google Scholar]
- Wardil, L.; Hauert, C. Targeted Cooperative Actions Shape Social Networks. PLoS ONE
**2016**, 11, e0147850. [Google Scholar] [CrossRef] [PubMed] - Loreto, V.; Baronchelli, A.; Mukherjee, A.; Puglisi, A.; Tria, F. Statistical physics of language dynamics. J. Stat. Mech. Theory Exp.
**2011**, 2011, P04006. [Google Scholar] [CrossRef] - Javarone, M.A.; Armano, G. Emergence of acronyms in a community of language users. Eur. Phys. J. B
**2013**, 86, 474. [Google Scholar] [CrossRef] - Sigmund, K.; Hauert, C.; Nowak, M.A. Reward and punishment. Proc. Natl. Acad. Sci. USA
**2001**, 98, 10757–10762. [Google Scholar] - Andreoni, J.; Harbaugh, W.; Westerlund, L. The Carrot or the Stick: Rewards, Punishments, and Cooperation. Am. Econ. Rev.
**2003**, 93, 893–902. [Google Scholar] [CrossRef] - Axelrod, R. The Evolution of Cooperation; Basic Books: New York, NY, USA, 1984. [Google Scholar]
- Nowak, M.A. Evolutionary Dynamics: Exploring the Equations of Life; Harvard University Press: Cambridge, MA, USA, 2006. [Google Scholar]
- Enquist, M.; Leimar, O. The evolution of cooperation in mobile organisms. Anim. Behav.
**1993**, 45, 747–757. [Google Scholar] [CrossRef] - Thomas, E.A.C.; Feldman, M.W. Behavior-Dependent Contexts for Repeated Plays of the Prisoner’s Dilemma. J. Confl. Resolut.
**1988**, 32, 699–726. [Google Scholar] [CrossRef] - Izquierdo, S.S.; Izquierdo, L.R.; Vega-Redondo, F. The option to leave: Conditional dissociation in the evolution of cooperation. J. Theor. Biol.
**2010**, 267, 76–84. [Google Scholar] [CrossRef] [PubMed] - Hayashi, N. From tit-for-tat to out-for-tat. Sociol. Theor. Method
**1993**, 8, 19–32. [Google Scholar] - Aktipis, C.A. Know when to walk away: Contingent movement and the evolution of cooperation. J. Theor. Biol.
**2004**, 231, 249–260. [Google Scholar] [CrossRef] [PubMed] - Hamilton, I.M.; Taborsky, M. Contingent movement and cooperation evolve under generalized reciprocity. Proc. R. Soc. Biol. Sci. Ser. B
**2005**, 272, 2259–2267. [Google Scholar] [CrossRef] [PubMed] - Santos, F.C.; Santos, M.D.; Pacheco, J.M. Social diversity promotes the emergence of cooperation in public goods games. Nature
**2008**, 454, 213–216. [Google Scholar] [CrossRef] [PubMed] - Szolnoki, A.; Perc, M. Reward and cooperation in the spatial public goods game. EPL
**2010**, 92, 38003. [Google Scholar] [CrossRef] - Javarone, M.A.; Battiston, F. The role of noise in the spatial public goods game. J. Stat. Mech. Theory Exp.
**2016**, 2016, 073404. [Google Scholar] [CrossRef] - Szolnoki, A.; Perc, M. Impact of critical mass on the evolution of cooperation in spatial public goods games. Phys. Rev. E
**2010**, 81, 057101. [Google Scholar] [CrossRef] [PubMed] - Yamagishi, T. Exit from the group as an individualistic solution to the free rider problem in the United States and Japan. J. Exp. Soc. Psychol.
**1988**, 24, 530–542. [Google Scholar] [CrossRef] - My, K.B.; Chalvignac, B. Voluntary participation and cooperation in a collective-good game. J. Econ. Psychol.
**2010**, 31, 705–718. [Google Scholar] - Rand, D.G.; Arbesman, S.; Christakis, N.A. Dynamic social networks promote cooperation in experiments with humans. Proc. Natl. Acad. Sci. USA
**2011**, 108, 19193–19198. [Google Scholar] [CrossRef] [PubMed] - Bravo, G.; Squazzoni, F. Exit, punishment and rewards in commons dilemmas: An experimental study. PLoS ONE
**2013**, 8, e69871. [Google Scholar] [CrossRef] [PubMed] - Dong, X.Y.; Dow, G.K. Does free exit reduce shirking in production teams? J. Comp. Econ.
**1993**, 17, 472–484. [Google Scholar] [CrossRef] - Mulder, L.B.; Dijk, E.V.; Cremer, D.D.; Wilke, H.A. Undermining trust and cooperation: The paradox of sanctioning systems in social dilemmas. J. Exp. Soc. Psychol.
**2006**, 42, 147–162. [Google Scholar] [CrossRef] - Hamburger, H.; Guyer, M.; Fox, J. Group size and cooperation. J. Confl. Resolut.
**1975**, 19, 503–531. [Google Scholar] [CrossRef] - Wilson, D.S. Weak altruism, strong group selection. Oikos
**1990**, 59, 135–140. [Google Scholar] [CrossRef] - Hauert, C.; Traulsen, A.; Brandt, H.; Nowak, M.A.; Sigmund, K. Via Freedom to Coercion: The Emergence of Costly Punishment. Science
**2007**, 316, 1905–1907. [Google Scholar] [CrossRef] [PubMed] - Semmann, D.; Krambeck, H.-J.; Milinski, M. Volunteering leads to rock-paper-scissors dynamics in a public goods game. Nature
**2003**, 425, 390–393. [Google Scholar] [CrossRef] [PubMed] - Archetti, M.; Scheuring, I. Review: Game theory of public goods in one-shot social dilemmas without assortment. J. Theor. Biol.
**2012**, 299, 9–20. [Google Scholar] [CrossRef] [PubMed] - Roca, C.; Cuesta, J.; Sánchez, A. The importance of selection rate in the evolution of cooperation. Eur. Phys. J. Spec. Top.
**2007**, 143, 51. [Google Scholar] [CrossRef] - Blyth, C.R. On Simpson’s Paradox and the Sure-Thing Principle. J. Am. Stat. Assoc.
**1972**, 67, 364–366. [Google Scholar] [CrossRef] - Javarone, M.A. Statistical Physics of the Spatial Prisoner’s Dilemma with Memory-Aware Agents. Eur. Phys. J. B
**2016**, 89. [Google Scholar] [CrossRef]

**Figure 1.**Fixation probability, $\rho $, of a single cooperator in the weak selection limit for ${n}_{max}=10$ (

**a**) and ${n}_{max}=100$ (

**b**). We show data from computer simulation (symbols) and from the analytical approximation, Equation (10) (continuous lines). The horizontal line at $\rho =0.01$ is the neutral fixation probability. The parameters are $N=100$, $M=10$, and $s=0.001$.

**Figure 2.**Fixation probability, $\rho $, as a function of r and w for ${n}_{max}=10$ (

**a**) and ${n}_{max}=100$ (

**b**) obtained from computer simulations. The solid line shows the analytical value where the fixation probability equals neutral selection, calculated using Equation (10). This analytical line divides the phase space in two regions: cooperation is favored where $\rho >1/N$ and cooperation is inhibited where $\rho <1/N$. Note that, although cooperators benefit from large w, there is a maximum value after which it is better to leave the game. On the right figure the inset shows details of the region near ${w}^{peak}$.

**Figure 3.**Number of rounds analysis. The figure shows the average number of rounds, ${n}^{\ast}$; the round at which the average payoff of cooperators start to be greater than the average payoff of defectors, ${n}^{\u2020}$; the difference ${n}^{\ast}-{n}^{\u2020}$; and the fixation probability for $r=8$ and ${n}_{max}=10$. As expected, ${n}^{\ast}$ grows with w, but reaches the constant value of ${n}_{max}$, which was set to ${n}_{max}=10$ in this figure. Notice that the peak of ${n}^{\ast}-{n}^{\u2020}$ is at ${w}_{peak}$ (vertical dashed line).

© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).