Git Product home page Git Product logo

stock-price-prediction's Introduction

Stock Price Prediction Project

Overview

This project focuses on predicting the stock prices of "The State Bank Of India" using machine learning Regression algorithms. The dataset was collected from Yahoo Finance and contains historical stock data.

Features

  • Utilizes various classification algorithms for stock price prediction.
  • Dataset collected from Yahoo Finance for "The State Bank Of India."

Algorithms Used

  • Linear Regression
  • SVR
  • Random Forest
  • Gradient Boosting Models (GBM)
  • Extreme Gradient Boosting (XGBoost)
  • AdaBoostRegressor
  • Decision Tree
  • KNeighborsRegressor(KNN)
  • Artificial Neural Networks (ANN)
  • LSTM(Long Short term Memory)

Dataset

The dataset used in this project is sourced from Yahoo Finance and includes historical stock data for "The State Bank Of India." It comprises relevant features such as Open, High, Low, Close prices, and volume.

Project Structure

  • data/: Contains the dataset files.
  • notebooks/: Jupyter notebooks with the code for data exploration, preprocessing, and model training.
  • src/: Python source code for the project.
  • requirements.txt: List of dependencies needed to run the project.

How to Run

  1. Install dependencies using pip install -r requirements.txt.
  2. Execute the notebooks in the notebooks/ folder in the given order.
  3. Run the scripts in the src/ folder for further analysis or model training.

Results

The sequence of all the algorithms used is as follows:

  1. Linear Regression
  2. SVR
  3. Random Forest
  4. Gradient Boosting Models (GBM)
  5. Extreme Gradient Boosting (XGBoost)
  6. AdaBoostRegressor
  7. Decision Tree
  8. KNeighborsRegressor(KNN)
  9. Artificial Neural Networks (ANN)
  10. LSTM(Long Short term Memory)

The Accuracy of all the following 10 Regression Algortihms is provided below:

image

The RMSE of all the following 10 Regression Algortihms is provided below:

image

The MAE of all the following 10 Regression Algortihms is provided below:

image

The MAPE of all the following 10 Regression Algortihms is provided below:

image

The Precision of all the following 10 Regression Algortihms is provided below:

image

The Recall of all the following 10 Regression Algortihms is provided below:

image

Future Work

  • We can further combine this data with that of stock sentiment data in order to achieve even better conclusion
  • Also we can possibly use Clustering algorithsm to develop a buy/sell recommendation system

Conclusion

  • We can clearly see in the accuracy chart that the accuracy of the algorithms - "2", "6", "8" and "10" are the highest.
  • But when we see the rmse chart we find that the algorithms "2" and "8" is unusually high.
  • So we conclude that the algorithms "6" and "10" i.e. AdaBoostRegressor and LSTM(Long Short term Memory) have performed very well both in terms of accuracy and rmse.

Author

Rohit Dubey

License

This project is licensed under the MIT License.

stock-price-prediction's People

Contributors

rohitinu6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.