Stock Prediction Project

Overview

This project aims to forecast the closing prices and directions of stock movements for AAPL and AMZN. I used AutoRegressive (AR) models with different lags and external variables such as trading volume, sentiment derived from Twitter data, and the S&P 500 index.

Data Collection

Models Used

AutoRegressive (AR) Model:

Each model is tested using the following external variables:

Results

The results are summarized in the table below. An interactive plot of the results can be found here.

table of MAE results

Visualizations

Candle Charts

AAPL Candle Chart AMZN Candle Chart

Comparative Plots

AAPL Comparative Plot AMZN Comparative Plot

Conclusion

The project demonstrates how different models and external factors can influence stock price predictions. The AR models with external variables such as trading volume and sentiment provide different levels of accuracy, highlighting the importance of selecting appropriate inputs for financial forecasting.

Project Repository

You can find the full code and data on my GitHub repository.

Contact

For more information or inquiries about this project, please contact me at:
westling01@gmail.com