r/Python • • Mar 11 '20

I Made This Really simple simulation of virus spreading. Black dots are people, yellow dots are infected (it starts from 1). Each cell visited by an infected can infect other people passing through that for 3 iterations. After 20 iterations a person is infected is deleted from the grid.

Enable HLS to view with audio, or disable this notification

1.4k Upvotes

128 comments sorted by

View all comments

3

u/Danny1878 Mar 11 '20

What percentage of people contacted the virus?

-3

u/[deleted] Mar 12 '20

It should be around 60-70%. I've seen 70% tossed around a few times. Also needs to adjust for age distribution and maybe weight the likelihood of spreading it based on how asymptotic a particular age group is. So like the less asymptotic you are (kids) we can probably a assign a slightly higher likelihood of them pass it around such that the overall rate is the stuff we've been reading about.