my task is this:
Be $ X $ and $ Z $ independent with the same distribution and $ Y :=X-Z . $ Calculate $ \operatorname{cov}(X, Y) $ and $ \operatorname{corr}(X, Y) . $
My Problem is the minus in $X-Z$ because than everything I try doesn't work. Lets do $ \operatorname{cov}(X, Y) $ first
$ \operatorname{cov}(X, Y) = \operatorname{cov}(X, X-Z) \operatorname{cov}(X, X + (-)Z) = \operatorname{cov}(X,X) + \operatorname{cov}(X,(-1)Z) $
Now I have the first Problem. Normal I would use the in dependency between X and Z, because than would be $\operatorname{cov}(X,Z) = 0$, but this is not working with the minus, or am I wrong? If yes a proof would be nice.
Now lets do $\operatorname{corr}(X, Y)$:
$ \operatorname{corr}(X, Y) = \frac{\operatorname{cov}(X, Y)}{\sqrt{\mathbb{V} (X) \mathbb{V} (Y)}} = ?$
Therefor we need to calculate the $\mathbb{V} (Y)$ first. So
$ \operatorname{cov}(X-Z) = \operatorname{cov}(X+(-1)Z) = \mathbb{E}\left[(X+(-1)Z)^{2}\right]-(\mathbb{E}[X+(-1)Z])^{2} = $$ \mathbb{E}[X^{2}]+2 \mathbb{E}[X\cdot{}(-1)Z]+\mathbb{E}[{(-Z]}^{2}]-(\mathbb{E}[X]^{2}+2 \mathbb{E}[X] \mathbb{E}[-Z]+\mathbb{E}[-Z]^{2}) = $$ \mathbb{E}[X^{2}]- \mathbb{E}[X]^{2} + \mathbb{E}[{(-Z]}^{2} - \mathbb{E}[-Z]^{2} + \mathbb{E}[X\cdot{}(-1)Z] - \mathbb{E}[X] \mathbb{E}[-Z] = \mathbb{E} (X) + \mathbb{E}[{(-Z]}^{2} - \mathbb{E}[-Z]^{2} + \mathbb{E}[X\cdot{}(-1)Z] - \mathbb{E}[X] \mathbb{E}[-Z] $
And we have this minus again. cant use any definition .
Could you help me to find the Problem?
$\newcommand{\cov}{\operatorname{cov}}\newcommand{\E}{\Bbb{E}}$Hint: Note that $\cov(X,-Z)=-\cov(X,Z)$ (also, $\E[X\cdot(-1)Z]=-\E[XZ]$ and $\E[-Z]=-\E[Z]$).
In general, you can pull constant factors outside expectation and covariance.