Title of the figure created by Scenario.simulate() should be "Simulated number of cases" rather than "Predicted number of cases". This is because this method does not predict the parameter values. This method simulate the number of cases based on specified parameter values.
(Optional) Related classes
covsirphy.Scenario
Codes and outputs:
import covsirphy as cs
# Dataset preparation
data_loader = cs.DataLoader("input")
jhu_data = data_loader.jhu()
population_data = data_loader.population()
# Scenario analysis
snl = cs.Scenario(jhu_data, population_data, country="Japan")
# S-R trend analysis
snl.trend().summary()
# Parameter estimation of SIR-F model
snl.estimate(cs.SIRF)
# Simulation for 30 days
snl.add(days=30)
snl.simulate()
Summary
Title of the figure created by
Scenario.simulate()
should be "Simulated number of cases" rather than "Predicted number of cases". This is because this method does not predict the parameter values. This method simulate the number of cases based on specified parameter values.(Optional) Related classes
covsirphy.Scenario
Codes and outputs:
Environment