| 研究生: |
許琮苓 Hsu, Tsung-Ling |
|---|---|
| 論文名稱: |
基於長短期記憶網路模型之股市趨勢預測 Stock Market Trend Prediction Based on LSTM Model |
| 指導教授: |
王明習
Wang, Ming-Shi |
| 學位類別: |
碩士 Master |
| 系所名稱: |
工學院 - 工程科學系 Department of Engineering Science |
| 論文出版年: | 2019 |
| 畢業學年度: | 107 |
| 語文別: | 中文 |
| 論文頁數: | 56 |
| 中文關鍵詞: | 遞歸神經網路 、股票 、股市預測 、深度學習 、長短期神經網路 |
| 外文關鍵詞: | Recurrent Neural Networks(RNN), Stock Market Prediction, Machine Learning, Long Short-Term Memory(LSTM) |
| 相關次數: | 點閱:216 下載:24 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
股票市場一直是代表社會的重要經濟指標,股票市場的波動具有規律性的變化,股票市場波動的預測是一個相當有趣的問題,但由於影響股市之因素非常多導致很難得到精準的預測,目前有許多演算法已被應用來做股票市場趨勢預測,但仍難有明確的模型。本論文採用時間序列之類神經網路模型來預測台灣上市公司之股價漲跌趨勢,以四家上市公司為研究對象,研究所使用之資料集為2010年1月至2019年2月共8年間之交易日資料,運用移動視窗法,視窗內採用60個連續交易日去預測視窗之隔天交易日的開盤價,本研究所考慮的影響因素計有加入5項基本指標──「收盤價」、「開盤價」、「最低價」、「最高價」與「交易量」,以及台灣股市最常見之三種具代表性的金融指標──「相對強弱指標(Relative Strength Index, RSI)」、和「指數平均數指標(Exponential Moving Average, EMA」」,和代表新聞關注度的Google趨勢。再利用演算去評估該時段之新聞關鍵字重要性,而給予程度上的分層加權。最後將計算預測值與實際值之準確率,也就是預測漲跌之正確與否總次數的百分比,並採用均方誤差(Mean-Square Error, MSE)去計算實際值與預測值之誤差,比較四家各股之結果差異,闡述背後可能影響結果之原因,最終結果顯示該模型之準確值達63%。
The stock market has always been an important economic indicator for the society. It is believed that the fluctuation of the stock market seems changed according to some cyclic regularity. For a stock investor, how to find the cyclic regularity of a stock market is a most important issue. However, due to many factors affecting the stock market, it is difficult to obtain accurate predictions. At present, many algorithms have been applied for predicting stock market trends. Due to both local/regional and global economic performance will affect the stock market. The degree of influence is also different for different stock market. So it’s still difficult to define an accepted model for different stock market. In this study, a neural network model called long short-term memory (LSTM) is proposed for predicting the price trend of four companies in the Taiwan stock. Five basic transaction factors for each stock and the three most common statistical indicators in Taiwan stock market are considered. The transaction factors for a specific stock are its opening price, closing price, highest price, lowest price, and transaction volume. The common statistical indicators are Relative Strength Index (RSI), Exponential Moving Average (EMA). For considering the public news attention for the specific company, the information from Google trend is also considered as positive or negative influence with different weighting according to the keywords represented in the news. The data set applied for this study is the trade volume of the Taiwan stock market from January 2010 to February 2019. A window with 60 consecutive trading days is considered to predict the open price of the next (the 61th) trading day, then the window is moved forward to next day for predicting the opening price of the 62th day. The results show that the trend of up or down of the prediction accurate is 63% for the proposed model.
參考文獻
[1] MICHIE, Donald, et al. Machine learning. Neural and Statistical
Classification, 1994, 13.
[2] PATEL, Jigar, et al. Predicting stock and stock price index movement using
trend deterministic data preparation and machine learning techniques.
Expert Systems with Applications, 2015, 42.1: 259-268.
[3] MALKIEL, Burton G.; FAMA, Eugene F. Efficient capital markets: A
review of theory and empirical work. The journal of Finance, 1970, 25.2:
383-417.
[4] GIDOFALVI, Gyozo; ELKAN, Charles. Using news articles to predict
stock price movements. Department of Computer Science and
Engineering, University of California, San Diego, 2001.
[5] MITTERMAYER, M.-A. Forecasting intraday stock price trends with text
mining techniques. In: 37th Annual Hawaii International Conference on
System Sciences, 2004. Proceedings of the. IEEE, 2004. p. 10 pp.
[6] CROSS, Frank. The behavior of stock prices on Fridays and Mondays.
Financial analysts journal, 1973, 29.6: 67-69.
[7] FRENCH, Kenneth R. Stock returns and the weekend effect. Journal of
financial economics, 1980, 8.1: 55-69.
[8] GIBBONS, Michael R.; HESS, Patrick. Day of the week effects and asset
returns. Journal of business, 1981, 579-596.
[9] LAKONISHOK, Josef; LEVI, Maurice. Weekend effects on stock returns: a
note. The Journal of Finance, 1982, 37.3: 883-889.
[10] ROGALSKI, Richard J. New findings regarding day‐of‐the‐week returns
over trading and non‐trading periods: a note. The Journal of Finance, 1984,
39.5: 1603-1614.
[11] 王嘉隆; 詹淑慧. 分類迴歸樹於 S&P500 指數預測之研究. 2005.
[12] 蔡明輝. 台灣股市" 春節效果" 之實証硏究. 1991. PhD Thesis.
National Taiwan University Graduate Institute of Business Administration.
[13] 刘凤元; 陈俊芳. 换月效应的窗饰解释: 基于上海市场的实证. 数量
经济技术经济研究, 2004, 3: 149-154..
[14] 金鐵英; 黃盈智. 台灣股市農曆月份效應之研究. 財金論文叢刊,
2016, 25: 33-61..
[15] CHANG, Hsu-Ling, et al. Long-run purchasing power parity and
asymmetric adjustment in BRICs. Applied Economics Letters, 2010,
17.11: 1083-1087..
[16] BOLLERSLEV, Tim. Generalized autoregressive conditional
heteroskedasticity. Journal of econometrics, 1986, 31.3: 307-327.
[17] BOX, George EP, et al. Time series analysis: forecasting and control. John
Wiley & Sons, 2015.
[18] RUMELHART, David E. Parallel distributed processing: Explorations in
the microstructure of cognition. Learning internal representations by error
propagation, 1986, 1: 318-362.
[19] HINTON, Geoffrey E.; OSINDERO, Simon; TEH, Yee-Whye. A fast
learning algorithm for deep belief nets. Neural computation, 2006, 18.7:
1527-1554.
[20] ROSENBLATT, Frank. The perceptron, a perceiving and recognizing
automaton Project Para. Cornell Aeronautical Laboratory, 1957.
[21] RUMELHART, David E., et al. Learning representations by back-
propagating errors. Cognitive modeling, 1988, 5.3: 1.
[22] HOCHREITER, Sepp; SCHMIDHUBER, Jürgen. Long short-term
memory. Neural computation, 1997, 9.8: 1735-1780.
[23] KARIM, Fazle, et al. LSTM fully convolutional networks for time series c
lassification. IEEE Access, 2017, 6: 1662-1669.
[24] NELSON, David MQ; PEREIRA, Adriano CM; DE OLIVEIRA, Renato
A. Stock market's price movement prediction with LSTM neural networks.
In: 2017 International Joint Conference on Neural Networks (IJCNN).
IEEE, 2017. p. 1419-1426.
[25] SELVIN, Sreelekshmy, et al. Stock price prediction using LSTM, RNN
and CNN-sliding window model. In: 2017 International Conference on
Advances in Computing, Communications and Informatics (ICACCI). IEEE, 2017. p. 1643-1647.
[26] SHAO, XiuLi, et al. Short-term forecast of stock price of multi-branch
LSTM based on K-means. In: 2017 4th International Conference on
Systems and Informatics (ICSAI). IEEE, 2017. p. 1546-1551.
[27] SAMARAWICKRAMA, A. J. P.; FERNANDO, T. G. I. A recurrent neural
network approach in predicting daily stock prices an application to the Sri
Lankan stock market. In: 2017 IEEE International Conference on Industrial and Information Systems (ICIIS). IEEE, 2017. p. 1-6.
[28] AKITA, Ryo, et al. Deep learning for stock prediction using numerical and
textual information. In: 2016 IEEE/ACIS 15th International Conference on
Computer and Information Science (ICIS). IEEE, 2016. p. 1-6.
[29] DING, Xiao, et al. Deep learning for event-driven stock prediction. In:
Twenty-fourth international joint conference on artificial intelligence.2015.
[30] FISCHER, Thomas; KRAUSS, Christopher. Deep learning with long
short-term memory networks for financial market predictions. European
Journal of Operational Research, 2018, 270.2: 654-669.
[31] GAO, Shao En; LIN, Bo Sheng; WANG, Chuin-Mu. Share Price Trend
Prediction Using CRNN with LSTM Structure. In: 2018 International
Symposium on Computer, Consumer and Control (IS3C). IEEE, 2018. p.
10-13.
[32] CHENG, Li-Chen; HUANG, Yu-Hsiang; WU, Mu-En. Applied attention-
based LSTM neural networks in stock prediction. In: 2018 IEEE
International Conference on Big Data (Big Data). IEEE, 2018. p. 4716-4718.
[33] FAUSTRYJAK, Damian; JACKOWSKA-STRUMIŁŁO, Lidia;
MAJCHROWICZ, Michał. Forward forecast of stock prices using LSTM
neural networks with statistical analysis of published messages. In: 2018 International Interdisciplinary PhD Workshop (IIPhDW). IEEE, 2018. p. 288-292.
[34] ONCHAROEN, Pisut; VATEEKUL, Peerapon. Deep learning for stock
market prediction using event embedding and technical indicators. In:
2018 5th International Conference on Advanced Informatics: Concept Theory and Applications (ICAICTA). IEEE, 2018. p. 19-24.
[35] PALUCH, Michał; JACKOWSKA-STRUMIŁŁO, Lidia. The influence of
using fractal analysis in hybrid MLP model for short-term forecast of close prices on Warsaw Stock Exchange. In: 2014 Federated Conference on Computer Science and Information Systems. IEEE, 2014. p. 111-118.
[36] ZAREMBA, Adam. Giełda. Podstawy inwestowania. Wydanie II
rozszerzone. Wydawnictwo HELION, Gliwice, 2010.