Stock Market Clustering With Python

Поделиться
HTML-код
  • Опубликовано: 1 июн 2024
  • In this video we cluster the stock market into categories with Python.
    DISCLAIMER: This is not investing advice. I am not a professional who is qualified in giving any financial advice. This is a video purely about programming using financial data.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

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

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

    You may want to determine the "quality" of the clusters by calculating the silhouette score (available in scikit learn), and iterate on a growing number of clusters until you have the maximum score. Or, you can use a clustering algo that determines the best number of clusters, like the Affinity Propagation (also in scikit learn).

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8

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

    Thank you for this video. Helped me understand quite a few things. All the best!

  • @leveltube10
    @leveltube10 2 года назад +3

    For everyone who has a problem to get the data from yahoo.
    You can use another source, use "stooq" instead of "yahoo", than it will work!

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8

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

      This worked and saved my day. Thank you!

  • @quixzotic
    @quixzotic 2 года назад +2

    Definitely going to start a new project after this!

  • @Steven-yd8wy
    @Steven-yd8wy 2 года назад

    Great video! thanks so much!

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

    Great video as always. Thank you

  • @justaninja1
    @justaninja1 2 года назад

    Finally a video I can follow as a noob with good explanations.

  • @TriiReflex
    @TriiReflex 2 года назад +2

    Great video! Quick question, how did you get the pandas datareader to work? Keep getting remote data error, unable to read URL

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8

  • @danx_x155
    @danx_x155 2 года назад +2

    Getting this error, anyone?
    SymbolWarning: Failed to read symbol: 'AAPL', replacing with NaN.
    warnings.warn(msg.format(sym), SymbolWarning)

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8

    • @ahadmomin4766
      @ahadmomin4766 2 года назад

      yes i am getting the same error

  • @Ricocase
    @Ricocase 2 года назад

    What happens if I use 'clustering' feature in PowerBi rather than manually program with Python? Will I get similar results? How do we know how 'tight' the clusters are, high or low sensitivity? Thx.

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @talkingbird5862
    @talkingbird5862 2 года назад

    Your all video amazing, can you please make a video for how to locally setup tacotron 2 deep speech ?

  • @danielniels22
    @danielniels22 2 года назад

    is it just me or you do never use Jupyter Notebook when doing machine learning, and stuffs?

  • @Steven-yd8wy
    @Steven-yd8wy 2 года назад +1

    The code was working well, then I randomly started getting this error
    Traceback (most recent call last):
    File "c:\Users\steve\Desktop\VS CODE\cluster.py", line 25, in
    open_values = np.array(data['Open'].T)
    Any idea what's going on? Thanks

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

      1d array 2d array thing . Check the values of array.size

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

    Where can I find the data for this?

  • @witherland1362
    @witherland1362 2 года назад +1

    Hey, nice video as always. Can you make a video on networking with twisted framework.

    • @Anequit
      @Anequit 2 года назад

      ​@@michaelhudson1540 someones lacking in the mental department...

  • @richard_noblockhit
    @richard_noblockhit 2 года назад

    It actually should be possible to investigate those clusters, then look whether one is leading another, by that, you could have a pretty good prediction of the stocks of another company. OFC THIS IS NOT A ROCK SOLID IDEA, DIFFERENT COMPANIES REACT DIFFERENT WAYS, would still be interesting tho ngl.

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8

  • @749srobin
    @749srobin 2 года назад +2

    brother , you are a gift

    • @NeuralNine
      @NeuralNine  2 года назад

      appreciate it brother ^^

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @ziad3274
    @ziad3274 2 года назад +1

    Just in time bro❤

    • @NeuralNine
      @NeuralNine  2 года назад

      ^^

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @adammaras6760
    @adammaras6760 2 года назад

    Mcdonalds is not a food company but a real estate investor

  • @TeKnODeFeCt
    @TeKnODeFeCt 2 года назад +1

    Everytime I try using the yahoo_fin api I get the same failed to read symbol warning for all stocks. Does anyone know how to fix this?

    • @leveltube10
      @leveltube10 2 года назад

      Same here!

    • @leveltube10
      @leveltube10 2 года назад +2

      You can use another source, use "stooq" instead of "yahoo", than it will work!

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @vinnygagliani
    @vinnygagliani 2 года назад

    McDonalds at its core is a real estate company that sells food.

  • @HamodyKun
    @HamodyKun 2 года назад +1

    good work ❤

    • @NeuralNine
      @NeuralNine  2 года назад

      thanks

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @mrwebb2901
    @mrwebb2901 2 года назад +1

    #1

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @ishaankapoor933
    @ishaankapoor933 2 года назад

    2nd

    • @donutcream4944
      @donutcream4944 2 года назад

      congratulations, you have achieved: "Nothing"

    • @michaelhudson1540
      @michaelhudson1540 2 года назад

      Thanks for watching, contact for investment assistance
      W=H=A=T=S=A=P=P
      +1/9/0/9/2/8/0/5/5/5/8.

  • @leveltube10
    @leveltube10 2 года назад +1

    Line 13 and 28, you use the same variable ->clusters

    • @tegtiwana6263
      @tegtiwana6263 2 года назад

      same. i got the same error

    • @alejozen3457
      @alejozen3457 2 года назад

      one variable is named and the other one is (plural)