How can calculate this formula?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matrix of price time series (p1,p2...pn) and their weights w(1,n). How can calculate this formula?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151453/image.png)
0 Commenti
Risposte (1)
Matt J
il 5 Nov 2015
Modificato: Matt J
il 5 Nov 2015
v = w(:) .* sigma(:);
sigmaIndex = v.' * rho * v;
3 Commenti
Matt J
il 5 Nov 2015
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.
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!