Login
Login

Re: Covariance

Home 21090308 Forums Re: Covariance

#2010
Ryu
Member

Hello,

Here is one way to do it.

1.
You define some data source, e.g.,

2.
You need to read the data one by one and store them in an [tt:2d6h40qg]ArrayList[/tt:2d6h40qg]. Then convert them into a [tt:2d6h40qg]double[][/tt:2d6h40qg].
E.g.,

3.
Repeat the same for the other prices you are interested in.

4.
Use the cbind method to bind multiple columns into one matrix. E.g.,