Modeling an epidemic

Question

The SEIR model is a compartmental model used in epidemiology to understand how an infectious disease spreads through a population. This stochastic based model compartmentalizes stages of disease spread with labels S, E, I, R (Susceptible, Exposed, Infectious, or Recovered).

Given the equations and definitions in the website linked, create a plot showing Susceptible, Exposed, Infectious, or Recovered over a 400 day period for a population size of 1000. It'll be up to you to pick the rate of spread through the population, you can use COVID data from the CDC to help guide your inputs.

Note this is an example of a more open-ended/case study type question, so there is no exact correct answer. In an interview situation folks will be interested in your line of thinking and how well your code addresses the problem at hand.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now