Closed markm812 closed 2 years ago
Hmmm I'm not entirely sure what's going on here. If you remove the try/except
block, is it throwing out an error?
Also can you have a look through your mu
to make sure that a return of 0.05 is actually feasible?
Lastly, I'd suggest looking at the weights. ef.portfolio_performance
is a relatively simple function that just dots the weights with mu
to find expected return, so it should be quite easy to diagnose where the problem is coming from.
Closing due to inactivity
Hello, While reading the documentation for mean-variance optimization, I discovered that
efficient_return()
is used to 'Calculate the 'Markowitz portfolio,' minimizing volatility for a given goal return.' However, I discovered that the expected return of the portfolio generated byportfolio_performance()
after performingefficient_return()
differs significantly from the targetted return I specified in the Markowitz portfolio optimization. Could you please assist me with this question?Code used:
Output: