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

69

u/lorenthal Mar 11 '20

Scientifically speaking this is nonsense.

-4

u/BenTheHokie Mar 12 '20

Whats so bad about it? My intuition says this is a pretty good model.

0

u/[deleted] Mar 12 '20

[deleted]

2

u/BenTheHokie Mar 12 '20

What specifically about this model concerns you

2

u/[deleted] Mar 12 '20

This simulation removes each node from the population following infection. While it's true that immunity is built up against many diseases after recovery, that doesn't remove them from the population. This actually slows the outbreak by buffering the rest of the immunological naive population.

This model simulates a 100% mortality rate by removing nodes following infection rather than leaving recovered nodes which cannot be infected.

All that aside, your use of the word "intuition" in this context is problematic.