Stochastic dynamics in finite populations

From EvoLudo
Revision as of 00:35, 20 March 2012 by Hauert (talk | contribs) (MathJax'ed)

Stochastic differential equations (SDE) provide a general framework to describe the evolutionary dynamics of an arbitrary number of types in finite populations, which results in demographic noise, and to incorporate mutations. For large, but finite populations this allows to include demographic noise without requiring explicit simulations. Instead, the population size only rescales the amplitude of the noise. Moreover, this framework admits the inclusion of mutations between different types, provided that mutation rates, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu} , are not too small compared to the inverse population size Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 1/N} . This ensures that all types are almost always represented in the population and that the occasional extinction of one type does not result in an extended absence of that type. For Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu N\ll1} this limits the use of SDE’s, but in this case well established alternative approximations are available based on time scale separation. We illustrate our approach by a Rock-Scissors-Paper game with mutations, where we demonstrate excellent agreement with simulation based results for sufficiently large populations. In the absence of mutations the excellent agreement extends to small population sizes.

This tutorial complements a series of research articles by Arne Traulsen, Jens Christian Claussen & Christoph Hauert

Rock-Paper-Scissors game

Value of the element Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathcal C_{xx}(x,y,z)} of the noise matrix Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathcal C(\mathbf x)} for Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle d = 3} strategies and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu = 0} . Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathcal C_{xx}(x,y,z)} determines how the noise in the Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} -direction affects the Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} -coordinate. In the case of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu = 0} , this noise vanishes for Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x\to0} . For Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y\to0} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle z\to0} we recover the usual multiplicative noise from one-dimensional evolutionary processes.

Comparisons between the deterministic dynamics in infinite populations, the stochastic dynamics in finite populations and individual based simulations focus on the Rock-Paper-Scissors game with a generic payoff

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Missing \end{matrix} \ RSP& (0s21102+s1+s310)\end{matrix}. }

According to the replicator equation the game exhibits saddle node fixed points at Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x = 1, y = 1} , and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle z = 1-x-y = 1} as well as an interior fixed point at Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle\hat{\mathbf x} = \left(\frac12,\frac13,\frac16\right)} independent of the parameter Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s} . For Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s > 1} , Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \hat x} is a stable focus and an unstable focus for Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s<1} . In the non-generic case Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s=1} the dynamics exhibits closed orbits.

Deterministic Dynamics

Replicator dynamics - Attractor

In the limit Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N\to\infty} with Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s=1.4} and without mutations, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu=0} , Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \hat x} is an attractor of the replicator dynamics. The figure shows a sample trajectory that spirals towards the interior fixed point Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \hat x} .

Replicator-Mutator dynamics - Stable limit cycle

For Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s<1} the interior fixed point Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \hat x} is an unstable focus. The trajectories spiral away from Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \hat x} and, in the absence of mutations, approach the heteroclinic cycle along the boundary of the simplex Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S_3} . With mutation rates Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu>0} , however, the boundary of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S_3} becomes repelling, which can give rise to stable limit cycles. If the mutation rate is sufficiently high, the interior fixed point is stable again. The image shows a sample trajectory for Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle s=0.2} , Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu=0.001} .

Stochastic Dynamics

Individual Based Simulations

From finite to infinite populations

Performance comparison of individual based simulations (IBS) versus stochastic differential equations (SDE). a ratio of the CPU times CPUSDE/CPUIBS as a function of the population size, N, and the number of strategic types, d. The bold contour indicates equal performance. For small N and large d IBS are faster (red region), but for larger N and smaller d SDE are faster (blue region). Each contour indicates a performance difference of one order of magnitude. b computational time with d=10 as a function of N for IBD (red) and SDE (blue). As a reference for the scaling N2 (red) and a constant (blue) are shown. c computational time with N=5000 as a function of d for IBD (red) and SDE (blue). As a reference for the scaling d1/2 (red) and d3 (blue) are shown. For a proper scaling argument much larger d are required but already d=100 far exceeds typical evolutionary models and hence is only of limited relevance in the current context. All comparisons use a constant payoff matrix and the local update process (such that Ak(x)=0 and γ(πj,πk)=1/2), a mutation rate of 1/N and are based on at least 1000 time steps as well as at least one minute running time. CPU time is measured in milliseconds required to calculate 1000 time steps. The time increment for the SDE is dt=0.01.

In unstructured, finite populations of constant size, N, consisting of d distinct strategic types and with a mutation rate, μ, evolutionary changes can be described by the following class of birth-death processes: In each time step, one individual of type j produces a single offspring and displaces another randomly selected individual of type k. With probability 1μ, no mutation occurs and j produces an offspring of the same type. But with probability μ, the offspring of an individual of type i (ij) mutates into a type j individual. This results in two distinct ways to increase the number of j types by one at the expense of decreasing the number of k types by one, hence keeping the population size constant. Biologically, keeping N constant implies that the population has reached a stable ecological equilibrium and assumes that this equilibrium remains unaffected by trait frequencies. The probability for the event of replacing a type k individual with a type j individual is denoted by Tkj and is a function of the state of the population X=(X1,X2,Xd), with Xn indicating the number of individuals of type n such that n=1dXn=N.

For such processes we can easily derive a Master equation:

Pτ+1(X)=Pτ(X)+j,k=1dPτ(Xjk)Tkj(Xjk)Pτ(X) Tjk(X))

where Pτ(X) denotes the probability of being in state X at time τ and Xjk=(X1,Xj1,Xk+1,Xd) represents a state adjacent to X. For large but finite N the Kramers-Moyal expansion yields a convenient approximation in the form of a Fokker-Planck equation:

ρ˙(x)=k=1d1xkρ(x)Ak(x)+12j,k=1d12xkxjρ(x)Bjk(x)

where x=X/N represents the state of the population in terms of frequencies of the different strategic types and ρ(x) is the probability density in state x. The drift vector Ak(x) is given by

Ak(x)=j=1d(Tjk(x)Tkj(x))=1+j=1dTjk(x)

For the second equality we have used j=1dTkj(x)=1, which simply states that a k-type individual transitions to some other type (including staying type k) with probability one. Ak(x) is bounded in [1,d1] because the Tjk are probabilities.

The diffusion matrix Bjk(x) is defined as

Bjk(x)=1N[Tjk(x)+Tkj(x)]forjkBjj(x)=1Nl=1,ljd(Tjl(x)+Tlj(x))

Note that the diffusion matrix is symmetric, Bjk(x)=Bkj(x) and vanishes as 1/N in the limit N.

The noise arising through demographic changes and mutations is uncorrelated in time and hence the Itô calculus can be applied to derive a Langevin equation

x˙k=Ak(x)+j=1d1Ckj(x)ξj(t)

where the ξj(t) represent uncorrelated Gaussian white noise with unit variance, ξk(t)ξj(t)=δkjδ(tt). The matrix C(x) is defined by CT(x)C(x)=B(x) and its off-diagonal elements are responsible for correlations in the noise of different strategic types. In the limit N the matrix C(x) vanishes with 1/N and we recover a deterministic replicator mutator equation.

References

  1. Traulsen, A., Claussen, J. C. & Hauert, C. (2012) Stochastic differential equations for evolutionary dynamics with demographic noise and mutations. Phys. Rev. E in print.
  2. Traulsen, A., Claussen, J. C. & Hauert, C. (2006) Coevolutionary dynamics in large, but finite populations. Phys. Rev. E 74 011901 doi: 10.1103/PhysRevE.74.011901.
  3. Traulsen, A., Claussen, J. C. & Hauert, C. (2005) Coevolutionary Dynamics: From Finite to Infinite Populations. Phys. Rev. Lett. 95 238701 doi: 10.1103/PhysRevLett.95.238701.