This repository was archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Thoughts on covid and SciML lecture outline #859
Copy link
Copy link
Open
Description
@jstac @thomassargent30 @ChrisRackauckas
Starting with the python version as a reference: https://python.quantecon.org/sir_model.html
My thought is that there could be two lectures here:
Modeling Covid 19/Introduction to SDEs
Policy Uncertainty with Covid 19/Introduction to Scientific Machine Learning
Here are some rough thoughts, none of which I am especially attached to. But I think a good goal is that everything in the "first lecture" are things where the code is probably already complete somewhere so it could be done quickly.
For the first lecture:
- We could start by porting a good portion of https://python.quantecon.org/sir_model.html to the OrdinaryDiffEq package, up to the Ending the Lockdown.
- We then could add a section introducing the basic structure of a SDE that are initial value problems (i.e. forward equations, no control problems in these lectures)
- As an application of that, we add in a reasonable additive aggregate shock to the SIR model. There are a few candidates of the top of my head:
- We could make the
i
have an additive shock representing people migrating into the region? - We turn it into an ODE with 4 states... S, I, R, sigma. Where the sigma was the infection rate. Then we make the sigma stochastic.
- Similarly, we could make the beta (i.e. the transmission rate) stochastic, since I think there are aggregate and unpredictable changes to how much people "follow the rules".
- Chris, maybe you have some ideas from reasonable things people have done before and where there is code?
- We could make the
- Given the SDE, we show simulating a path of it, as well as ensembles using the diffeq tools. We can focus on the typical quantiles (e.g. mean, 5/95% etc.).
- For example, I think it would be very useful to look at the aggregate deaths to date at some point
T
in the future? I think in the simple setup there, it is a constant times theR
. That parameter could be useful for the second lecture since nobody really knows it.
- For example, I think it would be very useful to look at the aggregate deaths to date at some point
- Finally, I think it is worthwhile for economists to learn the connection between the SDEs for the Langevin equations typically used in the approximation of chemical reactions/etc.
- For that, a discrete number of agents bumping into each other can be approximated by an SDE.
- There, the noise in the SDE captures the discreteness, which could be useful for all sorts of models as well as modeling covid in small groups or isolated regions.
For the second lecture:
- There are a lot of opportunities here to introduce tricks from scientific machine learning as well as modeling uncertainty.
- We could take the "Ending the Lockdown" example from the python ones as a starting point.
- What if we don't really know the a particular parameter (e.g. the beta or sigma). Then what do the scenarios look like for ending the lockdown with a particular policy? We can show ensembles and quantiles for that.
- I think this could be the uncertainty quantification?
- Alternatively, lets say that we know the parameters then when should is the earlyist you should end the lockdown if you want to ethe number of deaths will be below XXX.
- This can be done with diffeqflux and auto-differentiating the deterministic ODE?
- But what something is stochastic (e.g. the sigma or beta). Then when should is the earliest you should end the lockdown if you want to ensure there is a 95% chance the number of deaths will be below XXX.
- This should be possible with differentiating the SDE solution... though I don't know if that stuff is ready Chris?
- Finally, lets come up with a policy tension. Aggregate deaths vs. the unemployment rate.
- We would need some sort of simple unemployment rate as a function of lockdown length.
- Then define a simple loss function of those two at time T. Maybe quadratic.
- Given the loss function of those two at time T, what is the optimal policy for lockdown length? This seems like a DiffeqFlux candidate.
- Finally, lets put it together...
- Assume that the loss function is a little more complicated. If the number of infected ever goes above XXX then the medical system is overwhelmed and the cost becomes dramatically higher.
- Now, lets say you have either policy uncertainty in a parameter or you there are aggregate shocks.
- What should your policy of ending the lockdown be in those circumstances? Things are stochastic and the loss function is not a simple quadratic.
Metadata
Metadata
Assignees
Labels
No labels