Skip to content

A very basic epidemic simulation for educational purposes. This code was made as a part of a YouTube episode on a pop science channel hosted by Najib El Mokhtari. Any enhancements are welcome and unrestricted.

Notifications You must be signed in to change notification settings

najibelmokhtari/basic-epidemic-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic epidemic simulation application

What Is This?

This is a simple Python epidemic simulation used to illustrate the spread of epidemics through two factors:

  • Death rate of a disease
  • Contagion ratio (R0) of the disease

The script can be configured by changing the constant values corresponding to each of these factors. A pre-vaccination ratio can also be used to make a part of the population immune before the epidemic outbreak. This is only a basic model and the purpose of this application was to illustrate basic concepts of epidemiology in a Moroccan pop science youtube video.

The episode is available here:

https://youtu.be/02WZ08QTVmg

How To Use This

  • pip install -r requirements.txt

  • Modify constants such as PROBA_DEATH, CONTAGION_RATE and VACCINATION_RATE.

  • Run the simulation through: python epidemic.py

  • Press the Space bar to run or re-run the simulation

About

A very basic epidemic simulation for educational purposes. This code was made as a part of a YouTube episode on a pop science channel hosted by Najib El Mokhtari. Any enhancements are welcome and unrestricted.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages