Linear regression and deep learning models compared for stock forecasting accuracy
A Methodologically Rigorous Benchmark of Linear Regression,RNN, and LSTM for S&P 500 Forecasting:Identifying Sources of Performance Inflation in Financial DeepLearning
Machine Learning
Summary
Predicting the next day’s stock market closing price is a tough challenge. This paper compares simple linear regression with two types of neural networks—RNNs and LSTMs—using consistent data and testing methods. It finds some common mistakes in earlier studies that made deep learning look better than it really is. The authors show that when these mistakes are corrected, the gains from deep learning over simple approaches are smaller than often reported. They also measure how reliable and sensitive models are under fair testing conditions.
What this means in practice
- •For financial data scientists: Use a fair benchmarking process to evaluate forecasting models without inflated results while predicting stock market prices.
- •For macroeconomic analysts: Assess the reliability and improvements of time series models for predicting economic indicators under rigorous testing protocols.
Authors
Hari Sitaula, Joseph Opitz
Abstract
This study examines one-day-ahead forecasting of the S&P 500 closing level using a 2006-2025 dataset that includes fundamental price data, macroeconomic indicators, and engineered technical features. We benchmark three model families, namely linear regression, vanilla recurrent neural networks (RNN), and long short-term memory networks (LSTM), within a unified preprocessing and chronological evaluation pipeline. A central contribution of this work is a methodological audit of common practices in the deep-learning-for-stock-prediction literature. We identify three sources of result inflation that frequently appear in published methodologies: wavelet-denoised evaluation targets, the absence of a naive persistence baseline, and best-of-N replicate reporting. We then re-evaluate all model families under a corrected protocol that controls for each. Performance is reported using root mean squared error, mean absolute percentage error, and the Pearson correlation coefficient, averaged across N = 30 independent replicates per configuration. We compare models on accuracy, stability across replicates, and architectural depth sensitivity, using the naive persistence forecast (predicting today's close as tomorrow's close) as a primary baseline against which all candidate models must demonstrate improvement.