Time series forecasting is important across various domains for decision-making. In particular, financial time series such as stock prices can be hard to predict as it is difficult to model short-term and long-term temporal dependencies between data points. Convolutional Neural Networks (CNN) are good at capturing local patterns for modeling short-term dependencies. However, CNNs cannot learn long-term dependencies due to the limited receptive field. Transformers on the other hand are capable of learning global context and long-term dependencies. In this paper, we propose to harness the power of CNNs and Transformers to model both short-term and long-term dependencies within a time series, and forecast if the price would go up, down or remain the same (flat) in the future. In our experiments, we demonstrated the success of the proposed method in comparison to commonly adopted statistical and deep learning methods on forecasting intraday stock price change of S&P 500 constituents.
翻译:时间序列预测在决策制定中至关重要。特别是金融时间序列如股票价格往往难以预测,因为模拟数据点之间的短期和长期时间依赖关系很难。卷积神经网络(CNN)在捕捉短期依赖性方面效果显著。然而,由于有限的感受野,CNN无法学习长期依赖关系。另一方面,transformer可以学习全局上下文和长期依赖关系。在本文中,我们提出了一种利用CNN和Transformer的方法,来同时建模时间序列的短期和长期依赖关系。我们还使用该方法预测股票价格未来是否会上涨、下跌或保持不变(平稳)。在实验中,我们演示了所提出的方法在预测标普500成分股的日内股票价格变动方面相对于常用的统计和深度学习方法的成功应用。