I Used Data Science to Buy the Dip

  Рет қаралды 8,391

ritvikmath

ritvikmath

Күн бұрын

Пікірлер: 40
@MrMoore0312
@MrMoore0312 9 ай бұрын
I can never have enough Ritvik stock market videos in my life!
@ritvikmath
@ritvikmath 9 ай бұрын
Aw thanks!
@SparaPengar
@SparaPengar 9 ай бұрын
Would love to see a model taking the most common indicators as features. Something like RSI, MACD and Moving averages.
@jarvadetoro7004
@jarvadetoro7004 9 ай бұрын
can we get the github repo for this please
@cru2426
@cru2426 9 ай бұрын
I love this guy would find out the reasons if the method really works. Not a click bait video just telling you how successful their methods are.
@eramy1
@eramy1 8 ай бұрын
Hello, thanks for the explanation ! Could you please talk about the PI prediction intervals and how we make it for time series prediction?
@poisonza
@poisonza 9 ай бұрын
no passive investor would train decision tree to time the market bottom. they just buy whenever the price dips like 5~n% or more so maybe compare with that approach.
@ritvikmath
@ritvikmath 9 ай бұрын
This is a really important comment. Especially with passive investing, we should compare with simple heuristic type strategies. I will say that we feed features like these into the model so we can think of it as coming up with these rules on its own. For next video will keep in mind using more simple baselines!
@ResilientFighter
@ResilientFighter 8 ай бұрын
Agree on both these comments
@jollyrogererVF84
@jollyrogererVF84 9 ай бұрын
I'm not surprised this video drew the conclusion that it did😀 If you could explain the market in a 20 minute video, you'd literally be a genius But I still enjoyed, please keep them coming 👍
@ritvikmath
@ritvikmath 9 ай бұрын
Honestly I’d be skeptical of a data science KZbinr who claimed to have a silver bullet stock market model explained in 20 mins 😂
@riccardoronco627
@riccardoronco627 7 ай бұрын
I love these videos but there are some points that are not clear. In the consistent model we invest $100 per week. We do that for the whole duration of the backtest, I imagine, and this will cost us $100 x number of weeks in the test (let's say 10 years or 520 weeks). That is $52,000 as overall investment. Ok. Now how does the bottom or top model invest? Imagine we have 3 tops and 3 bottoms: do we divide $52,000 in 3 parts and we invest exactly 1/3rd at each top for the "Top strategy"?. But then how the Model invest? if it does not know a priori how many bottoms there are, how does it know how much to invest in each point? thank you for the fanstastic work in explaining.
@MyMy-tv7fd
@MyMy-tv7fd 9 ай бұрын
pro traders also call your 'bottoms', pullbacks or reversals, and the most common technique is to define to two moving averages (eg, 20 and 50 SMA) and buy when the price is in the zone between at a 'discount' or 'fair value'. A lot of eyeballing goes on normally. Also, your 'gains' are all paper gains, you can only lock in the profits by selling and taking the money out of the market, so at the very least you should specify a trailing stop loss which will execute to get you out of the market and go to cash in the case of a stock market crash - recalling that the Great Crash of 1929 saw some stocks fall by 90% in a day.
@dennisestenson7820
@dennisestenson7820 9 ай бұрын
I've noticed when the price crosses over the 72 SMA, and stays there, that's usually a reversal. When the price nears that SMA it'll often seem to bounce off and return to continue the trend.
@hpix123
@hpix123 9 ай бұрын
1wk growth is important because of short term mean reversion. Shorter periods will probably be even more important (but harder to monetize)
@hantt
@hantt 6 ай бұрын
Would love to see this applied to volatility instead of reversals
@mayanklal9892
@mayanklal9892 9 ай бұрын
Hi Ritvik! Really informational video. Would it be possible to share the code so that we can recreate it using our own dataset for better understanding. TIA!
@AndrewT
@AndrewT 9 ай бұрын
Do you have to guard against collinearity when selecting features for this kind of model?
@137akash
@137akash 3 ай бұрын
Catching Bottoms and Exiting at Tops is a Myth!!! Law of large numbers and Averages catches up as the markets become efficient!! and highly liquid markets are always efficient, and inefficient markets are no scalable! Of course with some right tradeoffs in beta, some alpha can be extracted, but shorter windows simply increases cost of execution and eats up all the extra gains over long period of time. Expected conclusion in the end!
@wariodoors9481
@wariodoors9481 9 ай бұрын
Well, if you are forced to invest every month which day would you choose? I.e. Historically Monday are better than Fridays, you just use the short term prediction features to guess a day, predict daily.. if no good answer you just invest end of the month... Is it worth the hussle, not really, is it fun, yep
@ritvikmath
@ritvikmath 9 ай бұрын
interesting experiment, might have to make a video on that one!
@MarcusPereiraRJ
@MarcusPereiraRJ 9 ай бұрын
Question of a beginner: so did it really work?
@ritvikmath
@ritvikmath 9 ай бұрын
well ... we were able to build a model that gave us better return than consistent investing under very specific parameters but the moral of the video is that the risk associated with such models is very likely not worth the possible gains.
@vineetbhagwat4256
@vineetbhagwat4256 9 ай бұрын
7:54 Am I understanding correctly that you are looking 1 year backwards AND forwards to define a bottom or top? You can't use data in the future to retroactively define a top/bottom! You have to be able to predict it in real-time using only data available as of that date!
@ritvikmath
@ritvikmath 9 ай бұрын
This is a great question. To clarify, for the model’s labels we do look backwards and forwards in time to define a market bottom but the features of the model look only backwards which means we aren’t “cheating” here
@vineetbhagwat4256
@vineetbhagwat4256 8 ай бұрын
Thanks! Love your videos, esp the ones related to finance@@ritvikmath
@karthikrajeshwaran1997
@karthikrajeshwaran1997 9 ай бұрын
Thanks for the explanations!
@ritvikmath
@ritvikmath 9 ай бұрын
My pleasure!
@cv462-l4x
@cv462-l4x 9 ай бұрын
Fear and greed are highest at the end of the trend. Therefore, last week return can have a sense. More volatility, more trading volume
@ritvikmath
@ritvikmath 9 ай бұрын
Interesting theory 🤔
@pm-qf4oq
@pm-qf4oq 9 ай бұрын
ritvik id be your bottom if u talked data science in the same room as me
@josee.1709
@josee.1709 9 ай бұрын
Ha Haw!
@bonob0123
@bonob0123 9 ай бұрын
the last 12 years were mostly characterized by unusually low near-zero interest rates helping prop up equity prices so not representative of general SP500 performance. Pick a different 12 year period and the conclusions may be quite different (investing at the tops may not give as decent a return etc)
@AB-zv6dz
@AB-zv6dz 9 ай бұрын
So the models were better. Anyway its a nonsense comparison, Sharpe ratio (i.e. consistent, buy and hold, whatever you want to call it) is a very misleading KPI. Also you didn't cross validate your models so the results are going to be suspect at best. Also there are clear benefits to using a model when it comes to risk and positon sizing that are not expressed here, that make it superior to buy and hold. So I like your results, but they are probably wrong and you're really only creating about 30% of a trading strategy by only comparing the raw signal.
@poisonza
@poisonza 9 ай бұрын
i think his conclusion were to DCA every week consistently. so we should not rely on the model to time the market bottoms as strategy return with model is more volatile
@ritvikmath
@ritvikmath 9 ай бұрын
hey, I totally agree that a lot more work needs to be done if we're seriously trying to build a model for buying the dip. Lot's of cross-validation, backtesting over different time intervals/periods, etc. Thanks for the insights!
@mayanklal9892
@mayanklal9892 9 ай бұрын
Any recommendations to learn about building better models. TIA.
@ekaterinaburakova8629
@ekaterinaburakova8629 8 ай бұрын
Awesome content, thanks for your videos! I still didn't understand why did [redacted] outperformed the [redacted] strategy (18:40)
@ritvikmath
@ritvikmath 8 ай бұрын
basically because the strategy where we know the dip relies on a certain definition for the "dip", we might miss out on the less obvious dips thereby missing investment opportunities. The strategy where we consistently invest does not miss those opportunities.
I Bought $500 of Stocks Using Graph Theory and the Sharpe Ratio
20:07
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 6 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 28 МЛН
I Traded $1000 with Every Tree-Based Machine Learning Model
15:44
SVM (The Math) : Data Science Concepts
10:19
ritvikmath
Рет қаралды 110 М.
The “Buy the Dip” Trading Guide (and what not to do)
11:08
This Dumb Rule Destroyed My AI Stock Trading Strategies
13:32
ritvikmath
Рет қаралды 3,1 М.
The Trillion Dollar Equation
31:22
Veritasium
Рет қаралды 10 МЛН
I Day Traded $1000 with the Hidden Markov Model
12:33
ritvikmath
Рет қаралды 22 М.
Peter Lynch: The Secret to “Buying the Dip"
9:12
Investor Center
Рет қаралды 317 М.
Buying the Dip: The Investing Strategy’s Risks and Rewards | WSJ
4:49
The Wall Street Journal
Рет қаралды 222 М.
I Day Traded $500 of Stocks using the ARMA Model
18:29
ritvikmath
Рет қаралды 10 М.
Why You Shouldn't Trust Your ML Models (...too much)
16:07
ritvikmath
Рет қаралды 6 М.