Suppose we have three random variables $X$, $Y$, and $Z$ that are drawn from a joint distribution $F(X,Y,Z)$ with joint density $f(X,Y,Z)$. I would like to write out the expected value of $X$ separated into three terms corresponding to when $X$ is largest, when $Y$ is largest, and when $Z$ is largest. Would the following be correct?
$$ E[X] = $$ $$\int_{-\infty}^{\infty}\int_{-\infty}^{X}\int_{-\infty}^{X}Xf(X,Y,Z)dZdYdX$$ $$+ \int_{-\infty}^{\infty}\int_{-\infty}^{Y}\int_{-\infty}^{Y}Xf(X,Y,Z)dZdXdY$$ $$+\int_{-\infty}^{\infty}\int_{-\infty}^{Z}\int_{-\infty}^{Z}Xf(X,Y,Z)dYdXdZ$$
If it is correct, could you suggest how I would go about proving it?
Assuming that the tri-variate joint density function $f_{X,Y,Z}(x,y,z)$ is integrable, integrate over both $x$ and $y$ (from $-\infty$ to $\infty$) to get the marginal density $f_X(x)$ of $X$. then the expectation of $X$ is $E(X) = \int_{-\infty}^\infty xf_X(x)\,dx.$