Skip to content
Prev 392714 / 398502 Next

How to find the variance-covariance matrix of a random-vector using R

?var

E.g.,
[1] 100000      5
[,1]       [,2]       [,3]       [,4]      [,5]
[1,] 11.9666055  1.0603876  0.9627672  1.0371084  0.983217
[2,]  1.0603876 13.0774518  1.0228972  0.9261868  1.059799
[3,]  0.9627672  1.0228972 13.9296063  1.0444007  1.051089
[4,]  1.0371084  0.9261868  1.0444007 15.1556199  1.052573
[5,]  0.9832170  1.0597985  1.0510888  1.0525734 15.965351

-Bill
On Tue, Sep 20, 2022 at 4:24 AM Sun, John <jsun20 at albany.edu> wrote:

            

  
  
Message-ID: <CAHqSRuQxT3PDSZSXNYS6U0eu4box2uo9MaBsgm-rUyBPk02+5A@mail.gmail.com>
In-Reply-To: <BL0PR04MB4563DA1D963568745F5F2416B94D9@BL0PR04MB4563.namprd04.prod.outlook.com>