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.
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.
This sounds remarkably like homework. You can address your own issue using the built-in help system and R's capability to allow you to view source code for functions, but we can't help you do your assignments. Sarah On Fri, Feb 17, 2012 at 2:36 PM, Ali2006 <nasser-d2006 at hotmail.com> wrote:> 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 ??? >-- Sarah Goslee http://www.functionaldiversity.org
On Feb 17, 2012, at 2:36 PM, Ali2006 wrote:> 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 ???http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf>-- David Winsemius, MD West Hartford, CT
Maybe Matching Threads
- compiler-rt uses non-existent macro: __SOFT_FP__
- how to use R for Beta Negative Binomial
- is it safe to replace every "<-" by "=" in R code?
- bwplot change whiskers position to percentile 5 and P95
- variadic functions on X86_64 should (conditionally) save XMM regs even if -no-implicit-float