Given the following Joint PDF
\begin{equation*} f(x,y) = \left\{ \begin{array}{ll} c & \quad -1< x \leq 1 ; \lvert x \rvert <y<1 \\ 0 & otherwise \end{array} \right. \end{equation*} $1.$ Find the value of $c$.
$2.$ Find marginal PDF $f_Y(y)$ of $y$
$3.$ Find conditional PDF of $X$ given $Y$
$4.$ Find covriance of $X$ and $Y$
$5.$ Are $X$ and $Y$ independent?
My attemept:
$part1$
I have found value of $c$ to be $c=1$
$Part2$
Marginal PDF of $Y$ is also found to be: $ f_Y(y) = \int_{-1}^1(1)dx= 2$
$Part3$
The conditional PDF is also found to be $f(x|y)= f(x,y)/f_Y(y)=1/2$
$Part4$
The covariance is given by:
$Cov(x,y)= E(XY)-E(X)E(Y)$
I don't know how to proceed further.
$Part5$
$X$ and $Y$ are independent when:
$P(X=x,Y=y)=P(X=x)P(Y=y)$ (Rest I don't know how to proceed further)
Please Help me in parts $4$ and $5$. How do I solve them
Hints:
For part 2: $f(y) =\int\limits_{-\infty}^\infty f(x,y)\, dx$ which is $0$ when $y<0$ or $y\ge 1$ and is $\int\limits_{-y}^y c\, dx$ when $0 < y < 1$. It is not $2$
For part 3: $f(x \mid y)= \frac{f(x,y)}{f(y)}$ as you have said, though not $\frac12$. Note it is $0$ when $|x| \ge y$ and $0<y <1$, and is undefined when $y<0$ or $y\ge 1$
For part 4: $E(XY) = \int\limits_{-\infty}^\infty \int\limits_{-\infty}^\infty x\,y\,f(x,y) \, dx\, dy = \int\limits_0^1 \int\limits_{-y}^y x\,y\,c \, dx\, dy$ while $E(X) = \int\limits_{-\infty}^\infty \int\limits_{-\infty}^\infty x\,f(x,y) \, dx\, dy = \int\limits_0^1 \int\limits_{-y}^y x\,c \, dx\, dy$ and $E(Y) = \int\limits_{-\infty}^\infty \int\limits_{-\infty}^\infty y\,f(x,y) \, dx\, dy = \int\limits_0^1 \int\limits_{-y}^y y\,c \, dx\, dy$
For part 5: Is $f(x \mid y) = f(x)$ for all $x,y$ where they can be compared? Is the conditional support of $X$ independent of the value of $Y$?