Portfolio Optimization in Excel: Step by Step Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 142

  • @RyanOConnellCFA
    @RyanOConnellCFA  Год назад +3

    💾 Purchase the file created in this video here: ryanoconnellfinance.com/product/investment-portfolio-optimizer-excel-workbook/

  • @abhishekbal399
    @abhishekbal399 5 месяцев назад +12

    Being a fellow CFA and an FRM charterholder I can attest to the beauty of the presentation. Absolutely fantastic. Blown away …. Ryan

    • @RyanOConnellCFA
      @RyanOConnellCFA  5 месяцев назад +1

      Thank you so much Abhishek, I appreciate that! Its awesome to see someone who makes similar videos, keep it up!

  • @lottis1675
    @lottis1675 Год назад +17

    My grueling 2-months long portfolio theory course in fifteen minutes. I appreaciate it.

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      Haha it is my pleasure! This is a great compliment

  • @DutchCedarConsulting
    @DutchCedarConsulting День назад

    Ever since when I learned this in business school I wanted to apply it to my portfolio. Definitely appreciate the walkthrough. For some reason when I get different annual return numbers when I calculate from the log normal daily returns. Will have to dig in.

  • @njgirl1122
    @njgirl1122 2 месяца назад +3

    Thank you for sharing this Video. Very easy to understand. Your teaching style is far better than that of my Finance professor. Thanks a Million!

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад

      Its my pleasure and I'm glad to hear you found it helpful!

  • @michaelcruz487
    @michaelcruz487 8 месяцев назад +2

    I've watched about five of this type of video, and yours is excellent...by far the best (and easiest to understand) I watched .thanks

    • @RyanOConnellCFA
      @RyanOConnellCFA  7 месяцев назад

      Glad it was helpful! It is my pleasure and I'm happy to hear 😀

  • @mitchellwalsh8235
    @mitchellwalsh8235 Год назад +4

    Your videos are really helping me get through the back end of my finance degree. Thanks for the great content and high quality videos!

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      I really appreciate it, and it is my pleasure! Good luck finishing up your degree 💪

  • @tusharmathur9128
    @tusharmathur9128 Год назад +2

    Explained CFAL3 Asset allocation chapter in one video! Great!

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      Awesome, I remember that being a good section!

  • @lukedias5233
    @lukedias5233 Месяц назад

    Thanks, your video helped a lot for a Finance Assignment

  • @leungwaihong1548
    @leungwaihong1548 4 месяца назад

    great video. u teach the portfolio optimisation much better than my university lecturers. They normally just teach us the stupid method to calculate the optimized ratio for 2 assets only.

  • @williama.rivera9414
    @williama.rivera9414 Год назад +2

    Excellent information and presentation. Everyday one can learn something new.

  • @maxwellelias5244
    @maxwellelias5244 Месяц назад +1

    Perfect presentation! Congratulations!

  • @horacioballinas5410
    @horacioballinas5410 10 месяцев назад +3

    Great video! The weakness of this and any other model is that you are just looking at the past performance which works great in a stable economy. However, if we are at the end of an economic cycle, as we seem to be in January of 2024, you can argue the economy is not as stable as it was in the past and any spark could generate a massive move up or down rendering your calculations worthless. What about adding a signal that uses the standard deviation to sell your position? Say, if the daily movement moves farther than 6 sigma (six standard deviations) you'd be capturing 99.9% of events and help you detect anomalies in stock movement. You could than program your brokerage account to automatically sell your position if the price goes down by more than six sigma. Just an idea...

    • @RyanOConnellCFA
      @RyanOConnellCFA  10 месяцев назад +3

      You're absolutely right that relying solely on past performance for portfolio optimization has its limitations, especially in uncertain economic times. Incorporating a risk management signal based on standard deviation, like the six-sigma rule you suggested, is an interesting approach. You're correct that this strategy can help in identifying and reacting to significant market anomalies. However, it's important to consider the rarity of six-sigma events and the potential for false signals or missed opportunities, so balancing this approach with other risk assessment measures could lead to a better strategy. Perhaps 3 or 4 sigma would be more appropriate

  • @jimgrant1776
    @jimgrant1776 8 месяцев назад

    Ryan - Fine demo and explanation or the model.
    However, you will note that the solutions are pretty much obvious. They are: Maximize the allocation to the assets that have the highest expected returns and minimize the others, both based on the minimums and maximums pre-set by the user.

    • @RyanOConnellCFA
      @RyanOConnellCFA  8 месяцев назад +2

      You are missing the component of standard deviation and correlation. If a high returning asset has an extremely high standard deviation and/or is highly correlated with other assets, the risk will outweigh the return and it will not be allocated a high percentage

  • @ecordionite1395
    @ecordionite1395 6 месяцев назад

    Very clear and concise explanation! Thank you so much!!

  • @mm0dk0ur
    @mm0dk0ur 8 месяцев назад +1

    Super video, as usual, many thanks 👏👏

  • @jeanetteagathajohan157
    @jeanetteagathajohan157 Год назад +1

    youre my savior

  • @jacobpatterson9440
    @jacobpatterson9440 Год назад +1

    Great video, Ryan. Thanks for the information!

  • @michaellorke1980
    @michaellorke1980 10 дней назад

    Hey, really helpful video. Is there a "easy" way to include dividends in the analysis? I mean, the adj close accounts for dividends in the companies valuations, but it does not reflect that we, as investors, are actually paid those dividends. Makes it kind of hard to compare (and optimize) stocks like REITs etc

  • @mohamedmadkour6926
    @mohamedmadkour6926 7 месяцев назад +1

    Many thanks for the super video as usual.

  • @ChristineKhamaMaphorisa-bi1zm
    @ChristineKhamaMaphorisa-bi1zm Год назад +1

    Thank you Ryan

  • @JohnA-y3g
    @JohnA-y3g 2 месяца назад +1

    Thank you.

  • @antonzharkov6036
    @antonzharkov6036 Год назад +1

    great video! thank you

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      Much appreciated and thank you for the feedback!

  • @prasheelgupta8364
    @prasheelgupta8364 6 месяцев назад +1

    can you put the raw data used in this video for download. so that we can follow the steps manually and can learn. Thanks for amazing video.

    • @RyanOConnellCFA
      @RyanOConnellCFA  6 месяцев назад

      It is my pleasure! That would be tough for me due to the way my site is set up, I only have complete files so I would need to change some things on my site to do a raw data file like that. You could get the data you need following this tutorial: ruclips.net/video/ZgIgoTlSQU4/видео.html
      Or you could do it the old fashion way by just going to the pages on Yahoo Finances website. It should only take a few minutes to get all the data the way I have it in this video

  • @aayushjha1811
    @aayushjha1811 Месяц назад +1

    Very informative, concise and engaging as always. Just a doubt- the calculations done in all these videos are done following which theory ? Is is MPT ?

  • @muhamadfarhan744
    @muhamadfarhan744 Год назад +1

    Hi, Ryan thank for this great tutorial. Can you show us how to backtest this portfolio?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      That is a good idea, and I can add this to my list for future video ideas

    • @hermemory5297
      @hermemory5297 Год назад +1

      @@RyanOConnellCFA Can I do this but in weekly data or I must convert it into annual data like in the video?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      @@hermemory5297 You could definitely do this with weekly data and then use weekly returns and standard deviation for each stock. You could also convert the weekly data to annual similar to how I did with the daily data. But with weekly, where I used 252 (trading days), you'd instead use 52 (weeks)

  • @evantandios
    @evantandios Год назад +2

    Hey Ryan, Great informative video as usual! is it possible for you to make an auto-update stock screening excel sheet with auto-update keystats from yahoofinance (BVPS, EPS, etc)

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      Great suggestion! I'll look into building a sheet like this

  • @jboy1757
    @jboy1757 9 месяцев назад +1

    Good Stuff!! Some of the ETFs are fairly new, like within the last 9 mths. So, instead of multiplying 252 would I multiply by the number of trading days in 9 mths?

    • @RyanOConnellCFA
      @RyanOConnellCFA  9 месяцев назад

      Thank you! No, I would still use 252 because annual return = daily average return * 252 regardless of the sample size of data used to determine daily average return

  • @chrisyangg
    @chrisyangg 5 месяцев назад

    Hi, thanks for the guide, its really helpful! may i know why you did not consider correlation coefficient in determining the overall portfolio standard deviation? given that the generally taught concept of portfolio standard deviation argues that diversification lowers the portfolio risk if the assets have some form of negative correlation to each other

  • @octavearmand4679
    @octavearmand4679 5 месяцев назад

    hello,
    can you explain quickly why we use the sumproduct formula for calculating the expected returns of the pf ? from which regular formula is this excel formula is coming from ?
    Thanks!

  • @lukedias5233
    @lukedias5233 Месяц назад

    If you have mutual funds in your portfolio, how do you adjust the data to accommodate them. can't get daily data for those

  • @Ghaith7702
    @Ghaith7702 9 месяцев назад +1

    Very interesting but is there a way to know the stocks that will maximise the Sharpe ratio ? without having to go through all of them ?

    • @RyanOConnellCFA
      @RyanOConnellCFA  9 месяцев назад +1

      In the future, only if you have a crystal ball 😂
      Using past returns as we did here, there is no way to know without including all of them

    • @Ghaith7702
      @Ghaith7702 8 месяцев назад

      @@RyanOConnellCFA oh thanks

  • @roberthuff3122
    @roberthuff3122 10 месяцев назад +1

    Great video! Is the file still still available for purchase?

    • @RyanOConnellCFA
      @RyanOConnellCFA  10 месяцев назад

      Thank you Robert! Yes, you can purchase the file created in this video here: ryanoconnellfinance.com/product/investment-portfolio-optimizer-excel-workbook/

    • @roberthuff3122
      @roberthuff3122 10 месяцев назад +1

      Thank you@@RyanOConnellCFA

    • @RyanOConnellCFA
      @RyanOConnellCFA  10 месяцев назад

      @@roberthuff3122 My pleasure, thank you for purchasing the file Robert!

  • @elemdarzayev7
    @elemdarzayev7 4 месяца назад

    If portfolio solely consisted of stocks, is it appropriate to use simple daily retrun not log?

  • @sixgod3963
    @sixgod3963 6 месяцев назад +1

    HI ryan, i purchased the model and had a question. if you are using stocks with different inception dates, so one stock with 10 years of historical data vs 6 years, does that affect the covariance matrix? right now i have 3 stocks all with the same years of historical data and then 2 that do not have the same amount of years of data. so i am wondering if this affects the calculations. please advise, thanks

    • @RyanOConnellCFA
      @RyanOConnellCFA  6 месяцев назад

      Hi @sixgod3963, thanks for purchasing the model and for your question! Yes, using stocks with different lengths of historical data can indeed affect the covariance matrix calculations. This is because the variance and covariance are calculated based on available historical returns, and having different time spans can lead to inconsistencies in the data. To maintain accuracy in your portfolio optimization, it’s best to use the same timeframe for all stocks if possible. Thanks for reaching out!

  • @glimpseoffutureindia386
    @glimpseoffutureindia386 2 месяца назад

    Hi , i am from india . To try this i used indices of here but the covariance with gold is coming in E. . What should i do ? Because of that i am not getting sd

  • @trakman14
    @trakman14 11 месяцев назад +1

    Thanks for the video. Trying it out and getting some weird results on the annual return. For instance, I grabbed Apple's data from the past 5 years. The Annual Return I'm getting is like 39% with a 32.2 deviation. NVDIA was a 72%! Double and triple checked the math. It looks right but that number seems insane. Any advice or help?

    • @RyanOConnellCFA
      @RyanOConnellCFA  11 месяцев назад +1

      A stock like Nvidia is going to absolutely break the scales when using historical returns to approximate expected future returns because it has performed so strongly throughout history. You're better off using your own estimated expected annual return for their stock going forward, or finding an analysts estimate of their expected return going forward. You could also lower the maximum allocation bound so you don't end up over allocated to Nvidia

  • @MatteoBrasi
    @MatteoBrasi 11 месяцев назад +1

    hi Ryan, thank you for the video. If I have monthly returns do I still have to multiply by 252 or by 12? thank you!

    • @RyanOConnellCFA
      @RyanOConnellCFA  11 месяцев назад

      That is correct if you've used log returns!

    • @MatteoBrasi
      @MatteoBrasi 11 месяцев назад

      what is the difference between log returns and usual percentage growth? if I used the second then times by 12 months is wrong?@@RyanOConnellCFA

  • @gregdriscoll9247
    @gregdriscoll9247 10 месяцев назад +1

    So each investor would take this data and implement it according to their own risk tolerance? The efficient frontier could be plotted according to your other videos and then we'd be looking for the sharp ratio that corresponds to the desired risk tolerance? Although the sharpe ratio provides the "optimal" investment mix, not every investor may be able to stomach the risk level associated with that optimization, whether they are operating inefficiently or not. At least this would be my understanding of these topics

    • @RyanOConnellCFA
      @RyanOConnellCFA  10 месяцев назад +2

      The idea behind the optimal portfolio is that no matter your risk tolerance you would invest in that portfolio. But if you have lower risk tolerance than the optimal portfolios standard deviation, you can make a portfolio that matches your preferred risk tolerance by investing some of your money in the optimal portfolio and then lending some of your money at the risk free rate (in treasuries). Look into the capital allocation line as I show towards the end of this video: ruclips.net/video/dJipa0K64HI/видео.html

  • @markinhos97
    @markinhos97 9 месяцев назад +2

    Hello, just a question. Covariance between SPY and SPY; BND and BND and so forth souldn´t be = 1?

    • @devilsfoodkitchen
      @devilsfoodkitchen 9 месяцев назад +1

      Yes, same question. Why isn't the covariance 1 between like assets?

    • @devilsfoodkitchen
      @devilsfoodkitchen 9 месяцев назад +1

      @markinhos97 I was getting my terminology confused. If this helps: Covariance indicates the direction of the linear relationship between variables while correlation measures both the strength and direction of the linear relationship between two variables. Correlation is a function of the covariance.

    • @RyanOConnellCFA
      @RyanOConnellCFA  9 месяцев назад

      Thank you for answering the question @devilsfoodkitchen !

  • @blurkid85
    @blurkid85 9 месяцев назад +1

    Hi Ryan, for the historical data, can i take data from 10 years ago for lets say 3 stocks and 15 years for the other 2 stocks?

    • @blurkid85
      @blurkid85 9 месяцев назад +1

      Or all must have the same starting point?

    • @RyanOConnellCFA
      @RyanOConnellCFA  9 месяцев назад

      Hey there, it would be best to use the same time period for all of the stocks to get the most of an apples to apples comparison. If you use different time periods then it would suffer from a bias of stock market cycles and economic cycles where some stocks have a more favorable time period and thus outperform

  • @wodjayt7441
    @wodjayt7441 8 месяцев назад

    Great video. Any chance you’d have an idea what could cause a value error for my portfolio standard deviation (the formula with mmult)?

    • @RyanOConnellCFA
      @RyanOConnellCFA  7 месяцев назад +1

      Thank you! It is really hard for me to say. The best thing you can do is go back and very carefully check each character in the formula. Also remember to use CTRL + SHIFT + ENTER when finished with the formula

    • @DeepVoiced
      @DeepVoiced 5 месяцев назад

      @@RyanOConnellCFA Good one Ryan. It was the "Shift" for me. I'll look up why "Shift" is used when dealing with Arrays. If I don't find the answer, I'll make sure to come back and ask you here.

  • @PeterMarcaurelle
    @PeterMarcaurelle Год назад +1

    Great videos (I'm not a financial guy but enjoy just learning new techniques in Excel). I'm sure that I'm doing something incorrectly. I followed the video exactly. I am assuming that the totals of the desired weight should equal 100. However on my runs it always comes out greater than 100 % ? Any Ideas ?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      That's great you have stumbled across my stuff even though you aren't a finance guy! Make sure to watch starting @12:55 and you will see that I include a constraint where the sum of all weights must equal to 100%

    • @PeterMarcaurelle
      @PeterMarcaurelle Год назад +1

      I wasn’t very clear. It’s when I run solver that they do not equal 100.

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      @@PeterMarcaurelle @13:20 I show exactly how to add a constraint in the solver that requires the total of the weights to sum to 100%

    • @shivenmoodley4018
      @shivenmoodley4018 Год назад +1

      Hi Peter, ensure your total weight cell is SUM() to the optimal weights. I also forgot about that when doing the tutorial. Then your solver constraint can be =100

    • @PeterMarcaurelle
      @PeterMarcaurelle Год назад +2

      All set, I found my error. Thanks

  • @zackploeger8451
    @zackploeger8451 6 месяцев назад +1

    If we have monthly returns, am I correct we just multiply by 12 instead of 252 in all the formulas you demonstrate?

    • @zackploeger8451
      @zackploeger8451 6 месяцев назад +1

      also do you not have to annualize the covariance matrix?

    • @RyanOConnellCFA
      @RyanOConnellCFA  6 месяцев назад

      Yes, you just multiply by 12 instead of 252 if using lognormal returns. I believe you also need to annualize the covariance matrix when using monthly returns. Simply multiply each element in the matrix by 12 to adjust for annualization.

  • @edwardchau5818
    @edwardchau5818 Год назад +1

    What does the evidence say about choosing the minimum and maximum weights? Is there industry best practice for what these upper and lower limits are?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      There is no universal standard for these limits as they depend on individual risk preferences and investment goals. However, a common practice is to adjust maximum weights based on asset volatility and to keep minimum weights close to zero, ensuring continuous adjustments to adapt to market shifts and changes in the investor’s circumstances. I personally would also make the maximum sizes a function of the number of securities in the portfolio so that as the # of securities rises, the max percentage decreases

    • @edwardchau5818
      @edwardchau5818 Год назад

      I am wondering if you have ever encountered scenarios where the optimal portfolio was X and hence, that's the portfolio with the highest Sharpe ratio and yet the corresponding weights just didn't seem right, i.e. they were much too high with a lot of concentration in a few equities. Obviously, I think human/professional judgement is needed, but the model is supposed to be reliable given the empirical support it has received.
      Do you know also whether the stock function in excel returns the adjusted closing prices?@@RyanOConnellCFA

  • @hermemory5297
    @hermemory5297 Год назад +1

    Can I do this but in weekly data or I must convert it into annual data like in the video?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      You could definitely do this with weekly data and then use weekly returns and standard deviation for each stock. You could also convert the weekly data to annual similar to how I did with the daily data. But with weekly, where I used 252 (trading days), you'd instead use 52 (weeks)

  • @jesswohlgemuth4822
    @jesswohlgemuth4822 Год назад +1

    Hi Ryan, can you just use the yield of the treasury rate as the risk free rate? Isn’t it necessary to calculate the return first and then take the average of the values (example period of 6 months)? Im asking for more complex portfolio analysis and am not quite sure how to derive the return if only the yield is provided. Thanks!

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      Hi, that's a great question! When performing more complex portfolio analyses, it is indeed more accurate to use the average return of the risk-free asset over your specific analysis period, rather than simply using the current yield on the 10-year Treasury rate.

    • @jesswohlgemuth4822
      @jesswohlgemuth4822 Год назад

      @@RyanOConnellCFA thanks for the reply! Do you know which formula I need to use to get the return? Would help a lot! Thanks for your time :)

  • @aliciamarie3661
    @aliciamarie3661 8 месяцев назад +1

    Ryan, the solver kicks out a response that states the lower and upper bounds on variables allow no feasible solution. My sharpe ratio is 67.11% with 12.5% allocation across 8 funds. Am i doing something wrong? My expected returns are 11.37% and the standard deviation is 11.62%. I have tried anywhere from 0-100% for min and max. Also, does it make a difference if you use the Canadian 10 year bond vs US treasury? I was using ETFs traded on the TSX.

    • @RyanOConnellCFA
      @RyanOConnellCFA  7 месяцев назад +2

      I've had this issue before and it is definitely user error. There is a constraint that you put into the solver that is incorrect that is causing it not to find a solution. You should check all your constraints one by one. US Treasuries are the standard for the risk free rate as there is less risk of a US Government default than a Canadian government default

    • @aliciamarie3661
      @aliciamarie3661 7 месяцев назад +1

      @@RyanOConnellCFA thank you so much for your reply. I will go back and check all of my constraints.

    • @RyanOConnellCFA
      @RyanOConnellCFA  7 месяцев назад

      @@aliciamarie3661 Good luck!

  • @andrelucasdeoliveiramoreir3958
    @andrelucasdeoliveiramoreir3958 5 месяцев назад

    have it with more colluns or more securitys?

  • @aarondelarosa3146
    @aarondelarosa3146 Год назад

    Excellent. Your forgot to plot Efficient Frontier.

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      The Efficient Frontier video on this data can be found here: ruclips.net/video/AGjsvdDMyhE/видео.html

    • @aarondelarosa3146
      @aarondelarosa3146 Год назад +1

      @@RyanOConnellCFA Excellent. I can't wait! Don't forget to plot Efficient Frontier in Python and Excel.

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      @@aarondelarosa3146 Absolutely, the new efficient frontier in excel video is already shot. Plotting the efficient frontier in python is on my future to-do list

  • @faridsalehi3380
    @faridsalehi3380 11 месяцев назад

    Based on what basis and principle do we determine the minimum and maximum weight? Why? And how do we add skewness and kurtosis to the equation with the solver?

    • @RyanOConnellCFA
      @RyanOConnellCFA  11 месяцев назад

      Great questions! The minimum and maximum weights in a portfolio are typically set based on investment goals and risk tolerance, ensuring diversification and limiting exposure to any single asset. To include skewness and kurtosis in your optimization, you would need to modify the Solver's objective function and constraints to incorporate these higher moments, which represent the asymmetry and tail risk of the return distribution, respectively. I have not tried doing that myself and I think it may get convoluted for you

    • @faridsalehi3380
      @faridsalehi3380 11 месяцев назад

      Thanks a million for your time, GOD bless you
      @@RyanOConnellCFA

  • @psy_111
    @psy_111 2 месяца назад +1

    Is this Markowits MV model?

  • @MSM5500
    @MSM5500 8 месяцев назад +1

    Hi Ryan. I tried to recreate your spreadsheet in Excel on my computer but when it comes to Standard Deviation formula it persistently gives me #VALUE! error for some reason. I've bought you spreadsheet file and once open it shows the Standard Deviation correctly. But as soon as I put a cursor on the formula it returns me the same #VALUE! error as in my spreadsheet. So it makes me thinking that there is something wrong with the Excel itself. Do you have any thoughts on how to get the issue fixed? Thanks.

    • @BlinkBookSummaries
      @BlinkBookSummaries 8 месяцев назад +1

      I have been having the same issue! Please revert.

    • @BlinkBookSummaries
      @BlinkBookSummaries 8 месяцев назад +1

      At 10:29, the standard deviation shows #VALUE!

    • @MSM5500
      @MSM5500 8 месяцев назад +2

      @@BlinkBookSummaries, Don't worry, mate! I've finally hacked the Excel, so originally you should see the *curly brackets* like that *{}* wrapping up the *Standard Deviation* formula. This means that this is an *array formula* . These *curly brackets cannot be typed in manually as a symbols.* Instead the *array formula must be defined by pressing a chord CTRL+SHIFT+ENTER at once* while in a *formula bar.*
      Hope this helps.

    • @BlinkBookSummaries
      @BlinkBookSummaries 8 месяцев назад +1

      @@MSM5500 thank you so much. This was very helpful.

    • @MSM5500
      @MSM5500 8 месяцев назад +1

      @@BlinkBookSummaries, no worries!

  • @prettywitty9051
    @prettywitty9051 Год назад +1

    Do the adjusted close prices take into account taxation?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад

      Adjusted close prices do not take taxation into account. Only stock splits and dividends

  • @justsomeone_rd
    @justsomeone_rd Год назад +1

    hi ryan how to make efficient frontier curve with 10 stocks

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      The Efficient Frontier video on this data can be found here: ruclips.net/video/AGjsvdDMyhE/видео.html

  • @gtrdotone3735
    @gtrdotone3735 7 месяцев назад

    @ 9:45 -The square of the standard deviation for SPY at cell C4 is not equal to SPY-SPY Variance from the Covariance matrix?
    Would it have an impact on the calculation of the portfolio variance/standard deviation?

    • @RyanOConnellCFA
      @RyanOConnellCFA  7 месяцев назад

      Good point! It may be because we annualized the SPY variance but the covariance matrix is still in daily

    • @gtrdotone3735
      @gtrdotone3735 7 месяцев назад

      I figured out if we were to multiply the covariance elements by a factor of 252 then the square of the individual std deviations will agree with the variances from the covariance numbers. In this case, we should not multiply the annualized portfolio standard deviation by a factor of 252.
      Having said that, calculating your way will also lead to the same correct number for the annualized portfolio std deviation. Only it does not look right (at first glance) as we always expect the variances from the two differrent sources of calculation to be equal.
      Multiply the covariance matrix by a factor of 252 or not should not affect the realtive correlation between elements of the marix as long as we properly calibrate the calculation of the annualized portfolio std deviation.
      Thank you for taking the time to respond to my remarks.
      @@RyanOConnellCFA

  • @Cunninghammock0893
    @Cunninghammock0893 Год назад

    Hey Ryan,
    I noticed that the only time you used the adjusted close price was for SPY. For the other four ETF’s, you just used the close price. Is there a reason for this?

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +2

      Hey, they should all be adjusted closing prices! It is likely I did not update the python code I used to pull these prices on this iteration. For everyone reading this I recommend using adjusted closing prices as I mentioned in the video

    • @Cunninghammock0893
      @Cunninghammock0893 Год назад +1

      @@RyanOConnellCFA Thanks Ryan! This video is incredibly helpful, and I love your content. Subscribed!

    • @RyanOConnellCFA
      @RyanOConnellCFA  Год назад +1

      @@Cunninghammock0893 Awesome, thank you so much for the positive feedback!

  • @spikeyspike79
    @spikeyspike79 9 месяцев назад

    Why not compare each asset's starting and ending price for each year? The difference is the actual annual return you got on each of the assets.

    • @RyanOConnellCFA
      @RyanOConnellCFA  9 месяцев назад +1

      How would you implement this practically for a dataset with many years of data in Excel?

    • @spikeyspike79
      @spikeyspike79 8 месяцев назад

      Easier and faster than the method shown in the video. The actual annual return does boil down to the difference between the starting and the ending price (or the log) and no need for overcomplicating it :)@@RyanOConnellCFA

    • @RyanOConnellCFA
      @RyanOConnellCFA  8 месяцев назад

      @@spikeyspike79 I don't see how it would be faster as you'd have to go find all the individual rows that only have year ends and only use those. The method shown in the video is extremely quick and simple, you just use one formula to get the daily return and paste it all the way to the bottom. Then you just use one formula to annualize all the daily returns. It takes about 10 seconds if I don't need to explain it. The method you are proposing would take much longer and would also be less useful when considering standard deviation calculations

  • @ernestux
    @ernestux 11 месяцев назад

    Why use Var.Population and not Var.Sample ???

    • @RyanOConnellCFA
      @RyanOConnellCFA  11 месяцев назад

      In hindsight, I would use Var.Sample because this is truly a sample. With a sample this large, it really won't make much of a mathematical difference which one you choose

    • @marklinoleum7878
      @marklinoleum7878 7 месяцев назад

      Don't we need to exponentiate those standard deviations? It looks like we're taking the variance of the lognorms