Stock Market Forecasting : Comparing Machine Learning and Deep Learning with Risk-Return Model Selection and Evaluation in a Walk-forward Approach
Fecha
2024
Título de la revista
ISSN de la revista
Título del volumen
Editor
Universidad EAFIT
Resumen
This study compares the effectiveness of machine learning and deep learning algorithms in forecasting stock market direction using daily market data of Apple Inc. stock. We aim to determine if these algorithms can identify repeatable patterns across time using price and volume history and assess which are most capable. To ensure robustness, we employ a walk-forward validation approach to maintain the temporal dimension of the data and simulate real trading conditions. This method allows us to test models across different market conditions and measure their predictive power. We prioritize model selection and evaluation based on financial return and risk metrics, focusing on profitability rather than traditional machine learning performance metrics, which often do not correlate with financial outcomes. Our findings show that traditional machine learning algorithms, specifically Random Forest, outperform deep learning models under the selected asset and conditions tested. Machine learning models exceed the stock benchmark regarding Sharpe ratio, while deep learning models struggle to manage risk effectively, leading to poorer performance. This discrepancy is likely due to the complex solution space deep learning algorithms navigate to optimize and the amount of data required by these models. However, we hypothesize that the latter could improve its performance if tested with different architectures and hyperparameters, including newly developed transformer attention-based architectures and models such as TimeGPT and others, shown in the related work section.
Descripción
Palabras clave
Aprendizaje automático, Redes neuronales, Aprendizaje de máquina, Mercados financieros, Analítica predictiva, Mercado de acciones