Coder Social home page Coder Social logo

bayesian_sir's Introduction

Bayesian parameter estimates for non-linear systems of differential equations

Please note, the following work is for educational purposes only. If you'd like to draw valid inferences, please consult an infectious disease epidemiologist. Modeling the outbreak is hard, and this data must be used responsibly (thanks to @simonw for raising these points).

This was inspired by Thomas Wiecki's work on fitting PyMC3 models to the COVID data, as well as the elegant DiffEqBayes.jl package.

Data

Case data comes from Johns Hopkins Center for Systems Science and Engineering. Country population data comes from the European Centre for Disease Prevention and Control .

Model

Currently, the model is hierarchical SIR model, with infection and recovery rates grouped by country. The system is specified and solved using DifferentialEquations.jl and parameters are infered using Turing.jl.

Results

The following show distributions of disease trajectories over time. Thick lines represent the expected posterior distribution of disease trajectory.

Data/fit from 20.04.2020:

US Germany China Italy Switzerland Spain Iran Japan Singapore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.