Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2011 Oct 7.
Published in final edited form as: J Theor Biol. 2010 Jul 7;266(3):358–366. doi: 10.1016/j.jtbi.2010.06.042

Invasion and expansion of cooperators in lattice populations: Prisoner’s dilemma vs. Snowdrift games

Feng Fu a,b,*, Martin A Nowak a, Christoph Hauert c
PMCID: PMC2927800  NIHMSID: NIHMS221558  PMID: 20619271

Abstract

The evolution of cooperation is an enduring conundrum in biology and the social sciences. Two social dilemmas, the prisoner’s dilemma and the snowdrift game have emerged as the most promising mathematical metaphors to study cooperation. Spatial structure with limited local interactions has long been identified as a potent promoter of cooperation in the prisoner’s dilemma but in the spatial snowdrift game, space may actually enhance or inhibit cooperation. Here we investigate and link the microscopic interaction between individuals to the characteristics of the emerging macroscopic patterns generated by the spatial invasion process of cooperators in a world of defectors. In our simulations, individuals are located on a square lattice with Moore neighborhood and update their strategies by probabilistically imitating the strategies of better performing neighbors. Under sufficiently benign conditions, cooperators can survive in both games. After rapid local equilibration, cooperators expand quadratically until global saturation is reached. Under favorable conditions, cooperators expand as a large contiguous cluster in both games with minor differences concerning the shape of embedded defectors. Under less favorable conditions, however, distinct differences arise. In the prisoner’s dilemma, cooperators break up into isolated, compact clusters. The compact clustering reduces exploitation and leads to positive assortment, such that cooperators interact more frequently with other cooperators than with defectors. In contrast, in the snowdrift game, cooperators form small, dendritic clusters, which results in negative assortment and cooperators interact more frequently with defectors than with other cooperators. In order to characterize and quantify the emerging spatial patterns, we introduce a measure for the cluster shape and demonstrate that the macroscopic patterns can be used to determine the characteristics of the underlying microscopic interactions.

Keywords: Spatial games, Invasion pattern, Cooperation, Pair approximation

1. Introduction

The evolution of cooperation poses a fundamental challenge to evolutionary biologists (Axelrod, 1984; Maynard Smith, 1982; Nowak, 2006). Cooperators incur costs in order to benefit others while defectors reap the benefits but dodge the costs. Despite the fact that groups of defectors perform poorly as compared to groups of cooperators, Darwinian selection should favor defectors. Nevertheless, cooperation is ubiquitous in biological and social systems. The problem of cooperation represents a social dilemma characterized by the conflict of interest between the group and the individual (Dawes, 1980; Hauert, 2006).

The two most prominent mathematical metaphors to investigate cooperation in social dilemmas are the prisoner’s dilemma and the snowdrift game (Doebeli and Hauert, 2005). Both games describe pairwise interactions where each player can cooperate or defect. In the prisoner’s dilemma, a cooperator incurs a cost, c, and provides a benefit, b, to its opponent with b > c. Defectors neither incur costs nor provide benefits. Hence, if both players cooperate, each receives bc but neither gains anything if they both defect. If a cooperator meets a defector, the defector gets the benefit and the cooperator is left with the costs. The different outcomes can be conveniently summarized in a payoff matrix:

(bccb0). (1)

It is easy to see that defection is dominant, i.e. it is better to defect, irrespective of the other player’s decision. Consequently, the two players end up with zero instead of the more favorable reward bc for mutual cooperation. Self-interest prevents individuals from achieving a mutually beneficial goal, which is the essence of social dilemmas.

In the snowdrift game individuals can gain access to benefits for the pair at some individual cost. Cooperators are willing to bear the costs whereas defectors are not. If two cooperators meet, both get the benefit and share the costs, bc/2, and if a cooperator meets a defector, the cooperator still gets the benefit but carries the entire costs, bc. For the defector, the payoffs are the same as in the prisoner’s dilemma. The resulting payoff matrix is

(bc2bcb0). (2)

The crucial difference is that the best decision now depends on the other individual: defect if the other player cooperates but cooperate if the other defects. This results in a relaxed social dilemma – cooperation remains prone to exploitation by defectors but at least they receive their share of the benefit.

The replicator dynamics (Hofbauer and Sigmund, 1998) is used to describe the evolutionary fate of cooperators and defectors in large, unstructured populations where each individual is equally likely to interact with any other one. In the prisoner’s dilemma cooperation disappears and a pure defector population is the only stable outcome. In contrast, in the snowdrift game cooperators and defectors can co-exist at an equilibrium frequency of 1 − c/(2bc) cooperators. The fact that in the snowdrift game it is best to adopt a strategy that is different from the opponent ensures that in a population the rare type is favored and guarantees stable co-existence. Also note that the average payoff in equilibrium is lower than for a population of cooperators –another consequence of social dilemmas (Doebeli and Hauert, 2005).

In such well-mixed populations the invasion and maintenance of cooperation is trivial in the snowdrift game but additional supporting mechanisms are required for cooperation to succeed in the prisoner’s dilemma. Over the last decades, much theoretical effort has been expended in order to identify different means to support cooperators (Hamilton, 1964; Hauert et al., 2002, 2007; Imhof and Nowak, 2010; Nowak and Sigmund, 1998; Trivers, 1971). One surprisingly simple way to achieve this goal is to include spatial dimensions and to consider spatial games where individuals are arranged on a lattice and their fitness is based on interactions within their local neighborhood (Hauert, 2001, 2002; Nakamaru et al., 1997, 1998; Nowak and May, 1992, 1993; Nowak et al., 2010; Ohtsuki et al., 2006; Ohtsuki and Nowak, 2008; Pacheco et al., 2006; Szabó and Tőke, 1998; Tarnita et al., 2009a,b; Taylor et al., 2007). This enables cooperators to form clusters and thereby reduces exploitation by defectors. The spatial dynamics of the prisoner’s dilemma has attracted increasing interest from different disciplines (for an excellent review see Szabó and Fáth, 2007).

Naturally, it is of particular importance to understand how initially rare cooperators can increase and get established in a population. According to the replicator dynamics, this never happens for the prisoner’s dilemma in infinite populations but due to the inherent stochasticity in finite populations, there exists a small probability that even a single cooperator can invade and eventually take over an entire population (Nowak et al., 2004; Taylor et al., 2004). Although, this chance tends to be exceedingly small and decreases rapidly with increasing population size. However, in spatial populations, even a small patch of cooperators may trigger a successful and persistent invasion of cooperators (Ellner et al., 1998; Langer et al., 2008; Le galliard et al., 2003; Nakamaru et al., 1997, 1998; Ohtsuki et al., 2006; Taylor et al., 2007; van Baalen and Rand, 1998).

While the invasion of cooperators in the snowdrift game is trivial in well-mixed populations, it turns out that the conditions are less clear in spatial settings because in the spatial snowdrift game the limited local interactions often reduce or even eliminate cooperation (Hauert and Doebeli, 2004). Interestingly, the fact that it is better to adopt a strategy that is different from your opponent promotes cooperation and is responsible for the co-existence of cooperators and defectors in well-mixed populations, but the same mechanism often inhibits cooperation in spatial settings, because it hampers the formation of compact clusters of cooperators. Thus, in well-mixed populations establishing cooperation based on the snowdrift game is easy but unlikely for the prisoner’s dilemma, whereas in spatial settings the odds seem to be reversed – space promotes cooperation in the prisoner’s dilemma but not necessarily in the snowdrift game. Here we compare and contrast the microscopic and macroscopic features and characteristics of the spatial invasion process governed by these two types of social dilemmas.

2. Model

Consider a spatially extended population where each individual is situated on one site of a two-dimensional L×L square lattice with periodic boundary conditions. There are no empty sites. All individuals engage in pairwise interactions with each neighbor in their Moore neighborhood, i.e., with the eight nearest neighbors reachable by a chess-kings-move. The payoffs of all interactions are accumulated. The payoff matrices for the prisoner’s dilemma and the snowdrift game can be conveniently rescaled such that they depend only on a single parameter (Doebeli and Hauert, 2005; Hauert and Doebeli, 2004; Langer et al., 2008). For the prisoner’s dilemma we get

(101+uu), (3)

where u = c/b denotes the cost to benefit ratio of cooperation and for the snowdrift game

(11v1+v0), (4)

where v = c/(2bc) indicates the cost to net benefit ratio of mutual cooperation. With b > c, both u and v are constrained to the interval [0, 1]. Note that these parameterizations are very different from the so-called weak prisoner’s dilemma, which goes back to Nowak and May (1992) and actually marks the borderline between the prisoner’s dilemma and the snowdrift game. However, in spatial settings a clear distinction is of particular importance because space often has the opposite effect on cooperation in the two games (Hauert and Doebeli, 2004).

The population is asynchronously updated by randomly selecting a focal individual x to reassess and update its strategy by comparing its payoff Px to that of a randomly chosen neighbor y. The focal individual x adopts y’s strategy with a probability proportional to the payoff difference, provided that Py > Px. Specifically, the transition probability f(PyPx) can be written as

f(PyPx)={PyPxαifPy>Px,0otherwise, (5)

where α denotes a normalization constant such that f(PyPx) ∈ [0, 1]. Here, α = k(1 + u) or α = k(1 + v), respectively, and k = 8 represents the number of neighbors.

Note that this update rule, Eq. (5), is semi-deterministic, as individuals never imitate strategies of worse performing neighbors. Alternatively, another pairwise comparison rule based on the Fermi function, i.e., f(PyPx) = 1/(1+exp[−β(PyPx)]) can be used, where β denotes the intensity of selection (Szabó and Tőke, 1998; Traulsen et al., 2007). Extensive simulations have confirmed that the following results are robust with respect to such changes in the updating rule.

In order to investigate the invasion and expansion process of cooperators in the two social dilemmas, we consider initial configurations where all L×L individuals are defectors except for a small s×s cluster of cooperators (sL) located in the center of the lattice (Langer et al., 2008). The simulation results are complemented by analytical predictions based on pair approximation (Matsuda et al., 1992; Ohtsuki et al., 2006, see Appendix). This provides important qualitative insights into the invasion dynamics but often fails to provide accurate quantitative predictions (Hauert and Doebeli, 2004; Hauert and Szabó, 2005; Szabó and Tőke, 1998).

For a detailed characterization of the emerging spatial patterns we propose a measure for the cluster shape, γ, of cooperator aggregations. For each cluster i, we derive γi, based on the number of C-C links, ICC, within cluster i and the number of C-D links, OCD, that connect cluster i with the surrounding defectors:

γi=2ICCOCD2ICC+OCD. (6)

The value of γi is constrained to the interval [−1, 1]. Compact clusters of cooperators have more links within the cluster than to the surrounding defectors. This is reflected in γi > 0 and indicates positive assortment of cooperators. Conversely, for filament like clusters there are fewer links within the cluster and more links connecting cooperators and defectors. Consequently, γi < 0 holds and indicates negative assortment among cooperators (or positive assortment between cooperators and defectors). Finally, γ is obtained by averaging over all γi and weighted by the size of cluster i. Using pair approximation, we can estimate the cluster shape as γ = qC|CqD|C = 2qC|C − 1, where qD|C indicates the conditional probability that the neighbor of a cooperator is a defector etc. The cluster shape γ conveniently quantifies the qualitative descriptions of compact versus filament-like clusters.

3. Results

The spatial patterns generated by the invasion and expansion of cooperators sensitively depend on the type of game as well as on the parameter settings. Typical spatial configuration in the prisoner’s dilemma are illustrated in Fig. A.1 for increasingly hostile conditions for cooperators (larger u). In benign settings, cooperators grow in a single, contiguous cluster with embedded strands of defectors (Figs. A.1a and A.1b). Increasing u renders exploitation more attractive and defectors succeed in splitting up the cluster of cooperators into smaller parts (Figs. A.1c and A.1d). In response, cooperators form increasingly compact clusters in an attempt to minimize the cluster surface and hence reduce exploitation by defectors (Figs. A.1e and A.1f). However, if u exceeds uc ≈ 0.15, the extinction threshold, all invasion attempts by cooperators fail.

Figure A.1.

Figure A.1

Typical snapshots of the invasion of cooperators (blue) in a world of defectors (red) for the prisoner’s dilemma under increasingly hostile conditions. The snapshots are taken when the first cooperator reaches the boundary of a 200 × 200 lattice with an initial 5×5 cluster. Under hospitable conditions [u < 0.06, panels (a) and (b)], cooperators expand as a single contiguous cluster interspersed with strips of defectors. Whereas under less favorable conditions [u > 0.06, panels (c)–(e)], cooperators separate into numerous small compact clusters. Near the extinction threshold, uc ≈ 0.15, [u = 0.14, panel (f)], a minimal cluster size of about 60 is necessary for cooperators to survive. All snapshots can be reproduced using the VirtualLabs (Hauert, 2009).

For the snowdrift game, the emerging patterns are rather different as illustrated in Fig. A.2. Again, under hospitable conditions (small v), cooperators expand in a single contiguous cluster with embedded defectors but now they form isolated specks (Figs. A.2a and A.2b). Increasing v reflects more hostile conditions and the cluster of cooperators gradually breaks up into smaller filament-like clusters (Figs. A.2c–A.2e) and eventually most clusters consist of merely a few cooperators (Figs. A.2f). For large v, the structure of the snowdrift game prevents the formation of compact clusters because it is always better to adopt a strategy that is different from those of the opponents. For this reason, individuals arrange such as to maximize the interface between cooperators and defectors, which is reflected in filament-like cluster shapes that then result in an overall decrease of cooperation. In analogy to the prisoner’s dilemma, all invasion attempts fail for sufficiently large v > vc. In the snowdrift game a single cooperator can survive in a sea of defectors provided that its payoff [8(1−v)] is no less than that of the surrounding defectors [1+v] (Hauert, 2001). Based on this condition we can estimate the extinction threshold vc = 7/9 ≈ 0.78. Near the extinction thresholds of cooperators the differences in the microscopic invasion patterns generated by the two games become most apparent (c.f. Figs. A.1f and A.2f).

Figure A.2.

Figure A.2

Typical snapshots of the invasion of cooperators (blue) in a world of defectors (red) under increasingly hostile conditions for the snowdrift game. The initial configuration is the same as in Fig. A.1. Under benign conditions [v < 0.35, panels (a)–(c)], cooperators expand as a single contiguous cluster with embedded specks of defectors. While under less favorable conditions [0.35 < v < 0.7, panels (d) and (e)], cooperators separate into numerous smaller dendritic clusters where they on average interact more with defectors than with other cooperators. Near the extinction threshold, vc ≈ 0.78, [v = 0.7, panel (f)], one- and two-cooperator clusters are mostly observed. In contrast to the prisoner’s dilemma (c.f. Fig. A.1) the snowdrift game prevents the formation of compact clusters.

The success or failure of an invasion attempt not only depends on the details of the game but may also hinge on the initial number and the spatial arrangement of the pioneering cooperators. An invasion is assumed to be successful if cooperators reach the boundary of the L × L lattice. The survival probability of a small island of s × s cooperators (sL) in a sea of defectors is shown in Fig. A.3 for the prisoner’s dilemma and the snowdrift game. In the prisoner’s dilemma, the initial cluster size plays a crucial role in determining the evolutionary fate of cooperators. It becomes increasingly important under more hostile conditions (larger u) and especially when approaching the extinction threshold, uc ≈ 0.15 (see Fig. A.3a). For increasing s, the survival probability approaches a step function with the threshold uc (Fig. A.3a). For u < uc all invasion attempts succeed with certainty for sufficiently large s.

Figure A.3.

Figure A.3

Survival probability, σc, of cooperators for (a) the prisoner’s dilemma and (b) the snowdrift game for different sizes of the initial s×s cluster (□: s = 3, ○: s = 5, △: s = 15). Under hospitable conditions (small u, v), cooperators survive with certainty, whereas under harsh conditions (large u, v), invasion attempts of cooperators invariably fail. In the prisoner’s dilemma, the size of the initial cluster is an important determinant for the success of an invasion attempt and becomes particularly pronounced near the extinction threshold. In contrast, the initial cluster size has no effect in the snowdrift game. σc is determined from 1000 independent runs on a 125×125 lattice. Cooperators are assumed to survive if they reach the boundary. The solid lines are analytical predictions from pair approximation.

In contrast, in the snowdrift game, the survival probability of cooperators is independent of the initial cluster size because for v < vc even an isolated cooperator can survive and for v > vc all invasion attempts fail regardless of s (Fig. A.3b). Note the excellent agreement between our analytical approximation for vc ≈ 0.78 and the simulation data. For both games, pair approximation confirms that cooperators are able to invade but the extinction threshold is overestimated in the prisoner’s dilemma and none exists in the snowdrift game (Fig. A.3).

3.1. Invasion & expansion

The spatial invasion and expansion process in the prisoner’s dilemma and the snow-drift game is shown in Fig. A.4. In both games, increasingly hostile conditions (larger u or v, respectively) oppose the propagation of cooperation and thus lower the speed of invasion (Figs. A.4a and A.4d). The invasion process is characterized by two distinct dynamical phases: local equilibration followed by uniform expansion (Langer et al., 2008). The initial island of cooperators needs to achieve a local equilibrium with nearby defectors. During this equilibration process, the global abundance of cooperators increases very slowly, but the local configuration of cooperators changes rapidly as reflected in the local clustering of cooperators, qC|C, (Figs. A.4b and A.4e) as well as in their cluster shape γ (Figs. A.4c and A.4f).

Figure A.4.

Figure A.4

Spatial invasion dynamics as characterized by the global density of cooperators pC (left), the local density of cooperators qC|C (middle), and the cluster shape γ (right) for the prisoner’s dilemma (top row) and the snowdrift game (bottom row). For both games, rapid local equilibration between cooperators and defectors is followed by a uniform quadratic expansion process. The speed of the expansion of cooperators decreases under less favorable settings (increasing u, v). qC|C and γ rapidly converge toward an equilibrium state. Once local equilibrium is achieved, pC increases quadratically. For the prisoner’s dilemma results are shown for u = 0.02 (■) and u = 0.10 (●) and for the snowdrift game for v = 0.05 (■) and v = 0.40 (●). The expansion process is shown for a 5 × 5 cluster on a 125 × 125 lattice averaged over 100 runs. The lines indicate results based on pair-approximation (upper solid, u = 0.02, upper dashed, u = 0.10; lower solid, v = 0.05, lower dashed, v = 0.40). The γ value is averaged over all cooperator clusters weighted by their cluster size.

During the subsequent uniform expansion process, the frequency of cooperators, pC, grows quadratically, while qC|C and γ hardly change. This indicates that, in the wake of the invasion front, the local equilibrium between cooperators and defectors is already established. The quadratic growth of cooperators is a simple consequence of the two-dimensional lattice space. Once the boundary of the lattice is reached, the frequency of cooperators saturates at the equilibrium level (Figs. A.4a and A.4d).

The simulation results are complemented by pair approximation using identical initial conditions, i.e. pC (0) and qC|C (0) are determined based on s = 5 and L = 125 as used in the simulation setup (Fig. A.4). Pair approximation does not incorporate spatial dimensions and hence the quadratic growth of pC cannot be observed. The initial changes of qC|C and γ are larger and more abrupt than in the simulations. In particular, the heavy initial drop of qC|C suggests that the local initial configuration, as reflected in qC|C (0), has little or no effect on the results. This is a consequence of the fact that pair approximation assumes infinite populations. In contrast, for the prisoner’s dilemma, the configuration of the initial cluster is crucial (Hauert, 2001). However, pair approximation confirms that local equilibration is fast compared to the expansion process. Moreover, increasing u (or v, respectively) invariably decreases the values of pC, qC|C and γ at equilibrium. Interestingly, the change in qC|C and γ is much more pronounced in the snowdrift game than in the prisoner’s dilemma.

3.2. Emerging patterns

The previous section established that in the wake of the invasion front cooperators and defectors quickly reach a local equilibrium. For this reason we can analyze the macroscopic features of the emerging patterns once the population has reached the global equilibrium. Figure A.5 shows the cluster size and cluster count under increasingly hostile conditions in the prisoner’s dilemma and the snowdrift game. In both games, this leads to a decrease of the cluster size and the cluster count exhibits a maximum close to the extinction threshold. As illustrated by the snapshots (Figs. A.1 and A.2), cooperators expand as a single contiguous cluster under favorable conditions, but split into numerous smaller clusters in hostile settings. For the snowdrift game, the sharp drop in cluster size is accompanied by a steep increase in the number of clusters (Fig. A.5b). In contrast, in the prisoner’s dilemma the cluster size decreases more slowly as u increases and reaches a minimum of about 60 at the extinction threshold uc (Fig. A.5a). Consequently, the cluster count can be more than an order of magnitude larger in the snowdrift game than in the prisoner’s dilemma. Also note that the minimum cluster size required to secure the survival of cooperators in the prisoner’s dilemma turns out to be surprisingly large and may further challenge cooperation.

Figure A.5.

Figure A.5

Macroscopic characteristics of the invasion dynamics of cooperation: cluster size (●) and cluster count (◇) for (a) the prisoner’s dilemma and (b) the snowdrift game. In both games, the cluster size reduces when increasing the game parameters and the cluster count reaches a maximum near the extinction threshold. In the prisoner’s dilemma, a minimum cluster size of about 60 is required for cooperators to survive, in sharp contrast to the snowdrift game where even an isolated cooperator is able to persist. For an initial cluster of 15 × 15 cooperators, the cluster size and count are determined when the system reaches equilibrium on a 125 × 125 lattice and averaged over 100 runs. The cluster size is averaged over all existing cooperator clusters weighted by their size. The error bars mark one standard deviation.

The frequency of cooperation, pC, and the cluster shape, γ, in equilibrium are shown in Fig. A.6 under increasingly hostile conditions. In the prisoner’s dilemma, the frequency of cooperators pC exhibits three phases (Fig. A.6a): for u < 0.1, pC decreases slowly with increasing u and cooperators dominate the population (pC > 0.5); for 0.1 < u < uc, pC drops quickly and for u > uc cooperators disappear. In the snowdrift game, pC shows four phases (Fig. A.6c): for v < 0.1, spatial structure promotes cooperation (pC ≈ 1); for 0.1 < v < vc, spatial structure inhibits cooperation and often lowers pC by more than 0.1 as compared to the co-existence equilibrium in the replicator equation (Hauert and Doebeli, 2004); near the extinction threshold (0.68 < v < vc), pC decreases with a larger slope than that at v < 0.68; and finally, for v > vc, spatial structure eliminates cooperation altogether. Note the intriguing parallels between the cluster size (Fig. A.5) and the frequency of cooperators, pC (Fig. A.6).

Figure A.6.

Figure A.6

The equilibrium fraction of cooperators, pC, (left) and cluster shape, γ, (right) in the prisoner’s dilemma (top row) and the snowdrift game (bottom row) as a function of the game parameters u, v, respectively. Symbols show simulation results, solid lines show the corresponding results based on pair approximation, and dashed lines show the corresponding results based on improved pair approximation (see Appendix). In the prisoner’s dilemma, γ > 0 always holds, which indicates positive assortment of cooperators. In the snowdrift game, γ is positive under hospitable conditions but becomes negative in hostile settings, which indicates negative assortment such that cooperators interact more often with defectors than with other cooperators – a consequence of the filament-like cluster shapes. As a reference, the diagonal line in panel (c) indicates the equilibrium frequency of cooperators, 1 − v, in well-mixed populations. The initial configuration is the same as in Fig. A.5.

The cluster shape γ reveals further interesting aspects characterizing the differences in the invasion patterns generated by the prisoner’s dilemma and the snowdrift game. In both games, γ is close to one under benign conditions and then gradually decreases as conditions deteriorate and the setting becomes increasingly hostile. In the prisoner’s dilemma, positive assortment and hence the formation of compact clusters is essential for the survival of cooperators (Pepper and Smuts, 2002). However, as u increases defectors perform better and force cooperators to form smaller clusters, which leads to a decrease of γ. Nevertheless, γ > 0.5 always holds, which means that each cooperator interacts with at least three times more cooperators than defectors and represents substantial positive assortment (Fig. A.6b).

In contrast, in the snowdrift game γ changes from positive to negative values for increasing v (Fig. A.6d). The change occurs near v0 ≈ 0.32 such that for v < v0 a cooperator more frequently interacts with another cooperator than with a defector (positive assortment), but for v > v0 cooperators interact more often with defectors than with cooperators. In spatial settings, such negative assortment can be realized by the formation of filament-like clusters.

Pair approximation provides good predictions of γ in the snowdrift game below the extinction threshold vc. Near vc and for larger v the quantitative prediction is unsatisfactory primarily because pair approximation is unable to reproduce the extinction threshold. In the prisoner’s dilemma, pair approximation yields poor predictions for γ. The main reason for this failure is the inability of pair approximation to account for social loops such as if two neighboring individuals share common neighbors. Such loops become particularly important in compact clusters and hence pair approximation works much better in the snowdrift game where positive assortment among cooperators is weaker or even disassortative. The improved pair approximation (IPA) method (Satō et al., 1994; Morita, 2008), which takes triplet correlations into account, is still only capable of predicting trends, although with marginal improvement (Fig. A.6). Note that for the prisoner’s dilemma, IPA underestimates the equilibrium values as well as the critical points (Figs. A.6a and A.6b); while for the snowdrift games, IPA predicts an overestimated critical point (Figs. A.6c and A.6d).

4. Discussion

For the problem of cooperation the most important evolutionary question is how cooperators manage to gain a foothold in a population and increase in abundance when initially rare. In the present work we approach this challenge by investigating the spatial invasion and expansion of cooperators in a world of defectors. In particular, we compare the characteristic features of the invasion process as well as of the emerging spatial patterns in the two most prominent social dilemmas, the prisoner’s dilemma and the snowdrift game. In both games the invasion of cooperators succeeds for sufficiently benign conditions but fails if cooperation entails high costs or benefits are low. This is of particular importance in the snowdrift game because for this type of interaction the replicator equation (Hofbauer and Sigmund, 1998), which models well-mixed populations with random encounters of individuals, predicts that cooperators and defectors can co-exist. Hence, spatial structure may inhibit or even eliminate cooperation in the snowdrift game (Hauert and Doebeli, 2004). In contrast, spatial structure promotes cooperation in the prisoner’s dilemma because it enables cooperators to form compact clusters. This leads to more frequent interaction of cooperators with other cooperators, reduces the exploitation by defectors and prevents their extinction.

Successful invasion attempts, initiated by a small cluster of cooperators, exhibit two distinct phases: rapid local equilibration of cooperators and defectors is followed by a uniform expansion process – a ‘wave of cooperation’ expanding into defector territory. In the wake of the invasion front characteristic spatial patterns emerge. The macroscopic features reflect the microscopic interactions following the principle that form follows function.

We should point out that the presented spatial invasion dynamics of cooperation is analogous to the general contact process that predicts a continuous transition from the active (pC > 0) to the absorbing state (pC = 0) (Hinrichsen, 2000; Marro and Dickman, 1999). Using the updating rule based on the Fermi function in physics, previous studies have revealed that the extinction of cooperators in spatial games falls into the universality class of directed percolation on square lattices (Szabó and Hauert, 2002; Hauert and Szabó, 2005). Although a quantitative characterization of such critical phenomena goes beyond the scope of our present study, we confirm that our results are robust to variations in updating rules. The systems behavior near critical points, albeit modified by the intrinsic features of the chosen updating rule (i.e., only imitate better performing neighbors) and spatial geometry (i.e., Moore neighborhood), is qualitatively similar to that of the general contact process (see the snapshots in Figs. A.1f and A.2f).

In empirical situations it is often difficult to distinguish the prisoner’s dilemma from the snowdrift game. Turner and Chao (1999) demonstrate that RNA phages are trapped in a prisoner’s dilemma – but they fail to cooperate. However, selection alters the payoff structure and the game turns into a snowdrift game (Turner and Chao, 2003). Other famous experiments on cooperation include predator inspection behavior in sticklebacks (Milinski, 1987; Milinski et al., 1997) or enzyme production in yeast (Greig and Travisano, 2004; Gore et al., 2009). While it is clear that individuals are facing a social dilemma in all cases, the data is either insufficient to differentiate between the prisoner’s dilemma and the snowdrift game or the evidence seems to be in favor of the latter.

Our study offers a rule of thumb to discriminate between the two types of interactions based on the characteristics of the emerging spatial patterns, which might be particularly relevant for experimental evolution in microbial populations. The emergence of compact patches of cooperators points towards the prisoner’s dilemma, whereas filament-like or fractal cluster shapes serve as an indicator that the underlying interaction is governed by a snowdrift game.

Acknowledgments

We are grateful for support from NSERC (C.H.), China Scholarship Council, NSFC grants 60674050, 60736022 and 60528007 (F.F.), the John Templeton Foundation, the NSF/NIH grant R01GM078986 (M.A.N and C.H.), and J. Epstein (M.A.N).

Appendix A. Pair Approximation

Let pC and pD = 1 − pC denote the fraction of cooperators and defectors and pCC, pCD, pDC and pDD represent the fractions of CC, CD, DC and DD pairs respectively. The probabilities of all larger configurations are expressed and approximated in terms of pair configuration probabilities – hence the name pair approximation (Matsuda et al., 1992; Nakamaru et al., 1997, 1998; Satō et al., 1994). Then, qX|Y = pXY/pY with X, Y ∈ {C, D} specifies the conditional probability that the neighbor of an individual of type Y has type X. Using normalization (pCC + pCD + pDC + pDD = 1) and symmetry (pCD = pDC), the two dynamical variables, pC and qC|C fully determine the dynamics of the system.

Let us first consider the case that a randomly selected focal D-player switches to C. The D-player has kC cooperators and kD defectors (kD = kkC) in its neighborhood on a regular graph with connectivity k. The frequency of such configurations is

k!kC!kD!qCDkCqDDkD

and the payoff of the focal D-player is PD(kC, kD) = c · kC + d · kD using the general payoff matrix

(abcd). (A.1)

Similarly, the payoff of a neighboring C-player is PC(kC,kD)=a·kC+b·(kD+1), where kC and kD are the numbers of C- and D-players among the k − 1 remaining neighbors besides the focal D-player. The frequency of this configuration is

(k1)!kC!kD!qCCDkCqDCDkD.

where qX|Y Z gives the conditional probability that a player next to the Y Z pair is in state X (here X, Y, and Z denote C or D). The probability that the D-player switches to C can be written as

WDC=kCkkC+kD=k1(k1)!kC!kD!qCCDkCqDCDkDf(PC(kC,kD)PD(kC,kD)),

where the transition probability f(PC(kC,kD)PD(kC,kD)) (see Eq. (5) in main text) is weighted by the configuration probability of the C-player’s neighborhood and summed over all possible configurations. Consequently, pC increases by 1/N, where N denotes the population size, with probability

Prob(ΔpC=1N)=pDkC+kD=kk!kC!kD!qCDkCqDDkDWDC (A.2)

At the same time, the number of CC pairs increases by kC and thus pCC increases by 2kC/(kN) with probability

Prob(ΔpCC=2kCkN)=pDk!kC!kD!qCDkCqDDkDWDC. (A.3)

Similarly, the probability that pC decreases by 1/N is given by

Prob(ΔpC=1N)=pCkC+kD=kk!kC!kD!qCCkCqDCkDWCD (A.4)

where WCD denotes the probability that the focal C-player switches to D, i.e,

WCD=kDkkC+kD=k1(k1)!kC!kD!qCDCkCqDDCkDf(PD(kC,kD)PC(kC,kD)). (A.5)

And pCC decreases by 2kC/(kN) with probability

Prob(ΔpCC=2kCkN)=pCk!kC!kD!qCCkCqDCkDWCD. (A.6)

In the limit of large population sizes we obtain

p.C=limNΔpC1/N=Prob(ΔpC=1N)Prob(ΔpC=1N) (A.7)
p.CC=limNΔpCC1/N=kC=0k2kCk[Prob(ΔpCC=2kCkN)Prob(ΔpCC=2kCkN)] (A.8)

Setting

MC=1pC{Prob(ΔpC=1N)Prob(ΔpC=1N)} (A.9)
MCC=1pCC{kC=0k2kCk[Prob(ΔpCC=2kCkN)Prob(ΔpCC=2kCkN)]} (A.10)

and using qC|C = pCC/pC, we find

p.CC=q.CCpC+p.CqCC=(MCqCC+q.CC)pC=MCCpCC=MCCpCpCC

and thus,

p.C=MCpC (A.11)
q.CC=(MCCMC)qCC. (A.12)

The above equations require a ‘moment closure’ by approximating qX|Y ZqX|Y. This means that only first order pair correlations are taken into account and hence termed pair approximation. However, the predictions can be improved by considering higher order correlations. One possibility is to consider the improved pair approximation (IPA), which takes triplet correlations into account when estimating qX|Y Z in spatial lattices (Satō et al., 1994; van Baalen, 2000; Morita, 2008). Based on the Kirkwood approximation, Morita (2008) gave the following equations to approximate qX|Y Z:

qCCD=(1θ)qCC+θqCCqCC+qDD, (A.13)
qDCD=1qCCD, (A.14)
qDDC=(1θ)qDD+θqDDqCC+qDD, (A.15)
qCDC=1qDDC, (A.16)

where θ is the clustering coefficient, i.e., the probability of finding the triplet in closed form. Alternatively, van Baalen (2000) considered the correlation of the triplets as follows:

qCCD=qCC[(1θ)+θpCDpCpD], (A.17)
qDCD=1qCCD, (A.18)
qDDC=qDD[(1θ)+θpCDpCpD], (A.19)
qCDC=1qDDC. (A.20)

We found that taking clustering coefficient into account results in marginally better predictions (see Fig. A.6). In principle, better approximations can be obtained by including higher order terms, i.e., by going from pair to n-point approximations (Szabó et al., 2005), or by including other measures such as the correlation coefficient (van Baalen, 2000).

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

References

  1. Axelrod R. The Evolution of Cooperation. Basic Books; New York: 1984. [Google Scholar]
  2. Dawes RM. Social dilemmas. Annu Rev Psychol. 1980;31:169–193. [Google Scholar]
  3. Doebeli M, Hauert C. Models of cooperation based on the prisoner’s dilemma and the snowdrift game. Ecol Lett. 2005;8:748–766. [Google Scholar]
  4. Ellner SP, Sasaki A, Haraguchi Y, Matsuda H. Speed of invasion in lattice population models: pair-edge approximation. J Math Biol. 1998;36:469–484. [Google Scholar]
  5. Gore J, Youk H, van Oudenaarden A. Snowdrift game dynamics and facultative cheating in yeast. Nature. 2009;459:253–256. doi: 10.1038/nature07921. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Greig D, Travisano M. The Prisoner’s Dilemma and polymorphism in yeast SUC genes. (Proc R Soc Lond B) Biol Lett. 2004;271:S25–S26. doi: 10.1098/rsbl.2003.0083. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Hamilton WD. The genetic evolution of social behaviour. I. J Theor Biol. 1964;7:1–16. doi: 10.1016/0022-5193(64)90038-4. [DOI] [PubMed] [Google Scholar]
  8. Hauert C. Fundamental clusters in spatial 2 × 2 games. Proc R Soc Lond B. 2001;268:761–769. doi: 10.1098/rspb.2000.1424. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Hauert C. Effects of space in 2 × 2 games. Int J Bifurc Chaos. 2002;12:1531–1548. [Google Scholar]
  10. Hauert C, De Monte S, Hofbauer J, Sigmund K. Volunteering as red queen mechanism for cooperation in public goods games. Science. 2002;296:1129–1132. doi: 10.1126/science.1070582. [DOI] [PubMed] [Google Scholar]
  11. Hauert C, Doebeli M. Spatial structure often inhibits the evolution of cooperation in the snowdrift game. Nature. 2004;428:643–646. doi: 10.1038/nature02360. [DOI] [PubMed] [Google Scholar]
  12. Hauert C, Szabó G. Game theory and physics. Am J Phys. 2005;73:405–414. [Google Scholar]
  13. Hauert C. Spatial effects in social dilemmas. J Theor Biol. 2006;240:627–636. doi: 10.1016/j.jtbi.2005.10.024. [DOI] [PubMed] [Google Scholar]
  14. Hauert C, Traulsen A, Brandt H, Nowak MA, Sigmund K. Via freedom to coercion: the emergence of costly punishment. Science. 2007;316:1905–1907. doi: 10.1126/science.1141588. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Hauert C. VirtualLabs: interactive tutorials on evolutionary game theory. 2009 http://www.univie.ac.at/virtuallabs.
  16. Hinrichsen H. Nonequilibrium critical phenomena and phase transitions into absorbing states. Adv Phys. 2000;49:815–958. [Google Scholar]
  17. Hofbauer J, Sigmund K. Evolutionary Games and Population Dynamics. Cambridge University Press; Cambridge, UK: 1998. [Google Scholar]
  18. Imhof LA, Nowak MA. Stochastic evolutionary dynamics of direct reciprocity. Proc R Soc Lond B. 2010;277:463–468. doi: 10.1098/rspb.2009.1171. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Langer P, Nowak MA, Hauert C. Spatial invasion of cooperation. J Theor Boil. 2008;250:634–641. doi: 10.1016/j.jtbi.2007.11.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Le Galliard J, Ferrière R, Dieckman U. The adaptive dynamics of altruism in spatially heterogeneous populations. Evolution. 2003;57:1–17. doi: 10.1111/j.0014-3820.2003.tb00211.x. [DOI] [PubMed] [Google Scholar]
  21. Marro J, Dickman R. Nonequilibrium Phase Transitions in Lattice Models. Cambridge University Press; UK: 1999. [Google Scholar]
  22. Matsuda H, Ogita N, Sasaki A, Satō K. Statistical mechanics of population: The lattice Lotka-Volterra model. Prog Theor Phys. 1992;88:1035–1049. [Google Scholar]
  23. Maynard Smith J. Evolution and the Theory of Games. Cambridge University; Cambridge, UK: 1982. [Google Scholar]
  24. Milinski M. Tit for tat in sticklebacks and the evolution of cooperation. Nature. 1987;325:433–435. doi: 10.1038/325433a0. [DOI] [PubMed] [Google Scholar]
  25. Milinski M, Lüthi JH, Eggler R, Parker GA. Cooperation under predation risk: experiments on costs and benefits. Proc R Soc Lond B. 1997;264:831–837. [Google Scholar]
  26. Morita S. Extended pair approximation of evolutionary game on complex network. Prog Theor Phys. 2008;119:29–38. [Google Scholar]
  27. Nakamaru M, Matsuda H, Iwasa Y. The evolution of cooperation in a lattice-structured population. J Theor Biol. 1997;184:65–81. doi: 10.1006/jtbi.1996.0243. [DOI] [PubMed] [Google Scholar]
  28. Nakamaru M, Nogami H, Iwasa Y. Score-dependent fertility model for the evolution of cooperation in a lattice. J Theor Biol. 1998;194:101–124. doi: 10.1006/jtbi.1998.0750. [DOI] [PubMed] [Google Scholar]
  29. Nowak MA, May RM. Evolutionary games and spatial chaos. Nature. 1992;359:826–829. [Google Scholar]
  30. Nowak MA, May RM. The spatial dilemmas of evolution. Int J Bifurc Chaos. 1993;3:35–78. [Google Scholar]
  31. Nowak MA, Sigmund K. Evolution of indirect reciprocity by image scording. Nature. 1998;393:573–577. doi: 10.1038/31225. [DOI] [PubMed] [Google Scholar]
  32. Nowak MA, Sasaki A, Taylor C, Fudenberg D. Emergence of cooperation and evolutionary stability in finite populations. Nature. 2004;2004:646–650. doi: 10.1038/nature02414. [DOI] [PubMed] [Google Scholar]
  33. Nowak MA. Evolutionary dynamics. Harvard University Press; Cambridge, MA: 2006. [Google Scholar]
  34. Nowak MA, Tarnita CE, Antal T. Evolutionary dynamics in structured populations. Phil Trans R Soc Lond B. 2010;365:19–30. doi: 10.1098/rstb.2009.0215. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Ohtsuki H, Hauert C, Lieberman E, Nowak MA. A simple rule for the evolution of cooperation on graphs and social networks. Nature. 2006;441:502–505. doi: 10.1038/nature04605. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Ohtsuki H, Nowak MA. Evolutionary stability on graphs. J Theor Biol. 2008;251:698–707. doi: 10.1016/j.jtbi.2008.01.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Pacheco JM, Traulsen A, Nowak MA. Coevolution of strategy and structure in complex networks with dynamical linking. Phys Rev Lett. 2006;97:258103. doi: 10.1103/PhysRevLett.97.258103. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Pepper JW, Smuts BB. A mechanism for the evolution of altruism among nonkin: Positive assortment through environmental feedback. Am Nat. 2002;160:205–213. doi: 10.1086/341018. [DOI] [PubMed] [Google Scholar]
  39. Satō K, Matsuda H, Sasaki A. Pathogen invasion and host extinction in lattice structured populations. J Math Biol. 1994;32:251–268. doi: 10.1007/BF00163881. [DOI] [PubMed] [Google Scholar]
  40. Szabó G, Fáth G. Evolutionary games on graphs. Phys Rep. 2007;446:97–216. [Google Scholar]
  41. Szabó G, Hauert C. Phase transitions and volunteering in spatial public goods games. Phys Rev Lett. 2002;89:118101. doi: 10.1103/PhysRevLett.89.118101. [DOI] [PubMed] [Google Scholar]
  42. Szabó G, Vukov J, Szolnoki A. Phase diagrams for an evolutionary prisoner’s dilemma game on two-dimensional lattices. Phys Rev E. 2005;72:047107. doi: 10.1103/PhysRevE.72.047107. [DOI] [PubMed] [Google Scholar]
  43. Szabó G, Tőke C. Evolutionary prisoner’s dilemma game on a square lattice. Phys Rev E. 1998;58:69. [Google Scholar]
  44. Tarnita CE, Antal T, Nowak MA. Evolutionary dynamics in set structured populations. Proc Natl Acad Sci USA. 2009;106:8601–8604. doi: 10.1073/pnas.0903019106. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Tarnita CE, Ohtsuki H, Antal T, Fu F, Nowak MA. Strategy selection in structured populations. J Theor Biol. 2009;259:570–581. doi: 10.1016/j.jtbi.2009.03.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Taylor C, Fudenberg D, Sasaki A, Nowak MA. Evolutionary game dynamics in finite populations. B Math Biol. 2004;66:1621–1644. doi: 10.1016/j.bulm.2004.03.004. [DOI] [PubMed] [Google Scholar]
  47. Taylor PD, Day T, Wild G. Evolution of cooperation in a finite homogeneous graph. Nature. 2007;447:469–472. doi: 10.1038/nature05784. [DOI] [PubMed] [Google Scholar]
  48. Traulsen A, Pacheco JM, Nowak MA. Pairwise comparison and selection temperature in evolutionary game dynamics. J Theor Biol. 2007;246:522–529. doi: 10.1016/j.jtbi.2007.01.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Trivers RL. The evolution of reciprocal altruism. Q Rev Biol. 1971;46:35–57. [Google Scholar]
  50. Turner PE, Chao L. Prisoner’s dilemma in an RNA virus. Nature. 1999;398:441–443. doi: 10.1038/18913. [DOI] [PubMed] [Google Scholar]
  51. Turner PE, Chao L. Escape from Prisoner’s Dilemma in RNA Phage Φ6. Am Nat. 2003;161:497–505. doi: 10.1086/367880. [DOI] [PubMed] [Google Scholar]
  52. van Baalen M, Rand DA. The unit of selection in viscous populations and the evolution of altruism. J Theor Biol. 1998;193:631–648. doi: 10.1006/jtbi.1998.0730. [DOI] [PubMed] [Google Scholar]
  53. van Baalen M. Pair approximations for different spatial geometries. In: Dieckmann U, Law R, Metz JAJ, editors. The Geometry of Ecological Interactions: Simplifying Spatial Complexity. Cambridge University Press; UK: 2000. pp. 359–387. [Google Scholar]

RESOURCES