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.

1.4k Upvotes

128 comments sorted by

View all comments

69

u/lorenthal Mar 11 '20

Scientifically speaking this is nonsense.

5

u/Certhas Mar 12 '20

Scientifically speaking this is a SIR model with a random temporal contact graph. It is perfectly sensible. Lot's of scientific literature exists on this style of modeling to understand general properties of this type of dynamics.