Skip to content

ghurault/lvc_stan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lotka-Volterra competition model in Stan

Data

The data is available in two csv files in the Data folder (one for each set of experiment) and was published in Gause (1932) to study the competition of two species of yeast: saccharomyces and schixosacharomyces.

The data was collected in 3 differents experimental settings, each of them repeated twice (experiment A and B):

  • Saccharomyces alone (single species setting)
  • Schixosacharomyces alone (single species setting)
  • Saccharomyces and Schixosacharomyces together (mixed species setting)

data

Model

The evolution of the population of yeasts is modelled with the competitive Lokta-Volterra equations.

Lotka-Volterra competition model

For a single species p:

  • r is the growth parameter
  • alpha is the (self) competition rate
  • k = r / alpha is the carrying capacity (steady state)
  • C is a constant determined by initial conditions

For two species:

More generally, for N species (* is the element-wise multiplication):

Statistical model

The solutions of the ODEs can expressed as function of the initial conditions f0, the parameters alpha and r and time t:

Parameters are shared across experiments (fixed effects), except for the initial conditions which might vary from experiment to experiment.

The measurement process is modelled with a normal distribution:

  • In the case of an additive noise model:

  • In the case of an additive multiplicative noise model:

Priors

  • The initial conditions of the different experiments are unknown and treated as parameters, with the hierarchical prior:

  • Competition rates are regularised with the hierarchical prior:

  • Weakly informative priors are chosen for the remaining parameters.

Results

Posterior predictive checks are conducted and the likelihood is stored to perform model selection with the loo package. The additive and multiplicative models explain the data well but there is no strong evidence for choosing one model instead of the other (additive model is slightly favoured), although the experimental setup would suggest an additive noise.

Coefficients estimates for the two models (and those estimated in Gause's paper) are given below (error bars represents the 95% credible interval). The original estimates are similar to those of the additive error model but slightly differ to the multiplicate error model.

coefficient estimates

Future directions

  • Alternative regularisation of alpha matrix:
    • Gaussian distribution (cf. ridge/L2 regularisation)
    • Laplace distribution (cf. lasso/L1 regularisation)
    • Horseshoe distribution
  • Sample k (steady states) instead of r (growth)
  • Introduce random effects at the experiment level
  • Compute Bayesian R-squared
  • Hard code alpha matrix as positive definite is the systems is stable a priori
  • Regularise r

Releases

No releases published

Packages

No packages published