In these notebooks, I have done Time Series Analysis on S&P500 stock prices imported using yfinance
library.
- In this notebook, I compared the closing prices of the present day and the next day to create a target. 1 if increase else 0.
- Used RandomForestClassifier to classify if the stock price will increase on the next day or not.
- Obtained a decent accuracy score.
- Used LSTM to do TimeSeries Analysis in Pytorch.
- Utilized Dataset class to use data frame dataset.
- The result obtained is shown below.