Using a Python DCF Calculation to find the Intrinsic Fair Value of a Stock

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2025

ความคิดเห็น • 24

  • @sherlock27
    @sherlock27 3 ปีที่แล้ว +1

    Great video. You should integrate this with streamlit.

  • @colinflanagan4542
    @colinflanagan4542 ปีที่แล้ว

    great Video. Ran the test all looked good but then I updated the free cash flow (58896000,73365000,92953000, 111443000) to reflect todays values and I get a fair value as 18797.29 and todays share price is $166. IS there anything I haven't taken into consideration

  • @jongcheulkim7284
    @jongcheulkim7284 3 ปีที่แล้ว +1

    Thank you.

  • @LowEndStrings
    @LowEndStrings 3 ปีที่แล้ว +1

    Great video! Thanks!

  • @ibmsjep8697
    @ibmsjep8697 3 ปีที่แล้ว +1

    Great video! Do you think you could make a video on predicting stock prices using the yfinance data?

  • @k2icc
    @k2icc 3 ปีที่แล้ว

    What if the price of the stock is a lot higher, lets says double? Also, I tested with AMC at around 50 dollars, it says over 1,000 in fair value. Any taughts?

    • @anthonymacle1880
      @anthonymacle1880 3 ปีที่แล้ว +1

      very specific case, priced at $47.94, the stock is considered to be 25920% overvalued. Faire valued is at $0.18 as per DCF method

    • @esteban_ruiz
      @esteban_ruiz 3 ปีที่แล้ว +1

      I don't think a fair value that high would be absorbed by the market so quickly. Maybe very long term it could but its unreasonable to assume fair value is thousands of % greater than current market price.

    • @Planaxe
      @Planaxe 2 ปีที่แล้ว

      You probably made a mistake

  • @subhasankarbhattacharya612
    @subhasankarbhattacharya612 2 ปีที่แล้ว

    Terminal value is nnot running

  • @alexcolardelle
    @alexcolardelle 2 ปีที่แล้ว

    Hello and thank you for this great video. Do you think you could tell me how I could display automatically the last 10 years of FCF from yfinance ? ? Instead of doing that manually. I've added to your code an input at the begining, asking "what is the ticker ?" , the rest follows that input but I would like to put into the FCF list the last 10 FCF digits automatically, without typing. If someone can help me with that. Thanks

    • @ElDanielIbrahim
      @ElDanielIbrahim 2 ปีที่แล้ว

      Hey did you end up finding that out? Would love to know how I could do that.

    • @alexcolardelle
      @alexcolardelle 2 ปีที่แล้ว

      Hey, nope, not found

  • @bitterbob30
    @bitterbob30 3 ปีที่แล้ว

    DCF almost always undervalues a stock. I'm not a finance guru so I'm not exactly sure why that's the case but I have run hundreds of these models and less than a handful come out with a current stock price less than the DCF. If you rely on DCF then you will rarely if ever be buying any stock.

    • @Planaxe
      @Planaxe 2 ปีที่แล้ว +7

      You should think critically on the growth you assign the company for every single year. Don’t just copy what wallstreet is predicting.
      Every number should be studied deeply, ex. To calculate capex you look at the previous years and look at the capex/revenue allocation, if it’s a consistant 5%, then use 5% for all the other years but if the management announced a new plant then you should probably use a higher capex than 5% on revenue.
      So read the annual reports very carefully and apply those insights to the dcf.
      Also, try finding companies that look undervalued with simple metrics like P/E, P/S, P/B, buybacks,… then look at how their revenues grew the past 5 years. Filter out and keep those that look healthy and cheap and then make a dcf.
      This will save you a lot of time.

  • @anthonymacle1880
    @anthonymacle1880 3 ปีที่แล้ว

    Thanks for sharing, could you please explain how to get the company data scrapped ? In your exemple you had the AAPL data stored but how did you get these data ?

    • @esteban_ruiz
      @esteban_ruiz 3 ปีที่แล้ว +2

      You download it from Yahoo Finance (free provider) or you pay for up-to-the-minute data from a finance data provider (Bloomberg, CME, etc.). You can save the OHLC data as an .xls or .csv file and import it into Python. Or you use the Yahoo API but it is inconsistent. Better to download as csv or use a brokerage API or pay for Bloomberg. Hope this helps

  • @HansMcMurdy
    @HansMcMurdy 10 หลายเดือนก่อน

    Thanks for filming this but it's just not very good code.
    First off, it's not modular enough to be applied to a variety of assets.
    Also when you hardcode those assumptions, your fair value is massively off base. For example, apple is around 170/share but that code would value it less than 100.
    WACC for example needs to be way more accurate.

  • @randy23garcia
    @randy23garcia 3 ปีที่แล้ว +1

    greast stuff

  • @VladislavTanov
    @VladislavTanov ปีที่แล้ว

    Looking at your video, the annul discounted values are incorrect. It seems same value, 70622383, is repeated across. I get different values following your formula: 70622383 67982294 65440899 62994511.
    In addition, it is unclear how you discounted your terminal value, as there's no time frame associated with it. I assume you use at the 5th month, for which the discounted value must be: 1067087913.

  • @valueray
    @valueray 11 หลายเดือนก่อน

    completely wrong, totally completely wrong

  • @NoToBusinessCasual
    @NoToBusinessCasual 4 หลายเดือนก่อน

    Leaving the coding and Ptthon aside, the assumptions make this theoretically useless.