I'm generating some variables in R.
One variable: X is normally distributed with mean 0 and variance 1 Second variable: V is normally distributed with mean 0 and variance 1
Third: I'm defining a new variable Z = X + V
I know that the correlation coefficient between X and Z is 1. But, what is the covariance between X and Z? Someone told me that it should be 1 but I don't understand how.
Assuming that $X$ and $V$ are independent we have $Cov(X,Z)=EXZ-EXEZ=E(X(X+V))=EX^{2}-EXEV=1$.