Skip to main content
QUICK REVIEW

[Paper Review] One-Step Stochastic Processes Simulation Software Package

Ekaterina G. Eferina, Anna V. Korolkova|arXiv (Cornell University)|Mar 25, 2015
Aquatic and Environmental StudiesEarth and Planetary Sciences5 references7 citations
TL;DR

This paper presents a software package that automates the construction and numerical simulation of stochastic one-step processes using computer algebra (FriCAS/Axiom) and numerical languages (Fortran, Julia). It generates stochastic differential equations (SDEs) from master equation principles and enables numerical analysis via stochastic Runge-Kutta methods, demonstrated on a predator-prey model where stochasticity leads to extinction of one species, validating the method's consistency with deterministic models.

ABSTRACT

Background. It is assumed that the introduction of stochastic in mathematical model makes it more adequate. But there is virtually no methods of coordinated (depended on structure of the system) stochastic introduction into deterministic models. Authors have improved the method of stochastic models construction for the class of one-step processes and illustrated by models of population dynamics. Population dynamics was chosen for study because its deterministic models were sufficiently well explored that allows to compare the results with already known ones. Purpose. To optimize the models creation as much as possible some routine operations should be automated. In this case, the process of drawing up the model equations can be algorithmized and implemented in the computer algebra system. Furthermore, on the basis of these results a set of programs for numerical experiment can be obtained. Method. The computer algebra system Axiom is used for analytical calculations implementation. To perform the numerical experiment FORTRAN and Julia languages are used. The method Runge--Kutta method for stochastic differential equations is used as numerical method. Results. The program compex for creating stochastic one-step processes models is constructed. Its application is illustrated by the predator-prey population dynamic system. Conclusions. Computer algebra systems are very convenient for the purposes of rapid prototyping in mathematical models design and analysis.

Motivation & Objective

  • To automate the construction of stochastic one-step process models from first principles, reducing manual derivation of SDEs.
  • To develop a software pipeline that transforms analytical model descriptions into executable numerical code for stochastic simulations.
  • To integrate computer algebra systems with numerical solvers for efficient prototyping of stochastic models in population dynamics.
  • To demonstrate the method’s consistency by comparing stochastic and deterministic outcomes in a well-known predator-prey system.

Proposed method

  • The method uses the master equation as a foundation for stochastic modeling, deriving the corresponding Fokker-Planck and SDE representations.
  • A computer algebra system (FriCAS, forked from Axiom) is used to symbolically derive the drift (A^i) and diffusion (B^{ij}) coefficients of the SDE.
  • The SDE coefficients are output as text files and used to generate Fortran and Julia code for numerical solvers.
  • Singular value decomposition (LAPACK's DGESVD) computes the matrix b^i_α from B^{ij} to define the noise structure.
  • Python scripts automate code generation for SDE function modules and main programs, integrating stochastic Runge-Kutta methods.
  • Numerical experiments use variable-order Runge-Kutta schemes to solve the SDEs, with constraints to prevent negative population values.

Experimental results

Research questions

  • RQ1How can the formalization of one-step stochastic processes be systematized and automated using computer algebra?
  • RQ2Can a software pipeline be developed to transform master equation-based models into executable SDE code in high-performance languages?
  • RQ3What are the differences in long-term behavior between deterministic and stochastic versions of the predator-prey model?
  • RQ4How does the inclusion of intrinsic stochasticity affect species persistence in ecological models?

Key findings

  • The software package successfully automates the derivation of SDE coefficients from the master equation, reducing manual derivation effort.
  • For parameters α=10, β=1.5, γ=8.5, δ=1.8, the stochastic model leads to prey extinction first, followed by predator extinction due to lack of food.
  • With δ=0.5, predators go extinct while prey populations grow rapidly, consistent with the model’s assumption of unlimited food for prey.
  • The numerical simulations confirm that stochasticity introduces extinction events not present in the deterministic model, validating the method’s biological relevance.
  • The software pipeline correctly generates Fortran and Julia code from symbolic expressions, enabling efficient numerical experiments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.