I tried to multiply two independent binomials, each distributed with $n=2$ and probability p. So using the piecewise function for $P(XY),$ I have $$P(Z=z) = P(XY = xy) = \sum_{xy=z} z \cdot P(X=x, Y=y)$$ leading to $Z \sim \text {Binom}\ (4,p)$. But using the piecewise function to compute $E[XY]$...I got $4p^2.$ But if $Z \sim \text {Binom}\ (4,p),$ the expectation should be $4p.$ Could someone let me know where I went wrong?
Thank you in advance.
If $$X \sim \operatorname{Binomial}(2,p), \quad Y \sim \operatorname{Binomial}(2,p), \\ Z = XY, \quad W \sim \operatorname{Binomial}(4,p),$$ and $X$ and $Y$ are independent, then $$\begin{align*} \Pr[Z = 1] &= \Pr[XY = 1] \\ &= \Pr[(X = 1) \cap (Y = 1)] \\ &= \Pr[X = 1]\Pr[Y = 1] \\ &= \left(\binom{2}{1}p^1 (1-p)^{2-1}\right)^2 \\ &= 4p^2(1-p)^2. \end{align*}$$ However, $$\Pr[W = 1] = \binom{4}{1} p^1 (1-p)^{4-1} = 4p(1-p)^3 \ne \Pr[Z = 1],$$ demonstrating $W$ and $Z$ are not identically distributed.
In fact, it is the sum of independent and identically distributed binomial random variables that are also binomially distributed, not the product.