[R] covariance
Doran, Harold
HDoran at air.org
Fri Feb 17 20:51:16 CET 2012
Yes, the function is based on the idea that you have two random variables, X and Y and the covariance is then computed as
Cov(x,y) = E[(X - E(X)) (Y - E(Y))]
Where E[.] is the expectation operator.
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of Ali2006
> Sent: Friday, February 17, 2012 2:37 PM
> To: r-help at r-project.org
> Subject: [R] covariance
>
> can any one please tell me how can I Compute the covariance matrix of (Y)
> which is 5 variables .. without using a built-in function??????
>
>
> 2) how (cov) works ( I need to get the details for this function ???
>
> --
> View this message in context: http://r.789695.n4.nabble.com/covariance-
> tp4398242p4398242.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list