Given two continuous random variables X and Y, use Theorem 4 to express E(X) in terms of
(a) the joint density of X and Y; (b) the marginal density of X.
Theorem 4
If X and Y are discrete random variables and f(x, y) is the value of their joint probability distribution at (x, y), the expected value of g(X, Y) is
![](https://test.transtutors.com/qimg/b89f0541-07b2-41b2-9af1-b55bf31632ca.png)
Correspondingly, if X and Y are continuous random variables and f(x, y) is the value of their joint probability density at (x, y), the expected value of g(X, Y) is
![](https://test.transtutors.com/qimg/051cded2-7748-4819-a0a8-5e2cfb460ab1.png)