A First Monte Carlo Simulation Example in Excel: Planning Production with Uncertain Demand

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • Enjoyed this content & want to support my channel? You can get the spreadsheet I build in the video or buy me a coffee! Links below:
    Buy me a coffee: www.buymeacoff...
    Buy complete spreadsheet (must buy simulation add-in first; see below): www.buymeacoff...
    Buy me an item from my wishlist: www.buymeacoff...
    If you're not already familiar with Monte Carlo simulation, I recommend you watch my conceptual video first: • Introduction to Monte ... .
    The simulation add-in I am using in this video: treeplan.com/s... (I'm not sponsored by this company).
    This is the first example of a Monte Carlo simulation I show to my students. Given future uncertain demand for a product, and assuming you need to commit to a production quantity in advance, how to choose a production quantity that will generate a high expected profit and keep risks in check?

КОМЕНТАРІ • 36

  • @enriquedominguez9709
    @enriquedominguez9709 4 роки тому +2

    Thank you, I appreciate the time you dedicate to explain every little detail.

  • @ahmedtawfiq3625
    @ahmedtawfiq3625 3 роки тому +1

    these are some of the finest contents I found on UA-cam. Really appreciate your hard work !

  • @freeandeasy9795
    @freeandeasy9795 3 роки тому +1

    Better than my actual college courses. Thank You!

    • @TallysYunes
      @TallysYunes  3 роки тому

      You’re welcome! Thank you for watching!

  • @terryliu3635
    @terryliu3635 4 роки тому +1

    Thanks again! I enjoyed a lot watching your video on MC simulation!

  • @ahmedtawfiq3625
    @ahmedtawfiq3625 3 роки тому +1

    Thank you so much for your amazing contents !

  • @woodypham6474
    @woodypham6474 3 роки тому +2

    Thanks for sharing. I hope you will post more business solution with monte carlo simulations technique

    • @TallysYunes
      @TallysYunes  3 роки тому +1

      I have 3 videos with Monte Carlo simulation examples. Did you watch all of them? If not, take a look inside my Excel Models playlist.

    • @woodypham6474
      @woodypham6474 3 роки тому

      @@TallysYunes I just watched 1. I'm using simulation for my business

  • @angelcrmmlozanoiturria3975
    @angelcrmmlozanoiturria3975 Рік тому

    WoW!!

  • @vijayrao6321
    @vijayrao6321 3 місяці тому

    This is fantastic, Professor! I'd like your thoughts and advice on how to do an MCSim with triangular distribution where the lower bound is negative? Thanks in advance!

    • @TallysYunes
      @TallysYunes  3 місяці тому

      What are the 3 parameters of this triangular distribution?

    • @vijayrao6321
      @vijayrao6321 3 місяці тому

      Essentially I’m trying to model future growth in an industrial company that has historically (15 years data) varied from -2% to +8% with median at 3%.

    • @TallysYunes
      @TallysYunes  3 місяці тому

      If the triangular function doesn't allow you to enter a negative for the low end, you can shift everything up 2% points and subtract afterward. For example: Cell A = randtriangular(0, 0.05, 0.1), and B = A - 0.02. This will make cell B behave as if it were a randtriangular(-0.02, 0.03, 0.08).

    • @vijayrao6321
      @vijayrao6321 3 місяці тому

      @@TallysYunes Thanks, Prof! Will try this.🙏

  • @anneye8709
    @anneye8709 4 роки тому

    Thanks so much for uploading this video. Could you please advise 1) what is the substitute formula for RANDTRUCNORMAL and 2) is there a way to obtain the seed number and reuse it through a normal Excel Monte Carlo function (is data table able to do the same)? Much appreciated.

    • @TallysYunes
      @TallysYunes  4 роки тому

      I don't understand what you mean by "substitute formula" in your first question. And, as far as I know, I don't think there's a formula that returns the seed number that was used in the previous run of the simulation, so you need to copy it by hand, at least with the add-in that I'm using here (SimVoi). If you use other Monte Carlo simulation add-ins, like @RISK and CrystalBall, they have an added functionality that allows you to automatically run several simulations while changing some of the inputs and the add-in takes care of keeping the seed constant for you. I don't use those add-ins in class because they don't run natively on Mac computers and more than half of my students use Macs.

    • @anneye8709
      @anneye8709 4 роки тому

      @@TallysYunes Thanks so much for your detailed response. Sorry, I mean is there an inherent Excel function / formula to achieve the same as RANDTRUCNORMAL and ADD-IN do? Any way to achieve the same if no ADD-INs?

    • @TallysYunes
      @TallysYunes  4 роки тому

      As far as I know, the answer is no. You need an extra add-in to get that. The add-in I use is pretty inexpensive, in case you're interested in trying it. Just go to treeplan.com. If you are a student, there are good discounts. (I'm not sponsored by that company.)

    • @anneye8709
      @anneye8709 4 роки тому

      @@TallysYunes thank you :)

    • @anneye8709
      @anneye8709 4 роки тому

      @@TallysYunes one thing I dont quite understand is why realised demand cannot be the same for both production run? The estimation of demand remain the same in this context. So only production gets changed. Is it right we maxmise profit by making optimal production when demand is sort of fixed in this context.

  • @prasanthgeorge6113
    @prasanthgeorge6113 3 роки тому

    HI , The equation "=ROUND(NORM.INV(RAND(),mean,std.dev),0)" in @risk 8.1 software will be the right alternative to the command " =round(randtruncnormal(mean.std dev,min,max),0)" in simvoi.? Could you please check and confirm the alternative formula.Thank you.

    • @TallysYunes
      @TallysYunes  3 роки тому

      I'm not familiar with @risk, but I can tell these two are not equivalent because yours is not using the minimum and maximum boundaries. It's very likely that @risk also provides a truncated normal function. Just Google it. Here's something I found: kb.palisade.com/index.php?pg=kb.page&id=33

    • @prasanthgeorge6113
      @prasanthgeorge6113 3 роки тому

      @@TallysYunes thank you .

  • @aparnayadav2903
    @aparnayadav2903 3 роки тому

    when I add randtruncnormal function it gives error, please help

    • @TallysYunes
      @TallysYunes  3 роки тому +2

      It's probably because you don't have the simulation add-in installed in your Excel. Read the description box below the video. There's a link to a website where you can download it.

  • @snterp
    @snterp 3 роки тому

    It looks like the randtruncnormal function is only available through SimVoi.

    • @TallysYunes
      @TallysYunes  3 роки тому

      Yes. In order to use these simulation functions, you need to install an add-in that provides them. SimVoi is the one I use because it runs natively on both Windows and Mac computers and isn't too expensive. If you have a Windows machine, other good add-ins are @Risk and Crystal Ball.

    • @snterp
      @snterp 3 роки тому

      @@TallysYunes Thank you. I'm buying SimVoi today. Thanks for the helpful video. It took me about 30 videos to find one that explained what I was trying to do, and yours was it!

    • @TallysYunes
      @TallysYunes  3 роки тому

      Thank you for the feedback. I'm so happy to hear my video helped!

    • @snterp
      @snterp 3 роки тому

      @@TallysYunes One further question if you don't mind. I purchased the SimVoi plug-in and managed to accomplish my goal. However, I would like to be able to share my Monte Carlo simulation (updating using F9 key, not the results table) using the randtruncnormal function with another person. Do you know if it's possible to do this without them also purchasing the software? Thank you for your time.

    • @TallysYunes
      @TallysYunes  3 роки тому +1

      To be able to use the functions provided in the add-in, the person needs to have the add-in. You can run the simulation on your computer and share the results with them.