I can never have enough Ritvik stock market videos in my life!
@ritvikmath9 ай бұрын
Aw thanks!
@SparaPengar9 ай бұрын
Would love to see a model taking the most common indicators as features. Something like RSI, MACD and Moving averages.
@jarvadetoro70049 ай бұрын
can we get the github repo for this please
@cru24269 ай бұрын
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.
@eramy18 ай бұрын
Hello, thanks for the explanation ! Could you please talk about the PI prediction intervals and how we make it for time series prediction?
@poisonza9 ай бұрын
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.
@ritvikmath9 ай бұрын
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!
@ResilientFighter8 ай бұрын
Agree on both these comments
@jollyrogererVF849 ай бұрын
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 👍
@ritvikmath9 ай бұрын
Honestly I’d be skeptical of a data science KZbinr who claimed to have a silver bullet stock market model explained in 20 mins 😂
@riccardoronco6277 ай бұрын
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-tv7fd9 ай бұрын
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.
@dennisestenson78209 ай бұрын
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.
@hpix1239 ай бұрын
1wk growth is important because of short term mean reversion. Shorter periods will probably be even more important (but harder to monetize)
@hantt6 ай бұрын
Would love to see this applied to volatility instead of reversals
@mayanklal98929 ай бұрын
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!
@AndrewT9 ай бұрын
Do you have to guard against collinearity when selecting features for this kind of model?
@137akash3 ай бұрын
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!
@wariodoors94819 ай бұрын
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
@ritvikmath9 ай бұрын
interesting experiment, might have to make a video on that one!
@MarcusPereiraRJ9 ай бұрын
Question of a beginner: so did it really work?
@ritvikmath9 ай бұрын
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.
@vineetbhagwat42569 ай бұрын
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!
@ritvikmath9 ай бұрын
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
@vineetbhagwat42568 ай бұрын
Thanks! Love your videos, esp the ones related to finance@@ritvikmath
@karthikrajeshwaran19979 ай бұрын
Thanks for the explanations!
@ritvikmath9 ай бұрын
My pleasure!
@cv462-l4x9 ай бұрын
Fear and greed are highest at the end of the trend. Therefore, last week return can have a sense. More volatility, more trading volume
@ritvikmath9 ай бұрын
Interesting theory 🤔
@pm-qf4oq9 ай бұрын
ritvik id be your bottom if u talked data science in the same room as me
@josee.17099 ай бұрын
Ha Haw!
@bonob01239 ай бұрын
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-zv6dz9 ай бұрын
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.
@poisonza9 ай бұрын
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
@ritvikmath9 ай бұрын
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!
@mayanklal98929 ай бұрын
Any recommendations to learn about building better models. TIA.
@ekaterinaburakova86298 ай бұрын
Awesome content, thanks for your videos! I still didn't understand why did [redacted] outperformed the [redacted] strategy (18:40)
@ritvikmath8 ай бұрын
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.