Developing Data Products Week 4 Assignment

Vimal Simha
14 July, 2020

Epidemiological Model For Number of Covid Cases

  • Pedagogical Model to help understand how contagious diseases like covid-19 spread
  • Start with simple model and gradually build in more complex elements
  • App allows user to change parameters and understand how they affect disease spread

Model

  • If you have N cases, growing at rate r i.e. each person affects r others in one day, then the number of new cases is: \[ \Delta N = r \times N \]

  • Soon the infected run out of uninfected people to infect. The probability of any given person being infected is just N/P, so (1-N/P) is the probability of encountering an uninfected person.

  • Then the number of new cases is: \[ \Delta N = r \times N \times (1-N/P) \] where P is the total population.

Example Plot

plot of chunk unnamed-chunk-1

Links To App And Code