Problem from actuarial Exam P:
Let $X$ and $Y$ denote the values of two stocks at the end of a five-year period. $X$ is uniformly distributed on the interval $(0,12)$. Given $X=x$, $Y$ is uniformly distributed on the interval $(0,x)$. Determine $\operatorname{Cov}(X,Y)$ according to this model.
I know that $\operatorname{Cov}(X,Y)=E[XY]-E[X]E[Y]$, and $E[X]=6$.
So ultimately my question is that when I am finding $E[Y]$, I don't understand how $f(x,y)$ becomes $1/12x$. Is it $1/12 \cdot 1/x$? If correct, why?
It's because $f(x,y)= f(y|x) f(x)$. But $f(y|x)= \frac{1}{x}$ and $f(x)=\frac{1}{12}$.
Make sure you understand this! You'll need it for P, and you'll need it again for C.
Note: This seems the wrong forum for this question. You should ask it over at Actuarial Outpost.