I am working on a problem involving mathematical modelling of a closed population using graph networks.
- In this problem, people start of healthy - from there,
- they can either $\tt recover$,
- stay $\tt sick$
- or $\tt die$.
- If they get $\tt better$, they can fall $\tt sick$ again or still $\tt die$.
In the problem I am working on:
Let $G = (V, E)$ be an undirected graph where:
- $V$ is the set of vertices (nodes)
- with $|V| = n = 100$ (total number of nodes)
- $E$ is the set of edges
In this graph, any person at time $t$, depending on the the health status of their neighbors (i.e. neighbors can infect a person), their state vector at time $t$ as:
$$ S(t) = \begin{bmatrix} S_{\text{HNI}}(t) \\ S_{\text{CI}}(t) \\ S_{\text{HPI}}(t) \\ S_{\text{D}}(t) \end{bmatrix} $$
Where
- HNI = Healthy (Never Infected)
- CI = Currently Infected
- HPI = Healthy (Previously Infected)
- D = Dead.
The transition matrix $P$ represents the probabilities of moving from one state to another (I am not sure if this description is fully accurate since the probability of infection depends on how many infected neighbors a person has):
$$ P = \begin{bmatrix} p_{\text{HNI,HNI}} & p_{\text{HNI,CI}} & p_{\text{HNI,HPI}} & p_{\text{HNI,D}} \\ p_{\text{CI,HNI}} & p_{\text{CI,CI}} & p_{\text{CI,HPI}} & p_{\text{CI,D}} \\ p_{\text{HPI,HNI}} & p_{\text{HPI,CI}} & p_{\text{HPI,HPI}} & p_{\text{HPI,D}} \\ p_{\text{D,HNI}} & p_{\text{D,CI}} & p_{\text{D,HPI}} & p_{\text{D,D}} \end{bmatrix} $$
$$ P = \begin{bmatrix} 0.69 & 0.3 & 0 & 0.01 \\ 0 & 0.87 & 0.1 & 0.03 \\ 0 & 0.3 & 0.68 & 0.02 \\ 0 & 0 & 0 & 1 \end{bmatrix} $$
I simulated this network using a computer (using R):
I understand this problem is similar to a SIR problem, but I was wondering if the following questions could be answered:
- How long on average will it take for the whole population to be infected at least once ?
- On the $50$th day of the simulation, what percent of the population will be currently infected ?
- At some point, will the entire population be dead ?
These questions sound difficult and I am not sure if they have closed form solutions.
Thus, I tried to repeat the simulations to help me answer these kinds of questions:
I would repeat the simulation many times and take the average answer to each of these questions.
But I was just wondering - do these questions have analytical solutions or do they have to be numerically simulated?
- PS $1$: I am aware that in some situations with rare events probabilities (e.g. rare disease transmission), I would need to run each simulation for many iterations to observe even one event - and then repeat this again and again, thus making simulation infeasible for such situations. In such situations, I think closed form solutions would be better.
- PS $2$: Does anyone want the R code that I used in this problem ? I can provide it if someone wants.