script.R
1
2
3
4
5
6
7
# compute the variance of X
# compute the covariance of X and Y
# compute the correlation between X and Y
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
R Console
1
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX