This is a Montecarlo Simulation that tries to simulate the advanced of the coronavirus pandemic. It is written in python, it is not optimizated. It has been written using the conda environment at only the libraries including in it are necessary (pandas, numpy, pylab specifically).
-
It is the main file. The sim_virus function executes de simulator, it's parameters control the pandemic caracteristics (dead probability per day, infection probability...). When finished the program will output the result to various .csv files (one per simulation) and to a pylab figure.
-
Helper script for creating pylab figures from .csv.
-
Folder containing real .csv data from the virus (the Data is from Spain)
Folder containing output (.csv and figures) from the program
- Jupyter notebook containing some usefull jobs. It creates the .csv of actives infections (total - deads - cured) inside the data folder (using the .csv of the same folder). It creates a plot comparing some data of the simulation and the real data (using load_figures.py).
-
Number of simulation, useful to differentiate the data and plot for multiple simulation with different parameters
-
Number of initial healthy population at day 0
-
Number of initial infected population at day 0
-
Probability for dying at every day if infected
-
Probability for curing at every day if infected
-
Probability of infecting another person each day (for each infected person)
-
Ratio of people on risk (higher death_prob)
-
Days that a person has to pass before the cure_prob starts to take effect.
-
Number of trials that the simulations does (for the data output it will use the main of the trials).
-
Number of days to simulate.
-
If true the program will print the infected population after every day.
-
Day that the quarantine starts (the inf_prob decrease a lot)
