How can calculate this formula?

I have a matrix of price time series (p1,p2...pn) and their weights w(1,n). How can calculate this formula?

回答 (1 件)

Matt J
Matt J 2015 年 11 月 5 日
編集済み: Matt J 2015 年 11 月 5 日

1 投票

v = w(:) .* sigma(:);
sigmaIndex = v.' * rho * v;

3 件のコメント

fede
fede 2015 年 11 月 5 日
I don't understand
Matt J
Matt J 2015 年 11 月 5 日
I had a typo. The 2nd line should be
sigmaIndex = v.' * rho * v;
If that wasn't the misunderstanding, it's unclear what is. All of the variables are from notation given by you in your post.
Torsten
Torsten 2015 年 11 月 6 日
編集済み: Torsten 2015 年 11 月 6 日
Note that the diagonal of the matrix rho has to be set to 1.
Best wishes
Torsten.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFinancial Toolbox についてさらに検索

質問済み:

2015 年 11 月 5 日

編集済み:

2015 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by