From the
marginal density,
EX=12∫01x2(1−x)2dx=52,EY=52.
The mixed
moment is
E[XY]=∫01∫01−x24x2y2dydx=8∫01x2(1−x)3dx=152.
Thus the
covariance is
Cov(X,Y)=152−254=−752.
The negative
sign is consistent with the
support constraint:
a large value of one variable
leaves a smaller available range for the other.
New to topics? Read the docs here!