Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide how randomness will be added to the deterministic model #16

Open
marciomacielbastos opened this issue Sep 26, 2018 · 4 comments
Open
Assignees

Comments

@marciomacielbastos
Copy link
Collaborator

Randomness must maintain the model representative of an actual epidemic.

@fccoelho
Copy link
Collaborator

Here we can go to a stochastic SIR model or just add lognormal noise like so:

y = odeint(SIR, t=times, y0=[0.99, 0.01], args=((beta, gamma),), rtol=1e-8)
# Simulando dados  Assumindo uma distribuição log-normal com média igual às séries simuladas
yobs = np.random.lognormal(mean=np.log(y[1::]), sigma=[0.2, 0.3])

@fccoelho fccoelho self-assigned this Mar 16, 2021
@maxbiostat
Copy link
Owner

maxbiostat commented Mar 16, 2021

I like the log normal alternative. It's simpler and is in line with the literature. Moreover, we would then have a correctly specified error model. Using a stochastic SIR would be nice as an extra, to try and study what happens when the error model is misspecified.

@fccoelho
Copy link
Collaborator

There's a slight problem with this:
image

os valores da distribuição lognormal extrapolam o limite superior do domínio do modelo (0,1)
we'd have to truncate it

@maxbiostat
Copy link
Owner

One way to combat this is to generate a truncated log normal directly, instead of truncating post facto.

fccoelho added a commit to fccoelho/R0_uncertainty that referenced this issue Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants