§ 瀏覽學位論文書目資料
  
系統識別號 U0002-2308201715174100
DOI 10.6846/TKU.2017.00825
論文名稱(中文) 整合隱藏式馬可夫模型與演化策略於股市交易策略最佳化
論文名稱(英文) Integrated Hidden Markov Model and Evolution Strategies to Optimize Stock Trading Strategies
第三語言論文名稱
校院名稱 淡江大學
系所名稱(中文) 資訊管理學系碩士班
系所名稱(英文) Department of Information Management
外國學位學校名稱
外國學位學院名稱
外國學位研究所名稱
學年度 105
學期 2
出版年 106
研究生(中文) 王聖方
研究生(英文) Sheng-Fang Wang
學號 605630010
學位類別 碩士
語言別 繁體中文
第二語言別
口試日期 2017-06-04
論文頁數 50頁
口試委員 指導教授 - 張應華
委員 - 徐煥智
委員 - 壽大衛
關鍵字(中) 隱藏式馬可夫模型
演化策略
選股
擇時
資金配置
關鍵字(英) Hidden Markov Model
Evolution Strategies
Selection
Timing
Capital Allocation
第三語言關鍵字
學科別分類
中文摘要
銀行低利率時代來臨,日本甚至已進入負利率的時代,因此愈來愈多人另尋其他管道投資。其中股票是投資者熟悉的一種投資理財工具,舉凡電視、報章雜誌和網際網路,皆有不少人在熱烈討論。一般投資者常根據技術指標來進行股票擇時的操作,如利用KD值、MA指標、RSI…等來決定股票的買賣時機,但經常出現各指標間互相矛盾的買賣訊號,或是預測訊號與股票實際漲跌狀況差異甚大。
本研究整合隱藏式馬可夫模型與演化策略,建立一股市投資決策最佳化系統。利用隱藏式馬可夫模型,透過觀測值的變化來預測股票漲跌狀態。使用風險每變動一單位,投資人獲利程度的累積變化做為進場時機的依據,亦即做為何時該重新調整投資人手上投資組合的判斷,買賣交易策略則透過三個常用的技術指標:KD、MA和RSI來預測股票是否該買或該賣。結合進場訊號、買賣訊號與演化策略,共同演化出最佳資金配置與選股策略以幫助投資人做出正確的決策,以獲取優渥的超額報酬。
英文摘要
The low interest rate has come, and Japan has even entered the era of negative interest rates, so there is getting more people looking for other ways to invest. One of investment and financial instruments is stocks, there are many discussions from TV to internet. General investors use technical indicator to make stock timing decision, for example: KD, MA, and RSI. However, the signals from technical indicator are different from indicator to indicator.
This paper integrated Hidden Markov Model and Evolution Strategies to build a stock investment strategies system. By Hidden Markov Model, it can observe the observation sequence to forecast the stock will rise or fall, which is the hidden state. In the timing part, this paper use cumulative “changes in return of per change in risk” to forecast when to adjust the portfolio. This paper use three common technical indicator, KD, MA, and RSI to make the trading decision. Finally, combing the signal of adjusting portfolio, the signal of trading signal and genetic algorithm, the best capital allocation will be evolved, and that is helpful to investors make correct decision.
第三語言摘要
論文目次
目錄
第一章 緒論 1
第二章 文獻探討 3
2.1 股票投資組合與技術指標 3
2.2 隱藏式馬可夫模型 5
2.3 演化策略 9
第三章 研究架構 13
3.1 進場訊號─以隱藏式馬可夫模型預測 15
3.2 交易訊號─以隱藏式馬可夫模型預測 16
3.3 選股及資金配置策略─以演化策略求解 21
3.4 整合交易過程 23
第四章 實驗分析 24
4.1 資料來源 24
4.2 實驗結果─進場訊號 24
4.3 實驗結果─買賣訊號 32
4.4 實驗結果─與各指數比較獲利能力 39
第五章 結論與未來展望 47
參考文獻 48
 
圖目錄
圖 1 隱藏式馬可夫模型示意圖 6
圖 2 演化策略流程圖 11
圖 3 研究架構 14
圖 4累積單位變動風險的獲利報酬狀態變數 15
圖 5 設定進場狀態 16
圖 6 定義隱藏狀態 16
圖 7 定義觀測值(KD) 17
圖 8 定義觀測值(MA) 17
圖 9 定義觀測值(RSI) 18
圖 10 染色體編碼 21
圖 11 動態規劃產生可行解 21

表目錄
表 1 狀態轉移累積次數矩陣 19
表 2 狀態轉移機率矩陣 19
表 3 觀測值輸出累積次數矩陣 20
表 4 觀測值輸出機率矩陣 20
表 5 演化策略參數設定表 22
表 6 資金配置調整表 23
表 7 2005年6月至12月進場調整當日報酬率 24
表 8 2006年進場調整當日報酬率 25
表 9 2007年進場調整當日報酬率 25
表 10 2008年進場調整當日報酬率 27
表 11 2009年進場調整當日報酬率 27
表 12 2010年進場調整當日報酬率 28
表 13 2011年進場調整當日報酬率 28
表 14 2012年進場調整當日報酬率 29
表 15 2013年進場調整當日報酬率 30
表 16 2014年進場調整當日報酬率 31
表 17 2015年進場調整當日報酬率 32
表 18 各年進場調整平均報酬率 32
表 19 2005年5-9月、2005年第4季買賣訊號準確率 33
表 20 買賣訊號之資料截圖(泥窯類股) 33
表 21 2006年各季買賣訊號準確率 33
表 22 買賣訊號之資料截圖(食品類股) 33
表 23 2007年各季買賣訊號準確率 34
表 24 買賣訊號之資料截圖(塑化類股) 34
表 25 2008年各季買賣訊號準確率 34
表 26 買賣訊號之資料截圖(紡織類股) 35
表 27 2009年各季買賣訊號準確率 35
表 28 買賣訊號之資料截圖(機電類股) 35
表 29 2010年各季買賣訊號準確率 35
表 30 買賣訊號之資料截圖(造紙類股) 36
表 31 2011年各季買賣訊號準確率 36
表 32買賣訊號之資料截圖(營建類股) 36
表 33 2012年各季買賣訊號準確率 36
表 34 買賣訊號之資料截圖(金融類股) 37
表 35 2013年各季買賣訊號準確率 37
表 36買賣訊號之資料截圖(造紙類股) 37
表 37 2014年各季買賣訊號準確率 37
表 38買賣訊號之資料截圖(紡織類股) 37
表 39 2015年第1季、2015年4-5月買賣訊號準確率 38
表 40 買賣訊號之資料截圖(食品類股) 38
表 41八大類股買賣訊號平均準確率 38
表 42 2005 年HMM-ES與各指數報酬率比較表(單位:百分比) 39
表 43 2006年HMM-ES與各指數報酬率比較表(單位:百分比) 39
表 44 2007年HMM-ES與各指數報酬率比較表(單位:百分比) 40
表 45 2008年HMM-ES與各指數報酬率比較表(單位:百分比) 41
表 46 2009年HMM-ES與各指數報酬率比較表(單位:百分比) 41
表 47 2010年HMM-ES與各指數報酬率比較表(單位:百分比) 42
表 48 2011年HMM-ES與各指數報酬率比較表(單位:百分比) 42
表 49 2012年HMM-ES與各指數報酬率比較表(單位:百分比) 43
表 50 2013年HMM-ES與各指數報酬率比較表(單位:百分比) 44
表 51 2014年HMM-ES與各指數報酬率比較表(單位:百分比) 45
表 52 2015年HMM-ES與各指數報酬率比較表(單位:百分比) 46
參考文獻
中文文獻
[1]吳韻玲,民98,台灣房地產景氣領先指標預測力研究─HMM模型之運用,國立屏東商業技術學院不動產經營所,碩士論文。
[2]杜金龍,民99。最新技術指標—在臺灣股市運用的訣竅(增訂三版)。臺北:財訊出版。
[3]周照偉, 鄭榮祿, 蔡賢亮, 楊崇宏, & 牟聖遠. (2015). 臺灣股市技術分析實證: 以隨機指標, 相對強弱指標, 指數平滑異同平均線指標及趨向指標為例. 高雄應用科技大學人文與社會科學學刊, 1(2), 119-133.
[4]夏承億,民104,以共演化式遺傳演算法輔助動態股票投資決策分析,淡江大學資訊管理學系碩士班碩士論文。
[5]許溪南, 何怡滿, & 張瓊如. (2012). KD 與 MA 技術指標在避險時機之應用: 以台指選擇權為例. 輔仁管理評論, 19(1), 27-46.
[6]陳淑玲, 吳安琪, & 費業勳. (2011). 臺灣股票市場技術指標之研究─ 不同頻率資料績效比較. 東海管理評論, 12(1S), 187-225.
英文文獻
[7]Ahrari, A., & Deb, K. (2016). An improved fully stressed design evolution strategy for layout optimization of truss structures. Computers & Structures, 164, 127-144.
[8]Beyer, H. G., Finck, S., & Breuer, T. (2014). Evolution on trees: On the design of an evolution strategy for scenario-based multi-period portfolio optimization under transaction costs. Swarm and Evolutionary Computation, 17, 74-87.
[9]Cai, Q., Zhang, D., Wu, B., & Leung, S. C. (2013). A novel stock forecasting model based on fuzzy time series and genetic algorithm. Procedia Computer Science, 18, 1155-1162.
[10]Chang, Y. H., & Lee, M. S. (2016). Incorporating Markov decision process on genetic algorithms to formulate trading strategies for stock markets. Applied Soft Computing.
[11]Chang, Y. H., & Wang, S. C. (2013). Integration of Evolutionary Computing and Equity Valuation Models to Forecast Stock Values Based on Data Mining. Asia Pacific Management Review, 18(1), 63-78.
[12]Deb, K. (2005). Multi-objective optimization using evolutionary algorithms. Wiley.
[13]Duda, R. O., Hart, P. E., & Stork, D. G. (2012). Pattern classification. John Wiley & Sons.
[14]Farshchian, M., & Jahan, M. V. (2015, November). Stock market prediction with Hidden Markov Model. In Technology, Communication and Knowledge (ICTCK), 2015 International Congress on (pp. 473-477). IEEE.
[15]Gupta, A., & Dhingra, B. (2012, March). Stock market prediction using hidden Markov models. In Engineering and Systems (SCES), 2012 Students Conference on (pp. 1-4). IEEE.
[16]Gorgulho, A., Neves, R., & Horta, N. (2011). Applying a GA kernel on optimizing technical analysis rules for stock picking and portfolio composition. Expert systems with Applications, 38(11), 14072-14085.
[17]Granville, J. E. (1963). New Key to Stock Market Profits. Prentice-Hall Inc., N.J.
[18]Hassan, M. R., & Nath, B. (2005, September). Stock market forecasting using hidden Markov model: a new approach. In Intelligent Systems Design and Applications, 2005. ISDA'05. Proceedings. 5th International Conference on (pp. 192-196). IEEE.
[19]Hassan, M. R., Nath, B., & Kirley, M. (2007). A fusion model of HMM, ANN and GA for stock market forecasting. Expert Systems with Applications, 33(1), 171-180.
[20]Ingle, V., & Deshmukh, S. (2016, August). Hidden Markov Model Implementation for Prediction of Stock Prices with TF-IDF features. In Proceedings of the International Conference on Advances in Information Communication Technology & Computing (p. 9). ACM.
[21]Jones, G. (1998). Genetic and evolutionary algorithms. Encyclopedia of Computational Chemistry, 2, 1127-1136.
[22]Lane GC. (1984). Lane’s Stochastics. Technical Analysis of Stocks and Commodities magazine 1984;2:87-90.
[23]Lin, X., Yang, Z., & Song, Y. (2011). Intelligent stock trading system based on improved technical analysis and Echo State Network. Expert systems with Applications, 38(9), 11347-11354.
[24]Lin, S. K., Wang, S. Y., & Tsai, P. L. (2009). Application of hidden Markov switching moving average model in the stock markets: Theory and empirical evidence. International Review of Economics & Finance, 18(2), 306-317.
[25]Nguyen, N., & Nguyen, D. (2015). Hidden Markov Model for Stock Selection. Risks, 3(4), 455-473.
[26]Papailias, F., & Thomakos, D. D. (2015). An improved moving average technical trading rule. Physica A: Statistical Mechanics and its Applications, 428, 458-469.
[27]Runarsson,T.,Sarker,R.,Jonsson, M.T.(2000).Constrained nonlinear integer programming, self-adaptation and evolution strategies.International Journal of Knowledge-Based Intelligent Engineering Systems,4,164-171.
[28]Sahin, U., & Ozbayoglu, A. M. (2014). TN-RSI: Trend-normalized RSI indicator for stock trading systems with evolutionary computation. Procedia Computer Science, 36, 240-245.
[29]Somani, P., Talele, S., & Sawant, S. (2014, December). Stock market prediction using Hidden Markov Model. In Information Technology and Artificial Intelligence Conference (ITAIC), 2014 IEEE 7th Joint International (pp. 89-92). IEEE.
[30]Tanaka-Yamawaki, M., & Tokuoka, S. (2007). Adaptive use of technical indicators for the prediction of intra-day stock prices. Physica A: Statistical Mechanics and its Applications, 383(1), 125-133.
[31]Wilder Jr, J. W. (1986). The Relative Strength Index. Journal of Technical Analysis of Stocks and Commodities, 4, 343-346.
[32]Yeh, C. H. (2012). The profitability of moving average in Taiwan: A New Anomaly. International Journal of Business and Social Science, 3(20).
[33]Zawidzki, M. (2016). Optimization of Multi-branch Truss-Z based on evolution strategy. Advances in Engineering Software, 100, 113-125.
[34]Zhu, D. M., Xie, Y., Ching, W. K., & Siu, T. K. (2016). Optimal portfolios with maximum Value-at-Risk constraint under a hidden Markovian regime-switching model. Automatica, 74, 194-205.
論文全文使用權限
校內
紙本論文於授權書繳交後5年公開
同意電子論文全文授權校園內公開
校內電子論文於授權書繳交後5年公開
校外
同意授權
校外電子論文於授權書繳交後5年公開

如有問題,歡迎洽詢!
圖書館數位資訊組 (02)2621-5656 轉 2487 或 來信