Suppose that $X$ is a discrete random variable and $Y$ is a continuous random variable. The conditional pdf of $X$ given $Y$ is $g_1(x|y)=\frac{(2y)^x}{x!} exp(-2y)$, $x=0,1,2,...$ (poisson dist. with $λ=2y$)
The conditional PDF of $Y$ given $X$ is $g_2(y|x)=\frac{5^{x+2}}{(x+1)!} y^{x+1}exp(-5y)$, y>0 (gamma dist. with $k=x+2$, $θ=\frac{1}{5}$
Q. Find the expected value of $x$ ($E(x)$)
I tried to use of "double expectation" concept to solve, but I realized that I still needed PDF of $x$.
How can I find $E(x)$?
You know the mean of a Poisson distribution so
$E[X \mid Y=y]=\lambda=2y$
Similarly you know the mean of a Gamma distribution so
Solving these simultaneous equations gives