Could you please give me some hints for the exercise below?
Suppose we toss a coin once and let $p$ be the probability of heads. Let $X$ denote the number of heads and let $Y$ denote the number of tails. I have to first show that
$X$ and $Y$ are dependent
and afterwards if we let $N\sim $Poisson $(\lambda)$ and toss the coin $N$ times, that $X$ and $Y$ are independent.
The first part follows from the fact that two events are disjoint if we toss the coin just once. For the second part, I can see that the vector $(X,Y)$ follows the multinomial distribution with paramemeters $N$, $p$, and $(1-p)$. Therefore:
$$P\left( X=x,Y=y,N=n \right)=\binom{n}{x\ \ y } p^x (1-p)^y \times \frac { e^{-\lambda}\lambda^n}{n!}$$
for $x+y=n$ and $x,y \geq 0$
I understand that the marginal distributions are binomial but I do not immediately see how I could proceed.
I would appreciate some advice here. Thank you.