Comparing Deep Learning and Statistical Models for Stock Price Prediction

Published:

Time-Series Forecasting LSTM vs. ARIMA GitHub Repository

Project Overview

This research project conducts an empirical comparative analysis between deep recurrent neural network architectures and classical statistical econometric methodologies for financial equity forecasting.

Focusing on historical equity price trends of HP Inc. (NYSE: HPQ), the study evaluates the fundamental trade-offs between model complexity, non-linear feature capture, stationarity transformations, and generalization stability.

Technical Highlights

  • Data Pipeline: Cleaned, decomposed, and analyzed daily price action data; assessed stationarity via Augmented Dickey-Fuller (ADF) tests and evaluated autocorrelation/partial autocorrelation (ACF/PACF) profiles.
  • Statistical Modeling (ARIMA): Built autoregressive integrated moving average baselines, optimizing $(p, d, q)$ order parameters to model linear autoregressive tendencies and residual variance.
  • Deep Learning (LSTM): Implemented recurrent neural network layers with gating units capable of learning long-range temporal dependencies without vanishing gradients across sequences.
  • Model Evaluation: Compared models using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Percentage Error (MAPE), highlighting the scenarios where recurrent sequence modeling outperforms traditional econometric baselines.

View Source Code on GitHub