Machine Learning Stock Prediction Using Random Forest Regressor

  Рет қаралды 32,487

Computer Science (compsci112358)

Computer Science (compsci112358)

Күн бұрын

Пікірлер: 25
@RasoulMojtahedzadeh
@RasoulMojtahedzadeh 2 жыл бұрын
At the beginning of each trading day, only Open price is known. The features High, Low and Volume are not yet known, and hence, using them as features is not possible to predict the Close price of the day.
@kibs_neville
@kibs_neville 9 ай бұрын
Exactly, so what is the solution?
@Random_work822
@Random_work822 6 ай бұрын
​@@kibs_neville using open price to predict
@DeejayGabin
@DeejayGabin 2 жыл бұрын
You entroduced lookahead biais in your model training using high, low and volume as it is unknown at the open time of the candle. What you could do is shift your Close column for your y variable, to try predicting the next canddle close price
@vloggetts
@vloggetts 8 ай бұрын
No train test split. This is the equivalent of giving the model the answer sheet to the test so you don’t get an accurate picture of model performance
@rajeshmanjrekar3614
@rajeshmanjrekar3614 2 жыл бұрын
pls enclose a link for the data.....thanks a lot
@guicraw99
@guicraw99 Жыл бұрын
The y value should be different from the current open, low, high and volume information row. Should we use other data, rather than open ,low, high and volume to predict the future stock price ?
@shalomdosseh5367
@shalomdosseh5367 Жыл бұрын
You are use indicators value, emas cross, macd, rsi etc..values as feature instead of OHLV values
@mint9121
@mint9121 2 жыл бұрын
Nice work, thanks for sharing.
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 2 жыл бұрын
Thanks for watching!
@pranavkhatri9564
@pranavkhatri9564 Жыл бұрын
do you not need to split the dataset?
@JamieCrew
@JamieCrew 6 ай бұрын
He did, but without using the split method. He did it by manually assigning X as all the rows excluding the Close column and the last row. He then assigned Y as all the rows close value except the last row, as this is the test set. He then trained the model with the above, and then he ran the test on the last row(test data) X values(columns excluding close value) and predicted Y(the close value for the last row). It's not the best algorithm as his set is split at a very unbalanced value. One needs more data to make it more accurate.
@thevaibhavkaushal
@thevaibhavkaushal Жыл бұрын
Bogus Exercise. Feature already are part of future data thus making prediction using them makes no sense.
@guicraw99
@guicraw99 Жыл бұрын
Exactly. The y value should be different from the current open, low, high and volume information row. Should we use other data, rather than open ,low, high and volume to predict the future stock price ?
@ACSMusicSounds
@ACSMusicSounds Жыл бұрын
How would you make a graph based on this? Thank you
@christopherheuser622
@christopherheuser622 2 жыл бұрын
Why would the model predict 263 only, if the last couple of days are already > 270, values which are included into the prediction of only 263 and not 270-280?
@aarondelarosa3146
@aarondelarosa3146 Жыл бұрын
Excellent. Could you make a video on Portfolio Optimization using Black Litterman Model?
@thebiggerpicture__
@thebiggerpicture__ 4 ай бұрын
You are using the High and Low of the hour, but you will only know this information once the hour is finished. These two features dont make sense. Thanks anyways for the video.
@fleshandbloody-hm3bc
@fleshandbloody-hm3bc 8 ай бұрын
Thank you!!
@Alberto-tv8rg
@Alberto-tv8rg Жыл бұрын
I am working on a similar project on colab but I cannot import sklearn ensemble RandomForestEnsemble..please help me
@heresmypersonalopinion
@heresmypersonalopinion Жыл бұрын
Man I'm working on a trading bot. How much for your help?
@didierleprince6106
@didierleprince6106 2 жыл бұрын
Merci (:
@ph5915
@ph5915 2 жыл бұрын
Argh. I get anFileNotFoundError at the line -- df = pd.read_csv('stock_data.csv')
@ElectricSH33P
@ElectricSH33P 2 жыл бұрын
You would need to include the file path to your stock_data.csv file. pd.read_csv('/path/to/file'). That error means that your notebook can't find the CSV file.
@ph5915
@ph5915 2 жыл бұрын
@@ElectricSH33P Ah, thank you (I'm very new to this.)
LSTM Top Mistake In Price Movement Predictions For Trading
9:48
CodeTrading
Рет қаралды 107 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Use Artificial Intelligence (AI) to Predict the Stock Market with Python
14:08
Computer Science (compsci112358)
Рет қаралды 67 М.
Random Forest Algorithm Clearly Explained!
8:01
Normalized Nerd
Рет қаралды 670 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
Machine Learning (AI) for Trading Stocks
13:09
Computer Science (compsci112358)
Рет қаралды 4,6 М.
Predicting Stock Prices with FBProphet in Python
21:26
NeuralNine
Рет қаралды 32 М.
Random Forest Regressor in Python: A Step-by-Step Guide
15:21
Ryan & Matt Data Science
Рет қаралды 13 М.
A Machine Learning Stock Trading Strategy Using Python
26:18
Computer Science (compsci112358)
Рет қаралды 20 М.
181 - Multivariate time series forecasting using LSTM
22:40
DigitalSreeni
Рет қаралды 290 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН