Info

此问题已关闭。 请重新打开它进行编辑或回答。

Create a combination of stocks to test the cointegration from a database

1 次查看(过去 30 天)
If I have the following matrix composed from name of stocks and their daily price time series
IBM JPM C
p11 p12 p13
p21 p22 p23
....................
pn1 pn2 pn3
and I want to obtain all possible linear combination (eg C-JPM, JPM-IBM, C-IBM) and test for each couple the cointegration test (adf), to obatin:
C-JPM=result test
JPM-IBM=result test
C-IBM=result test

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by