- The price of the S&P500 Stock Market Index is predicted using RandomForestClassifier in this project.
- This repository contains all the codes and resources of this project.
- Downloading data using the yfinance package
- Cleaning and visualizing stock market data
- Setting up a target for machine learning
- Creating an initial machine-learning model
- Building a backtesting engine to more accurately measure accuracy
- Adding additional predictors to the model
- Improving the accuracy of the model
You can find the code for this project here.
- JupyterLab / Google Colab
- Python 3.10.12
- Python packages
- pandas -
pip install pandas
- scikit-learn -
pip install scikit-learn
- yfinance -
pip install yfinance
- pandas -
You can download the S&P500 dataset used in this project here.