Suppose \(f\) is a probability density function on \(\mathbf {R}\), and define for all \(x,y\in \mathbf {R}\), \[ g(x,y):= \begin {cases} 2f(x)f(y), & \text {if } x\leq y,\\ 0, & \text {otherwise.} \end {cases} \] (a) Prove that \(g\) is the probability density function of some random variable \((X,Y)\) which takes values in \(\mathbf {R}^2\).
(b) Are \(X\) and \(Y\) independent? Prove or disprove.