摘要(英) |
Normally, when deep learning is used to predict the price of the financial commodity, people most used the statistical function (such as R^2) that compliance to the numerical error to assessing the accuracy of the estimate as a learning mechanism. However, for the real trading, the forecast trading direction (to buy or to sell) cause by the error of the stock price prediction usually has a greater impact on the profitability of trading than the numerical error between the predicted value and the actual value, but the study of time series prediction by deep learning today rarely explores this topic, but it has practical importance.
In this study, we compare the closing price prediction model of LSTM and TCN based on the numerical error (R^2, MASE), to find out the high-accuracy parameter settings and use it on the real trading. We use program trading to explore whether these predicting of closing prices can achieve actual profitability or not, and if so, we will compare the relationship between its profitability and the original numerical error. This study also proposes a custom loss function that incorporate the actual trading direction (to buy or to sell) to increase the profit of real trading.
This study is aimed at three futures commodities that are often traded (gold, soybean, crude oil) and perform the above overall calculation and comparison, and we found that some of the commodities will increase the profit when minimized the numerical error, but others not. More than that, that kind of commodities can also enhance the profit of real trading when it adds a custom loss function. However, if the commodities can’t increase the profit when minimized the numerical error, the custom loss function in this study also can’t increase the profit. |
參考文獻 |
1. Bai, S., Kolter, J.Z., & Koltun, V. (2018). An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling, from https://arxiv.org/pdf/1803.01271.pdf
2. Chollet, F. (2017). DEEP LEARNING with Python. USA: Manning Publications.
3. Davidson-Pilon, C. (2013). Computes the MEAN-ABSOLUTE SCALED ERROR forcast error for univariate time series prediction. Retrieved January 29, 2019, from https://github.com/CamDavidsonPilon/Python-Numerics/blob/master/TimeSeries/MASE.py
4. Gers, F. A., Schmindhuber, J., Cummins, F. (1999). Learning to Forget: Continual Prediction with LSTM, Proceedings of Ninth International Conference on Artificial Neural Networks (ICANN’99). No.470 (850-855).
5. Granger, C. W. J. (1999). Outline of Forecast Throry Using Generalized Cost Functions, Proceedings of Spanish Economic Review. Vol.1 (161-173).
6. Greff, K., Srivastava, R. K., Koutnik, J., Steunebring, B. R.& Schmidhuber, J. (2017). LSTM: A Search Space Odyssey. Proceedings of IEEE Transactions on Neural Networks and Learning Systems 28 (2222-2232).
7. Hochreiter, S., Klambauer, G., Unterthiner, T.,& Mayr, A. (2017). Self-Normalizing Neural Networks. Proceedings of NIPS’17 Advances in Neural Information Processing Systems 30
8. Hyndman, R.J.,& Koehler, A.B. (2006). Another look at measures of forecast accuracy. Proceedings of International Journal of Forecasting. Vol.22. No.4 (679-688).
9. Keras. (2019). Usage of loss functions. Retrieved February 20, 2019, from https://keras.io/losses/#available-loss-functions
10. Krizhevsky, A., Sutskever, I.,& Hinton, G.E. (2012) . ImageNet Classification with Deep Convolutional Neural Network. Proceedings of the 25th International Conference on Neural Information Processing Systems (NIPS’12). Vol.1. (1097-1105).
11. LeCun, Y., Bengio, Y.,& Hinton, G. (2015). Deep learning. Proceedings of Nature 521, (436-444)
12. Lee, T. (2007). Loss Functions in Time Series Forecasting. Unpublished master dissertation, University of California, Riverside, USA.
13. Leinweber, D.J., 2007, “Stupid Data Miner Tricks: Overfitting the S&P 500”, The Journal of Investing Spring 2007, Vol.16, pp.15-22
14. Li, H., Shen, Y.,& Zhu, Y. (2018). Stock Price Prediction Using Attention-based Multi-Input LSTM. Proceedings of The 10th Asian Conference on Machine Learning(PMLR 95)( 454-469).
15. McLean, A. (2001) On the Nature and Role of Hypothesis Test. Monash Econometrics and Business Statistics Working Papers 4/01, Monash University, Department of Econometrics and Business Statistics.
16. Multicharts (2019)。交易平台介紹。取自2019年2月20日,http://www.multicharts.com.tw/characteristic.aspx
17. Oord, A., Dieleman, S., Zen, H., Simonyan, K., Vinyals, O., Graves, A., Kalchbrenner, N., Senior, A.,& Kavukcuoglu, K. (2016), Wavenet: A Generative Model For Raw Audio. Google AI. Retrieved March 6, 2019 from https://arxiv.org/pdf/1609.03499.pdf
18. Pant, N. (2017). A Guide For Time Series Prediction Using Recurrent Neural Networks(LSTMS). Retrieved September 6, 2018 from https://blog.statsbot.co/time-series-prediction-using-recurrent-neural-networks-lstms-807fa6ca7f
19. Schoneburg, E. (1990). Stock price prediction using neural networks: A project report. Neurocomputing 2 (17-27).
20. Walter, J., Ritter, H.,& Schulten, K. (1990). Non-linear Prediction with Self-organizing Maps. IJCNN International Joint Conference on Neural Networks (17-21).
21. 張林忠(2014)。分析師關鍵報告2:張林忠教你程式交易。寰宇出版社。
22. 董寶蘭(2010)。程式交易策略實證研究-以投資ETF0050為例,私立淡江大學管理科學研究所企業經營碩士在職專班碩士論文,台灣,新北。
|