The following model can be used to describe the number of women (mothers and daughters) in a given area. The number of mothers is a random variable $X \in Po (\lambda)$. Independently of the others, every mother gives birth to a $Po(\mu)$- distributed number of daughters. Let $Y$ be the total number of daughters and hence $Z=X+Y$ be the total number of women in the area.
Find the generating function of $Z$.
The answer, according to the book (An intermediate course in probability, Allan Gut) is : $$g_{Z}(t)=\exp(\lambda (t\cdot e^{\mu (t-1)}-1))$$ But this is not what i get, so i would like to know if its me or the book who made a mistake.
My approach was the following:
$Z=X+Y= X +\sum_{i=1}^{X}D_i $, where $D_i \sim Po (\mu)$.
$\begin{align}g_{Z}(t) & =g_{X+Y}(t) \\ & =g_{X}(t)\cdot g_{X}(g_{D_1}(t))\\ & =\exp(\lambda (t-1))\cdot \exp(\lambda (e^{\mu (t-1)}-1))\\ &=\exp(\lambda (e^{\mu (t-1)} + t -2))\end{align}$
I fail to see where I would have done any mistakes, so I would like to believe that the book has done a mistake. Any ideas? Thanks!!
Let $Y_k$ be the count of daughters for mother $k$ so $Y=\sum_{k=1}^X Y_k$ and $(Y_k)\overset{\text{iid}}\sim\mathcal{Po}(\mu)$
The generating function of a sum of random variables is equal to the product of their generating functions only when the random variables are independent.
$Y=\sum_{k=1}^X Y_k$ means that $Y$ is rather dependent on $X$, so the step $\mathsf G_{X+Y}(t)=\mathsf G_X(t)\,\mathsf G_Y(t)$ is invalid.
Instead, return to the definition of probability generation, and use the identical distribution of all $Y_k$, and the total independence of all $Y_k$ and $X$.
$\begin{align}\mathsf G_Z(t) &= \mathsf E(t^Z) \\ &=\mathsf E(\mathsf E(t^{X+\sum_{k=1}^X Y_k}\mid X)) \\ & =\mathsf E(\phantom{t^{X(1+Y_1)}}) \\ & =\mathsf G_X(\phantom{\mathsf G_{1+Y_1}(t)}) \\ & =\mathsf G_X(t\,\mathsf G_{Y_1}(t)) \\ & = \exp\Big(\lambda \big(t\exp(\mu (t-1))-1\big)\Big)\end{align}$