On this problem, X and Y have joint pdf
$$f(x,y) = \begin{cases} \frac{2y}{x^2}e^{-x} & ,0 < y < x<+ \infty \\ 0 & , \text{otherwise}\end{cases}$$
So I'm supposed to find $\mathbb{E}(X)$ in order to find the covariance
$\mathbb{E}(Y)$ kinda makes intuitive sense, as you integrate $y$ from $0$ to $x$ and $x$ from $0$ to $\infty$, but I'm confused about what the bounds for the double integral of $\mathbb{E}(X)$ would be.
Apparently the answer is $1$.
Thanks!
To find the $E(x)$, we just need to find the probability distribution of $x$. Now you know the joint probability of $x$ and $y$, so you can get the probability distribution of $x$:$f(x)=\int_{-\infty}^{\infty}\!f(x,y)\,\mathrm{d}x=\int_{0}^{x} \dfrac{{2y}}{x^2} e^{-x}dy=\dfrac{{e^{-x}}}{x^2}\int_{0}^{x}\!y^2\,\mathrm{d}y=e^{-x}$. Then $E(x)=\int_{0}^{\infty}xe^{-x}dx=\int_{0}^{\infty}xd{-e^{-x}}=\int_{0}^{\infty}e^{-x}dx=\int_{0}^{\infty}d{-e^{-x}}=1$!