Consider for $c\in \mathbb R $ the function $f:\mathbb R→\mathbb R$ is defined by
$$f(t)=\begin{cases} c(t-1), & 1 \leq t <2\\ c, & 2 \leq t <5 \\ \frac{-c}{2}(t-7), & 5 \leq t <7 \\ 0, & \text{otherwise} \end{cases} $$
By choosing the appropriate $c$, $f$ is a density function. Let $X$ a random variable, it's density function is $f$.
Consider the random variable $Y=X^2+2$. How do I calculate the covariance $\text{Cov}(X,Y)$ and correlation coefficients $ρ_{XY}$? Decide whether the random variables $X$ and $Y$ are uncorrelated or independent.
I already calculated $c=\frac{2}{9}$ which was previous part of this example, but I dont know how to calculate covariance and correlation. $\text{Cov}(X,Y)=\text{Cov}(X,X^2+2)$ but what after this?
\sigma_y=\sqrt{E\left[X^2+2\right]-(E\left[X^2+2\right] )^2 } $
– Ana Matijanovic Dec 30 '16 at 16:12