On 26/05/2009 5:50 AM, a...@us.ibm.com wrote:
Full_Name: Amos Waterland
Version: 2.8.1
OS: Ubuntu Linux
Submission from: (NULL) (68.175.8.163)
I calculated the covariance for a small data set as follows:
X <- c(1,2,3,4)
Y <- c(3,3,4,3)
cov(X,Y)
[1] 0.167
But when doing the computation wit
Full_Name: Amos Waterland
Version: 2.8.1
OS: Ubuntu Linux
Submission from: (NULL) (68.175.8.163)
I calculated the covariance for a small data set as follows:
X <- c(1,2,3,4)
Y <- c(3,3,4,3)
cov(X,Y)
[1] 0.167
But when doing the computation with pencil and paper I get:
((-1.5)*(-0.25) + (-0