You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am slightly confused about how population scaling is supposed to interact with the initally infectious population. This seems to change depending on whether dynamic rescaling is enabled or disabled.
For example, if I have:
pop_size=5000
pop_infected=100
pop_scale=10 (i.e. I want the population to represent 50000 individuals)
Should the scaling factor also apply to pop_infected i.e. should this start the simulation with 100 infected individuals or 1000 infected individuals?
I couldn't find the answer in the documentation so I performed some tests and found that the answer appears to change depending on whether rescale is set to True or False.
The plots below highlight the discrepancy, which show two identical simulations: one with rescale=True and another with rescale=False. The first plot has 100 day-zero cumulative infections (scaling has not been applied to the initial infectious population) and the second plot has 200 day-zero cumulative infections (scaling has been applied to the initial infectious population):
Regardless of whether dynamic rescaling is enabled or not, it seems odd that this would affect the reported initial conditions of the model (i.e. the number of cumulative infections, exposed individuals etc. on day zero).
My intuition is that dynamic rescaling should only provide an efficiency gain and should not interefere with the interpretation of the parameters/reporting of results, i.e. If I set initial infections to 100, pop size to 5000, and population scaling to a factor of 2, I anticipate the simulation to start from 100 exposed individual and 10000 total individuals whether scaling is used or not (or 200 exposed individuals and 10000 total if scaling should also be applied to the initally infectious population).
Can anyone help me to understand why pop_infected is only affected by pop_scale when rescale is set to False?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I am slightly confused about how population scaling is supposed to interact with the initally infectious population. This seems to change depending on whether dynamic rescaling is enabled or disabled.
For example, if I have:
pop_size=5000
pop_infected=100
pop_scale=10
(i.e. I want the population to represent 50000 individuals)Should the scaling factor also apply to
pop_infected
i.e. should this start the simulation with 100 infected individuals or 1000 infected individuals?I couldn't find the answer in the documentation so I performed some tests and found that the answer appears to change depending on whether
rescale
is set toTrue
orFalse
.The plots below highlight the discrepancy, which show two identical simulations: one with
rescale=True
and another withrescale=False
. The first plot has 100 day-zero cumulative infections (scaling has not been applied to the initial infectious population) and the second plot has 200 day-zero cumulative infections (scaling has been applied to the initial infectious population):Here's my code:
Regardless of whether dynamic rescaling is enabled or not, it seems odd that this would affect the reported initial conditions of the model (i.e. the number of cumulative infections, exposed individuals etc. on day zero).
My intuition is that dynamic rescaling should only provide an efficiency gain and should not interefere with the interpretation of the parameters/reporting of results, i.e. If I set initial infections to 100, pop size to 5000, and population scaling to a factor of 2, I anticipate the simulation to start from 100 exposed individual and 10000 total individuals whether scaling is used or not (or 200 exposed individuals and 10000 total if scaling should also be applied to the initally infectious population).
Can anyone help me to understand why
pop_infected
is only affected bypop_scale
whenrescale
is set toFalse
?Thanks.
The text was updated successfully, but these errors were encountered: