I Traded $1000 with Every Tree-Based Machine Learning Model

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 29

  • @andrashorvath2411
    @andrashorvath2411 8 місяців тому +8

    Whenever you evaluate a model I suggest you to do a T test on the profit values collected over time (positive and negative values) to see whether it is coming from random chance and there is any model power (you may consider 1 sigma to be weak power, 2 sigma normal and 3 sigma strong power). What T test does is tell you whether the mean value of your long term profit is far enough from the zero line considering its relative deviation. If there are more values than 30, you may just divide the profit mean by the profit standard error to get the sigma value. That simple. Also you might want to consider the commission fees. Great video!

  • @person-xb7ij
    @person-xb7ij 9 місяців тому +9

    I think the reason the Decision Tree was the most popular model was because the stocks you chose have a high trade volume, and therefore have less noise in their pricing. I would be interested to see how the model selection and accuracy would change with low trade volume stocks. Great video !

    • @Nino21370
      @Nino21370 4 місяці тому

      (Hint) it’s 1000% more effective at analysis

  • @CrypticManu
    @CrypticManu 9 місяців тому +3

    Oh yes, I was waiting for this video actually! I really like tree based methods :D

    • @ritvikmath
      @ritvikmath  9 місяців тому +1

      Woo hope you enjoy!

  • @fhashim
    @fhashim 8 місяців тому +2

    Interesting stuff! Would like to see more of such content around financial markets.

  • @antonio_16180
    @antonio_16180 9 місяців тому +4

    Excellent video! What features did you use to predict? Only the past price (past 99 days)? What about using technical indicators besides the past price?

  • @veerjain4537
    @veerjain4537 8 місяців тому

    Love your videos, thanks for such easy and simple explanations on ACF,PACF,AR,MA,ARIMA

    • @ritvikmath
      @ritvikmath  8 місяців тому

      Of course! Thanks for watching

  • @joshuapena6757
    @joshuapena6757 13 днів тому

    Great video. As a suggestion, you may want to consider transaction costs, including (1) commission fees and (2) the bid-ask spread, since these lower the return of frequent trading relative to buying and holding.

  • @arthuranderson1237
    @arthuranderson1237 9 місяців тому +3

    Would love to see the code preferably in form of jupyter notebook. Thanks

  • @etfexpectations-sectoroutl5323
    @etfexpectations-sectoroutl5323 7 місяців тому

    Your analysis is excellent and well-explained.
    I was looking forward to your studies with longer lag periods. Is this something we can expect in a future video?

  • @atharva7111
    @atharva7111 Місяць тому

    Can u share the features u used and the Jupyter notebook as well

  • @khachaturabramian596
    @khachaturabramian596 8 місяців тому

    Talking about the label.
    Your models are built based on binary target? Where 1 is positive return more than 0.5 percent and 0 is less than treshold or the price goes opposite direction.

  • @jasonree
    @jasonree 8 місяців тому

    Excellent video, I like using decision trees, haven’t used on stock trading. I would be interested in looking at correlation of the snp to another data source. For example sentiment in the top 10 news articles over the last 90 days compared to performance, or something unconnected like sentiment of twitter posts over the same period. Determining sentiment on a given day would be an interesting subject to explore anyway without correlation

  • @benjaminchoi00
    @benjaminchoi00 9 місяців тому +1

    Do you do hyperparameter tuning when you create a model?

    • @ritvikmath
      @ritvikmath  9 місяців тому +1

      I haven’t for this one because there were so many other variables to already think about. In general, though, it’s an important part of the model selection process and a good idea!

    • @benjaminchoi00
      @benjaminchoi00 9 місяців тому

      @@ritvikmath Your idea gives me great insight! Thank you for nice video

  • @EduardoVilla-ot7lu
    @EduardoVilla-ot7lu 8 місяців тому

    Hi! Really enjoy your insight and the way you explain the models. Just one question: If I understood correctly, your largest lag was 3 weeks (~15 trading days), leaving only 85 days to train each tree? Would 85 observations be enough to train a tree?

  • @yeoj3429
    @yeoj3429 8 місяців тому

    Why not back test the smart selection methodology? Also why specify lagged returns as independent variables when returns are generally not autocorrelated?

    • @ritvikmath
      @ritvikmath  8 місяців тому +1

      good note to backtest the smart selection strategy and using richer features in future videos

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

    I’m developing a stock trading model using a random forest and was wondering if I could run a few ideas past you. Curious if you are open to a consulting opportunity to assist with my model development?
    Thanks
    AR

  • @vaibhavnakrani2983
    @vaibhavnakrani2983 9 місяців тому

    Random forest should have the highest bias no?

  • @martin777xyz
    @martin777xyz 7 місяців тому

    Do you share your code?

  • @aiml66_bangerashashankchan81
    @aiml66_bangerashashankchan81 9 місяців тому +1

    crazyy video!

  • @hu5116
    @hu5116 8 місяців тому

    Great video! It might have been good to go through the actual computation of one stock and tree computation just to see it done. But great nonetheless less!

  • @YanpingLiu-ie5oj
    @YanpingLiu-ie5oj 8 місяців тому

    a