Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Epidemic Simulator

Posted on April 19, 2020May 22, 2025 by Blake

This Colab notebook simulates a disease spreading through a community in random motion. Individuals are represented as points undergoing independent random walks in a bounded 2D environment. Parameters include: the population size, the average population density, the number of times to evolve the system, the number of trials to conduct, and the fraction of the available space that individuals will traverse each timestep (which amounts to their speed). After a randomly-chosen period of time within a given range, infected individuals either recover or die. The probability of death varies by age group.

Open in Colab

View on GitHub


Tags:
Matplotlib, NumPy, Python
Categories: Data Science, Exploration, Health

Post navigation

← Science Sims
Covid Report NYC →

Categories

  • Apps
  • Data Science
  • Exploration
  • Finance
  • Health
  • Interactive
  • Optimization

Tags

D3 Desmos Dotenv JavaScript LLMs MATLAB Matplotlib Netlify NLTK Node NumPy Pandas PostgreSQL Python QuantConnect Scikit-Learn SciPy Streamlit Vader

© 2025 Blake Rayvid