rajeshrinet / pyross

PyRoss: inference, forecasts, and optimised control of epidemiological models in Python. github.com/rajeshrinet/pyross
https://pyross.readthedocs.io
MIT License
169 stars 57 forks source link

SIR typo fix 2 #51

Closed MichaelKlots closed 1 week ago

MichaelKlots commented 3 weeks ago

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.