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

SIR typo fix 2 #51

Merged
merged 2 commits into from
Aug 31, 2024
Merged

Conversation

MichaelKlots
Copy link
Contributor

Same as before - a typo in the SIR model description text

The SIR model formula text in examples/deterministic/ex01a-Model.ipynb has a typo in the dI/dt equation. It was defined there:
$$
\lambda(t) = \frac{\beta I}{N}
$$
and then:
$$
\dot I &= \lambda(t)I - \gamma I
$$

It should be:
$$
\dot I &= \lambda(t)S - \gamma I
$$

as \lambda(t) already has I as a multiplicative factor, and it is \lambda*S in the dS/dt equation. This way the time derivatives would sum up to 0.

@MichaelKlots MichaelKlots marked this pull request as ready for review August 18, 2024 20:10
@MichaelKlots MichaelKlots changed the title Sir typo fix 2 SIR typo fix 2 Aug 18, 2024
Copy link
Owner

@rajeshrinet rajeshrinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes fix typos in description of the model in example notebooks.

@rajeshrinet rajeshrinet merged commit 38573a7 into rajeshrinet:master Aug 31, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants