Discrete Contact Process

Applet | Explanation

At any given time in the real world, a person may be sick or healthy. Sick people tend to make sick the others nearby, but sometimes a sickness seems to emerge on its own. Eventually, sick people become healthy again.

To model this phenomenon, we reduce time to discrete steps, fix who has contact with whom, and fix the probabilities of causing anotherโ€™s sickness (p), becoming healthy again (q), and spontaneous emergence of sickness (s).

A graph, ๐”Š=(V,E) may represent the situation. The vertices and edges respectively represent the persons and who are contactual neighbors.

The collective status of the population is a binary coloration of V determining sickness and healthfulness. Thus, the 2|V| binary colorations of V form a state space, ๐’ฎ.

It makes sense that the probability of one neighbor causing sickness is independent of the probability of another. Let It:Vโ†’{0,1} indicate whether a vertex is sick (indicated by 1) at time t. Then


โ„™(It+1(v)=0|It)=Itโข(v)โ‹…qโŸsick โ†’ healthy+(1-Itโข(v))โ‹…(1-p)[โˆ‘u:Eโข(v,u)Itโข(u)]โ‹…(1-s)โŸhealthy โ†’ remains healthy.

Conditioning on the state of the system at time t, the events that people are healthy at time t+1 are independent because all the events of healing and events of becoming sick are conditionally independent.

For example, the probability of the above transition is


qโ‹…(1-q)โ‹…[(1-p)โ‹…(1-s)]โ‹…(1-q)โ‹…[1-(1-p)2โ‹…(1-s)],

the factors given clockwise from the bottom.

Notice how the probability of transitioning to some state depends only on the current coloring of the vertices. That is to say, knowing which states were assigned to the previous time steps is irrelevant if we know the current state. This means that this model is a Markov chain. This is a discrete version of the contact process.

The following program simulates the contact process on a grid, where neighbors are exactly those squares adjoined in one of the four cardinal directions. The program displays the proportion of time that each vertex spends sick.

The contact process near stationary

Notice how the vertices at the edges and corners of the grid spend less time sick after the process has been running long enough. This is because they have fewer neighbors and less probability of becoming sick. So, it makes sense that the process converges to a stationary distribution that gives less mass to the states with more edge vertices sick.