Simulating an epidemic

Share on facebook
Share on twitter
Share on linkedin
Simulating an epidemic

Experiments with toy SIR models
Enjoy these videos? Consider sharing one or two.
Supported by viewers:
Home page:

Awesome fan-made interactives:

Simulations by Harry Stevens at the Washington Post:

Simulations by Kevin Simler at Melting Asphalt:

Excellent visualization of each country’s current growth from Minutephysics and Aatish Bhatia:

Another good interactive to see what effect various parameters have on the shape of the curve:

If you want to hear a mathematician/epidemiologist’s summary of COVID-19, I found this MSRI talk very worthwhile:

Marcel Salathé on Contact Tracing:


These animations are made using manim, a scrappy open-source python library:

Code for this video:

Honestly, given that the code for that video is meant for demo purposes, and not meant to reflect the true data of COVID-19, if you want to apply these ideas to the current situation I’d recommend looking for more professional epidemiological modeling tools that are less centered around animations and pedagogy and more focused on accurate predictions. For example, the Institute for Disease Modeling has a lot of models free for people to look at and play with.


Opening music:
Candlepower by Chris Zabriskie is licensed under a Creative Commons Attribution license (

Other music by Vincent Rubinetti.
Download the music on Bandcamp:

Stream the music on Spotify:

If you want to contribute translated subtitles or to help review those that have already been made by others and need approval, you can click the gear icon in the video and go to subtitles/cc, then “add subtitles/cc”. I really appreciate those who do this, as it helps make the lessons accessible to more people.


3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe:

Various social media stuffs:

Leave a Replay

Ads by Alkali

Recent Posts

Ads by Alkali

Follow Us