Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Epidemic

In this project we will be working with the following model of a spread of an infectious disease.

  • First, we create a graph representing interations between people. Each node in this graph is a person. If two nodes are connected by an edge, then the people they represent are in contact and can infect each other.

  • Each node in the graph is in one the following states:

ValueMeaning
0The node is healthy, but it can become infected.
1The node is infected and can infect its healthy neighbors.
2The node was infected, but it recoved from the disease and can’t get infected anymore.

For example, in the plot below healthy nodes are green, infected nodes are red and recovered nodes are yellow.

<Figure size 600x400 with 1 Axes>

To model the spread of an epidemic we choose two numbers 00 \leq pi, pr 1\leq 1. Then the epidemic is modeled step by step as follows:

  • We start with some number of infected nodes, all other nodes healthy.

  • At each step, an infected node infects each of its healthy neighbors with probability pi. Also, an infected node recovers from the infection with probability pr.

Animation of the spread of an epidemic in a graph

Project

Use the epidemic model to investigate various aspects of epidemic spead. Here are some possible topics you may consider. You do not need to investigate all of them - you can choose a few or come up with different topics on you own.

  1. How does the progression of the epidemic depend on properties of the graph (size, average degree, etc.).

  2. Fix the probability of recovery pr and vary the probability of infection pi. How does the fraction of nodes that will eventually get infected changes as pi increases? How does the maximum number of nodes who are infected at once during the course of the epidemic depends on pi?

  3. Repeat part 2, but keeping pi and changing values of pr.

  4. Introduce another state of nodes 3 (vaccinated). A node in this state cannot get infected. Assume that some fraction of nodes are in this state at the beginning. How does this affect the epidemic spread? How does it depend on the size of the fraction of vaccinated nodes?

  5. Lets say that we have only a limited number of vaccines that we can use. Does it matter if we vaccinate random nodes, or if we select some specific nodes (e.g. ones with the biggest degrees)?

  6. Effect of social distancing: assume that we remove some fraction of edges from the graph. How will it affect the spread of the epidemic?

  7. Change the model, so that a recovered mode can get infected again. Fix the value of pr and vary pi. For what values of pi epidemic dies off after some time and for what values it seems to persist indefinitely?