$\textbf{This is a self-study problem that I am interested in knowing the correct answer.}$ $\textbf{However I do not trust my computations and I need help.}$
$Y$ is Uniform(0, 2); $Z$ is Uniform(1, 3); $C$ is $\min(Y,Z)$ and $D$ is $\max(Y,Z).$ Correlation between $C$ and $D?$
I start with the cdf of the min that $$P(C > c) = 1 - F_C(c) = P(Y > c, Z > c)= \begin{cases} \left( \frac{2 - c}{2}\right), & 0 \le c \le 1 \\\\ \left( \frac{2 - c}{2}\right) \left(\frac{3-c}{2}\right), & \ 1 \le c < 2 \end{cases} $$ I then use the 1 minus cdf formula to find the expectation and variance of the min: $C$, $$E(C)= \int_0^1 (2-c)/2 \ du + \int_1^2 ((2-c)(3-c)/4)\ du = (3/4) + (5/24)= 23/24$$ $$E(C^2) = \int_0^1 2u (2-c)/(2)\ du + \int_1^2 2u((2-c)(3-c)/(4)\ du = 2/3 + (13/24) = 29/24$$
$$Var(C) = E(C^2) - (E(C))^2 = (29/24) - (23/24)^2 = 167/576$$
Next, I find the expectation and variance of max: $D$, using the the trick that $C + D = Y + Z$, so that the expectation is $$E(D)= E(Y) + E(Z)-E(C) = 1 + 2 - (23/24) = 49/24$$ (NOTE: Y and Z are uniform each with mean 1 and 2 resp.) $$ Var(D) = Var((Y + Z)-C)= Var(Y + Z) - Var(C) = 2(1/6) - (167/576) = 25/576$$ (NOTE: Y and Z are uniform each with variance 1/6).
The covariance: $$ Cov(C,D) =E(YZ) -E(C) E (D) = E(Y) E (Z) - E(C)E(D)= 2- (23/24)\cdot (49/24) = (25/576)$$
The Correlation: $$Cov(C,D)/(\sigma_C \cdot \sigma_D) = (25/576)/(0.53845*0.20833)= 0.38691$$
Thanks in advance!