Fig 1.
Variational methods ME and MC compared to DME.
(A) ME looks at a snapshot x of a process at a particular time and provides an approximation of the microscopic distribution, given knowledge of a few key macroscopic observables. (B) MC is analogous to ME, however, each data point represents a trajectory x(t). MC connects the microscopic distribution over possible trajectories with macroscopic constraints and approximates it by
. (C) DME is a quasi-stationary approximation of the stochastic dynamics, given by the FPE, which reduces the full problem to a low-dimensional dynamics. This reduction is a consequence of a ME ansatz; the approximation at each time
solves the ME problem (stationary form in the FPE), where the dynamics of the effective forces α are systematically derived from the FPE.
Fig 2.
Numerical example of the OU process.
(A) Numerical simulations of the OU process with parameters β∞ = 0.7, μ∞ = 1, σ0 = 0.1. We used three random initial conditions from a distribution with μ0 = x0 = 1.2, 0.6, 0.1 and β0 = 0.7, 0.5, 0.45. (B) Effective forces (μ*, β*) following dynamics in Eqs 31 and 32 corresponding to the same set of initial conditions as in panel A. (C) Histograms of x(t) at times t = 0.3, 1, 2, 5 (initial condition β0 = 0.45, μ0 = 0.1, σ0 = 0.1 as in panel A) from the simulated data and approximated distributions in Eq 16 for the effective forces. The time points correspond to the diamonds of matching color in the panels A-B. Code in S1 Code.
Fig 3.
Numerical example of the island model.
(A) Numerical simulations of stochastic population dynamics on a single island with immigration. Parameters are α1 = {r, λ, m} = {0.1, 0.002, 3}. We used initial conditions, α0,1 = {0.05, 0.005, 1} (black), α0,2 = {0.15, 0.005, 5} (blue), and α0,3 = {0.08, 0.001, 2} (green). (B) Corresponding dynamics of the effective forces projected to the (r, λ) space. (C) Irreversibility of the process: 2D projections of the trajectories between α1 = {0.1, 0.002, 3} and α0,1 = {0.05, 0.005, 1} and reversed are not the same. (D) Histograms of population sizes at t = 1, 5, 10, 40 with initial condition α0,1 = {0.05, 0.005, 1} (black curves in panels A-B). The numerical solution of the corresponding FPE, the discrete transition matrix prediction, and the DME all show a close match. (E) The three observables n, log(n), and n2/2. Code in S1 Code.
Fig 4.
Periodic changes in carrying capacity between 20 and 50.
The system starts from equilibrium with parameters {0.05, 0.005, 1} (as in Fig 3), then periodic shifts occur between {0.1, 0.0005, 3} and {0.1, 0.0002, 3} (blue, red, yellow). The equilibrium distribution of population size is shown as it changes in time (background colors). The black dashed line is the mean equilibrium population size, the black solid line shows the solution of the DME, whereas the white is the solution of the FPE. The error is measured by relative entropy, see the Eq 6.