Good evening everybody!
I am totally puzzled about how to solve this problem. We are given the random variables $X$ and $Y$, both of which are independent and uniformly distributed on $[0,1]$. Then we are asked to compute the correlation between $X$ and $Z = (X+Y)^2$. I have been looking for similar problems in a couple of books, but to no avail. I could solve the problem by the properties of the variance and covariance, if $Z = X^2 + Y^2$. Any input would be greatly appreciated.
This might make the problem a bit easier:
$Z=(X+Y)^2 = X^2 + Y^2 +2XY$
$\rho(X,Z)=\frac{Cov(X,Z)}{\sigma_X \sigma_Z}$
$Cov(X,Z)=E(XZ)-E(X)E(Z)$
$Cov(X,Z)=Cov(X,X^2+Y^2+2XY)$
Covariance is bilinear:
$Cov(X,X^2+Y^2+2XY)=Cov(X,X^2)+Cov(X,Y^2)+Cov(X,2XY)$
For independent variables $E(X^a Y^b)=E(X^a)E(Y^b)$. A bit of work with this and the identity for covaraince shown above provides:
$Cov(X,Y^2)=0$
$Cov(X,2XY)=2E(Y)Var(X)$
You have:
$Cov(X,X^2+Y^2+2XY)=Cov(X,X^2)+2E(Y)Var(X)$
$=E(X^3)-E(X^2)E(X)+2E(Y)Var(X)$
To get the correlation you will also need the standard deviation of $X$ and $Z$. You can use a nice property about variance of sums of random variables. The variance of a sum is the sum of the covariance of every combination in the sum.
$Var(Z)=Var(X^2 + Y^2 +2XY)= Cov(X^2,X^2) + Cov(X^2,Y^2) +Cov(X^2,2XY) + Cov(Y^2,X^2) + Cov(Y^2,Y^2) + Cov(Y^2,2XY)+ Cov(2XY,X^2) + Cov(2XY,Y^2) + Cov(2XY,2XY)$
Using some results above:
$=Var(X^2)+ Var(Y^2) + Var(2XY) + 2E(Y)Cov(X^2,X) + 2E(X)Cov(Y^2,Y)$
The only thing funny in here is $Var(2XY)=4(E(X^2)E(Y^2)-E(X)^2E(Y)^2)$