I attached a pdf file with an exercise (calculate marginal distributions). I have issues understanding how to get the result in the discrete case (result should be correct though as I have it from a book).
Also I solved the exercise for the continuous case (out of curiosity) and got another result. Why is that?
The calculations are in the pdf file.
I would be very glad if someone could help.