TW200926039A - Method of predicting the high/low points of TAIEX based on grey and Markov theories - Google Patents

Method of predicting the high/low points of TAIEX based on grey and Markov theories Download PDF

Info

Publication number
TW200926039A
TW200926039A TW96147625A TW96147625A TW200926039A TW 200926039 A TW200926039 A TW 200926039A TW 96147625 A TW96147625 A TW 96147625A TW 96147625 A TW96147625 A TW 96147625A TW 200926039 A TW200926039 A TW 200926039A
Authority
TW
Taiwan
Prior art keywords
gray
market
markov
stock market
turning point
Prior art date
Application number
TW96147625A
Other languages
Chinese (zh)
Inventor
Yen-Tseng Hsu
Ming-Chung Liu
Je-Rome Yeh
Hui-Fen Hung
Chao-Hung Chang
Original Assignee
Univ Nat Taiwan Science Tech
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nat Taiwan Science Tech filed Critical Univ Nat Taiwan Science Tech
Priority to TW96147625A priority Critical patent/TW200926039A/en
Publication of TW200926039A publication Critical patent/TW200926039A/en

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention is to provide a kind of method of based on grey and Markov theories to predict the High/Low points of TAIEX, can trace and predict the variety of TAIEX, and make use of the method of artificial intelligence, predict the next turning point of TAIEX, to be used as the basis that the investor passes in and out the stock market. In better implement in the invention example, the history data of TAIEX is used as the primitive data, then make use of the method of the grey relational analysis (GRA) finds out the technical index of maximum relational degree with the TAIEX, immediately after then pick out the investigative data from the selected technical index, after then make use of the grey predict model GM(1, 1), grey metabolizing predict model GMeM(1, 1) and the hybrid predict model HGMeM(1, 1) to find out the optimal predict model, finally, the Markov model is developed to promote the prediction accuracy, to be used as the basis that the investor passes in and out the stock market.

Description

200926039 九、發明說明: 【發明所屬之技術領域】 發明ί = 一種資訊預測方法’更明確的說,本 ^古次知、也於智慧股票趨勢預測系統中,對於 方法貝s 6'變化進行追蹤分析與預測以評估市場交易的 【先前技術】 ❹ ❹ 列幾技術’評選具有投資價值的股票可以透過下 一、基本分析 市場考慮會影響價格的各種因素來預測 場價格產生影響的政治、 =月匕對市 資定二=求來_未來價格變動的趨勢’以投 貝一豕公司為例,其作法如下: 仅 1·找^欲購買股票公司沿革與產業經濟背景。 2. 估算該股淨值盈餘與股利。 3. 估,該股產㈣形與#運展望及財務概況。 南丨二·估股未來的成長性’本益比是否合理,發放股 利政朿,I、市場上其它_型標的作比較。 根t上ί項數據或說明,即可作為投資者判斷投 舅知示之依據。§然基本分析不僅 考慮其它外在的因素,例如.访、Λ 思^素,亦需 因素最後才能決定:在二等,必須綜合種種 〜你找才衫響市場的因匕 會遺漏其它重要因素,所以名、隹” 由於了月b 所以在進订基本分析時,投資者必 5 200926039 須具有相關的財經知識,才能分析出結果,這對於一般的 投資者而言,是一個很大的障礙。一般而言,公司的相關 資訊,通常會落後市場反應,如果投資者等到該公司公佈 資訊後,才進行分析預測,通常市場上已經反應完畢,結 果可能會造成追高殺低的情況,甚至經濟體系結構改變或 非預期之變化,都可能導致市場供需失衡,影響價格之預 測。 二、技術面分析 ❹ 技術分析主要是利用圖形或量化技術指標來研判市 場商品交易之人氣或供需之情況,進而決定買賣的時機。 由於技術分析不僅可以預測償格並研判市場投資的時 機,而且可作為預警之訊號,更重要的是較基本分析簡單 易懂,所以廣為一般大眾所使用,以下將介紹在市場上常 用到的技術分析之方法: 1. 道氏理論(pow Theory) 道氏理論是建立在趨勢 (Trends)和形態走勢 (Patterns)之上,趨勢是由支撐線與壓力線構成,而形態 ❷ 走勢則分成整理形態(Continuation Patterns)與反轉形 態(Reversal Patterns)兩種。今天大眾所熟知的多頭市場 (Bullish Market)、空頭市場(Bearish Market)、支樓 (Support)、壓力(Resistance)、頭肩形(Head and Shoulders Formation)等等,皆是由道氏理論發展出來。了解道氏理 論分析方法後,再結合統計學,結果衍生出現今多種的價 量技術分析方法。 2. 波浪理論(Wave Theory) 由艾略特(R.N. Elliott)於1943年提出,此理論認 6 200926039 為市場價格是具有週期性與波動性,一個完整循環走勢主 要有八波,包括五個主波段和三個回檔波,這個理論結合 了趨勢線、目標區預測及自然定律,是現今市場常用的分 析工具之一。 3. 移動平均線(Moving Average) 移動平均線(ΜΑ)是最受廣泛使用的技術分析工 具,主要原因是其淺顯易僅、容易計算。由於它是以統計 方法計算出一段時間内股票平均價格,再將各點連接成一 φ 條平滑的曲線,所以移動平均線具有平滑性、穩定性及趨 勢性等特徵。移動.平均線是用來決定買賣時機的參考,美 國投資專家Joseph Granville提出的八大法則,就是針對 移動平均線的買賣時機而訂定的。 4. 成交量(V0L) 利用成交量移動平均線可判斷趨勢向上或向下。當成 交量增加時,即代表趨勢向上,而成交量減少時,即代表 趨勢向下。當股票要上漲時,一定要配合成交量,若股價 上漲但成交量卻縮小,產生價量背離的情況,則股價可能 只是短期反彈。注意,當成交量上漲時,卻不一定保證股 價一定會上漲,需配合其它因素與技術指標才能研判漲或 跌。200926039 IX. Description of invention: [Technical field to which the invention belongs] Invention ί = An information prediction method' More specifically, this method is also used in the intelligent stock trend forecasting system to track the change of the method s 6' Analysis and forecasting to assess market transactions [prior art] ❹ ❹ 技术 技术 ' 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 评 可以 可以 可以 可以 可以 可以 可以 可以 可以 可以匕 市 市 = = = = = = = : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 2. Estimate the net surplus and dividends of the stock. 3. Estimate the stock (four) shape and #运 outlook and financial overview. Nanxun II. Estimating the future growth of the stock' Whether the P/E ratio is reasonable, the dividends are issued, and I, the other _ type targets on the market are compared. The data or description on the root t can be used as the basis for investors to judge the investment. § However, the basic analysis not only considers other external factors, such as interviews, 思思^素, but also the factors that can finally be decided: in the second-class, you must integrate all kinds of factors~ you will find other factors that will cause the market to miss the market. Therefore, because of the month b, when investing in the basic analysis, the investor 5 200926039 must have relevant financial knowledge to analyze the results, which is a big obstacle for the average investor. Generally speaking, the company's relevant information usually lags behind the market reaction. If the investor waits until the company announces the information, it will analyze and predict it. Usually, the market has already completed the reaction, and the result may cause chasing and killing, even Changes in economic system structure or unanticipated changes may lead to imbalances in market supply and demand, affecting price forecasts. 2. Technical analysis ❹ Technical analysis mainly uses graphical or quantitative technical indicators to judge the popularity or supply and demand of market commodity transactions. And then decide when to buy and sell. Because technical analysis can not only predict the compensation and judge the market investment Machine, and can be used as a warning signal, more importantly, the basic analysis is simple and easy to understand, so it is widely used by the general public. The following will introduce the methods of technical analysis commonly used in the market: 1. Dow theory (pow Theory The Dow theory is based on Trends and Patterns. The trend is composed of support lines and pressure lines, while the shape ❷ trend is divided into Continuation Patterns and Reversal Patterns. Two. The Bullish Market, the Bearish Market, the Support, the Resistance, the Head and Shoulders Formation, etc., which are well known to the public today, are all made by Dow. The theory develops. After understanding the Dow theoretical analysis method, combined with statistics, the results are derived from a variety of valence technical analysis methods. 2. Wave Theory was proposed by RN Elliott in 1943. This theory recognizes that the price of the market is cyclical and volatility, and that there is a total of eight waves in a complete cycle, including five main bands and A back-shift wave, a theory that combines trend lines, target area predictions, and natural laws, is one of the most commonly used analytical tools in today's market. 3. Moving Average Moving Average (ΜΑ) is the most widely used. The main reason for the technical analysis tool is that it is easy to calculate and easy to calculate. Since it calculates the average price of the stock over a period of time by statistical methods, and then connects the points into a smooth curve of φ, the moving average has smoothness. Characteristics such as stability and trend. The moving average is a reference for determining the timing of buying and selling. The eight rules proposed by American investment expert Joseph Granville are set for the timing of the trading of moving averages. 4. Volume (V0L) Use the volume moving average to determine whether the trend is up or down. When the amount of turnover increases, it means that the trend is upward, and when the volume is decreased, it means that the trend is downward. When stocks are going to rise, they must match the volume. If the stock price rises but the trading volume shrinks and the price is deviated, the stock price may only be a short-term rebound. Note that when the volume of trading increases, it does not necessarily guarantee that the stock price will rise. It is necessary to cooperate with other factors and technical indicators to judge whether the price will rise or fall.

5.RSI RSI係利用某段時間内的股價變動情形,預測未來價 格的變動趨勢。其基本原理為在一個正常股市中多空買賣 雙方的力道,必須均衡的,股價才會穩定。而RSI是計 算在一定期間内,股價上漲總幅度平均值佔總漲跌幅總幅 度平均值的比例。以6日RSI值為例,其值若為80以 200926039 上為超買,90以上或Μ頭為賣點;20以下為超賣,10 以下或W底為買點;RSI會比股價變動先出現峰或底, 能預先反映股價的漲跌趨勢,可視為大盤指數走勢的先行 指標;若當6日RSI由下往上穿過12日RSI時,可 視為買點;反之,當6日RSI由上往下貫破12日RSI 時,可視為賣點;RSI線走勢與大盤指數走勢呈背離現象 代表大盤即將反轉。5. RSI RSI uses the price movements of a certain period of time to predict the trend of future price changes. The basic principle is that in a normal stock market, the strength of both sides of the stock market must be balanced and the stock price will be stable. RSI is the ratio of the average value of the stock price increase to the average of the total increase and decrease in a certain period of time. Take the 6-day RSI as an example. If the value is 80, it will be overbought on 200926039, 90 or more will be the selling point; below 20 will be oversold, 10 or below will be the buying point; RSI will peak before the stock price changes. Or the bottom, can reflect the ups and downs of the stock price in advance, can be regarded as the leading indicator of the trend of the market index; if the RSI on the 6th through the 12th RSI from the bottom up, it can be regarded as a buy point; otherwise, when the RSI on the 6th goes from the top to the bottom When the 12th RSI is broken, it can be regarded as a selling point; the trend of the RSI line and the trend of the broader market index will indicate that the market is about to reverse.

6.KD φ 將RSI強弱指標、移動平均線以及量能觀念的優點 予以融合之技.術指標。如果行情是一個明顯的渾勢,會帶 動Κ線與D線向上升,如漲勢開始遲缓,則會反應到 Κ值與D值,使得Κ值跌破D值,此時中短期跌勢 確立;當Κ線自上往下跌破D線,且D值在80以 上(超買區),為賣出訊號;當Κ線自下向上突破D線, 且值在20以下(超賣區)出現,為買進訊號;當Κ值 大於80,D值大於70時,表示當日收盤價處於偏高之 ©價格區域,即為超買狀態;當K值小於20,D值小於 30時,表示當曰收盤價處於偏低之償格區域,即為超賣 狀態;價格創新高或新低,而KD未有此現象,此為背 離現象,亦即為可能反轉的重要前兆。 7.MACD (DIF) 係利用快速和慢速兩條指數平滑移動平均線 (EMA),以計算兩者之間的差離值(DIF),再利用差離值與 差離值平均值(DEM)的收斂(交會)與發散(分離)的徵兆, 用以研判股市行情買進或賣出的時機,若MACD及DIF 均為正值,可視為多頭市場;MACD及DIF均為負值, 8 200926039 可視為s頭市場;DIF向上突破MACD,買進訊號;㈣ 向下跌破MACD ’賣出訊號;咖值由負轉正,且穿越 MACD 貝進訊號;mF值由正轉負,且突破繼,賣 出訊號,DIF與大盤指數呈背離走勢時,若股償連續創新 低點’而DIF值並未創新低點,此為『正背離』走勢,為 貝料機;反之’若股價連續創新高點,而服值並未創 新向點時,此為『負背離』走勢,為賣出時機。 ❹ 3 ίI場中有眾多的資訊要分析’當然相關的技術 二曰„,在此僅列舉上述幾個較為常用之技術指 ^析^它尚有日線、週線、月線、融資、融卷…等資 如何處理如此多的資訊呢?雖然電腦可以报 谷。刀斤各種技術指標,但單純的技術指標分析合有 :後盤勢與指標鈍化的情況發生,且沒有自=;析;: >正的此力’所以其分析預測之結果非常不準確。希望透 具有人工智慧(Al),如此一來,不僅 習修正的能力’還可適應股市各種 情況的父動’進而能更準確地預測股市未來的趨勢。 乏面l灰色制與馬爾可夫預測是兩類應用廣 兩個方法都適用於時間序列的預測,各 鏈f刚便是結合灰色⑽⑽預測模型= 馬爾可夫鏈預_型優點的預測方法。 ς 較適用於數據資料少並且#合所謂“廣義m 預測,只需少量的數據(超過四個)即可建模二曰= 擬合函數只是—條平滑的指數函數曲線,對於隨機性車Γ: 的數據擬合較差,預測精度也較低。馬爾可夫 200926039 象是—個隨機變化的動態系統,其理論基礎為馬爾可夫過 程。一個n階馬爾可夫鏈係由n個狀態集合及一組轉移概 率=決定,該過程在任一時刻只能處於一個狀態,根據各 狀態之間的轉移概率可預測系統未來的變化。時間序列中 要求過程平穩,轉移概率反應了各種隨機因素的影響程 度故馬爾可夫鏈適用於數據隨機性較大的預測。大多數 =時間序列都是隨著時間變化而呈現某種趨勢的非平穩 隨機過程,過程總會隨各種隨機因素的影響,繞著某一^ β化趨勢而有偏差或擺動,因此若採用不同GM(1,O'模型 求得過程中的變化趨勢,再利用馬.爾可夫鏈作轉移概 竿为析、,這兩種方法結合起來將可提高GM(U)的預測 精度’並擴大GM(1,1)的應用範圍。 【發明内容】 笛具有人工智慧的能力,可以繁投資者做預測及決 膝用了灰色理論中的灰關連分析與灰色預測的 ❹έ/ / S於部分信息6知’部分未知的系統稱為灰色系 股票市場巾有报多的訊歧未知的,所財常適合 、、列Λ摇m應用。基於灰色理論的gm(u)模型的預 =灰色關㈣常多的方法與變 有同的應用而採用不同的作法;因為股票市場具 本=其=變化而呈現某種趨勢的非平穩隨機過程,所以 採用最佳化後的GM(u)模型與馬 了夫鏈修正方法來進行股票市場之預測。 化進二^明的主要目的係提供一種對股市資訊的變 化進订追縱與預測的方法,以幫助投資者易於投資,並降 200926039 低投資風險與提昇投資效益。 模/f果^另目的係提供—種方法來使預測模型建 方法更具適應性。 ^時將使本 本發_再—目的係提供—種在股票市場中 J市標’以預測未來股市趨勢以評估市場“的二 法,來提兩獲利能力並降低投資風險。 在前述資料中可以瞭解股票市場中相 f多二無法同時且.長期追蹤所有以 與投易響’造成判斷錯誤 二,數變化進行追物測,】法對 資雜行ί f 供投資者可立即做出正確的投 為(貝、貝或平倉),而不再需要花眚士旦 間精力去研究各種相關的資料及報告。 、里夺 ❹ 在,市場中有报多的訊息是:知 色系統’適合用灰色理論的方法。在本發:: =:技與大盤指心 =_料,之?二; H〇Me:0^ 槎刑^ 找出佳的預測模型,最後再結合馬可夫 出股市之ηυ,以提昇預測的精準性,供投資者作為進 200926039 【實施方式】 以下本發明將對較佳實施例及所附之圖予以充分描 述,但在此描述之前應暸解熟悉本行之人士可修改在本文 中描述之實施例創作,同時獲致本發明之同等功效。因 此,須瞭解以下之描述對熟悉該項技藝之人士而言為一廣 泛之揭示,且其内容不在於限制本發明。以下為與本發明 背景有關之技術的延伸描述。雖然有嫻熟經驗及知識的讀 @ 者可選擇僅跳讀或甚至不讀以下之背景資訊,但了解此項 資訊可進一步掌握本發明的具體實施,建議應加以詳讀。 首先參考第1圖所示,為本發明方法之流程圖。在本 發明方法之實施例中,首先以股票市場中的大盤指數2 與不同天數的價之移動平均線(ηΜΑΡ)的歷史資料作為 原始數據11。在本實施例中輸入資料時,則是以採用大 盤指數與不同日均線為輸入的資訊,例如24日均線 (24ΜΑΡ)、72 日均線(72ΜΑΡ)、144 日均線(144ΜΑΡ)、 288日均線(288ΜΑΡ)等,本發明可分成三個部分來加 ® 以討論,其中一部份為灰關聯分析12 (詳細流程請參考 第3圖)。在原始數據11中,本發明之較佳實施例,分 別對大盤(Taiex)與不同日均線(ηΜΑΡ)做測試,較佳 實施例中日均線取 24ΜΑΡ_χ、72ΜΑΡ_χ、144ΜΑΡ—Χ、 288ΜΑΡ_χ四條均線。上述ηΜΑΡ_χ中的η表示η天 均線’ X表不時間區間長度,而時間區間為6、12、2 4、 72天。 再利用灰色關聯分析方法,對參考數列(ηΜΑΡ_χ) 與比較數列(大盤指數)進行灰關聯度(GRG)的分 12 200926039 可將其作為4 考數列與比較數列的關聯度最大後,即 ⑽的方的輸人資料。在本㈣中計算 GRG之公式^ 有知用距離、斜率、面積等計算 異,但是/次序m,種計算方式之結果雖然會有所差 用距離GRG之計y二是不,的,所以本發明直接採 有關灰色關聯分析的詳:步J:下3::的程序31、32。 ❹ (x〇w) ^ ,.012 “'⑷)因子確定,其中yx且 值,。’’.··’” ’ w),x'w •分別表示在I點的數 理列與比較數列後,需將數列作前處 關聯生成的方法,使參考數列與比 較數列之物理意義或度量單位相同。 3·^過前處理後’即可求出*對 ' 的灰關聯係數 f ey R,nal CWfieient,GRC) ’其公式如第3圖的程 r . 不,「其中,ζ 為分辨係數(Distinguishing 7T e ^ ζ = 〇·5,Δ^ 型而有所不同計算方式。 4.求出灰關聯係數後,即可求出數列間的灰關聯产 (Grey Relational Grade,GRG)。χ 是所有信息序列 r ^ 集合’ ζ· = 0,1,2,;取其t d ’训冰)分別為 在k點的數值。若滿足如第3圖的程。序’ 32 ’則办。,\)稱為χ,_對X。的灰關聯度。 另一部份為不同預測模型分析13、14、15。各預測 13 200926039 杈,的輸入資料為最佳化的比較數列(24MAP) 21之所 f高=點22、23產生的天數。在GM(U)預測模型η y刀析中,在取得從民國86年5月至93年10月各古 低點相對於首日的天數之相關資料後,即可對這些數列^ S ; 1立GM(U)預測模型之步驟如下所二即為 參d弟1圖標號之13 : 1. 取得計算所需要之資料,令為 X〇=(^o(lXx〇(2),....,x〇(A:),,χ。⑻) (J ) 2. 對其執行1-AGO的運算而得到以下的式子 ^〇) =(^^(1),^(2),^(3),.·.··,⑻) (2) 其中 k i) — ΣΊ 於=1,2ν··,《 \ μ {ό) 魯 3·藉由對χ(1)作meam generating運算,得到 ⑶,.....,z%)) m其中 () 4. GM(1,1)建模之原始方程式如下(戶^6. KD φ combines the advantages of the RSI indicator, the moving average and the concept of quantity and energy. If the market is an obvious downturn, it will drive the squall line and the D line to rise. If the rally starts to be sluggish, it will reflect the devaluation and D value, so that the devaluation falls below the D value. Established; when the Κ line fell from the top to break the D line, and the D value is above 80 (overbought area), is the sell signal; when the Κ line breaks the D line from the bottom up, and the value is below 20 (oversold area) ) appears as a buy signal; when the Κ value is greater than 80, the D value is greater than 70, indicating that the closing price of the day is in the high price of the price area, that is, the overbought condition; when the K value is less than 20, the D value is less than 30, It means that when the closing price is in the low compensation zone, it is oversold; the price is high or low, and KD does not have this phenomenon. This is a divergence phenomenon, which is an important precursor to possible reversal. 7.MACD (DIF) uses the fast and slow two exponential smoothing moving averages (EMA) to calculate the difference between the two (DIF), and then use the difference and the difference mean (DEM) The signs of convergence (crossing) and divergence (separation) are used to judge the timing of stock market buying or selling. If both MACD and DIF are positive, they can be regarded as long market; MACD and DIF are negative, 8 200926039 can be regarded as the s head market; DIF breaks through the MACD and buys the signal; (4) sells the signal to the MACD of the decline; the value of the coffee changes from negative to positive, and crosses the MACD beacon signal; the mF value changes from positive to negative, and breaks through When the signal is sold, the DIF and the broader market index deviate from the trend, if the stock repays a continuous low of innovation' and the DIF value does not reach a new low point, this is the "positive deviation" trend, which is a feed machine; When the new high point, and the service value is not innovative, this is the "negative divergence" trend, which is the time to sell. ❹ 3 ίI There is a lot of information in the field to analyze 'of course, the related technology is two „„, here are just a few of the more commonly used technical indicators. ^It still has daily, weekly, monthly, financing, financing Volume...etc. How to deal with so much information? Although the computer can report to the valley. Various technical indicators, but the analysis of the simple technical indicators combines: the situation of post-discipline and indicator passivation occurs, and there is no self-description; : > positive this force' so the results of its analysis and prediction are very inaccurate. I hope to have artificial intelligence (Al), so that not only the ability to correct the 'can adapt to the various activities of the stock market' and then can be more Accurately predict the future trend of the stock market. The lack of surface gray system and Markov prediction are two types of applications. Both methods are suitable for time series prediction. Each chain f is just combined with gray (10) (10) prediction model = Markov chain Predictive method of pre-type advantage. 较 More suitable for data data and #合“ so-called “generalized m prediction, only a small amount of data (more than four) can be modeled as two = fit function is just – smooth index function The curve, for the random rut: the data fit is poor, and the prediction accuracy is also low. Markov 200926039 is like a dynamic system with random changes, the theoretical basis of which is the Markov process. An n-order Markov chain is determined by n state sets and a set of transfer probability =, the process can only be in one state at any time, and the future changes of the system can be predicted according to the transition probability between states. In the time series, the process is required to be stable, and the transition probability reflects the influence of various random factors. Therefore, the Markov chain is suitable for predictions with large randomness of data. Most = time series are non-stationary stochastic processes that exhibit a certain trend with time. The process will always be biased or oscillated around a certain β-winding trend with various random factors, so if different GM (1, O' model to obtain the trend of change in the process, and then use the Markov chain for the transfer profile, the combination of these two methods will improve the prediction accuracy of GM (U)' and expand The scope of application of GM(1,1). 【Abstract】 The flute has the ability of artificial intelligence, which can be used by investors to make predictions and use the gray correlation analysis and gray prediction in the grey theory. 6 know that 'partially unknown system is called gray stock market towel has a lot of unknown information, the wealth is often suitable, and the application of the mm (u) model based on the gray theory (four) The often used method has different practices from the same application; because the stock market has a non-stationary stochastic process that exhibits a certain trend, so the optimized GM(u) model and the horse are used. The chain correction method to carry out the stock market The main purpose of the two-in-one is to provide a method for tracking and forecasting changes in stock market information to help investors invest easily and reduce the investment risk and investment efficiency of 200926039. ^The other purpose is to provide a method to make the prediction model construction method more adaptive. ^When the book will be sent to the target market in the stock market to predict the future stock market trend to evaluate the market" The second method is to raise the two profitability and reduce the investment risk. In the above information, we can understand that the stock market has more than two phases at the same time and can track all of them in the long run. The physical test, the law on the miscellaneous line ί f for investors can immediately make the right vote (bei, shell or close), and no longer need to spend time to study various related information and reports. In the market, there is a lot of information in the market: the color system is suitable for the gray theory method. In this issue:: =: technology and the market refers to the heart = _ material, the second? H〇Me: 0^ 槎刑^ Find good predictions The model, and finally the combination of Markov's stock market, to improve the accuracy of the forecast, for investors to enter 200926039. [Embodiment] The following description of the preferred embodiment and the accompanying drawings will be fully described, but described herein. It is to be understood that a person skilled in the art can revise the embodiments described herein, and at the same time achieve the same effect of the invention. Therefore, it should be understood that the following description is a broad disclosure of those skilled in the art and The content is not intended to limit the present invention. The following is an extended description of the technology related to the background of the present invention. Although there is a good experience and knowledge of reading @者 can choose to skip only or not read the following background information, but understand this information The specific implementation of the invention can be further understood and the recommendations should be read in detail. Referring first to Figure 1, there is shown a flow chart of the method of the present invention. In the embodiment of the method of the present invention, the historical data of the moving average (ηΜΑΡ) of the market index 2 and the price of different days in the stock market is first used as the raw data 11. In the case of inputting data in this embodiment, the information is input using the market index and different daily average lines, such as the 24-day moving average (24ΜΑΡ), the 72-day moving average (72ΜΑΡ), the 144-day moving average (144ΜΑΡ), and the 288-day moving average ( 288ΜΑΡ), etc., the present invention can be divided into three parts to add ® to discuss, and a part of it is gray correlation analysis 12 (refer to Figure 3 for detailed process). In the original data 11, the preferred embodiment of the present invention tests the Taiex and the different daily averages (ηΜΑΡ). In the preferred embodiment, the daily average takes 24 ΜΑΡ χ, 72 ΜΑΡ χ, 144 ΜΑΡ Χ, 288 ΜΑΡ χ χ 均. The η in the above ηΜΑΡ_χ indicates that the η-day moving average 'X indicates the length of the time interval, and the time interval is 6, 12, 24, 72 days. Using the gray correlation analysis method, the grey relational degree (GRG) of the reference sequence (ηΜΑΡ_χ) and the comparison series (the market index) can be divided into 12, 200926039, which can be regarded as the maximum correlation between the 4 test series and the comparison series, that is, (10) The party's input information. Calculate the formula of GRG in this (4). It is known to use the distance, slope, area, etc. to calculate the difference, but the / order m, the result of the calculation method will be different. The distance from the GRG is not, so this is the case. The invention directly relates to the gray correlation analysis: Step J: The following 3:: Programs 31, 32. ❹ (x〇w) ^ , .012 "'(4)) factor is determined, where yx and value, .''.··'" 'w), x'w • respectively represent the mathematical column at I point and after comparing the series The number of columns must be used as the method of front-end association generation, so that the reference number column has the same physical meaning or unit of measure as the comparison series. 3·^ After the pre-treatment, 'you can find the gray correlation coefficient of the pair's 'f ey R, nal CWfieient, GRC) 'The formula is the process r of Fig. 3. No, "Where, ζ is the resolution coefficient (Distinguishing 7T e ^ ζ = 〇·5, Δ^ type and different calculation methods. 4. After finding the gray correlation coefficient, the gray relational grade (GRG) between the series can be obtained. χ is all information The sequence r ^ set ' ζ · = 0,1,2,; take its td 'training ice' as the value at point k. If it satisfies the procedure as in Figure 3, the order '32' is done., \) For χ, the gray correlation degree of _ to X. The other part is the analysis of different prediction models 13, 14, and 15. For each prediction 13 200926039 杈, the input data is the optimized comparison series (24MAP) 21 High = the number of days generated by points 22, 23. In the GM (U) prediction model η y, after obtaining the relevant data from the ancient lows of the Republic of China from May 86 to October 1993 relative to the first day of the first day, The sequence of the GM(U) prediction model is as follows. The following is the 13th of the icon number of the dynasty 1: 1. Obtain the data needed for the calculation, and let X〇=(^o (lXx (2),....,x〇(A:),,χ.(8)) (J) 2. Perform the 1-AGO operation on it to get the following expression ^〇) =(^^(1) ,^(2),^(3),.·.··,(8)) (2) where ki) — ΣΊ =1, 2ν··, \ μ {ό) Lu 3· by confrontation (1 ) as the meam generating operation, get (3), ....., z%)) m where () 4. The original equation of GM(1,1) modeling is as follows (household ^

Z .(1) 不 5.產生參數α、δ的解法為根摅 Θ .γ,ι 崎W平方法則 {ΒτΒγΒτΥΝ 其中 dx{l) dt αχ ⑴_ ⑹ 14 (7) 1 (〇)(A:) + az(l)(A:) = 6, k = 2,3,‘·. „ -(2) 200926039Z.(1) No 5. The solution for generating the parameters α and δ is the root 摅Θ.γ, the method of the 崎 W W flat { {ττγγΒτΥΝ where dx{l) dt αχ (1)_ (6) 14 (7) 1 (〇)(A:) + az(l)(A:) = 6, k = 2,3,'·. „ -(2) 200926039

B 7(】) -(2)B 7(]) -(2)

v(3), (8) 6.經由式子(7)的運算之後,得到參數“ ^之值如下 JL ri k=2v(3), (8) 6. After the operation of equation (7), the value of the parameter "^ is obtained as follows JL ri k=2

(〇) W (9) 6=Σ«Σ«2-Σ>ϊ)1>((μ -Λ=2 Δ (10) 其中 厶= i=2 (11) Ο 將 值為 a,b值代入影子方程式(6)最後所產生的預測 沪)(灸 +1) = [/。)(1) _ A]〆 + A (12) a a v y 其中 ’α)=χ(〇)(1) (π) 8.對,( λ)(“ι)做1-IAGO最後可得預測值沪〇t)為 ^\k) = x(l\k)-xm{k-\) = (14) a 進行實際值χ(。)㈨與預測值p(幻之間的誤差分析 15 200926039 xi〇)(k)-x(0\k)~^\k) ~xl00%, k = 2,3,4, ,n. (15) ❹ 在GMeM(l,l)灰新陳代謝預測模型14分析中, 取得從1民國86年5月至93年1〇月各高低點相對 於首日的天數之相關資料後,即各高低點出現的日期減去 各,始日,就可對此資料區段之數列進行建模。建模的資 料,為3〜Ν·1,N為所選用的最大資料量,從其中可 計算出預測下一高/低點出現的最佳點數(資料量),以供 HGMeM(U)混合型預測模使用。建立⑽^⑶模型 之過成程如下所示: (16) L令W為原始序列 其中 x = 1,.···,《} 代謝序列 2.記〜(。)為x(°)中第. &+1 ^(〇) 3·當 (17) (18) ,)(1ί+丨) = ^(2,) Pot K = const (19) K = el 則稱 .(〇) O+1(0),v,ei 16 (20) 200926039 為新陳代謝,稱 {x,(0)|z-6i} = {x,(0)} (21) 為χ(。)的新陳代謝子族 4.對X⑼的新陳代謝子族建模 (22) 〇 GM 〇 JGO :工'(。)-^(0)(„, +1) ^+1 = 1 +j, 4<j^n-l 其中iw(«,+l)為預測值 ❹ 5.利用如下所示殘差檢驗公式 q{0\i) = χ(〇)〇 + ·/)~^(〇)〇' + /)(〇) W (9) 6=Σ«Σ«2-Σ>ϊ)1>((μ -Λ=2 Δ (10) where 厶= i=2 (11) Ο will be the value of a, b The final prediction produced by the shadow equation (6) (Moxibustion +1) = [/.) (1) _ A] 〆 + A (12) aavy where 'α) = χ (〇) (1) (π) 8. Yes, ( λ) ("ι" do 1-IAGO last available predictive value 〇 t) is ^\k) = x(l\k)-xm{k-\) = (14) a Value χ(.)(9) and predicted value p(error analysis between illusions 15 200926039 xi〇)(k)-x(0\k)~^\k) ~xl00%, k = 2,3,4, , n. (15) ❹ In the GMeM (l, l) gray metabolism prediction model 14 analysis, after obtaining the relevant data of the high and low points of the Republic of China from May of the 86th year to the first day of the year of 1993, relative to the first day, The date of occurrence of each high and low point minus each day, the number of the data section can be modeled. The modeling data is 3~Ν·1, N is the maximum amount of data selected, from which Calculate the optimal number of points (data amount) for predicting the next high/low point for use in the HGMeM(U) hybrid prediction mode. The process of establishing the (10)^(3) model is as follows: (16) L order W is the original sequence where x = 1,.·· ·, "} Metabolic sequence 2. Remember ~ (.) is the first in x (°) & +1 ^ (〇) 3 · When (17) (18) ,) (1 ί + 丨) = ^ (2, Pot K = const (19) K = el is called. (〇) O+1(0),v,ei 16 (20) 200926039 is the metabolism, called {x,(0)|z-6i} = {x , (0)} (21) is the metabolic subfamily of χ(.) 4. Modeling the metabolic subfamily of X(9) (22) 〇GM 〇JGO:工'(.)-^(0)(„, +1 ) ^+1 = 1 +j, 4<j^nl where iw(«, +l) is the predicted value ❹ 5. Use the residual test formula q{0\i) = χ(〇)〇+ /)~^(〇)〇' + /)

Pot IPot I

xi〇)0 + J) -Σ 丨?(0)⑺ I xlOO% (23) l€l I = {1,2,····,«-;'} 可檢測 GMeM(l,l)模型是否符合要求。 在HGMeM(l,l)灰混合型預測模型i5分析中,它 結合了 GMeM(l,l)模型與gmg,;!)模型,二者的建模 © 過程可參考前述建立GM(1,1)與GMeM(l,l)模型之詳 細步驟。經由GMeM(U)預測模型可找出最佳的建模點 $丄然後再利用GM(1,1)模型求得更精確的預測結果。 、、二貫驗證貫,利用HGMeM(l,l)預測模型的確可獲得極 佳的預測準度’以作為投資者買進或賣出之依據。 根據本發明的較佳實施例,目標預測出大盤在民國 間 / 13日與民國93年8月18日出現高/低點的時 86二先取得欲預測之資訊指標的歷史資料,假設民國 知。由H収國93年4月29之大盤變化數值為已 由於取佳化的比較數㈣24MAP之所有高低點產 17 200926039 生的天數(參考前述之說明),故建立GM(1,1)模型所需 之資料即為24MAP中介於民國86年5月3日到民國93 年4月29之間共20筆產生高轉折點之時間以及介於民 國86年6月5日到民國93年4月15之間共19筆產生 低轉折點之時間。在取得建模資料後,將這些數列分別代 入不同預測模型,即GM(1,1)預測模型13、GMeM(l,l) 預測模型14與HGMeM(l,l)預測模型15。然後,經 由殘差檢驗法則,見公式(15)與(23),最後可得到最佳 φ 的預測模型與高/低點建模點數分別為HGMeM(l,l)與 5/4 點。 經過預測模型13、14與15三種方法測試後,所產 生最佳的預測模型為HGMeM(l,l),此一模型雖可提升預 測的精確度,但由於股票市場具有隨著時間變化而呈現某 種趨勢的非平穩隨機過程,並非近似一條平滑的指數函數 曲線,所以有必要對預測值進行一系統化的修正方可再提 高預測精準度,本發明依據股票市場之一般特性,因此採 用灰馬可夫鏈方法來進行修正僅單純使用HGMeM(l,l) ® 預測模型建模所產生的缺點。 再一部份為GMaM(l,l)灰馬可夫預測模型16,由 於馬可夫過程具有統計概念,所以需要利用全區段資料, 然後透過HGMeM(l,l)建模所產生之預測值加以分析, 在取得所有區段内資料之預測值後,即可利用馬可夫鏈方 法來提高預測模型的預測結果,以擴大不同灰預測模型 GM(l,l)、GMeM(l,l)等等的應用。建立灰馬可夫模型 GMaM(l,l)之步驟如下所示,即為參照第4圖標號之41、 42 、 43 、 44 、 45 : 18 200926039 1. 最佳化預測模型之建立41 最佳化預測模型之建立乃是由GM(1,1)預測模型 13、GMeM(l,l)預測模型14與HGMeM(l,l)預測模型 15三者其中之一所產生,目前最佳化的預測模型為 HGMeM(l,l)預測模型,當然也可能是另二個預測模型之 一,端看實驗結果而定,建立各預測模型之方法請參考前 述之詳細步驟。 2. 狀態之劃分42 g 將過程中的各時刻劃分成s個狀態,以;為是時刻 :各狀態的中心點,並取;的適當百分比(P%)作為各 時刻各狀態的上下界,若以&表示i時刻第j個狀態,則 ΕνΕ[Αν,Βνυ = \,2,...,5 (24) 其中 為與巧分別為i時刻第j狀態的下界與上界。 例如Xi〇)0 + J) -Σ 丨?(0)(7) I xlOO% (23) l€l I = {1,2,····,«-;'} Detectable GMeM(l,l) model does it reach the requirement. In the HGMeM (l, l) gray hybrid prediction model i5 analysis, it combines the GMeM (l, l) model with the gmg, ;!) model, the modeling of the two process can refer to the aforementioned establishment of GM (1,1) ) Detailed steps with the GMeM(l,l) model. The GMeM(U) predictive model can be used to find the best modeling point. Then we can use the GM(1,1) model to obtain more accurate prediction results. The two-dimensional verification method uses the HGMeM(l,l) prediction model to obtain an excellent prediction accuracy as a basis for investors to buy or sell. According to a preferred embodiment of the present invention, the target predicts that the market will obtain historical data of the information index to be predicted in the period between the Republic of China/13th and the high/low point of the Republic of China on August 18, 1993, assuming that the Republic of China knows . The value of the market change from H to the country of April 29, 1993 is the number of days that have been compared with the number of comparisons (four) 24MAP all the high and low points of production 17 200926039 (refer to the above description), so the establishment of GM (1,1) model The required information is 24 MAP between the Republic of China on May 3, 1986, and the Republic of China on April 29, a total of 20 high turning points, and between June 5, 1986, and Republic of China, April 15, 1993. A total of 19 strokes resulted in a low turning point. After obtaining the modeling data, these series are substituted into different prediction models, namely GM (1, 1) prediction model 13, GMeM (l, l) prediction model 14 and HGMeM (l, l) prediction model 15. Then, through the residual test rule, see equations (15) and (23), and finally the best φ prediction model and high/low point modeling points are HGMeM(l,l) and 5/4 points, respectively. After the three models of prediction models 13, 14, and 15 are tested, the best prediction model is HGMeM(l,l). Although this model can improve the accuracy of prediction, the stock market has time to change. A non-stationary stochastic process of a certain trend is not a smooth exponential function curve, so it is necessary to systematically correct the predicted value to improve the prediction accuracy. The present invention is based on the general characteristics of the stock market, so the gray is adopted. The Markov chain method is used to correct the shortcomings of the HGMeM(l,l) ® predictive model modeling. The other part is the GMaM (l, l) gray Markov prediction model. Since the Markov process has a statistical concept, it is necessary to use the full segment data and then analyze the predicted values generated by HGMeM(l,l) modeling. After obtaining the predicted values of the data in all the sections, the Markov chain method can be used to improve the prediction results of the prediction model to expand the application of different gray prediction models GM(l,l), GMeM(l,l), and the like. The steps for establishing the gray Markov model GMaM(l,l) are as follows, refer to the 4th icon number 41, 42 , 43 , 44 , 45 : 18 200926039 1. The optimization prediction model is established 41 Optimized prediction The model is established by one of the GM(1,1) prediction model 13, the GMeM(l,l) prediction model 14 and the HGMeM(l,l) prediction model15, and the current optimized prediction model. For the HGMeM (l, l) prediction model, of course, it may be one of the other two prediction models, depending on the experimental results, please refer to the detailed steps mentioned above for the method of establishing each prediction model. 2. Division of state 42 g Divide each moment in the process into s states; to be the moment: the center point of each state, and take the appropriate percentage (P%) as the upper and lower bounds of each state at each moment, If & represents the jth state at time i, then ΕνΕ[Αν, Βνυ = \, 2,..., 5 (24) where is the lower and upper bounds of the jth state at time i. E.g

3·建立狀態轉移概率矩陣43 若將狀態轉移概率記為 Ρίπ,) =3. Establish state transition probability matrix 43 If the state transition probability is recorded as Ρίπ,) =

(25) 其中/Γ表示由狀態i經m步轉移到狀態j的概率; 19 200926039 為狀態i經m步轉移到狀態〗的 次數。則狀態轉移概率矩陣可記,軋為狀態i出現之 (2ϋ ·”^ ? ? 9 o ) ) ^--1 fl 4·製作預測表44 選取離預測時刻最近的r個眸利^ 刻,由近而遠,瘅斟沾結你止 &照距離預測的丨 各轉移步數所對應的矩陣中, &為1,2,...,Γ。/ 量,從而# Τ取各起始狀態所對應的列I ;:而組成新的概率矩陣’對新的概率矩陣之行向」 和’取大的所對應的狀態便是預測態。例% 1-(25) where /Γ denotes the probability of transitioning from state i to state j via m steps; 19 200926039 is the number of times state i has transitioned to state by m steps. Then, the state transition probability matrix can be recorded, and it is rolled into the state i. (2ϋ ·"^ ? ? 9 o )) ^--1 fl 4·Making the prediction table 44 Selecting the r profit moments closest to the prediction time, Close and far, 瘅斟 你 你 amp amp amp amp amp amp amp amp amp amp amp amp amp amp amp 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵 矩阵The state corresponding to the column I;: and the new probability matrix 'for the direction of the new probability matrix' and the corresponding state of the larger is the predicted state. example 1-

ο j2〇211 總計 5.計算預測值45 決定了未來的轉移狀態後,就可確定該狀態區的上名 /、下界’最可能的預測值可視為該區間之中點,即為區段 上界與下界的平均值。 20 200926039 =0.5 χ (4+^) or (ρ丨+Pj) 93/=ϋ的較佳實,’目標預測出大盤在民國 料之Ιί(3]νί、ιν^8/18出現高/低點的時間,在完成相關資 建财取得所有資料之預測值後,即 ❹ 進—修^號之42、43、44、45四個計算步驟,對 提高預測的精確度,即產生最佳的預 點:im: ' 擁有大盤何時會出現下-高/低轉折 ;二Γ容不迫的提早買進或賣出期指,從中 獲取季乂回的投資報酬率。 · 可透3 = Γ父佳實施例’灰馬可夫模型G騎(U) 了透過不㈣動建模时式與計 比汽,狀態個數!以及轉移步數m,^:^上下界百分 =的預測值進行修正,以產生 =預::型: 測值之滾動建模的資=、各主= 上下界百刀比p,狀態個數i與轉 心之 不變的’會隨著預測模型的資料量 的:::固定 即本預測模型GMaM(u)可隨動的^者文變’亦 的資料量而自動產生最佳的預聽果17預_型所使用 如第2圖所示為大盤κ線圖,斤甘 分時線(5/10/20.../18〇分線線^ =轴不同而有 中皆採用曰κ線圖的曰均=輸=分:在本 ^ 月之均線組合作為預測之判斷條件。冬铁丫,利用 硯察之均線亦可選用其它分時、曰、:一,投貢者所 斷指數之趨勢,其判斷方法亦如同第3圖之^^以判 21 200926039 在本發明較佳實施例中,選取大盤(Taiex)與不同曰 均線(ηΜΑΡ)作為原始數據之來源,所有分析皆是針對此 二項做處理。投資者可將其改為其它技術指標,例 MACD、RSI等技術指標,或在分析時加上其它均線或指 標,或許可以得到更好的預測結果,當然這得經由實驗驗 證0 另在本發明較佳實施例中,將選取要素大盤 (Taiex)與不同日均線(nMAP)分別作測試’投資者可將 〇 其改為其它要素,例如融資或其它技術指標等,或在分析 時加上其它均線與技術指標等不同之要素,作為測珥之條 件’其餘之做法與前述的流程一樣。 在本發明較佳實施例中’利用灰關聯分析(GRA)找 出與大盤關聯度最高的24MAP均線,然後經由 GM(l,l)/GMeM(l,l)/H GMeM(l,l)產生最佳之預測模 型’接著再利用灰馬可夫方法修正最佳預測模型,最後所 產生出來的預測結果’其成效皆優於不採用本發明之做 〇 法^因此本發明能讓投資者早一步獲知買/賣訊號,提供 投資者一個具有低風險且高獲利的投資方法。 在本發明較佳實施例中,因為預測大盤指數轉折點θ 中長期的而非短期或長期的’且股票市場的變動非a 疋 速’所以均線之時間軸的選取不能太短或太長,若:迅 月巨被短期之波動所欺編,而太長則會無法迅速反應 _ Z 際狀況,所以本發明選取四組均線作為輪入眘 只 之長度分別為6Λ2/24/72日。 貝枓’而均線 之 牡+ f明的一種較侄貫施例中C流程參照第4 42、43、44、45) ’利用馬可夫鏈方法修正最佳 22 200926039 型,最後所產生出來的預測結果中,所使用最佳的各狀態 上下界百分比P值、狀態個數i與轉移步數m分別為 4%、3個與3步。 本發明之實施方法已詳述於前述實施例中,任何熟悉 本技術領域之人士皆可依本發明之說明,在不背離本發明 之精神與範圍内視需要更動、修飾本發明,因此,其他實 施態樣亦包含在本發明之申請專利範圍中。 綜合以上所述,本發明基於灰色與馬可夫理論預測股 市大盤轉折點之方法,即利用人工智慧的方法,預測出未 來股市之轉#點,不僅可讓投資者了解未來股市的趨勢與 先一步掌握投資訊習,進而還可有效降低投資風險與損 失。由此可以瞭解,本發明實具有諸多優良特性,不僅可 解決一些實際應用上的缺失與不便,提出經濟有效的解決 方法外,還可讓投資者可以在短時間内得到相關的投資訊 息,以避免外在環境及人為因素的影響,進而有效控管投 資的風險,實已符合發明專利之申請要件,懇請鈞局能 予詳審並賜予專利權保障,以優惠民生實感德便。 23 200926039 【圖式簡單說明】 第1圖為本發明分析預測方法之流程圖。 第2圖為民國85/5〜87/4之大盤K線圖。 第3圖為習知灰色關聯分析之流程圖。 第4圖為灰馬可夫預測模型建立之流程圖。 【主要元件符號說明】 大盤指數〜2 ; 原始數據〜11 ; ® 灰關聯分析(GRA)〜12 ; 灰預測模型GM(1,1)〜13 ; 灰新陳代謝預測模型GMeM(l,l)〜14 ; 灰混合型預測模型HGMeM(l,l)〜15 ; 灰馬可夫預測模型GMaM(l,l)〜16 ; 最佳之預測結果〜17 ; 24MAP移動平均線〜21 ; 24MAP之高點〜22 ; 24MAP之低點〜23 ; 灰灰關聯係數公式〜31 ; 灰關聯度公式〜32 ; 最佳預測模型之建立〜41 ; 狀態之劃分〜42 ; 建立狀態轉移概率矩陣〜43 ; 製作預測表〜44 ; 計算預測值〜45。 24ο j2〇211 Total 5. Calculate the predicted value 45 After determining the future transition state, it can be determined that the top/lower bound of the status area is the most likely predicted value, which can be regarded as the midpoint of the interval. The average of the bounds and the lower bounds. 20 200926039 =0.5 χ (4+^) or (ρ丨+Pj) 93/=ϋ is better, 'the target predicts that the market is high in the Republic of China Ιί(3]νί,ιν^8/18 appears high/low At the point of time, after completing the relevant value of all the materials obtained by the relevant capital construction, the four calculation steps of 42-, 43, 44, and 45 of the advance-repair number are used to improve the accuracy of the prediction, that is, to produce the best. Pre-point: im: 'When there is a market, there will be a lower-high/low transition; second, the unwillingness to buy or sell the futures index early, and get the return on investment from the quarterly return. · Can pass through 3 = Master The preferred embodiment of the 'Gray Markov Model G ride (U) is corrected by the predictive value of the formula and the ratio of the steam, the number of states, and the number of transition steps m, ^: ^ upper and lower bounds = To produce = pre-:: type: the rolling model of the measured value =, each main = upper and lower bounds, the ratio of the number of states i and the invariant of the heart-turning will follow the data amount of the prediction model: :: fixed, the prediction model GMaM (u) can automatically generate the best pre-audit fruit according to the data volume of the follower's text. 17 Pre-type is used as shown in Figure 2 for the large-scale κ line graph , Ganzi time line (5/10/20.../18〇 line line ^ = axis is different and all are used 曰 κ line graph 曰 all = lose = points: in this ^ month the average line combination as a forecast Judging the conditions. Dongtie, the use of the average line of observation can also use other time-sharing, 曰,: one, the tendency of the tribute to break the index, the judgment method is also like the ^ ^ ^ ^ to judge 21 200926039 in this In the preferred embodiment of the invention, the Taiex and the different averages (ηΜΑΡ) are selected as the source of the original data, and all the analysis is for the two items. The investor can change it to other technical indicators, such as MACD, Technical indicators such as RSI, or other averages or indicators added to the analysis, may lead to better prediction results. Of course, this is verified by experiments. In addition, in the preferred embodiment of the present invention, the selection factor (Taiex) is selected. Different daily averages (nMAP) are tested separately. 'Investors can change them to other factors, such as financing or other technical indicators, or add other factors such as the average and technical indicators in the analysis. 'The rest of the practice with the aforementioned stream In the preferred embodiment of the present invention, the gray correlation analysis (GRA) is used to find the 24MAP moving average with the highest degree of association with the market, and then via GM(l,l)/GMeM(l,l)/H GMeM(l, l) Produce the best predictive model' and then use the gray Markov method to correct the best predictive model. The final predicted result is better than the non-invention method. Therefore, the present invention enables investors to Knowing the buy/sell signal early, providing investors with a low-risk and highly profitable investment method. In the preferred embodiment of the invention, because the forecast of the market index turning point θ is long-term rather than short-term or long-term The market changes are not a idling' so the timeline of the moving average should not be too short or too long. If: 迅月巨 is being bullied by short-term fluctuations, and too long, it will not be able to respond quickly to _Z, so this The length of the four groups of moving averages as the rounds of the invention is 6Λ2/24/72 days. Bessie's and the average of the oysters + f Ming, a more common example, the C process refers to the 4th 42nd, 43, 44, 45) 'Using the Markov chain method to correct the best 22 200926039 type, and finally the predicted results Among them, the optimal upper and lower boundary percentage P values, the number of states i, and the number of transition steps m are 4%, 3, and 3 steps, respectively. The embodiments of the present invention have been described in detail in the foregoing embodiments, and those skilled in the art can make modifications and modifications of the present invention as needed without departing from the spirit and scope of the invention. The embodiment is also included in the scope of the patent application of the present invention. Based on the above, the present invention is based on the method of gray and Markov theory for predicting the turning point of the stock market, that is, using artificial intelligence to predict the future stock market turn point, not only allows investors to understand the future stock market trend and grasp the investment first. Learning can further reduce investment risks and losses. It can be understood from the above that the present invention has many excellent characteristics, not only can solve the lack and inconvenience of some practical applications, but also provides a cost-effective solution, and allows investors to obtain relevant investment information in a short time, Avoiding the influence of the external environment and human factors, and thus effectively controlling the risk of investment, it has already met the application requirements of the invention patents, and the bureau can be given a detailed review and patent protection to provide benefits to the people. 23 200926039 [Simple description of the diagram] Fig. 1 is a flow chart of the analysis and prediction method of the present invention. Figure 2 shows the K-line chart of the Republic of China 85/5~87/4. Figure 3 is a flow chart of a conventional gray correlation analysis. Figure 4 is a flow chart for the establishment of the gray Markov prediction model. [Main component symbol description] Large-cap index ~2; Raw data ~11; ® Gray correlation analysis (GRA)~12; Gray prediction model GM(1,1)~13; Gray metabolism prediction model GMeM(l,l)~14 Gray mixed prediction model HGMeM(l,l)~15; gray Markov prediction model GMaM(l,l)~16; best prediction result~17; 24MAP moving average ~21; 24MAP high point~22; 24MAP low point ~ 23; gray gray correlation coefficient formula ~ 31; gray correlation degree formula ~ 32; best predictive model establishment ~ 41; state division ~ 42; establish state transition probability matrix ~ 43; make prediction table ~ 44 ; Calculate the predicted value ~45. twenty four

Claims (1)

200926039 十、申請專利範圍: 1 · 一種基於灰色與馬可夫理論預測股市大盤轉折點 之方法,用於評估股票市場之大盤指數未來出現轉折的資 訊,包含以下程序: 收集A述股票市場不同技術指標的歷史資料,該歷史 資料為移動平均價的各種均線值; 利用灰色關聯分析(GRA)分析不同移動平均價,從 其中產生出最佳的移動平均價,作為不同預測模型200926039 X. Patent application scope: 1 · A method based on grey and Markov theory to predict the turning point of the stock market, used to evaluate the future turning point of the stock market's market index, including the following procedures: Collecting the history of different technical indicators of the stock market Data, the historical data is the various moving average values of the moving average price; using gray correlation analysis (GRA) to analyze different moving average prices, from which the best moving average price is generated as different prediction models 〇=(1,1)、(^说(1,1)與恥1^即,1)的建模資料,以產 生最佳的預測模型;以及 利用馬可夫鏈之方法修正前述最佳模型之預測值,以 產生最佳的預測結果。 2.如申請專利範圍第1項所述之基於灰色盘馬可夫 =預測股市大盤轉折點之方法,其中收集的技術指標為 大盤指數與不同的移動平均價。 3.如申請專利範圍第1項所述之基於灰色與馬可夫 理,預測股市大盤轉折點之方法,其t歷史資料的輸入區 間範圍’可自行決定。 4.如申請專利範圍帛1項所述之基於灰色與馬可夫 理•預測股市大盤轉折點之方法,其中歷史資料的移動平 均價均線,為6/12/2472曰均線。 5·如申請專利範圍帛1項所述之基;^灰色與馬可夫 2預測股市大盤轉折點之方法,其中可湘灰關聯分析 戈出/、大盤指數關聯度最佳的移動平均價A 24MAP。 6.如申請專利範圍帛1項所述之基於灰色與馬可夫 理論預測股市大㈣折點之方法,其巾所選取範圍中的 25 200926039 24MAP之高低點分別為21與2〇點。 請補範㈣1韻述之聽灰色與馬可夫 =大盤轉折點之方法’其中用於產生最佳預測 核型的預測模型可為灰預測模 測模型輝,υ或灰混合型預測模型恥麗(1,= 理申請專利範圍第1項所述之基於灰色與馬可夫 股!大盤轉折點之方法,其中最佳預測模型為灰 /ttj & t 預測权型 HGMeM( 1,1) 〇 9. 如申請專利範圍帛i 盥可 :理論預測股市大盤轉折點之方法,馬了夫 的預測值,可湘馬可錢f切佳預測模型 佳的預測結果。 鍵之方法來加以修正,以產生最 10. 如申請專利範圍第!項所述之基 夫理論預測股市大盤轉折點之^ 之方法的模型,稱之為灰馬;= 夫理與馬可 法,可自動計算出最佳的上下=分鏈方 與轉移步數m,以產生最佳的預測結果。&固數1 如中請專利範圍第i項所述之基 夫理論預測股市大盤轉折點之方法’ 馬可 鏈方法產生最佳預測結果的各狀態之、夫 P為4%。 取1^上下界百分比 13.如申請專利範圍第i項 夫理論預測股市大盤轉折點之方法,=灰,與馬可 成关甲利用耵述馬可夫 26 200926039 鏈方法產生最佳預測結果的狀態個數為 H.如申請專利範圍帛】項所述之基於灰 夫理論預測股市大盤轉折點之方法,利用求=色與馬可 法產生最佳預測結果的轉移步數為3步。、’’、、可夫鏈方 K如申請專利範圍第!項所述之基於灰色 夫理淪預測股市大盤轉折點之方法,其中最說、、、° HGMeM(U) ο 27〇 = (1, 1), (^ say (1, 1) and shame 1 ^ ie, 1) modeling data to produce the best prediction model; and use the Markov chain method to correct the prediction of the best model described above Values to produce the best predictions. 2. The method based on the grey disk Markov = forecasting the stock market turning point as described in item 1 of the patent application scope, wherein the technical indicators collected are the market index and different moving average prices. 3. If the method of forecasting the turning point of the stock market is based on the grey and Markov theory mentioned in item 1 of the patent application scope, the range of the input area of the historical data may be determined by itself. 4. The method for predicting the turning point of the stock market based on the grey and Markifu as described in the scope of patent application ,1, wherein the moving average moving average of historical data is 6/12/2472 曰 moving average. 5. If the scope of patent application 帛1 is the basis; ^Gray and Markov 2 method for predicting the turning point of the stock market, which can be analyzed by the correlation of the gray and the average moving price of the market index A 24MAP. 6. If the gray and Markov theory is used to predict the big (four) breakpoint of the stock market as described in the scope of patent application, the high and low points of 25 200926039 24MAP in the range selected by the towel are 21 and 2 points respectively. Please fill in the paradigm (4) 1 rhyme to listen to the gray and Markov = the method of the market turning point'. The prediction model used to generate the best prediction karyotype can be the gray prediction model, the υ or the gray hybrid prediction model (1, = The method based on the gray and Markov shares in the first application of the scope of patent application! The method of the market turning point, the best prediction model is gray / ttj & t forecast weight HGMeM ( 1,1) 〇 9. If the scope of patent application帛i 盥 可: The method of theoretically predicting the turning point of the stock market, Ma Fufu's forecast value, can be the best prediction result of the model. The key method is to correct it to produce the most 10. The model of the method of predicting the turning point of the stock market in the kiln theory mentioned in the scope item is called gray horse; = Fu and Ma Ke method can automatically calculate the best upper and lower = sub-chain and transfer steps m, to produce the best prediction results. & solid number 1 The method of predicting the stock market turning point by the Keefer theory mentioned in item i of the patent scope of the patent 'The Marco chain method produces the best prediction results of each state, the husband P 4%. Take 1^ upper and lower bound percentage 13. If the patent application scope i-term theory predicts the stock market turning point, = gray, and Marco can use the Markov 26 200926039 chain method to produce the best prediction results The number of states is H. If the method of predicting the turning point of the stock market is based on the gray-ghost theory as described in the patent application scope, the number of transfer steps using the color-and-mass method to produce the best prediction result is 3 steps. ',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
TW96147625A 2007-12-13 2007-12-13 Method of predicting the high/low points of TAIEX based on grey and Markov theories TW200926039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96147625A TW200926039A (en) 2007-12-13 2007-12-13 Method of predicting the high/low points of TAIEX based on grey and Markov theories

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96147625A TW200926039A (en) 2007-12-13 2007-12-13 Method of predicting the high/low points of TAIEX based on grey and Markov theories

Publications (1)

Publication Number Publication Date
TW200926039A true TW200926039A (en) 2009-06-16

Family

ID=44729582

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96147625A TW200926039A (en) 2007-12-13 2007-12-13 Method of predicting the high/low points of TAIEX based on grey and Markov theories

Country Status (1)

Country Link
TW (1) TW200926039A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108461150A (en) * 2017-02-20 2018-08-28 天津工业大学 A kind of occupational health forecasting research method
CN111080481A (en) * 2019-12-14 2020-04-28 广西电网有限责任公司电力科学研究院 Electric energy substitution potential gray analysis method based on Markov chain correction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108461150A (en) * 2017-02-20 2018-08-28 天津工业大学 A kind of occupational health forecasting research method
CN111080481A (en) * 2019-12-14 2020-04-28 广西电网有限责任公司电力科学研究院 Electric energy substitution potential gray analysis method based on Markov chain correction

Similar Documents

Publication Publication Date Title
Bunn et al. Analysis and forecasting of electricity price risks with quantile factor models
Kelly et al. Exploring the steady-state relationship between credit and GDP for a small open economy: The case of Ireland
CN101794430A (en) Fully-automatic stock operation server
Okere et al. The role of stock market development on economic growth in OPEC countries: Does oil price movement matter? Fresh evidence from Nigeria
Radulescu et al. Ranking of EU national banking systems using multi-criteria analysis in the light of Brexit
Meng et al. Fractal characteristics, multiple bubbles, and jump anomalies in the Chinese stock market
TW200926039A (en) Method of predicting the high/low points of TAIEX based on grey and Markov theories
Naved Technical analysis of Indian financial market with the help of technical indicators
Tong et al. Adaptive trading system of assets for international cooperation in agricultural finance based on neural network
Liu The prediction model and system of stock rise and fall based on BP neural network
TWI248007B (en) Method for evaluating market trade based on trend prediction
Chourmouziadis et al. Intelligent stock portfolio management using a long-term fuzzy system
Hamie et al. Northwestern European wholesale natural gas prices: Comparison of several parametric and non-parametric forecasting methods
Zhang et al. Day-ahead electricity price forecasting using artificial intelligence
Maliki et al. Neural network applications in the forecasting of GDP of Nigeria as a function of key stock market indicators
Ho et al. System dynamics and Genetic artificial neural network models for the monitoring and early warning of urban housing market
TW200945236A (en) A method of predicting a financial market
Qin A study on real estate price by using probability statistics theory and grey theory
Chiang et al. Backpropagation neural network model for stock trading points prediction
Chen et al. Modeling and simulation of the open-end equity mutual fund market in Taiwan by using self-organizing map
Chen et al. Combined trading strategy of bitcoin and gold
Wang Improved Stock Price Forecasting Algorithm based on Feature-weighed Support Vector Regression by using Grey Correlation Degree
TWI226989B (en) Method using gray modeling and fourier residual correction to analyze stock trend forecast
Lu et al. Do commodity futures have a steering effect on the spot stock market in China? New evidence from volatility forecasting
Shentu An Economic Analysis of the Use of Derivative Financial Instruments in Insurance Institutions