SkillAgentSearch skills...

StockCast

This project focuses on predicting the stock prices of "The State Bank Of India" using machine learning Regression algorithms.

Install / Use

/learn @rohitinu6/StockCast

README

<div align="center">

<a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.herokuapp.com?font=Roboto+Slab&size=30&duration=2000&pause=500&color=F7F7F7&background=FFFFFF00&width=435&lines=%F0%9F%93%88+StockCast" alt="Typing SVG" /></a>

Stock Prediction Model

</div> <img src="https://raw.githubusercontent.com/alo7lika/Stock-Price-Prediction/refs/heads/main/Images/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">

📈 GitHub Repository Stats

| 🌟 Stars | 🍴 Forks | 🐛 Issues | 🔔 Open PRs | 🔕 Closed PRs | 🛠️ Languages | ✅ Contributors | |--------------|--------------|---------------|-----------------|------------------|------------------|------------------| | GitHub stars | forks | issues | pull requests | Closed PRs | Languages | Contributors |

<img src="https://raw.githubusercontent.com/alo7lika/Stock-Price-Prediction/refs/heads/main/Images/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">

This project is now OFFICIALLY accepted for

<table> <tr> <td align="center"> <img src="https://raw.githubusercontent.com/alo7lika/Stock-Price-Prediction/refs/heads/main/Images/329829127-e79eb6de-81b1-4ffb-b6ed-f018bb977e88.png" alt="GSSoC 2024 Extd" width="90%" height="90%"> </td> <td align="center"> <img src="https://raw.githubusercontent.com/alo7lika/Stock-Price-Prediction/refs/heads/main/Images/hacktober.png" alt="Hacktober fest 2024" width="60%" height="40%"> </td> </tr> <tr> <td align="center"> <img src="https://devfolio-prod.s3.ap-south-1.amazonaws.com/hackathons/10e9c91c8b6e403ab676235d64c25af0/assets/cover/511.jpeg" alt="Hacktober fest 2024" width="60%" height="40%"> </td> <td align="center"> <img src="https://delta.nitt.edu/images/dwoc.webp" alt="Hacktober fest 2024" width="60%" height="40%"> </td> </tr> <tr> <td align="center"> <img src="https://www.datocms-assets.com/16499/1700243872-dbeac558328c6cd9e9bddc5929502fc4.png?auto=format&w=800" alt="Hacktober fest 2024" width="60%" height="40%"> </td> <td align="center"> <img src="https://i.ytimg.com/vi/I-U0tMaIGtU/maxresdefault.jpg" alt="Hacktober fest 2024" width="60%" height="40%"> </td> </tr> </table> <br> <img src="https://raw.githubusercontent.com/alo7lika/Stock-Price-Prediction/refs/heads/main/Images/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">

✨ Project Structure

Check the project structure here Project Structure

📚 Table of Contents


🌞 Overview

This project aims to predict the stock prices of The State Bank of India (SBI) using various machine learning regression algorithms. By leveraging historical stock data sourced from Yahoo Finance, this project provides insights into the performance of different regression models in stock price prediction for SBI.

The primary objective is to compare model accuracy and performance metrics, such as RMSE, MAE, and MAPE, across multiple algorithms, ultimately identifying the most suitable regression approach for stock price forecasting.

🛠️ Features

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

🔍 Algorithms Used

We implemented the following regression algorithms for stock price prediction:

| 🤖 Algorithm | 📜 Description | |-------------------------------------------|----------------------------------------------------| | Linear Regression | A basic regression algorithm. | | Support Vector Regression (SVR) | Effective for non-linear relationships. | | Random Forest | Ensemble learning method using decision trees. | | Gradient Boosting Models (GBM) | Sequentially builds models to improve predictions. | | Extreme Gradient Boosting (XGBoost) | Advanced boosting technique with regularization. | | AdaBoostRegressor | Combines multiple weak learners. | | Decision Tree | Simple yet effective model based on tree structure. | | KNeighborsRegressor (KNN) | Predicts based on nearest neighbors' average. | | Artificial Neural Networks (ANN) | Mimics human brain for complex data patterns. | | Long Short Term Memory (LSTM) | Suitable for time-series prediction. |

📊 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 prices
  • 📉 High prices
  • 📉 Low prices
  • 💵 Close prices
  • 📦 Volume

📁 Project Structure

Directory structure:
└── rohitinu6-stockcast.git/
  ├── readme.md
  ├── License
  ├── repo_structure.txt
  ├── requirements.txt
  ├── ARIMA/
  │   ├── README.md
  │   ├── ARIMA_V2.ipynb
  │   ├── hybrid.ipynb
  │   ├── saved_model/
  │   │   ├── arima_model.pkl
  │   │   ├── lstm_model.h5
  │   │   └── scaler.pkl
  │   └── .ipynb_checkpoints/
  │       ├── ARIMA_V2-checkpoint.ipynb
  │       └── hybrid-checkpoint.ipynb
  ├── Data/
  │   ├── SBI Test data.csv
  │   ├── SBI Train data.csv
  │   └── SBIN.csv
  ├── Data Analysis/
  │   ├── SBI Stock Analysis Updated.pptx
  │   └── SBI Stock Analysis Updated.twbx
  ├── Images/
  │   └── Image
  ├── Intel_Optimized/
  │   ├── readme.md
  │   ├── ARIMA_V2.ipynb
  │   ├── Intel_Optimization.md
  │   ├── Stock_Price_Prediction_1.ipynb
  │   ├── Stock_prediction_Data_Analysis.ipynb
  │   ├── buy_sell_recommendation_system.ipynb
  │   ├── hybrid.ipynb
  │   ├── reduced_redundancy_stock_price_prediction.ipynb
  │   ├── requirements.txt
  │   └── images/
  ├── Jupyter Source Files/
  │   ├── Buy Sell Recommendation.ipynb
  │   ├── EDA + Models.ipynb
  │   ├── Reduced Redundancy.ipynb
  │   ├── Stock Price Prediction.ipynb
  │   └── VWAP based Models.ipynb
  ├── Markdown Source Files/
  │   ├── Code of conduct.md
  │   ├── Contributing.md
  │   ├── Leaderboard.md
  │   ├── Project structure.md
  │   └── Security.md
  ├── Python Files/
  │   ├── Stock_Price_Prediction.ipynb
  │   ├── Stock_Price_Prediction_BACKUP_19716.ipynb
  │   ├── Stock_Price_Prediction_BACKUP_20502.ipynb
  │   ├── Stock_Price_Prediction_BASE_19716.ipynb
  │   ├── Stock_Price_Prediction_BASE_20502.ipynb
  │   ├── Stock_Price_Prediction_LOCAL_19716.ipynb
  │   ├── Stock_Price_Prediction_LOCAL_20502.ipynb
  │   ├── Stock_Price_Prediction_REMOTE_19716.ipynb
  │   └── Stock_Price_Prediction_REMOTE_20502.ipynb
  ├── catboost_info/
  │   ├── catboost_training.json
  │   ├── learn_error.tsv
  │   ├── time_left.tsv
  │   └── learn/
  │       └── events.out.tfevents
  ├── images/
  └── .ipynb_checkpoints/
      ├── More_Charts.ipynb
      ├── Stock_Price_Prediction(Updated) MultiLayer LSTM-checkpoint.ipynb
      ├── Stock_Price_Prediction-checkpoint.ipynb
      ├── Stock_prediction_Data_Analysis-checkpoint.ipynb
      ├── candlestick_chart.html
      ├── stock_market(complete)-checkpoint.ipynb
      └── stock_sentimental-checkpoint.ipynb

🚀 How to Run main.py

Steps: 1.If Flask is not installed, install it:

pip install flask

2.Install dependencies using:

pip install -r requirements.txt

3.Run the Flask app:

python main.py

📈 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. Long Short Term Memory (LSTM)

📊 Performance Metrics

The Root Mean Square Error (RMSE) of all the following 10 Regression Algorithms is provided below: <img src="images/f23e9194-72de-438d-bd69-744667680d3e.jpeg" alt="Performance-Metrices" width="400" height="300">

The Mean Absolute Error (MAE) of all the following 10 Regression Algorithms is provided below:

<img src="images/085ee2d1-3544-4bed-a558-5b0b801e806b.jpeg" alt="Performance-Metrices" width="400" height="300">

The Mean Absolute Percentage Error (MAPE) of all the f

Related Skills

View on GitHub
GitHub Stars55
CategoryEducation
Updated3d ago
Forks81

Languages

Jupyter Notebook

Security Score

100/100

Audited on Mar 31, 2026

No findings