Challenge: Computing GMV Portfolio
In the previous chapter, we've discovered, how to compute portfolios with minimal risk and with the best ratio of expected return and corresponding risk.
Now, you are going to compute them on your own.
First of all, in this chapter, you are going to compute GMV portfolio, which provides the lowest risk.
Task
Swipe to start coding
In this task you need to:
- Choose right shape for array of weights.
- Find index of necessary weights in the right way.
- Choose optimal weights and corresponding volatility.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4