I have conflicting answers with different methods. Here is the question:
The number of defects per yard in a certain fabric, Y , was known to have a Poisson distribution with parameter $\lambda$. The parameter $\lambda$ was assumed to be a random variable with a density function given by:
$f (\lambda) = e^{−\lambda}, \text{for } \lambda≥0,$
Find the expected number of defects per yard by first finding the conditional expectation of Y for given $\lambda$.
Since $\lambda$ is the expected value of any random variable with a poisson distribution, it follows that $E(Y | \Lambda = \lambda) = \lambda$. Since $Y$ has a poisson distribution, it follows that $E(Y) = E(\lambda) = \lambda$
We have a theorem which states that $E(E(Y | \Lambda = \lambda)) = E(Y).$
$$E(Y) = E(\Lambda) = \int^\infty_0E(Y | \Lambda = \lambda) e^{-\lambda}dλ$$ $$E(Y) = E(\Lambda) = \int^\infty_0\lambda e^{-\lambda}dλ$$ $$E(Y) = E(\Lambda) = 1$$
Thus, $E(Y) = 1$
Find the variance of Y.
It follows that the variance of any random variable with a poisson distribution is $\lambda$.
Thus,$V(Y) = 1$
Using the theorem below, I get the following answer instead $V(Y) = 2$
$V(Y_1)=E[V(Y_1|Y_2)] +V[E(Y_1|Y_2)].$
Applying it to our case, we have
$V(Y)=E[V(Y_1|\Lambda)] +V[E(Y_1|\Lambda)].$
$V(Y)=E[\Lambda] +V[\Lambda].$
$V(Y) = 2$
I am leaning more towards the second answer
1) You stated the theorem, but you didn't use it. It goes like this: $$E[Y] = E\{E[Y|\lambda]\} = E\{\lambda\} = 1.$$
2) \begin{align*} Var[Y] &= Var\{E[Y|\lambda]\}+E\{Var[Y|\lambda]\}\\ &=Var\{\lambda\}+E\{\lambda\}\\ &=1+1\\ &=2 \end{align*} I forgot the name of this property, but this is the one you should use. $Y$ by itself does not necessarily follow a Poisson distribution with rate $\lambda$. However $Y|\lambda$ does, since it was given.