Skip to content

This repository is for our 7th-semester project, Advanced Stock Price Forecasting Using a Hybrid Model of Numerical and Textual Analysis. It uses Python, NLP (NLTK, spaCy), machine learning models, Grafana, InfluxDB, and Streamlit for comprehensive data analysis and visualization.

License

Notifications You must be signed in to change notification settings

madhurimarawat/Stock-Market-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock-Market-Prediction

This repository is for our 7th-semester project, Advanced Stock Price Forecasting Using a Hybrid Model of Numerical and Textual Analysis. It uses Python, NLP (NLTK, spaCy), machine learning models, Grafana, InfluxDB, and Streamlit for comprehensive data analysis and visualization.

📈 Stock Market Illustration

Project Description

The Advanced Stock Price Forecasting Using a Hybrid Model of Numerical and Textual Analysis project involves a comprehensive approach to predicting stock prices using both numerical data and textual analysis. The project components include:

  1. Data Collection and Storage: We gathered historical stock data of major companies and stored it in an InfluxDB database to efficiently handle large-scale time-series data.

  2. Data Visualization: A Grafana dashboard has been set up for real-time visualization of stock prices and analysis results, enhancing data interpretation and decision-making processes.

  3. Textual Analysis for Enhanced Forecasting: We utilized Natural Language Processing (NLP) libraries, such as NLTK and spaCy, to analyze financial news and reports. This component complements numerical analysis to improve the accuracy of our hybrid forecasting model.

  4. Machine Learning Models: The project used models including Naive Bayes, MLP (Multi-Layer Perceptron), Logistic Regression, and Random Forest to process both numerical and textual data, creating a robust and comprehensive stock prediction system.

  5. Collaboration and Project Management: The repository includes contributions from all team members with well-organized tasks, ensuring seamless collaboration and effective version control.

Directory Structure

📁 Stock-Market-Prediction/
├── 📁 Codes/
│   ├── 📁 Historical_Data_Analysis/
│   ├── 📁 Partial_Data_Analysis/
│   ├── 📁 Ticker_Symbols_Stocks/
│   ├── 📁 Flask_App/
│
├── 📁 Conferences/
│
├── 📁 Documents/
│
├── 📁 Reference_Documents/
│
├── 📁 Resources/
│
├── 📄 LICENSE
└── 📄 README.md

Dataset Used

Company Description Data Range Dataset Shape Starting Stock Date Current Stock Date Starting Stock Price Current Stock Price

Alphabet Inc. (Google) [GOOG]
Specializes in Internet-related services and products, including search engines, online advertising, and cloud computing. 2014-03-27 : 2024-10-17 (2659, 5) 2014-03-27 2024-10-17 $27.8542 $164.51

Amazon.com Inc. [AMZN]
Started as an online bookstore, now a leader in e-commerce and cloud computing through AWS. 1997-05-16 : 2024-10-17 (6901, 5) 1997-05-16 2024-10-17 $0.0863 $187.53

Apple Inc. [AAPL]
Renowned for innovative consumer electronics, software, and services, including the iPhone and Mac computers. 1980-12-12 : 2024-10-17 (11053, 5) 1980-12-12 2024-10-17 $0.0992 $232.15

Meta Platforms [META]
Owner of Facebook, a global leader in social media and digital advertising. 2012-05-18 : 2024-10-17 (3124, 5) 2012-05-18 2024-10-17 $38.1174 $576.93

Microsoft Corp. [MSFT]
A leading developer of software, consumer electronics, and personal computers. 1986-03-13 : 2024-10-17 (9728, 5) 1986-03-13 2024-10-17 $0.0603 $416.72

Netflix Inc. [NFLX]
Global streaming entertainment service with a vast library of TV series and films. 2002-05-23 : 2024-10-17 (5640, 5) 2002-05-23 2024-10-17 $1.1964 $687.65

Nvidia Corp. [NVDA]
Specializes in graphics processing units and AI technology. 1999-01-22 : 2024-10-17 (6477, 5) 1999-01-22 2024-10-17 $0.0377 $136.93

Tata Consultancy Services [TCS]
Leading global IT services, consulting, and business solutions provider. 2013-11-01 : 2024-10-17 (2758, 5) 2013-11-01 2024-10-17 $543.0 $11.8

Tools and Technologies

  1. Python: Core programming language used for data analysis, model building, and backend development.
  2. GitHub: Platform for version control and collaborative development.
  3. InfluxDB: Database for efficient time-series data storage and retrieval.
  4. Grafana: Tool for real-time data visualization and dashboard creation.
  5. Streamlit: Framework for creating interactive web applications.
  6. Flask: Lightweight framework for developing the project’s backend.
  7. Pandas: Library for data manipulation and analysis.
  8. Matplotlib & Plotly: Libraries for data visualization and graphical representation.
  9. NLP Libraries (NLTK, spaCy): Tools for processing and analyzing text data.
  10. Machine Learning Libraries: Used for implementing models like Naive Bayes, MLP, Logistic Regression, and Random Forest.

Project Database & Dashboard

For easy visualization and data management, we are using the following tools:

InfluxDB Database

1. Numerical Analysis

Numerical Analysis Snapshot

2. Model Prediction

Model Prediction Snapshot

3. Textual Analysis

Textual Analysis Snapshot

4. Hybrid Model

Hybrid Model Snapshot `

Grafana Dashboard

1. Stock Market and Project Dashboard Overview

This section provides an overview of the stock market, project details, and descriptions of the companies used in the project, including MAANG, Nvidia, Microsoft, and TCS.

Stock Market Overview Snapshot 1 Stock Market Overview Snapshot 2 Stock Market Overview Snapshot 3 Stock Market Overview Snapshot 4

2. Numerical Analysis

This section displays numerical data of the stock market, featuring graphs of open, high, low, and close prices along with volume bar plots, RSI, and moving averages.

Numerical Analysis Snapshot 1 Numerical Analysis Snapshot 2 Numerical Analysis Snapshot 3

3. Model Prediction

This section highlights model predictions, including individual and comparative graphs of predicted and actual values for stock prices, as well as predicted RSI and moving averages.

Model Prediction Snapshot 1 Model Prediction Snapshot 2 Model Prediction Snapshot 3

4. Textual Analysis

This section visualizes sentiment analysis from news headlines, showcasing positive, negative, and neutral sentiment scores.

Textual Analysis Snapshot 1 Textual Analysis Snapshot 2

5. Hybrid Model

The hybrid model combines numerical and textual data for a comprehensive analysis.

Hybrid Model Snapshot 1 Hybrid Model Snapshot 2 Hybrid Model Snapshot 3 Hybrid Model Snapshot 4


Project Deployment

  1. Streamlit: The app is deployed at:   Stock Market Numerical and Text Hybrid Prediction

Here's an overview of the Streamlit App:

Streamlit App View 1 Streamlit App View 2 Streamlit App View 3
  1. Flask: The app codes can be seen here: Flask App Codes.

Here's an overview of the Flask App:

Flask App GIF


Meet the Team

Name Madhurima Rawat Geetanshu Dev Meshram Sneha Jha
Role Role Project Planner & Developer Data Analyst & Backend Developer Data Analyst
Tasks Responsibilities Project planning, managing GitHub repository, code documentation, InfluxDB database setup, Grafana dashboard, Streamlit deployment, Flask backend, data visualization & preprocessing Model building for numerical data, Flask app design Text data processing, model building, hybrid model creation
Tools Tools GitHub, InfluxDB, Grafana, Streamlit, Python, Flask, Pandas, Matplotlib, Plotly Python, Flask, ML libraries NLP libraries, ML libraries, hybrid modeling tools
GitHub GitHub GitHub GitHub GitHub
LinkedIn LinkedIn LinkedIn LinkedIn LinkedIn
Email Email Email Email Email

Resources

  1. Partial Data Analysis:

  2. Complete Historical Data:

  1. Illustration Links:

About

This repository is for our 7th-semester project, Advanced Stock Price Forecasting Using a Hybrid Model of Numerical and Textual Analysis. It uses Python, NLP (NLTK, spaCy), machine learning models, Grafana, InfluxDB, and Streamlit for comprehensive data analysis and visualization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •