I have come across this question and gave it a try. To not distort the content, I post the original question in French.
On se donne $X$ une variable aléatoire tirée selon une loi de Poisson de paramètre $2$. On lance alors $X$ dés et on note $Y$ le nombre de $1$ obtenus sur les dés. Déterminer $\mathbb{E}[Y | X]$.
Translation: Let $X$ be a random variable drawn according to a Poisson distribution of parameter $2$. We throw $X$ dice and we note $Y$ the number of $1$ obtained on the dice. Determine $\mathbb{E}[Y \mid X]$.
Could you please confirm if my solution is correct?
We have $Y1_{\{X=n\}} \sim \operatorname{Binomial}(n, 1/6)$. Then $\mathbb E[Y1_{\{X=n\}}] = n/6$. Also, $$\mathbb E[Y|X] = \sum_{n=0}^\infty \frac{\mathbb E [Y1_{\{X=n\}}]}{\mathbb P[X=n]}1_{\{X=n\}} = \sum_{n=0}^\infty \frac{n/6}{2^n e^{-2}/n!}1_{X=n} = \sum_{n=0}^\infty \frac{nn!}{6.2^n e^{-2}}1_{\{X=n\}}.$$
Updates:
Naively, I write "$Y|X \sim \operatorname{Binomial}(X, 1/6)$" and get $\mathbb E[Y|X] = X/6$. But we never define $Y|X$ in probability theory. As such, I feel the the crux is to write the mathematical form of $Y$.
What is the mathematical expression of the sentence "We throw $X$ dice and we note $Y$ the number of $1$ obtained on the dice"?
If $A$ is a measurable set and $f$ a measurable function, the expression $Y := X1_A$ or $Y := f(X)$ makes sense to me. Another example is the expression of conditional expectation $\mathbb E[Z|X]$. This is what I meant by "mathematical expression", i.e., a well-defined formula.
Of course, $Y$ and $X$ in the exercise is related by "We throw $X$ dice and we note $Y$ the number of $1$ obtained on the dice". What I'm looking for is a mathematical expression of this sentence.
To avoid subtle misconception, I prefer a measure-theoretic construction of $Y$.