Portfolio of four assets: Optimization with Solver

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

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

  • @stephenhobbs948
    @stephenhobbs948 4 года назад +1

    Very easy to follow, good speech, speed, knowledge of material. Thank you for making the video.

  • @nefelibatics
    @nefelibatics 4 года назад +6

    I just want to highlight to anyone studying this video, that the author made a slight mistake at 07:50 when he clicked on cell B84, setting it as the minimizing goal! It was supposed to be G84 (Portfolio Variance) and that´s why gs (Goldman Sachs) stock was set to 0. This had the author puzzled for a while, but then later he reviewed it and corrected the mistake. Anyway thank you so much for this excellent tutorial!

    • @inspectordeeprajdas
      @inspectordeeprajdas 4 года назад

      It should be G85. Minimising the variance is the concern

    • @nefelibatics
      @nefelibatics 4 года назад

      @@inspectordeeprajdas If you pay close attention you´ll notice the variance calculation cell is actually G84!

  • @johncollan9451
    @johncollan9451 6 лет назад +13

    I was stuck on an assignment for my financial modeling class because I didn't know how to find the portfolio variance of a 10 stock portfolio. Thank you so much for sharing this method. I would've never thought to use MMULT and the variance-covariance matrix. I was beginning to think I'd have to go through the stocks' returns and get the covariance of each combination pair by pair and then write out the conventional variance formula with all 45 pairs of covariance as terms. Imagine the length of that formula!

  • @anibaldk
    @anibaldk 4 года назад +1

    Bit late to mention this but: the reason why you get different values is because the initial run of solver optimised B84 instead of G84 (8:37) and again at 13:51.
    Last run was actually correct.

  • @diverz
    @diverz 7 лет назад +6

    Thank you Sir for your video. Finding the variance for a multi asset (more than 2) portfolio was my stumbling block and your explanation was very clear.

  • @trevortyne534
    @trevortyne534 6 лет назад +1

    Excellent... Complexity made simple and explained well! Thank you for the video.

  • @aaronsarinana1654
    @aaronsarinana1654 4 года назад

    Excellent lecture! very easy to follow. Very useful, thanks!

  • @hertogseliott3088
    @hertogseliott3088 3 года назад +1

    Thanks you saved us a lot of time!

  • @hohoha6838
    @hohoha6838 4 года назад

    This clip is very helpful for me to follow the author's instruction and make it for myself. Thanks a lot! Author

  • @AjentIvVii
    @AjentIvVii 4 года назад

    Thank you so much. It helped me to find MVA for multi-asset portfolio.

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

    thank you so much! it's really helpful!

  • @chadhladik8716
    @chadhladik8716 6 лет назад

    Just an FYI, the GRG Nonlinear solver will calculate a better solution than your initial guess, but it is not guaranteed to give the best solution.

  • @Bart-ot3ku
    @Bart-ot3ku 5 лет назад +5

    That's not an optimal portfolio that's minimum variance portfolio, there is a difference between those two

    • @НикитаКамынин-м5ч
      @НикитаКамынин-м5ч 4 года назад +1

      Yes, it seems that the optimal portfolio is based on the optimization of the sharpe ratio (expected return per unit of SD), not on the minimization of the variance.

  • @cozypoly4681
    @cozypoly4681 5 лет назад +1

    Sorry but I hate to say that the object of solver is actually cell B84 instead of cell G84 and that’s why the weight of gs is zero

  • @anastasiiaollonberg2377
    @anastasiiaollonberg2377 4 года назад

    Very many thanks indeed for help, it was very useful and easy to understand!

  • @irenezadonska462
    @irenezadonska462 5 лет назад

    Great video! Highly appreciated

  • @preteenlikeitbig
    @preteenlikeitbig 7 лет назад +2

    Hello there, I have a question.
    How to successfully implement STOCK PRICE constraint into solver before calculating.
    Since every stock has its price at which buys, we can't get their weights accurate, since it need to be the whole number.
    For example we can't buy 1,3 stocks. The weights sum doesn't need to be 100%, but very close.
    MY ATTEMPT:
    I used as variables: weights, money weight in each stock (weight multiplied with total funds - 1000$) and number of stocks.
    I tried to integer the formula for number of stocks for each stock (sum invested divided by stock price), but it doesn't work, it only rounds the number but when you check it, it's not good.
    I also tried to constraint the total sum invested to near 100%, so if i have 1000$, the constraint is from 950$ to 1000$.
    Hope you understood me and manage to find some solution.

    • @wotchadave
      @wotchadave 6 лет назад

      Why not just round the stocks down to the nearest whole number? It's still going to be close enough to an optimal portfolio. In other words, you would expect the nearest whole number of stocks (rounded down if need be) to be good enough.
      The only scenario this doesn't work is if you're buying a very small number of shares or if the shares are extremely pricey.

  • @cuagainful
    @cuagainful 7 лет назад +2

    How you came up with first table for gs, wmt, ba,msft?

  • @Pumpkinnishu
    @Pumpkinnishu 4 года назад

    This tutorial is great. What is the thory behind this? Is it the Lagrange Multiplier Method?

  • @alexbr6350
    @alexbr6350 5 лет назад

    Great job!

  • @umarmahmood6000
    @umarmahmood6000 5 лет назад +2

    dont usually comment but when he starts to use solver he initially selects cell G84 to minimize but accidentally changes it to cell B84 while explaining...?

    • @wiltait1
      @wiltait1 5 лет назад

      Yes and that was a mistake.

    • @duckbubi-l6u
      @duckbubi-l6u 4 года назад

      That's why solver gave a 0 weight for gs - it got minimized.

  • @austinryder9028
    @austinryder9028 4 года назад

    So, portfolio return-- as calculated in this video-- is in monthly terms. Are standard deviation and variance also in monthly terms, since the underlying figures are, too? If so, how do we convert stdev and var into annual while considering compounding?

  • @Bogo97
    @Bogo97 5 лет назад

    You are AMAZING - THANK YOU

  • @FrazerMcGilvray
    @FrazerMcGilvray 5 лет назад

    I have a dataset of 30 columns and 102 rows of percentages, and have entered the equation exactly as you have it here. It refuses to accept the semi-colon and tells me "there's a problem with this formula". Any advice?

    • @LondonPhD
      @LondonPhD  5 лет назад +1

      There are regional differences in excel syntax. If you are from Eastern Europe, try using colon instead

  • @anastasiiaollonberg2377
    @anastasiiaollonberg2377 4 года назад

    Is it possible to provide a video with instructions, how to insert capital market line into the Solver portfolio graph?

  • @edwellchigangaidze1137
    @edwellchigangaidze1137 5 лет назад

    how do I resolve the error message. solver encountered an error value in the objective cell or constraint cell. and the weights are all valued at 0.00

  • @Globalpeaceseeker
    @Globalpeaceseeker 5 лет назад

    how do we forecast for commodities, property, cash etc using historical data such as GDP, inflation, price indices

  • @anastasiakyriakou6922
    @anastasiakyriakou6922 3 года назад

    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?

  • @gunjankalra1392
    @gunjankalra1392 4 года назад

    Thank you sir for your video but I am unable to find the weight, it shows values in variance, can you please help?

  • @MrJJOBT
    @MrJJOBT 3 года назад

    Thanks you SO MUCH

  • @MyWessly
    @MyWessly 4 года назад

    1.64608E-05
    im getting variances like this..what do they mean and how can i correct them

    • @romanvojtko4950
      @romanvojtko4950 4 года назад +2

      In the middle of the Home panel, there is a number format that is set to the general by default. Change it to the number. (no native English speaker)

  • @chanchalanaagar82
    @chanchalanaagar82 5 лет назад

    Hey, what if I have also given the correlation factor between two projects? Then how do I calculate weights?

  • @padula77
    @padula77 4 года назад

    Hi Sir. I was wondering what happen in case you have a portfolio with long and short positions?

    • @OfficialCANVAS
      @OfficialCANVAS 3 года назад

      if you short just flip the percentages. What do you mean?

  • @andreluizbaldo3267
    @andreluizbaldo3267 6 лет назад

    Thank you for the posting. This is very helpful. I have a question about this model. For this method to work, we have to assume that our stocks are either uncorrelated or negatively correlated right?

    • @austinryder9028
      @austinryder9028 4 года назад +1

      Uncorrelated, but not necessarily negatively correlated. For example, the four stocks in this video are likely to be at least moderately correlated, but the model still works!

  • @balarh8711
    @balarh8711 4 года назад

    if i am gonna invest 1000 dollars so should i change the sum of weights from 1 to 1000?

  • @Lisa-jn9cu
    @Lisa-jn9cu 5 лет назад

    I am doing exaclty what you describe, my weights are changing but my portfolioreturn and variance is 0. How is that possible?

  • @MrCentrax
    @MrCentrax 5 лет назад

    How can I make the covariance matrix?

    • @saurabhdedhia7849
      @saurabhdedhia7849 5 лет назад

      The 1st video covers that part. Try look through his videos. This is a direct continuation of that video.

  • @jonathanoliver9643
    @jonathanoliver9643 4 года назад

    Does this really find highest return, because this looks like portfolio of least variance, optimal should be tangent to the risk free rate no?

  • @beansm152
    @beansm152 4 года назад

    hello is there any way to contact you? i have a deadline soon and i am struggling

  • @BalleJuju
    @BalleJuju 6 лет назад

    Hello the return who have found it is a return for 1 month or for 1 year ?

  • @vinodaxisful
    @vinodaxisful 6 лет назад

    Solver is giving different results because GRG Non linear is chosen instead of Simplex.

  • @elsat3801
    @elsat3801 5 лет назад

    why all the weights have the same number and zero?

  • @geoffreydukes8560
    @geoffreydukes8560 7 лет назад

    I followed word for word and solver isn't working at all. I keep getting objective cell must have formula but I've literally been following the video for practice.

  • @lach1emarks
    @lach1emarks 4 года назад

    you are a gift from God

  • @isurusenevirathne
    @isurusenevirathne 6 лет назад

    can not understand solver weight ,pls explain

  • @FreekNetherlands
    @FreekNetherlands 6 лет назад

    Thanks mate.

  • @joanna7305
    @joanna7305 6 лет назад

    You saved my life!! thanks!!!

  • @javadkamrani6480
    @javadkamrani6480 4 года назад

    Please provide the training Excel file

  • @nastyateletion
    @nastyateletion 4 года назад

    Thank you!

  • @attepatteable
    @attepatteable 6 лет назад

    thank you dude

  • @isurusenevirathne
    @isurusenevirathne 6 лет назад

    Sir ,upload the same data (excel_file) to test it ,sri lanka

  • @ScrewTikTok
    @ScrewTikTok 4 года назад

    gs only went to 0 weight because of what happened 7:50 XDDD

  • @safaasalim1236
    @safaasalim1236 7 лет назад

    hallo please Arabic

  • @cuagainful
    @cuagainful 7 лет назад +2

    How you came up with first table for gs, wmt, ba,msft?

    • @andresacunag.9934
      @andresacunag.9934 6 лет назад +1

      I think you just have to go to yahoo finance or investing.com and select the stock you"d like to analyse. You have to select the adj close values for each stock, and make sure that the dates of each stock matches.