HackerTube.dev

Simulating an epidemic

3Blue1Brown · 5.2M views · 2020-03-27 · 23:12

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

3Blue1Brown builds toy SIR models to simulate how an epidemic spreads and tests scenarios like social distancing, travel restrictions, central gathering places and quarantine. It was made during the early COVID-19 outbreak.

On Hacker News

HN pointed to it during 2020 as a digestible, well-made illustration of epidemic dynamics and interventions.

Recommended by 8 HN people across 5 months · HN mentions 2020–2023

Topics

Search by tags

What people said

kaunta · 2020-04 · Strong recommendation

Garrett, thank you. * * * My inspiration for writing this came from watching 3Blue1Brown's YouTube video, "Simulating an epidemic": [VIDEO] His simulations cover several scenarios: - Simulating social distancing. - Having people travel to a central location (e.g. a grocery store). - What if the government is able to identify and isolate cases? - Simulating multiple communities with travel, that put quarantine measures in place. - What happens when people get tired of social distancing. * * * Thanks for sharing your code. I see that you are using gnuplot to visualize the output of the script. Have you considered using the csv module ( [LINK] ) to output the data, instead of using the print() function? That way, you wouldn't have to manually add in spaces around the data and stringify the numeric data. >>> import csv, sys >>> writer = csv.writer(sys.stdout, delimiter=" ") >>> writer.writerow(["#", "T", "S", "I", "R"]) # T S I R In the script, usage would look something like this: import csv import sys ... writer = csv.writer(sys.stdout, delimiter=" ") writer.writerow(["#", "T", "S", "I", "R"]) writer.writerow([T, S, I, R]) while I > 1000: ... writer.writerow([T, S, I, R])

Read the original HN comment ↗
foobarbecue · 2020-03 · Strong recommendation

Part of 3 Blue 1 Brown's excellent latest video simulates travel restrictions and suggests they're not very effective: [VIDEO] . However, that was only for cutting travel between all communities by a factor of 4, rather than completely banning travel between two particular communities / countries.

Read the original HN comment ↗
systemvoltage · 2021-05 · Recommendation

Dynamics of the virus spread is quite interesting. 3Blue1Brown made a fascinating video about how an epidemic spreads: [VIDEO]

Read the original HN comment ↗

Sources

Video by 3Blue1Brown, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources