Displaying 2 results from an estimated 2 matches for "variates_".
Did you mean:
variates
2024 Oct 04
1
apply
...w> ?????:
> Suppose I have two vectors, x and y. Is there a way
> to do the covariance matrix with ?apply?.
There is no covariance matrix for just two samples (vectors) 'x' and
'y'. You can only get one covariance value for these.
If you had a pair of vectors of _random variates_, the situation would
be different, but those are more abstract mathematical concepts. You
would need to sample every random variate, producing two matrices 'x'
and 'y' in order to calculate a covariance matrix for them.
--
Best regards,
Ivan
2024 Oct 04
3
apply
OK. Thanks to all. Suppose I have two vectors, x and y. Is there a way
to do the covariance matrix with ?apply?. The matrix I need really
contains the deviation products divided by the degrees of freedom (n-1).
That is, the elements
(1,1), (1,2),...,(1,n)
(2,1), (2,2),...., (2,n)
....
(n,1),(n,2),...,(n,n).
> Hello,
>
> This doesn't make sense, if you have only one vector you