No video

I Beat the Market Using LSTM to Trade $1000 of Stocks ... kind of

  Рет қаралды 9,011

ritvikmath

ritvikmath

Күн бұрын

Пікірлер: 55
@averagejoe4634
@averagejoe4634 Жыл бұрын
I think the core of the problem is that 1) past returns are just lousy predictors for future returns in shorter time frames, so garbage in garbage out. 2) A week worth of out-of-sample test is probably pure noise. FYI, time series momentum does exist, just on a longer time frame, check out this paper: Time Series Momentum by Tobias J. Moskowitz.
@ritvikmath
@ritvikmath Жыл бұрын
Thanks for the inputs!
@OskarBienko
@OskarBienko Жыл бұрын
That's very old paper bruh
@vinniehuish3987
@vinniehuish3987 4 ай бұрын
@@OskarBienkoEvery concept in mathematics by which governs the very calculations that DRIVE machine and deep learning are all one hundred to 500 years old. What are you saying lmao.
@ItzGanked
@ItzGanked Жыл бұрын
I know its beyond the point of the video, but I think its really important to mention friction/transaction/slippage/taker/maker cost of any strategy, can quickly turn positive expectancy negative and erode edge quickly.
@ritvikmath
@ritvikmath Жыл бұрын
Good point 👍 will keep in mind for future videos
@axscs1178
@axscs1178 Жыл бұрын
This is great! I think, as you mentioned, that taking the actual price of the stock as the response variable in the LSTM could have made an important difference, and also make the results more comparable since then both the ARMA and LSTM would be modeling a continuous target. Can't wait to perform this exercise on my own and see what turns out. Thanks a lot for the great content!
@ritvikmath
@ritvikmath Жыл бұрын
Good point! I’ll be sure to keep pointing out the other differences between models in this stock trading series
@IsabellGurstein
@IsabellGurstein 13 күн бұрын
Hi @ritvikmath, I recently came across your playlist on Time Series Analysis, and I found it incredibly insightful-thank you for that! I was wondering if you could make an additional video on ARIMAX, particularly focusing on how to incorporate exogenous predictor variables. That would be fantastic. Thanks again, and greetings from Germany!
@bonadio60
@bonadio60 Жыл бұрын
This is a great series, I have been playing with that for some time and I know how hard this is. I have a suggestion, when you create a model you are not doing any backtesting on unseen data. You are just applying it to the next week, this is nice as entertainment but would be much better to have some backtesting stats to compare the unseen week. Would be nice to do a backtest on the last 4 weeks create some average and them apply it to the next week.
@ritvikmath
@ritvikmath Жыл бұрын
Thanks for the idea! Will keep it in mind for future videos in this series
@gar4772
@gar4772 Жыл бұрын
Excellent video! I'd like to see you try out this using reinforcement learning. It seems pretty easy to adapt your original LSTM model to something like a deep Q network or PPO. Love your stuff, please keep making more great vids. :)
@VadimChes
@VadimChes Жыл бұрын
Do you consider commissions?
@kil210bom4
@kil210bom4 Жыл бұрын
good strategy kip up on this kind of experiment 👍
@christophb9616
@christophb9616 Жыл бұрын
Great video as always! Have you ever tried modeling the Numerai data? It is a hedgefund, that released a a huge obfuscated financial dataset that is publicly available to model the returns of tickers in weekly timeperiods. Then it trades based on the predictions submitted by data scientists all over the world. It is more a data science challenge than financial modeling, but I think it would make an interesting video and I would love to hear your opinion on the project!
@ritvikmath
@ritvikmath Жыл бұрын
I will check it out! Thanks for the tip
@acb_gamez
@acb_gamez Жыл бұрын
It would be interesting to see how the models perform on cryptocurrencies rather than stocks as they have fewer variables affecting their movement (no CEO, no profits made public, no product failures, etc). I have found that they strongly correlate to the typical market indices such as the sp500. Along with that, I am interested to introduce features such as market and stock volatility scores, maybe the previous days' sentiment analysis of news headlines pertaining to the stock/crypto, and the buy/sell/hold ratings of various analysts. also, are you predicting the % change as a regression problem, or predicting classes like Strong Decrease, decrease, neutral, increase, and strong increase as a class problem? I am working on a sentiment analysis of news headlines for cryptos dataset if you are interested!
@anshanshtiwari8898
@anshanshtiwari8898 Жыл бұрын
I wanted to say that if we are doing day trade I think taking into account the day of the week as a feature might be a good idea.
@junkbingo4482
@junkbingo4482 Жыл бұрын
thx for your... honesty! btw if you want t compare to a s&p500 on a weekly basis, you have to use models based on... weekly data! anyway, we know the results
@ritvikmath
@ritvikmath Жыл бұрын
Yes true! For true due diligence we should have saw how a weekly ARMA or weekly LSTM would have performed
@WealthGame_
@WealthGame_ Жыл бұрын
It's will be very helpful, if backtest and training a model Live, that will be educational and informative, and thankyou ritvik sir for testing and full overview
@ritvikmath
@ritvikmath Жыл бұрын
Great suggestion!
@Gauloi007
@Gauloi007 Жыл бұрын
It's maybe also important to take the vix and dxy to be sure the movement in the stock are not just related to that, I mean it's important to know the move is specific to the stock. Also the us03y - us01my can help but it's it's usually too volatile because it's already a % and also some time by just taking variations we lost the sense of the value and some kind of thresholds.
@user-wr4yl7tx3w
@user-wr4yl7tx3w Жыл бұрын
do you think 5 days is sufficient to attain any statistical confidence? how many days would we need to run the experiment to have a certain threshold of confidence?
@ritvikmath
@ritvikmath Жыл бұрын
Great question? 5 days is certainly not enough. Roughly speaking ~30 days seems reasonable but even then with time series problems we should independently validate for several 30 day periods through history.
@user-tq7xp6ev1y
@user-tq7xp6ev1y Жыл бұрын
Very interesting series, thank you! I have a funky suggestion.. How about a bit of crypto market madness? :)
@ritvikmath
@ritvikmath Жыл бұрын
Haha tempted but scared !
@willemhekman1788
@willemhekman1788 8 ай бұрын
One model outperforming another could just be due to chance, right?
@karndeepsingh
@karndeepsingh Жыл бұрын
I was just wondering, is it reliable to use the model for trading? Because I don’t have any experience on picking stocks and doing trading. But I want to do it. What would be your opinion on using these kind models for day trading? Also, do we also need to have some strategy to trade using the algorithms?
@ritvikmath
@ritvikmath Жыл бұрын
Fully honestly I would say that these models are great for education and entertainment but we have not seen evidence through these videos that they will definitively work as general purpose trading strategies. I would suggest using them for fun and using money that you wouldn’t mind losing or even as a paper trade so there’s no risk! Good luck!
@bonadio60
@bonadio60 Жыл бұрын
I am a developer and I think that creating some kind of automated strategy is the dream of a lot of people. I have been playing with this for more than a year and so far have not found any strategy that gives reliable results. This is extremely hard, but it is really fun to try. Do a lot of paper trading, before you put real money, unless you don't care to lose it.
@karndeepsingh
@karndeepsingh Жыл бұрын
@@bonadio60 Thats true. 😊
@rskandari
@rskandari Жыл бұрын
​@@bonadio60have you tried RL?
@roeiohayon4501
@roeiohayon4501 Жыл бұрын
By now I'm sure you've got a super-extra-amazing-deluxe model for your private investments🧠
@ritvikmath
@ritvikmath Жыл бұрын
😉
@Justin-zw1hx
@Justin-zw1hx Жыл бұрын
If AI really works for stocks, all the ML engineers will be working on this.
@ritvikmath
@ritvikmath Жыл бұрын
It’s a really really hard problem
@jaychintamaniram1926
@jaychintamaniram1926 Жыл бұрын
they literally are
@apoorv28goel
@apoorv28goel Жыл бұрын
The thing is they won't tell you if they are. So the latest and greatest in AI right now is transformers. But if you go around finding how to use a transformer for stocks you will not find any material. And there are a ton of transformer based language models on the web.
@tushihahahi
@tushihahahi Жыл бұрын
The smartest and brightest are using these AI techniques. But they do have domain knowledge of markets as well.
@roeiohayon4501
@roeiohayon4501 Жыл бұрын
The less people know about it, the more that's left for the experts🤨
@notgrubu2179
@notgrubu2179 Жыл бұрын
Lstm is a black box. Prone to overtraining. Use models as simple as possible. Old school statistical models are the best.
@jasonreviews
@jasonreviews Жыл бұрын
you know what the sad reality is. Since interest rates are so high. if you get high yield savings of 5.1 APY. It's way safer than trading and you won't get draw downs. LOLs. i watched all this ML videos and python videos. Did all these sleepless nights in trading. Even with any trading strategy it's still 60%. You should back tested by making trade with trading view manually with your hands. Then coding it. Simulated trades do not equal real trades. Just buy and hold for 30 years it will 200% the Top 10 SP500 stocks.
@user-wr4yl7tx3w
@user-wr4yl7tx3w Жыл бұрын
how about using the transformer model?
@ritvikmath
@ritvikmath Жыл бұрын
Yes! We are building up to it 🙏
@gsidhu6
@gsidhu6 Жыл бұрын
Use your statistical skills for something more valuable is my advice
@ritvikmath
@ritvikmath Жыл бұрын
Seems fair at times when I work in this stuff 😂
@apoorv28goel
@apoorv28goel Жыл бұрын
Don't give me just yet. Try transformers too. Transformers are changing the world. Amazing video very informative 👍👌
@sathiyanit
@sathiyanit Жыл бұрын
Super
@ritvikmath
@ritvikmath Жыл бұрын
Thank you!
I Day Traded $1000 of Stocks using the LSTM Model
16:07
ritvikmath
Рет қаралды 15 М.
The KL Divergence : Data Science Basics
18:14
ritvikmath
Рет қаралды 45 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 22 МЛН
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 4,5 МЛН
A complete guide to TzKal Zuk | Runescape 3
18:30
Protoxx
Рет қаралды 295 М.
What are Moving Average (MA) Models
5:01
Aric LaBarr
Рет қаралды 66 М.
Every Distance in Data Science (Almost 100K Subs!)
21:25
ritvikmath
Рет қаралды 11 М.
How to Read Math Equations
10:34
Siraj Raval
Рет қаралды 228 М.
8 Smart Questions To Ask Hiring Managers In A Job Interview
8:49
Work It Daily
Рет қаралды 3,4 МЛН
What is LSTM (Long Short Term Memory)?
8:19
IBM Technology
Рет қаралды 194 М.
Introduction to Multi-Agent Reinforcement Learning
14:44
MATLAB
Рет қаралды 40 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН