https://github.com/axlerquiza/market-sentiment-analyzer
A data mining project that analyzes Twitter sentiment and its influence on stock market performance using NLP, clustering, and time series forecasting models.
https://github.com/axlerquiza/market-sentiment-analyzer
data-mining financial-analysis machine-learning nlp sarimax sentiment-analysis stock-market time-series-forecasting vader
Last synced: over 1 year ago
JSON representation
A data mining project that analyzes Twitter sentiment and its influence on stock market performance using NLP, clustering, and time series forecasting models.
- Host: GitHub
- URL: https://github.com/axlerquiza/market-sentiment-analyzer
- Owner: axlerquiza
- Created: 2025-04-15T16:51:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-15T17:14:08.000Z (over 1 year ago)
- Last Synced: 2025-04-15T18:24:17.602Z (over 1 year ago)
- Topics: data-mining, financial-analysis, machine-learning, nlp, sarimax, sentiment-analysis, stock-market, time-series-forecasting, vader
- Language: Jupyter Notebook
- Homepage:
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Market Sentiment Analyzer
**Market Sentiment Analyzer** is a data mining project that explores the relationship between Twitter sentiment and stock market behavior. By integrating social sentiment with financial data, this tool applies NLP and time series forecasting to model and potentially predict market movements.
## ๐ Project Objective
> Can public sentiment on Twitter be used as a signal for stock price fluctuations and market volatility?
We tackle this question by analyzing tweets related to major stock tickers, scoring their sentiment, and combining the results with historical price and volume data to explore correlations and make forecasts.
## ๐งฐ Features
- ๐ง Sentiment analysis using VADER (via NLTK)
- ๐งผ Sentiment outlier filtering via K-means clustering
- ๐ SARIMAX forecasting model with and without sentiment as exogenous input
- ๐ EDA including daily returns, volatility analysis, and sentiment distributions
- ๐ Correlation heatmaps between sentiment and price/volume
## โ๏ธ Dependencies
- Python 3.10+
- `pandas`, `numpy`
- `matplotlib`, `seaborn`
- `scikit-learn`
- `statsmodels`
- `nltk`, `vaderSentiment`
- `snscrape`, `yfinance`
## ๐ง Setup & Installation
Install dependencies:
```bash
pip install pandas numpy nltk statsmodels
```
Download VADER lexicon for sentiment scoring:
```python
import nltk
nltk.download('vader_lexicon')
```