Implementing a SIR Disease Model in Python [1/2]

Опубликовано: 05 Апрель 2026
на канале: Greg Winther
20,648
405

This video is part one of two (part two:    • Simulating the Zombie Apocalypse with Pyth...  ) on how one constructs simple compartmental models in epidemiology. I construct a set of ordinary differential equations (ODE) to solve the progression of an infectious disease in a given population. The set of ODEs are solved using the simplest of integrators, the Forward Euler method, in Python. This project is inspired by problems from Hans Petter Langtangen's book (https://amzn.to/31IWLCd) on Scientific Programming in Python. This is probably the best introductory text on scientific programming (even though it is written for Python 2).

UPDATE Sep 2020
I have created a tutorial series on the ODESolver library that I start implementing in this video. Check it out here:    • ODESolver python library  

Code for written in this video is here: https://github.com/gregwinther/youtube

#SIRmodel #python #biomathematics

Music: Lazy Days by Vanilla