Finding combinations of 10 times series from a set of 13

1 回表示 (過去 30 日間)
Andrew Burns
Andrew Burns 2016 年 12 月 28 日
回答済み: Walter Roberson 2016 年 12 月 28 日
Hi, I'm trying to create an investment portfolio of 10 holdings from a set of 13 stocks. I calculated that there are 120 possible combinations. I want to write a script that will loop thru the iterations of all possible combinations of 10 out of a choice of 13 stocks. I was thinking I could do it sequentially at first - first create an array of the 120 possible columns of 10 holdings (data is row = date, column = stock's return). In other words, the array created initially has the list of columns of 10, from the 1st to the 120th. Then I use that array as the input in the next loop where I do the selection based on the financial metrics - sharpe ratio, etc.

採用された回答

Walter Roberson
Walter Roberson 2016 年 12 月 28 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFinancial Data Analytics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by