Skip to content

🧬 Baysian Inference for Biological ODEs

Bayesian Learning of Microbial Traits from Population Time Series Data: A Primer

Mathematical models are increasingly used to infer traits, interactions, and functional dynamics of microbial systems. The inference process typically begins with a rate-based Ordinary Differential Equation (ODE) model.

However, fitting such models to experimental data requires a principled statistical framework that can:

Incorporate prior knowledge, Account for measurement noise, and Quantify uncertainty in parameter estimates.

Our aim

We strive to make the implicit, explicit β€” introducing Bayesian inference of ecological ODE models for microbial time series, with a unified workflow in Python (PyMC) and Julia (Turing.jl).


⬇️ Download the full repository

Get all notebooks, code, and examples in one click:

πŸ“¦ Download ZIP


πŸ“˜ Overview

This repository accompanies our upcoming paper:

β€œBayesian Learning of Microbial Traits from Population Time Series Data: A Primer”
Authors: Raunak Dey, Robert Beach, Kennedi M. Hambrick, Ioannis Sgouralis, Paul Fremont, David Demory, Eric Carr, Stephen J. Beckett, Joshua S. Weitz, David Talmy (Link will be posted here when the paper is online.)


πŸš€ Case studies

Python (PyMC)

You can view the solved examples (case studies) or try running it yourself via Google Colab.

  • Case Study 1 β€” Exponential Growth and Death
    πŸ“„ View notebook on GitHub
    πŸ§‘β€πŸ’» Try it yourself: Open In Colab

  • Case Study 2 β€” Logistic Growth and Death
    πŸ“„ View notebook on GitHub
    πŸ§‘β€πŸ’» Try it yourself: Open In Colab

  • Case Study 3 β€” Monod Growth and Death
    πŸ“„ View notebook on GitHub
    πŸ§‘β€πŸ’» Try it yourself: Open In Colab

Julia (Turing.jl)


🧰 Stack

  • Python Β· PyMC β€” Probabilistic programming in Python for Bayesian modeling and inference
  • Julia Β· Turing.jl β€” A flexible probabilistic programming language in Julia

All analyses were performed using:

Python - Python 3.12
- PyMC 5.25.1
- PyTensor 2.31.7
- ArviZ 0.22.0
- NumPy 2.2.5
- SciPy 1.16.2

Julia - Julia 1.11.0
- Turing.jl 0.40.2
- DifferentialEquations.jl 7.16.1
- SciMLSensitivity.jl 7.90.0
- Distributions.jl 0.25.120
- MCMCChains.jl 7.2.0


πŸ‘©β€πŸ”¬ Contributors

This primer was developed through a collaborative effort across multiple research groups, combining expertise in microbial ecology, statistical physics, and Bayesian inference.

Raunak Dey β€” University of Maryland
πŸ”— Website Β· GitHub

David Talmy β€” University of Tennessee, Knoxville
πŸ”— Website

Robert Beach β€” University of Tennessee, Knoxville

Kennedi Hambrick β€” University of Tennessee, Knoxville

Ioannis Sgouralis β€” University of Tennessee, Knoxville
πŸ”— Website

Stephen J. Beckett β€” University of Maryland πŸ”— Website

Paul FrΓ©mont β€” University of Maryland πŸ”— Website

David Demory β€” Sorbonne UniversitΓ© πŸ”— Website

Eric Carr β€” University of Tennessee, Knoxville

Joshua S. Weitz β€” University of Maryland πŸ”— Website


This project connects theory, data, and computation to advance reproducible Bayesian inference for ecological population models.