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

Longer running infection feedback process #458

Open
SamuelBrand1 opened this issue Sep 25, 2024 · 0 comments
Open

Longer running infection feedback process #458

SamuelBrand1 opened this issue Sep 25, 2024 · 0 comments
Labels
pyrenew related to pyrenew internals

Comments

@SamuelBrand1
Copy link
Collaborator

Goal

Add more options to feedback process on $\log R_t$, described here, which are efficient for longer running inference.

Context

IMO from basic principles fitting on data only from after a peak hospitalisation and before the next peak hospitalisation then the action of the feedback term will be pretty unidentifiable. However, the obvious downside of running the inference over longer time periods is that we would require a very long history of infections within the model to carry for inside scan.

From f2f discussion with @dylanhmorris we had a quick think about easier ways to model this.

IMO, the easiest way to have a long period of effect from feed back whilst avoiding heavy compute is:

$$F(t) = \gamma \sum_{\tau = 1}^{\infty}I(t-\tau)f(\tau) = \gamma \sum_{\tau = 1}^{\infty}I(t-\tau) \left(\lambda_f\right)^{\tau -1}.$$

Where $\lambda_f \in [0,1]$ is a forgetting factor, and $T_f = \infty$. Whilst exponential smoothing is pretty simplistic, it is handy because it has an on-line update rule:

$$F(t+1) = \gamma I(t) + \lambda_f F(t).$$

This means that scan only has to carry forward the feedback strength $F(t)$ rather than a long vector of past infections, in addition to the recent infections required for the new infection calculation.

NB:

  • This approach would very likely work better with infection on a per capita scale and $F(0)$ is likely to be a parameter that needs inference.
  • @dylanhmorris pointed out that more complicated models that exponential decay are possible e.g. a multi-stage Erlang decay.

Required features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pyrenew related to pyrenew internals
Projects
None yet
Development

No branches or pull requests

1 participant