How can calculate this formula?

1 回表示 (過去 30 日間)
fede
fede 2015 年 11 月 5 日
編集済み: Torsten 2015 年 11 月 6 日
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 日
v = w(:) .* sigma(:);
sigmaIndex = v.' * rho * v;
  3 件のコメント
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.

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by