Skip to content

This ML model predicts the price of the S&P500 Stock Market Index using RandomForestClassifier

Notifications You must be signed in to change notification settings

LasithaAmarasinghe/Stock-Market-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Stock-Market-Price-Prediction

price prediction

Overview

  • 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.

Steps

  • 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

Code

You can find the code for this project here.

Technologies/Tools

  • JupyterLab / Google Colab
  • Python 3.10.12
  • Python packages
    • pandas - pip install pandas
    • scikit-learn - pip install scikit-learn
    • yfinance - pip install yfinance

Python Jupyter Notebook Pandas scikit-learn yfinance

Data

You can download the S&P500 dataset used in this project here.

Releases

No releases published

Packages

No packages published