Тёмный

Predict The Stock Market With Machine Learning And Python 

Dataquest
Подписаться 59 тыс.
Просмотров 643 тыс.
50% 1

In this tutorial, we'll learn how to predict tomorrow's S&P 500 index price using historical data. We'll also learn how to avoid common issues that make most stock price models overfit in the real world.
We'll start by downloading S&P 500 prices using a package called yfinance. Then, we'll clean up the data with pandas, and get it ready for machine learning.
We'll train a random forest model and make predictions using backtesting. Then, we'll improve the model by adding predictors. We'll end with next steps you can use to improve the model on your own.
You can find an overview of the project and the code here - github.com/dataquestio/projec... .
If you enjoyed this tutorial, check out this link bit.ly/3O8MDef for free courses that will help you master data skills.
Chapters
00:00 - Introduction
01:28 - Downloading S&P 500 price data
03:30 - Cleaning and visualizing our stock market data
04:29 - Setting up our target for machine learning
08:19 - Training an initial machine learning model
17:01 - Building a backtesting system
23:05 - Adding additional predictors to our model
28:45 - Improving our model
33:37 - Summary and next steps with the model
---------------------------------
Join 1M+ Dataquest learners today!
Master data skills and change your life.
Sign up for free: bit.ly/3O8MDef

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 437   
@vikasparuchuri
@vikasparuchuri Год назад
Hi everyone! You can find the code for this tutorial here - github.com/dataquestio/project-walkthroughs/tree/master/sp_500 .
@feiziihu
@feiziihu Год назад
Thanks Vik!
@AudaiLouri
@AudaiLouri Год назад
Thanks Vic, However your F1 score is at 0.5. How does that factor in?
@aarondelarosa3146
@aarondelarosa3146 11 месяцев назад
Thanks, but it's incomplete.
@saip6126
@saip6126 8 месяцев назад
Hey Viki. You should have used the pd.dropna(inplace=True).
@majorkuntz
@majorkuntz 3 месяца назад
Great video. Will you or can you provide additional information on other useful classifiers and also how to merge other data sources like news and sentiment into this code?
@superztnt
@superztnt 7 месяцев назад
Clear and to the point. I hate super long videos full of things that don't provide much value. This one was great. I like that he walked through general data science/machine learning steps. In particular the data cleansing which many skip over, but it is actually an important step. Also, a pet peeve of mine is audio quality. This video you can hear the presenter clearly and he doesn't sound like his is working from a tin can.
@rstea
@rstea 7 месяцев назад
I’m new to coding but have always been an avid market watcher and looking for opportunities. Best video I’ve seen since I started scouring the depths of RU-vid for this content last week. Thank you sir!
@Juoa794
@Juoa794 8 месяцев назад
I cannot thank you enough! It's very straight to point and I've learned more in this video than in n online courses and articles.
@cooltraderf
@cooltraderf 8 месяцев назад
Excellent. This tutorial corrects an error that pretty much every other video from others that I have seen has made. Don't seek MSE precision in your target as your goal. That's not what practitioners are looking for. Do what this educator has done instead. This model gets it right as used in the real world. Solid base to work with. Well done!
@user-gj3kz7cm3x
@user-gj3kz7cm3x Месяц назад
No, this is not even close to how practitioners have approached the problem in the last 30 years…
@edmundobrown5604
@edmundobrown5604 8 месяцев назад
thank yiu so much fir the video. I have taken varius courses in different places, and your video and teaching style are certainly the best !
@khushaalb2688
@khushaalb2688 3 месяца назад
My man is doing noble work. Kudos!
@emadbagheri1083
@emadbagheri1083 Год назад
Searched & watched a LOT of videos. This is the best. Well done man.
@jsonbourne5085
@jsonbourne5085 3 месяца назад
have you tried them? do they work on real data?
@logannon
@logannon 4 месяца назад
Great video. Thank you for the insights. Going to be tuning into more of your work.
@chiroyce
@chiroyce 6 месяцев назад
DUDE THIS IS SO HELPFUL
@gooddude9211
@gooddude9211 9 месяцев назад
Very thorough and loved it sir. Thanks for the video lesson.
@jwia007
@jwia007 Год назад
This was an amazing walkthrough. I have learned so much!
@charlene6306
@charlene6306 Год назад
Watched up to 2:26 and I already know this is going to be excellent. Clear and concise explanation from the start and you know this is going to be more than your ordinary YT tutorial
@alang.2054
@alang.2054 11 месяцев назад
It's not excellent, you can't beat the market as regular person. You basically compete with Harvard graduates with math, computer science, etc. Degrees. Again, one RU-vid video won't make you beat the market
@mjmares
@mjmares 10 месяцев назад
@@alang.2054 someone had to break this kids dreams of being rich off a youtube vid
@okoo7385
@okoo7385 6 месяцев назад
​@alang.2054 Where'd you get that she said she would beat the market from her comment? I read an observation just stating that, this video is higher quality than most YT videos that claim to teach you something specific yet just give you fluff..
@Ivan-ou5nq
@Ivan-ou5nq 3 месяца назад
Explaining is on top. Thank you!
@circus14
@circus14 3 месяца назад
Vik, I echo the compliments on the excellent video. I was able to use my own bespoke weekly market timing signals aligned with weekly S&P closes to finally get a grounded statistical "opinion" on the predictability of forward returns - as only my second Python exercise! Thanks!
@tomx4278
@tomx4278 Год назад
Excellent video, thank you for sharing this. Hopefully I can see more ML related videos going forward.
@Templar_of_the_Clean_Code
@Templar_of_the_Clean_Code 7 месяцев назад
Very useful man, thanks for show us the way!
@Fred-ut7mc
@Fred-ut7mc Год назад
Thats a really good video and it seems you really know what you are talking about. Thanks!
@whansen101
@whansen101 7 месяцев назад
Super helpful - Thank You !!!
@ricjrob
@ricjrob 10 месяцев назад
Great video. Really clear and at a pace that allowed me to follow it easily and learn some new and simple techniques in how to manipulate data.
@idkidkidk3488
@idkidkidk3488 Год назад
This is awesome, instead of showing what you need to learn or try it shows how to actually build a model. This is very usefull. Thank you!
@idkidkidk3488
@idkidkidk3488 Год назад
Could we get a similar video bus featuring a deep learning model instead?
@alang.2054
@alang.2054 11 месяцев назад
What are you talking about? Do you really think this guy would show you real ways to make money? On market you compete with professionals in multi billion hedge funds with degrees, you can't beat them with RU-vid video
@abidson690
@abidson690 Год назад
Thanks so much, you're a blessing
@sergiysergiy8875
@sergiysergiy8875 11 месяцев назад
Great tutorial!
@marmadukethurmond8202
@marmadukethurmond8202 21 день назад
I've always been interested in binary options, but I never knew where to start. Thanks to you and this video, I finally felt confident enough to give it a try.
@annarocha9769
@annarocha9769 Год назад
thank you thank you !! this is great, suscribed :)
@peterbogar3427
@peterbogar3427 5 месяцев назад
Very good explanation, thanks.
@elu1
@elu1 Год назад
What a great framework to ML time-series data for prediction. Thanks for sharing!
@KR-good
@KR-good Месяц назад
This was an excellent presentation.
@tradercrypto_lad8929
@tradercrypto_lad8929 2 года назад
Cool Video! Thank you!!
@koopstakh301
@koopstakh301 2 года назад
These are great for practice Keep em coming
@Dataquestio
@Dataquestio 2 года назад
Glad you like them, Prathamesh! -Vik
@ereztison
@ereztison Год назад
Great video, thank you!
@SolidBuildersInc
@SolidBuildersInc Год назад
This was very well delivered. Thank yo sharing. I will consider the suggestions you made and see how this works. Very exciting with a bit of 😅.....
@anujsaraswat2257
@anujsaraswat2257 4 месяца назад
I'm hoping you can do a follow up video to this. Would be great to see how you would incorporate macro data into your model, such as news or interest rates.
@tsrinivas2406
@tsrinivas2406 Месяц назад
This is very nice way to get started using data science with the markets. This gives a nice framework to get started. And attempt to expand the predictors (on RSI based or Change in Open Interest , some correlation with the major stocks composing that index) . Thank you for sharing.
@abdulkareemridwan8762
@abdulkareemridwan8762 2 года назад
Great tutorial 🙏
@ajdaria1000
@ajdaria1000 5 месяцев назад
Excellent video!
@Maximus18.6
@Maximus18.6 7 месяцев назад
Congratulations for your explanation and it was very clear. I would like to suggest you to prepare a vide including news about the stock into this model. Thanks
@AVOWIRENEWS
@AVOWIRENEWS 4 месяца назад
Wow, the concept of predicting the stock market using machine learning and Python is such a fascinating topic! The blend of finance and technology is always an area ripe for innovative approaches. It's impressive how machine learning can analyze vast amounts of data to find patterns that might not be obvious at first glance. Python, with its extensive libraries and community support, is an excellent choice for such complex computations. It's exciting to think about how these tools can provide insights into market trends and possibly even predict future movements. The intersection of machine learning and finance is definitely a space to watch! 📈💡🤖
@InvestorLondon
@InvestorLondon Год назад
Incredible video! This helped me a whole lot I really do appreciate it! I Just Liked and Subcribed!
@rverm1000
@rverm1000 Год назад
cool went threw the whole process on mini conda.
@alan614
@alan614 6 месяцев назад
Great stuff!
@ew9373
@ew9373 10 месяцев назад
Thanks, Vic.
@SeamlessSolutions
@SeamlessSolutions 10 месяцев назад
Thank you ❤❤
@colleen.odegaard
@colleen.odegaard 8 месяцев назад
The S&P 500 is still up 10% this year. It's not a get-rich-quick scheme, but it's a proven strategy for wealth accumulation over time, Which happens path i'm considering so as to hedge the losses on my $350k portfolio, but are there any drawbacks to buying such quality stocks?
@Curbalnk
@Curbalnk 8 месяцев назад
Well, one potential downside is that they may not offer the same rapid growth potential as riskier, smaller-cap stocks. So, it depends on your goals and risk tolerance. you may want to work with a financial advisor who can help with right approach.
@TeresaBrickle
@TeresaBrickle 8 месяцев назад
this is definitely considerable! think you could suggest any advisors i can get on the phone with? i'm in dire need of proper portfolio allocation
@TeresaBrickle
@TeresaBrickle 8 месяцев назад
very much appreciated, your response suggests a person of benevolence.. just inputted her full name on my browser, and came across her site, top-notch qualifications! she seems well-qualified
@upsenloyn
@upsenloyn 3 месяца назад
​@@TeresaBricklefuck you bots no ones gonna fall for that
@pinecedar180
@pinecedar180 3 месяца назад
Spam comment chain, please remove
@ec92009y
@ec92009y 11 месяцев назад
Excellen video. I think you have a great teaching ability. I'm surprised you did not start with the usual "THIS IS NOT FINANCIAL ADVICE..." disclaimer 😇
@user-dp7lr5qh6o
@user-dp7lr5qh6o 6 месяцев назад
thank you
@RK-xe3tw
@RK-xe3tw 9 месяцев назад
Actually you forgot to measure the expectancy of a trade in the case it has a precision of 42%. Because what makes a strategy profitable is bit the win rate but rather the expectancy of the trades. Although it is a great video and a good tutorial about programming. Thanks and keep up the good work.
@mohibahmad5834
@mohibahmad5834 2 года назад
Sir your explaining skills are top notch
@dimitriosdesmos4699
@dimitriosdesmos4699 Месяц назад
your ability to hide though is not....
@Ganndude2004
@Ganndude2004 2 года назад
Great video , I hope to see more tutorials like this in the future.
@christopherreberger5450
@christopherreberger5450 Год назад
I suggest you google the semi strong efficient market hypothesis. Would save a lot of time.
@litchmoreandrew
@litchmoreandrew 2 года назад
great content
@justinturek6314
@justinturek6314 8 месяцев назад
You’re the real Mr Money
@tonimeiners8945
@tonimeiners8945 Год назад
Thanks for your great video. Im curious to read more about the whole issue of predicting actual prices versus only the direction. Do you have a good source on this? I can see why the latter is more robust, but once you start accounting for transaction costs, the magnitude of the direction is also important. curious to get your thought on this too.
@user-gj3kz7cm3x
@user-gj3kz7cm3x Месяц назад
No one does what he did because it’s stupid. It’s been common practice for over 40 years to calculate the logged odds of the derivative of the price (logged odds of the returns).
@rburnettcpa
@rburnettcpa Год назад
What a deep voice
@AtticusDenzil
@AtticusDenzil Год назад
great channel, will try to get some of my time to get to do something meaningful with the help of dataquest
@raushankumar5533
@raushankumar5533 Год назад
Thanks for your great video. Im curious to read more about the whole issue of predicting actual prices versus only the direction. Do you have a good source on this?
@FRANKWHITE1996
@FRANKWHITE1996 Год назад
Subscribed 🎉
@Poppinthepagne
@Poppinthepagne Год назад
Thank you so much, I’m learning to build and plot models, I’m basically copied your code and tried to understand it, What’s your advice to learn how to do it yourself?
@anatoliyzavdoveev4252
@anatoliyzavdoveev4252 Год назад
Super 👏👏💪
@sergiysergiy8875
@sergiysergiy8875 11 месяцев назад
How would you use the volume column? Not sure how to use the volume, can we build some relative volume indicator? Can you give a hint, or maybe a link to a video, where you use volume somehow to improve your model? Volume should influence the model significantly.
@mohamadhafiz3822
@mohamadhafiz3822 Год назад
great video, I hope to see your works into real trading platform. It would be great to see your P&L.
@kayakablejourneys
@kayakablejourneys 9 месяцев назад
Great video. It seems that the yfinance api is no longer functioning. Could you please do an updated video using a different method to collect the date? Thanks.
@TheWiewiorski
@TheWiewiorski Год назад
Vik thank you for this video! Greetings from Poland. Please explain to me how to connect the model so that operating on a virtual server bought and sold instruments? How do you combine it?
@jeevanjose6986
@jeevanjose6986 2 года назад
Brilliant video Vik! Towards the end, you mentioned adding news to the model. Could you share how one could integrate that? Thanks!
@Dataquestio
@Dataquestio 2 года назад
Hi Jeevan - the easiest way to do it is to scrape daily headlines from say the new york times, and create a "sentiment" model to indicate confidence in the market. The output of that model could then be a predictor column. Of course, you could get a lot more complicated than this :)
@psimondk
@psimondk 7 месяцев назад
Hint: on a recent macbook you can use all its cores by: import joblib N_CORES = joblib.cpu_count(only_physical_cores=True) ... model = RandomForestClassifier(n_estimators='your value', min_samples_split='your other value', random_state=1, n_jobs=N_CORES) The speedup is amazing
@DonFranciscoUSF
@DonFranciscoUSF 7 месяцев назад
you don't need any information about the system to do this, n_jobs = -1 will use all the available cores with no imports or extra lines :)
@NickWindham
@NickWindham Год назад
Awesome
@r8TradingAlgo
@r8TradingAlgo 2 месяца назад
Do a part 2 please!!!
@jackrozmaryn7905
@jackrozmaryn7905 5 месяцев назад
Amazing video!! Have yiou looked at the performances of other ML techniques, e.g, MLPregressor?
@maurovallefilho4576
@maurovallefilho4576 Год назад
Hi Vik. Thank you very much. Is it possible to predict two days in advance instead of just tomorrow?
@henriquesousa4789
@henriquesousa4789 4 месяца назад
The features used for the random forest cannot be the high, close, low , open values directly without any transformation because what the model is essentially doing is creating a overfit of non linear decisions to certain prices ranges. It is basically memorizing that when the close was above X value and open below Y value predict 1 or 0. You need to normalize the predictors in some way so that the model can use them independently of how high the value the stock is and truly create generalizable rules. Ratios are good since they use percentage instead of using absolute values and allow the model to use information of multiple candles as well.
@kibs_neville
@kibs_neville 3 месяца назад
Quite important comment.
@SuperVIN786
@SuperVIN786 Год назад
Excellent video and you are above average by all means. You made things easier for me who is new to Python. At 65 yrs old I tried to work your script and it worked beautifully. So, I tried with TSLA ticker and it gave me no obj to concatenate error and I have no idea how to fix that error.
@bvspa
@bvspa Год назад
Hey I'm facing the similar issue. You got any solutions?
@SuperVIN786
@SuperVIN786 Год назад
@@bvspa Did not work for me yet
@bvspa
@bvspa Год назад
@@SuperVIN786 you have to alter the start an step count as per the dataset
@SuperVIN786
@SuperVIN786 Год назад
@@bvspa Thanks I will try that
@SuperVIN786
@SuperVIN786 Год назад
@@bvspa Finally ran it after I made start and step number change, watched the video again which helped. Thanks
@mistletoe91
@mistletoe91 10 месяцев назад
Great, have you tried to improve the model ?
@DSDoesDS
@DSDoesDS Год назад
Ill take a notes: the model without hyperparameter tuning. if hyperparamter tuning is done, when backtesting we no longer need to look for the best parameters. In contrast to cross-validation which requires more tuning
@stansuen8072
@stansuen8072 Год назад
Great video. I am going to try modifying it to predict high and low (as a range %). Perhaps you can give me a few pointers while I explore how to do it.
@ergazipp
@ergazipp Год назад
Great video. The backtest code can be improved. Use vectorized back test instead of doing it in a loop will greatly improve the back test efficiency.
@stevenyoussef7677
@stevenyoussef7677 11 месяцев назад
Can you elaborate on this? The backtest for me takes about 100 seconds
@user-kb3yj7jw7p
@user-kb3yj7jw7p 4 месяца назад
I request you to create a video considering Fundamental Analysis news integration prediction model as its happening behind the scenes to change the values. Its just a request if possible.
@anabondal1471
@anabondal1471 Год назад
Thank you very much for this! Truly found this useful for my first ML Project. However, a bit confused by the 'combined' graph - how did you get it? :) (I had to do mine using the train_test_split import.)
@mojimoji2537
@mojimoji2537 4 месяца назад
Alert !!! just won a new suscriber
@AddilynTuffin
@AddilynTuffin 9 месяцев назад
Buying a stock is easy, but buying the right stock without a time-tested strategy is incredibly hard. I’ve been trying to grow my portfolio of $160K for sometime now, my major challenge is not knowing the best entry and exit strategies
@DanielPanuzi
@DanielPanuzi 9 месяцев назад
Investors should be cautious about their exposure and be wary of new buys, especially during inflation. Such high yields in this recession is only possible under the supervision of a professional or trusted advisor.
@RickWatson-xu6gw
@RickWatson-xu6gw 9 месяцев назад
I have been speaking with a coach for a long time now mostly because I lack the background knowledge and mental toughness to handle these reoccurring market conditions. I made over $220K during this drop, which proved that there is more to the market than the average person is aware of.
@NormanGhali
@NormanGhali 9 месяцев назад
I just started a few months back, I'm going for long term, I'm still trying to wrap my head around it, who’s this advisor you work with?
@RickWatson-xu6gw
@RickWatson-xu6gw 9 месяцев назад
Credits to *Sharon Louise Count* one of the best portfolio manager;s out there. she;s well known, you should look her up
@sting_grayl
@sting_grayl 9 месяцев назад
I Found her online page by searching her full name, I wrote her an email and scheduled a call, hopefully she responds soon. Thanks
@alexanderrooth1940
@alexanderrooth1940 Год назад
Great job! I used the majority of your code but for a specific company. My personal aspect is that this "result" is a bit messy. Do you have any tips on how we could make a clear graph towards the end with "predicted values"? I tried graphing with "Tomorrow" with respect to "Close"m but no difference. Part of that reason could because of the wide X-axis. Thanks again, looking forward to your answer! / Alexander
@alexanderrooth1940
@alexanderrooth1940 Год назад
Great video but where is the clarification that it will go up or down tomorrow?
@skiraf
@skiraf Год назад
Excellent Video. Thank you for sharing. Question, how can we compare the 'influence' from another stock in the same industry, ie, two retail stocks, or two energy stocks?
@jitendersinghvirk47
@jitendersinghvirk47 Год назад
correlation maybe.
@user-cn3wq2mt7s
@user-cn3wq2mt7s 4 месяца назад
Hi! Maybe you can compare your algorithm with the real optimal decision in every season, so you could "asign points" to this algorithm and compare with others!
@tochukwuumunnakwe2300
@tochukwuumunnakwe2300 8 месяцев назад
Hi, great lesson, I have a question. I'm still new to data science. But why didn't you use the data as a predictor? Im asking because say we want to predict what happens in the next day. How do i pass it to the model when i didn't train with it
@alrey72
@alrey72 10 месяцев назад
Good and clear explanation :) Although there are other factors to be considered like bid offer spread and commissions. Also, when the market goes against you, do you wait before the end of day to close the losing position? Maybe setting a stop loss and including it in the model and back testing can help. Thanks.
@Mike-fm3km
@Mike-fm3km 8 месяцев назад
how would commissions help? lol
@alrey72
@alrey72 8 месяцев назад
@@Mike-fm3km In the back testing of the model, it may seem profitable but after considering the commissions/transaction fees, it might be unprofitable instead.
@adamfrench4587
@adamfrench4587 Год назад
Thank you so much for the tutorial and for taking the time to explain each piece of code in such a clear manner. I have two quick questions: 1.) What is the purpose of the .csv file ? 2.) Broadly speaking, what would be the steps to using a different API? Thanks !!
@FlisB
@FlisB Год назад
If you can fit the data from the API into a data-frame it would be very easy.
@adamfrench4587
@adamfrench4587 Год назад
@@FlisB thanks for replying. Would you by any chance know how get (in addition to 1 or 0 when proba >.6) a column with the actual probability?
@FlisB
@FlisB Год назад
​@@adamfrench4587 You need to save the result of model.predict_proba to another variable. add probs = preds before changing "preds" with 0.6 condition. And then add "probs" to the array inside pd.concat.
@adamfrench4587
@adamfrench4587 Год назад
Legend, thank you so much!
@harunnmsanee5371
@harunnmsanee5371 11 месяцев назад
Is there next project where you improved the accuracy of the model to a higher percentage
@RobCoops
@RobCoops Год назад
You would only care about directionality if brokers fees where not a thing. As soon as you are trading via a broker knowing the the price will go up is great but if it goes up by 10 cents and you would stand to gain $10 in absolute value is great but if the brokers fee is $5.99 you are not winning at all as you will still need to offload the stock thus you are loosing money and only your broker is winning here. This is why both price and direction are relevant you need to not only know you will see a price increase but also know that it will be enough to actually make sense to buy. Sure you could bet on the gains on average outpacing the fee's thus ending up net positive but if you are into betting like that leveraged options trading might be a better fit than stock trading.
@venkateshk4942
@venkateshk4942 Год назад
Amazing work! Although I have a few doubts. I selected 18 features - from global stock indices, currency, and commodity - to predict daily directional changes in Nifty 50. 1. I'm not using the closing price for input variables rather I'm using the difference in previous close and current close. Is this a correct approach. 2. Also, can I split the target variable into 5 category (Up, Down, Neutral, Extended Up, Extended Down).
@NickWindham
@NickWindham Год назад
1) wouldn’t that be the same as using closing values? 2) interesting idea but it will probably reduce the over all effectiveness of the model because it reduces the amount of training data that meets the 5 categories vs 2. I don’t know about India exchanges, but in the US, for example, Fidelity charges $0 trade fee and keeps $0 from market makers for order flow. It all goes to the customer as price improvement. This is an extreme case, but my point is that I’m 2023, there should be markets you can trade for little to no cost. The brokers want your limit orders because it provides their other customers more liquidity without having to execute through a market maker. Also, they sell the limit order data to hedge funds that use that extra level of info to have an edge on the markets.
@MattDouglas-hj9wh
@MattDouglas-hj9wh 10 месяцев назад
My spouse and I are adding a variety of stocks/ETF to my present holdings for the long term, We've set aside $250k to start following inflation-indexed bonds and stocks of companies with solid cash flows, I believe it is a good time to capitalize on the market for long-term gains, but it wouldn't hurt to know means of actualizing short term profit.
@graceocean8323
@graceocean8323 10 месяцев назад
The current market might give opportunities to maximize profit within a short term, but in order to execute such strategy , you must be a skilled practitioner.
@hannahdonald9071
@hannahdonald9071 10 месяцев назад
Having an lnvestment advser is the best way to go about the market right now, especially for near-retirees, I've been in touch with a coach for a year now mostly because I lack the depth knowledge and mental fortitude to deal with these recurring market conditions, I nettd over $320K in profits so far, Its clear there's more to the market that we avg joes don't know that Investment advisors know.
@hannahdonald9071
@hannahdonald9071 10 месяцев назад
Salvatore Fortunato Sofia. You can easily look her up, she has years of financiaI market experience.
@trazzpalmer3199
@trazzpalmer3199 10 месяцев назад
Thank you for this tip. it was easy to find your coach. Did my due diligence on her before scheduling a phone call with her. She seems proficient considering her résumé.
@bmariani52
@bmariani52 10 месяцев назад
What are the Profits after trading every day compared to SPY performance as the benchmark.
@BaoTran-jo8lj
@BaoTran-jo8lj 9 месяцев назад
Thank you for your videos. But what if I have multiple stocks to predict, and when I parse one stock id in, I want to get the specific prediction for that id only. will it be feasible?
@johnnydavidsantana1935
@johnnydavidsantana1935 Год назад
Hi, how do I predict the next , for instance in a new data.
@maburwanemokoena7117
@maburwanemokoena7117 Год назад
when you split the data into the training and testing dataset, you are actually performing what is called Simple Random Sampling, this will cause the training data to have the same elements/characteristics of the testing dataset. If you were to calculate the means of each predictor variable in the testing and training dataset it will roughly be the same due to random sampling. The point I am trying to make is that you cannot claim the model has not "seen" the testing data, yet it managed to capture the majority of its properties due to simple random sampling, how about you train the model using the first 70% rows then leave the remaining 30% at the bottom for predictions? In that way the model does not have any idea what's happening with the remaining 30% (though there is an argument one can put forward about this), I think that approach would be the most realistic. I have used the simple random sampling before and I have gotten results which seemed to be accurate, it was not until I used this method I am suggesting to you that I obtained a little bit higher errors.
@mda99das
@mda99das Год назад
How has the model done this year? Does it show a topping formation?
@dariabozhenko3903
@dariabozhenko3903 6 месяцев назад
I get how we can predict for one day, but can we predict with this model for several days, or what the trend will be for the next week?
@majorkuntz
@majorkuntz 3 месяца назад
Would be great to see an updated or enhanced version that incorporated a LLM to show how easy data manipulation can be…
@chandannasta
@chandannasta Год назад
Can you make something for me like this which can predict on which Indian company stocks are good in Indian stock market?
@mayurramtekkar5813
@mayurramtekkar5813 Год назад
Hi, the way you explain is much better than any other. But I have a [ ValueError: No objects to concatenate ] after " predictions = backtest(AXIS, model, predictors) ". How to solve it?
@afromusiclive6672
@afromusiclive6672 Год назад
you dont have enough data to concatenate
@droopybeagle
@droopybeagle Год назад
Would you be able to provide a tutorial which follows on from this and presents the outcome in a streamlit dashboard for prototyping?
@Dataquestio
@Dataquestio Год назад
Hey, I'll look into doing a streamlit tutorial!
Далее
СПРАВКА ДЛЯ УНИВЕРА
00:44
Просмотров 324 тыс.
I Built a Trading Bot with ChatGPT
18:33
Просмотров 1,8 млн
Stock Price Prediction Using Python & Machine Learning
49:48
MIT Introduction to Deep Learning (2023) | 6.S191
58:12
How I’d learn ML in 2024 (if I could start over)
7:05