ScratchData LogoScratchData
Back to mres's profile

Epidemic Simulation

MRmres•Created March 15, 2020
Epidemic Simulation
1097
788
68710 views
View on Scratch

Instructions

This is a simulation of the spread of an epidemic. Use the slider to control what percentage of the population stays at home, then click the Green Flag. The graph shows how the number of sick people changes over time Color Code: Healthy/Blue, Sick/Red, Recovered/Green

Description

Notice how the curve of sick people "flattens" if more people stay at home. Try modifying the code to see what happens if: * Sick people recover more quickly -- or more slowly * There are more people in the community * The virus spreads probabilistically when people contact This project was inspired, in part, by simulations in a Washington Post article: https://www.washingtonpost.com/graphics/2020/world/corona-simulator/ March 17: Thanks to suggestion from Falcon0327, I changed the setup procedure to run without screen refresh, so that people are generated all at once.

Project Details

Project ID376656449
CreatedMarch 15, 2020
Last ModifiedMarch 17, 2020
SharedMarch 15, 2020
Visibilityvisible
CommentsAllowed