Suppose we have .
Denote as .
Then we must have
If the two random variables and are not independent, we cannot write them as the product of and distributions. We must be given the joint pdf .
In the case of and being independent, then we can write the joint distribution as a product of their pdfs.
Refer to Marginal Distributions