GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DevyaniD19/MNC-Stock-Market-Price-Prediction: IBM stock price forecasting using Random Forest, LSTM (4-layer), and ARIMA models with Python

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
IBM Stock Data.csv
IBM Stock Data.csv
 
 
LICENSE
LICENSE
 
 
MNC_Stock_Market_Price_Prediction.ipynb
MNC_Stock_Market_Price_Prediction.ipynb
 
 
README.md
README.md
 
 
mnc_stock_market_price_prediction.py
mnc_stock_market_price_prediction.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

šŸ“ˆ MNC Stock Market Price Prediction

Python Keras scikit-learn License: MIT

Time-series stock price forecasting using Random Forest, LSTM (Deep Learning), and ARIMA on IBM historical stock data.

šŸ“Œ Overview

This project applies three distinct forecasting approaches to IBM stock price data, comparing their predictive power on closing prices:

  • Random Forest Regressor — ensemble tree-based approach
  • LSTM Neural Network — 4-layer stacked LSTM with Dropout regularisation
  • ARIMA / Auto-ARIMA — classical time-series decomposition and forecasting

šŸ—‚ļø Repository Structure

MNC-Stock-Market-Price-Prediction/
ā”œā”€ā”€ MNC_Stock_Market_Price_Prediction.ipynb   # Full analysis and modelling notebook
ā”œā”€ā”€ mnc_stock_market_price_prediction.py      # Python script version
ā”œā”€ā”€ IBM Stock Data.csv                        # Historical IBM stock data (OHLCV)
ā”œā”€ā”€ requirements.txt                          # Python dependencies
└── README.md                                 # This file

šŸ“Š Dataset

Feature Description
Date Trading date
Open Opening price (USD)
High Intraday high price (USD)
Low Intraday low price (USD)
Close Closing price (USD) — target variable
Volume Number of shares traded
Name Ticker symbol (IBM)

🧠 Model Architectures

🌲 Random Forest

  • 100 decision trees with bootstrap aggregation
  • Features: lag prices, rolling mean, rolling std
  • Evaluated on 20% holdout set

šŸ” LSTM (Long Short-Term Memory)

Layer 1: LSTM(50, return_sequences=True) + Dropout(0.2)
Layer 2: LSTM(50, return_sequences=True) + Dropout(0.2)
Layer 3: LSTM(50, return_sequences=True) + Dropout(0.2)
Layer 4: LSTM(50) + Dropout(0.2)
Output:  Dense(1)
  • Optimizer: Adam | Loss: Mean Squared Error
  • Look-back window: 60 days

šŸ“‰ ARIMA

  • Augmented Dickey-Fuller (ADF) test for stationarity
  • Seasonal decomposition (trend, seasonal, residual)
  • Auto-ARIMA for optimal (p, d, q) selection

šŸ“ˆ Results

Model RMSE
Random Forest ~4.2
LSTM ~3.1
ARIMA ~5.8

LSTM achieves the lowest RMSE, capturing long-term temporal dependencies in the stock price sequence.

šŸ”® Future Work

  • Add Bidirectional LSTM and GRU variants
  • Incorporate sentiment analysis from financial news (NLP)
  • Multi-stock portfolio prediction
  • Real-time prediction dashboard with Streamlit
  • Add technical indicators: RSI, MACD, Bollinger Bands

āš™ļø Setup

pip install -r requirements.txt
jupyter notebook MNC_Stock_Market_Price_Prediction.ipynb

šŸ‘©ā€šŸ’» Author

Devyani Deore — github.com/DevyaniD19

šŸ“„ License

MIT License — see LICENSE for details.

About

IBM stock price forecasting using Random Forest, LSTM (4-layer), and ARIMA models with Python

Topics

arimadeep-learningkeraslstmpythonrandom-forestscikit-learningstock-predictiontime-series

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.