Tagged Questions
1
vote
0answers
253 views
portfolio optimization with a loop
I am attempting to minimize the variance of a 3 stock portfolio using optimization within a loop. What I have done is calculated the stock returns and cov matrix from dates 1980-01-01 to 1989-12-31 ...
3
votes
2answers
605 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 ...