You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My data is the constituents of the S&P500 up until YE 2023.
here is how it turns out:
Basically the shape ratios end up very close together (0.69 - 0.71 range) so it doesn't really visually represent the whole exercise very well. Has anyone else had this issue?
Also I would suggest a potential edit for the ReadTheDocs - it doesn't specify which modules you have to import at the start, it would be useful for people less used to Python or coding in general to have these written in the example. I had to figure out that it was matplotlib.plt and plotting myself.
The text was updated successfully, but these errors were encountered:
I would also like to amend the axis ranges - the expected return of the optimised portfolio is at the bottom of the frontier, preferably it would be in the middle, currently everything gets bunched in the bottom right corner.
In addition, I would like to plot the tangency line from the risk free rate (5.4% in my case) to the max shapre portfolio. Is there a way of doing this?
Have you considered increasing the number of samples for your random portfolios? One hundred seems rather small. Typically, in the Monte Carlo simulation approach, starting with 100,000 samples is advisable. Hypothetically, the higher the number, the closer you get to your target weight allocation.
I am following the cookbook guide to plot the efficient frontier and optimal portfolio and the random portfolios end up becoming very bunched.
My data is the constituents of the S&P500 up until YE 2023.
here is how it turns out:
Basically the shape ratios end up very close together (0.69 - 0.71 range) so it doesn't really visually represent the whole exercise very well. Has anyone else had this issue?
Also I would suggest a potential edit for the ReadTheDocs - it doesn't specify which modules you have to import at the start, it would be useful for people less used to Python or coding in general to have these written in the example. I had to figure out that it was matplotlib.plt and plotting myself.
The text was updated successfully, but these errors were encountered: