Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Epidemic Simulator

Posted on April 19, 2020May 12, 2026 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: Exploration, Health

Post navigation

← Science Sims
Covid Report NYC →

Categories

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

Tags

D3.js Desmos Docker Express.js FFmpeg Flask Gemini API Google Maps API HTML/CSS/JS MATLAB Matplotlib Netlify NetworkX Next.js NLP Node.js NumPy P5.js Pandas Pillow PostgreSQL Python QuantConnect Railway React.js Scikit-Learn SciPy TensorFlow Tesseract OCR WeasyPrint YFinance API

© 2026 Blake Rayvid. All rights reserved.