This project applies time series forecasting techniques (ARIMA and LSTM models) to predict stock market prices using MATLAB.
It demonstrates how classical statistical methods and modern deep learning approaches compare in financial prediction tasks.
-
ARIMA Model
- Captures linear trends & seasonality.
- Useful for short-term forecasting.
-
LSTM Model
- Recurrent neural network specialized for sequential data.
- Captures long-term dependencies in stock prices.
- Outperforms ARIMA for highly volatile data.
-
Comparison of Results
- Forecast accuracy measured using RMSE & MAPE.
- Graphical comparison of predicted vs. actual stock prices.
- MATLAB R2021a or later (older versions may work).
- Toolboxes:
- Econometrics Toolbox
- Deep Learning Toolbox
You can download historical stock price data from the NASDAQ website:
👉 NASDAQ Historical Data
Example:
- Search for a ticker symbol (e.g., AAPL for Apple, TSLA for Tesla).
- Go to the “Historical Data” tab.
- Select the time period (e.g., 5 years).
- Click Download (CSV file).
- Place the CSV file in the
data/folder.
- Clone or download this repository.
- Download your dataset from NASDAQ and save it in
/data. - Open
codefile.min MATLAB. - Run the live script step by step to:
- Load dataset
- Train ARIMA & LSTM models
- Compare results
Placeholder for graphs — upload your PNG plots here, e.g.:
- ARIMA forecast vs. actual
- LSTM forecast vs. actual
- Hybrid ARIMA-LSTM model.
- Transformer-based time series forecasting.
- Multi-stock portfolio forecasting.
Project developed as part of a MATLAB-based stock market analysis exploration, focusing on ARIMA vs. LSTM approaches.