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
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 Exchange에서 Financial 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