Physics > Physics and Society
[Submitted on 16 Jul 2010]
Title:Generating and solving the mean field and pair approximation equations in epidemiological models
View PDFAbstract:The pair approximation is a simple, low-order method to incorporate effects of local spatial structure in epidemiological models. However, since for K state variables in a model there are K(K+1)/2 equations in the pair approximation, generating these equations, although straightforward, can become tedious. In this paper we describe two programs written in Perl to simplify this process - one to construct the equations, and the other to generate Matlab/Octave functions to numerically integrate the equations using a positivity-preserving method. A third utility program is also included which generates a Maple file that can be used within the Maple symbolic manipulation program to simplify algebraically some of the terms in the generated file describing the equations, as well as to check that the usual combination of equations sum up to zero, which is expected in cases where the total population sizes are conserved.
Current browse context:
physics.soc-ph
Change to browse by:
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.