Firstly I want to put big disclaimer here. This particular problem is a smaller part of my homework. Since even after discussion with my fellow classmates we are not sure how to handle it we decided to post a question here.
Basically we are supposed to simulate spreading of disease.
Every day every infected person will pick random number of people (possible infected candidates) with Poisson distribution where parameter is 5. Everyone of those selected people (=possible infected candidates) will be infected with probability of 1/2 and at the end of the day the infection takes effect. Next day this particular infected person will be also spreading infection and will again pick random number of people (another possible infected candidates) with Poisson distribution where parameter is again 5. Number of possibly infected candidates and event static whether person will be infected or not are both independent on each other.
Let's suppose on the first day there is only one infected person. We should simulate disease spreading for one week. And how many infected persons there will be at the end of 8th day.
Now finally to my question.
Confusing part for me is how are we suppose to determine the number of randomly picked people which represent possible infected candidates since we don't know how many people is there? I assume that with higher number of people the disease should spread faster? I also think that this number of randomly picked possible candidates should be somehow determined by given parameter and also by Poisson distribution itself but I am struggling how to make these things "work" together.
Consider the first day, in which there is one infected person to start. Let $C$ be the number of candidates selected for possible infection on the $1st$ day, and let $I$ be the number infected by "patient zero" on the $1st$ day. I assume that out of the $C$ candidates, each is infected independently with probability $0.5$. Then $C \sim Pois(5)$ and $I \mid C = c \sim Bin(c,0.5)$, $c = 0,1,2,\ldots$. You can check from this post that $I \sim Pois(2.5)$, where the $2.5$ is from $\lambda p = 5*0.5 = 2.5$. Thus the expected value of $I$ is 2.5, and adding 1 for patient zero we get that after one day, there are $3.5 = \frac{7}{2}$ patients expected to be infected.
How about day 2? For each infected patient at the end of day 1, we expect $\frac{7}{2}$ to be infected at the end of day 2. Thus the total expected number of infected after two days is $\left(\frac{7}{2}\right)^2$.
For eight days, we expect $$ \left(\frac{7}{2}\right)^8 $$ to be infected.
This was verified numerically with my MATLAB implementation: