Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Epidemic Simulator

Posted on April 19, 2020June 11, 2025 by Blake

This Jupyter 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 Flask JavaScript JQuery LLMs MATLAB Matplotlib Netlify NLTK Node NumPy P5 Pandas PostgreSQL Python QuantConnect Railway Scikit-Learn SciPy SQLAlchemy Vader YFinance

© 2025 Blake Rayvid. All rights reserved.