1
vote
1answer
307 views

VaR Calculation - Covariance matrix is not positive semidefinite

This is a basic question. I have three assets, equally weighted, and all the mutual covariances are -1. Then, the covariance matrix looks like - ...
2
votes
1answer
180 views

Combining covariances?

Consider an economy with assets with return processes $A$, $B$, $C$, $D$. Consider a weighted index with return process $I=aA + bB + cC + dD$ where $a,b,c,d$ are coefficients, and $a+b+c+d = 1$. ...
3
votes
2answers
747 views

Covariance for arbitrarily large portfolios

I am implementing a method in Java to calculate the variance, covariance, and value at risk for a portfolio, which should be flexible for use with any number of assets in a portfolio. I am struggling ...