We can rewrite this as $Z=n-X-Y$. Substituting this into the joint probability mass function, we get:
$P(X=k, Y=m, Z=n-X-Y) = (1-p)^{k-1}p(1-p)^{m-1}p(1-p)^{n-X-Y-1}p$
Now, we want to find the conditional probability $P(X=k|X+Y+Z=n)$. Using the definition of
Show more…