Question
The number of patients visiting the dentist on a day follows a Poisson distribution with $\lambda= 20$. Patients can either have one or two issues, the probability of a patient having one issue is $0.7$, and two issues is $0.3$.
What is the expected total number of issues across all patients for a day?
I can figure this question out just using logic, the expected number of patients would be $20$ since the expected value of a Poisson variable is $\lambda$. And then $30\%$ will have two issues and $70\%$ will have one which equals $26$ total issues.
I am just not sure how to derive mathematically $P(Y|X=x)$ since we have to include that in our answer. I thought of treating the number of issues as binomial and then taking the total issues as $2np + nq$ and then using $E(Y) = E[E(Y|X)]$ but I am not sure that is along the lines of what the teacher asked, to derive the term $P(Y|X=x)$.
Let $X_1,X_2$ denote the number of patients who visited throughout the course of a day with $1$ and $2$ issues, respectively.
Then $X_1\sim \text{Poisson}(20\times 0.7)$, $X_2=\text{Poisson}(20\times 0.3)$, and $X_1+2X_2$ denotes the total number of issues treated that day.
The expected number of issues is $$\mathbb{E}(X_1+2X_2)=14+2\times 6=26$$