Portfolio Optimizer in Excel
HTML-код
- Опубликовано: 19 окт 2024
- This video demonstrates how to make a simple portfolio optimizer in Excel. The goal of the optimization exercise is to choose portfolio weights that maximize the portfolio's Sharpe ratio and is part of the module on portfolio dynamics in my Investments course at Oregon State University.
This was one of the best videos I have ever watched for this subject.
Thank you. Great explanation. It was very helpful.
Brilliant! Thank you!! Very clearly explained. 😎
Hi Jonathan, the portfolio optimizer is really a cool tool. Truly appreciate your time and efforts to share your professional insights indeed.
One small request if you don't mind, since you mentioned that there is a better way to figure out the Expected Return for each of the stocks given in the example, I'm wondering if you may take a bit of time to illustrate how to get the Expected Return.
Thanks & Best Wishes
Robin
A common way is to use CAPM to estimate a the expected return. I don't have a complete video but in this video I show you how to estimate the "beta" in CAPM. ruclips.net/video/ucKK528ApCw/видео.html Another way to get beta is just to grab it from Yahoo Finance or another website. After you've estimated the beta you use the CAPM formula.
Thank you sir for this very informative video. however I’m stuck on the contribution to variance. Could you elaborate more on why it could be
produced in this way ? thanks!
This is a very old reply but here is a link to a thread on analystforum that explains the textbook math. We're just taking the textbook math and doing it in excel via sum product.
Great video!! I have one question: Great video!! I have 12 assets and their prices of 29 different weeks. I want to do portfolio optimization by minimizing the Mean Absolute Deviation. I have calculated r, E[r] , E[r-E[r]] and |E[r-E[r]]| using Excel . What do I have to do next?
this is very helpful, thank u so muchhh!!
Thanks a lot.
You saved me 15% of my grade. Kuddos
Hi Jonathan, I was wondering if there was any efficient way to do a project like this on a far larger scale - i.e. a 50+ stock portfolio. Obviously you can do it the same way you did it, but it just seems redundant at some point.
wow~~~ amazing, can you leave the link how I can install the 'solve' function? I searched from your video list but a bit hard to find just by searching the title of your video.
ty, can u provide a download link for your excel file?
3:40 Why do u use the + symbol and not =, do u have a reason for that or is it just your own preference?
It’s just convenience.
@@jonathankalodimosphd Thank you for your reply!
want to ask for the formula for calculating weight and standard deviation of the portfolio what is the formula, what formula is written using the formula, not the excel formula ?
If you have lots more stocks, how can you calculate the variance in the variance-covariance matrix? How to choose the diagonal of the matrix and applied the "var.s" formula?
It's difficult in excel I believe. I use R programming for the same.
Could you use CAPM to calculate the expected return?
By definition, the CAPM assumes the market portfolio to be mean-variance efficient (has the max Sharpe ratio), so the optimal weights correspond to their actual market capitalizations (price x shares) and no optimization is necessary at all. ;)
can you use this model for more than 3 stocks?
Hi. I get negative variance in some cells. Is it ok? Also my variance is in tens and ones. Is it ok?
Variance cant be negative
Can you help me ?
After i press solve all the weights turn to 0 expect one who takes 100%
What am i doing wrong
You could be setting your objective to maximize the "expected return" rather than the "expected sharp ratio'. For instance, I am creating a portfolio of renewable energy companies and when I set the objective to maximize the return of the portfolio, solver has me throw all my cash into one security. If I set me objective to maximize the sharp ratio, "solver" uses all securities in the portfolio.
Another solution could be to change your restraints.
Hopefully this is helpful!
@@jackdragon9597 thank you so much
Is there another reason why this could happen? I also got a result from solver which gives 100% to one asset, but then i did some manual trial and error and found that shorting on one of the stocks increases the sharpe ratio. I did this by removing all the constraints, but the one which keeps the sum of weights to 1.
what if you have like 35 stocks in your portfolio? how do you do this with more than 3 stocks?
Conceptually it’s the same but the method doesn’t scale well. I’d look into programming language based optimizations based on matrix algebra.
@@jonathankalodimosphd for example, i can just look up portfolio optimization in R? also, what do you mean by it doesnt scale well
@@drek273 R would be a great choice. It doesn’t scale well because there are a lot of manual inputs. Also matrix operations can calculate things much more efficiently from a computational standpoint.
@@jonathankalodimosphd ok thank you
I have 1,250 ETFs I need help to know the optimal portfolios, I got these from the New York Stock Exchange, I need help, I am using Cumulative Abnormal Return and Behavioral ETF
ur not outperforming anything with 1,250 ETFs m8
@@OfficialCANVAS I have finished my study.It is titled “ Behavioral Portfolio Optimization using Behavioral Etfs” I am proud of this study because using these behavioral criterias, I was able to beat the S and P 500 markets and New York Stock Exchange Market. Out of 1245 Etfs only 245 Etfs showed Behavioral patterns. I have used these etfs for my testing years 2019 and 2020. After 1 year of work, I was able to finish this.
can you show how you calculate the HPR for each company ?
(End price+Dividends)/Beginning Price.
How can we get historical data of returns downloaded as an excel file?
Chrome has a table kopier extension you can copy to excel
my solver keeps giving me an error message
Have you ever used portfolio optimization for real? How was your experience ?
What does it mean when the contribution to variance is 0 lol