TWM584500U - Stock-bond ratio trend prediction system - Google Patents

Stock-bond ratio trend prediction system Download PDF

Info

Publication number
TWM584500U
TWM584500U TW108204658U TW108204658U TWM584500U TW M584500 U TWM584500 U TW M584500U TW 108204658 U TW108204658 U TW 108204658U TW 108204658 U TW108204658 U TW 108204658U TW M584500 U TWM584500 U TW M584500U
Authority
TW
Taiwan
Prior art keywords
ratio data
stock
debt ratio
processor
trend
Prior art date
Application number
TW108204658U
Other languages
Chinese (zh)
Inventor
劉宗聖
黃昭棠
林忠義
廖中維
胡訓方
王紹宇
Original Assignee
元大證券投資信託股份有限公司
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 元大證券投資信託股份有限公司 filed Critical 元大證券投資信託股份有限公司
Priority to TW108204658U priority Critical patent/TWM584500U/en
Publication of TWM584500U publication Critical patent/TWM584500U/en

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一種股債比趨勢預測系統,適用於預測多個歷史股債比資料的下一個交易日的操作策略。預測系統包括彼此訊號連接的處理器、儲存模組以及輸出模組。藉此,可以利用處理器建立生存機率模型,估算股債比可能的發展趨勢而提供適當的操作策略。A stock-to-debt ratio trend prediction system is applicable to the operation strategy for predicting the next trading day of multiple historical stock-to-debt ratio data. The prediction system includes a processor, a storage module, and an output module that are signal-connected to each other. In this way, the processor can be used to establish a survival probability model, estimate the possible development trend of the stock-to-debt ratio, and provide an appropriate operating strategy.

Description

股債比趨勢預測系統Equity-debt ratio trend prediction system

本創作關於一種金融商品投資預測的相關技術,特別是關於一種股債比趨勢預測系統。This creation is related to a financial commodity investment forecasting related technology, especially a stock-to-debt ratio trend prediction system.

隨著人類生活水準的提升,除了透過工作而獲取主動收入以外,也有愈來愈多人以投資理財的方式獲取被動收入。適格的投資標的係不勝枚舉,而其中各式金融商品(如股票、債券、基金等)由於公開資訊相對豐富,較受人們青睞。With the improvement of human living standards, in addition to obtaining active income through work, more and more people have obtained passive income through investment and financial management. Eligible investment targets are endless, and various types of financial products (such as stocks, bonds, funds, etc.) are relatively popular because of their relatively abundant public information.

除了投資單一金融商品外,也有些人透過資產組合進行複合式的投資操作以提升投資績效,當中資產組合可以包括本質上風險較高的股票以及風險較低的債券。In addition to investing in a single financial product, some people use composite asset portfolios to improve their investment performance. The asset portfolio can include stocks with higher risks and bonds with lower risks.

為了能夠有效地預測包括股票及債券的資產組合的漲跌趨勢,在一實施例中,一種股債比趨勢預測系統,適用於預測多個歷史股債比資料的下一個交易日的操作策略。預測系統包括彼此訊號連接的處理器、儲存模組以及輸出模組。處理器自儲存模組取得該些歷史股債比資料,各歷史股債比資料包括多個特徵值。處理器以該些歷史股債比資料建立生存機率模型,生存機率模型包括各歷史股債比資料分別在多個預測趨勢的一生存機率,並且於各歷史股債比資料中最高的生存機率所對應的預測趨勢為各歷史股債比資料的受選預測趨勢。處理器以該些歷史股債比資料的該些受選預測趨勢決定下一個交易日的操作策略。In order to be able to effectively predict the ups and downs of asset portfolios including stocks and bonds, in one embodiment, a stock-to-debt ratio trend prediction system is applicable to an operation strategy for predicting the next trading day of multiple historical stock-to-bond ratio data. The prediction system includes a processor, a storage module, and an output module that are signal-connected to each other. The processor obtains the historical stock debt ratio data from the storage module, and each historical stock debt ratio data includes multiple characteristic values. The processor uses these historical stock-to-debt ratio data to establish a survival probability model. The survival probability model includes a historical probability of each historical stock-to-bond ratio data in multiple predicted trends, and the highest survival probability of each historical stock-to-bond ratio data. The corresponding forecasting trend is the selected forecasting trend of historical stock-to-debt ratio data. The processor determines the operation strategy for the next trading day based on the selected forecast trends of the historical stock debt ratio data.

在一或多個實施例中,處理器更以該些歷史股債比資料以及至少一市場資訊建立生存機率模型。更進一步地,處理器更以該些歷史股債比資料以及至少一市場資訊作為隨機生存森林演算法的輸入值而建立生存機率模型。In one or more embodiments, the processor further establishes a survival probability model based on the historical stock-debt ratio data and at least one market information. Furthermore, the processor uses the historical stock-debt ratio data and at least one market information as input values of the random survival forest algorithm to establish a survival probability model.

在一或多個實施例中,處理器更依據各特徵值的不同的條件,將該些歷史股債比資料分為多個第一歷史股債比資料與多個第二歷史股債比資料,並且處理器更依據該些第一歷史股債比資料建立生存機率模型。更進一步地,處理器更依據該些第二歷史股債比資料取得母體混淆矩陣以及多個子樣本混淆矩陣,其中母體混淆矩陣對應受選預測趨勢具有母體準確率,各子樣本混淆矩陣對應受選預測趨勢具有子樣本準確率,處理器還判斷各第一歷史股債比資料滿足分群條件,分群條件對應該些子樣本混淆矩陣中之受選子樣本混淆矩陣,處理器更根據母體混淆矩陣的母樣本準確率與受選子樣本混淆矩陣的子樣本準確率之較高者的受選預測趨勢做為各第一歷史股債比資料的受選預測趨勢。In one or more embodiments, the processor further divides the historical stock debt ratio data into multiple first historical stock debt ratio data and multiple second historical stock debt ratio data according to different conditions of each characteristic value. And the processor establishes a survival probability model based on the first historical stock-debt ratio data. Furthermore, the processor obtains a parent confusion matrix and multiple sub-sample confusion matrices based on the second historical stock-debt ratio data, where the parent confusion matrix has a parent accuracy rate corresponding to the selected prediction trend, and each sub-sample confusion matrix corresponds to the selected The predicted trend has sub-sample accuracy. The processor also judges that each of the first historical stock-debt ratio data meets the clustering conditions. The clustering conditions should correspond to the selected sub-sample confusion matrix in the sub-sample confusion matrix. The selected prediction trend of the higher accuracy rate of the parent sample and the selected sub-sample confusion matrix is the selected prediction trend of each first historical stock-debt ratio data.

在一或多個實施例中,當各第一歷史股債比資料中最高的生存機率大於高門檻值時,處理器判斷各第一歷史股債比資料滿足分群條件。進一步地,高門檻值位於0.6至0.9之間。In one or more embodiments, when the highest survival probability in each first historical stock-to-bill ratio data is greater than a high threshold, the processor determines that each first historical stock-to-bill ratio data meets the clustering condition. Further, the high threshold is between 0.6 and 0.9.

在一或多個實施例中,當各第一歷史股債比資料的對應該些預測趨勢中的其中之一的生存機率大於低門檻值時,處理器判斷各第一歷史股債比資料滿足分群條件。進一步地,低門檻值位於0.4至0.5之間。In one or more embodiments, when the survival probability of each of the first historical stock debt ratio data corresponding to one of the predicted trends is greater than a low threshold, the processor determines that each of the first historical stock debt ratio data meets Grouping conditions. Further, the low threshold is between 0.4 and 0.5.

在一或多個實施例中,處理器更對該些歷史股債比資料的下一個交易日之前的多個近期股債比資料所對應的該些受選預測趨勢進行移動加權平均計算而得到該些近期股債比資料的強度值,並且處理器更依據該些近期股債比資料的強度值以及該些近期股債比資料的該些受選預測趨勢的標準差決定下一個交易日的操作策略。In one or more embodiments, the processor further obtains the selected weighted average of the selected forecast trends corresponding to the multiple recent stock-to-debt ratio data before the next trading day of the historical stock-to-debt ratio data to obtain The strength values of the recent stock-to-bond ratio data, and the processor further determines the next trading day based on the strength values of the recent stock-to-bond ratio data and the standard deviation of the selected forecast trends of the recent stock-to-bond ratio data. Operational strategy.

綜合上述內容,根據本創作一或多個實施例所述的股債比趨勢預測系統,係利用生存機率模型估算可能的趨勢而提供適當的操作策略。在一些實施例中,可以將歷史股債比資料分為第一歷史股債比資料與第二歷史股債比資料,並以第一歷史股債比資料作為訓練資料而輸入模型,而以第二歷史股債比資料做為驗證資料而對應產生母體混淆矩陣與子樣本混淆矩陣,並透過分群條件對第一歷史股債比資料的各筆資料進行情境切割,以提升預測準確性。再者,於一或多個實施例中,可以透過移動加權平均的方式使輸出訊號較為平滑,因此不需要頻繁地變換股債比例,而可有效地節省交易成本,進而提升獲利。Based on the above, according to the equity-to-debt ratio trend prediction system described in one or more embodiments of the present invention, a survival probability model is used to estimate a possible trend and provide an appropriate operation strategy. In some embodiments, historical stock debt ratio data can be divided into first historical stock debt ratio data and second historical stock debt ratio data, and the first historical stock debt ratio data is used as training data to enter the model, and the first The historical stock debt ratio data is used as the verification data to generate the parental confusion matrix and the sub-sample confusion matrix, and the data of the first historical stock debt ratio data is context-sliced through clustering conditions to improve the prediction accuracy. Furthermore, in one or more embodiments, the output signal can be made smoother by using a moving weighted average method. Therefore, it is not necessary to frequently change the ratio of the stock and debt, which can effectively save transaction costs and thereby improve profitability.

如圖1所示,係繪示本創作一實施例的股債比趨勢預測系統(以下簡稱預測系統80),其適用於預測多個歷史股債比資料的下一個交易日的一操作策略。換句話說,預測系統80可提供下一個交易日的操作策略,其可為積極、穩健、或保守,使用者再根據所提供的操作策略調整持有的股票與債券比例的配置。各筆股債比資料包括交易日期以及股債比值,股債比值為股票的報酬與債券的報酬的相除值。當股債比值趨勢為上升時,表示應該繼續增加股票比例而減少債券比例進行積極操作;另一方面,當股債比值趨勢為下降時,則表示應該增加債券比例而減少股票比例進行保守操作。As shown in FIG. 1, it shows a stock-to-debt ratio trend prediction system (hereinafter referred to as prediction system 80) according to an embodiment of the present invention, which is applicable to an operation strategy for predicting the next trading day of multiple historical stock-to-debt ratio data. In other words, the prediction system 80 can provide an operation strategy for the next trading day, which can be active, stable, or conservative, and the user adjusts the allocation of the ratio of stocks and bonds held according to the provided operation strategy. The stock-to-debt ratio information includes the transaction date and the stock-to-debt ratio. The stock-to-debt ratio is the value of the stock's return divided by the bond's return. When the stock-to-bond ratio trend is rising, it means that the stock ratio should continue to be increased and the bond ratio should be reduced for active operation; on the other hand, when the stock-to-bond ratio is trending down, it means that the bond ratio should be increased and the stock ratio should be reduced for conservative operations.

如圖1所示,預測系統80包括處理器81、儲存模組82以及輸出模組83。處理器81、儲存模組82以及輸出模組83彼此透過有線或無線訊號連接。舉例而言,預測系統80可以是工業電腦、個人電腦、筆記型電腦、智慧型手機、平板電腦等。於此,處理器81可以由一個或多個處理元件實現。於此,各處理元件可以是微處理器、微控制器、數位信號處理器、微型計算機、中央處理器、場編程閘陣列、可編程邏輯設備、狀態器、邏輯電路、類比電路、數位電路和/或任何基於操作指令操作信號(類比和/或數位)的裝置,但在此並不對其限制。儲存模組82可以由一個或多個儲存元件所實現。其中,各儲存元件可以是例如非揮發式記憶體、硬碟、光碟、或磁帶等,但在此並不對其限制。另外,需要說明的是,儲存模組82中所儲存的資料可以來自於透過有線或無線連接的終端機,而可進行即時性或批次性的更新。輸出模組83可以是螢幕、印表機、語音輸出裝置(例如喇叭),但在此並不對其限制。以下係針對各元件於此預測系統的功能進行進一步說明。As shown in FIG. 1, the prediction system 80 includes a processor 81, a storage module 82, and an output module 83. The processor 81, the storage module 82, and the output module 83 are connected to each other through a wired or wireless signal. For example, the prediction system 80 may be an industrial computer, a personal computer, a notebook computer, a smart phone, a tablet computer, or the like. Here, the processor 81 may be implemented by one or more processing elements. Here, each processing element may be a microprocessor, a microcontroller, a digital signal processor, a microcomputer, a central processing unit, a field programmable gate array, a programmable logic device, a state device, a logic circuit, an analog circuit, a digital circuit, and / Or any device that operates signals (analogs and / or digits) based on operation instructions, but it is not limited here. The storage module 82 may be implemented by one or more storage elements. Each storage element may be, for example, a non-volatile memory, a hard disk, an optical disk, or a magnetic tape, but it is not limited thereto. In addition, it should be noted that the data stored in the storage module 82 can come from a terminal connected via a wired or wireless connection, and can be updated in real time or in batches. The output module 83 may be a screen, a printer, or a voice output device (such as a speaker), but it is not limited thereto. The following is a further description of the function of each element in this prediction system.

首先,處理器81自儲存模組82取得歷史股債比資料。股債比資料係可用以反映某個投資組合的股債比持股水位。其中,各歷史股債比資料包括多個特徵值。特徵值包括此投資組合的股票持有比例以及對應的技術指標(例如但不限於MACD、KD、布林通道、RSI等)。股票持有比例愈高反映的是債券的持有比例愈低,投資策略較為積極;股票持有比例愈低反映的是債券的持有比例愈高,則投資策略較為保守;又若是股票與債券持有比例相當,則投資策略較為穩健。First, the processor 81 obtains historical stock debt ratio data from the storage module 82. Stock-to-debt ratio information is used to reflect the stock-to-debt ratio holding level of a certain investment portfolio. Among them, each historical stock-debt ratio data includes multiple characteristic values. The characteristic value includes the stock holding ratio of this investment portfolio and corresponding technical indicators (such as, but not limited to, MACD, KD, Bollinger Bands, RSI, etc.). Higher stock holdings reflect lower bond holdings and a more aggressive investment strategy; lower stock holdings reflect higher bond holdings, and more conservative investment strategies; if stocks and bonds Equity ratios make investment strategies more robust.

接著,處理器81以該些歷史股債比資料建立生存機率模型。生存機率模型包括各歷史股債比資料分別在上漲趨勢、下跌趨勢以及盤整趨勢的生存機率。於各歷史股債比資料中最高的生存機率所對應的預測趨勢為各歷史股債比資料的受選預測趨勢。舉例來說,以下表1為例,表1繪示一部份的歷史股債比資料經過生存機率模型後所獲得的預測結果,其中包括各筆歷史股債比資料分別在上漲、下跌以及盤整趨勢的生存機率,並且生存機率最高者所對應的趨勢為受選預測趨勢。以2018年11月1日之資料為例,當日股債比資料在下跌趨勢的生存機率為0.18666667,在盤整趨勢的生存機率為0.34666667,而在上漲趨勢的生存機率為0.46666667。因此,2018年11月1日當日股債比資料的受選預測趨勢為上漲,其餘各日情況以此類推不再贅述。Then, the processor 81 uses the historical stock-debt ratio data to establish a survival probability model. The survival probability model includes the historical odds of the historical stock-to-debt ratio data in uptrend, downtrend, and consolidation trends, respectively. The predicted trend corresponding to the highest probability of survival in each historical stock-to-bond ratio data is the selected forecast trend for each historical stock-to-bond ratio data. For example, Table 1 below is taken as an example. Table 1 shows a part of the historical stock-to-debt ratio data obtained through the survival probability model, including the historical stock-to-debt ratio data for each up, down, and consolidation. The survival probability of the trend, and the trend corresponding to the person with the highest survival probability is the selected predicted trend. Taking the data on November 1, 2018 as an example, the survival probability of the stock-to-debt ratio data on that day in the downward trend is 0.18666667, the survival probability in the consolidation trend is 0.34666667, and the survival probability in the upward trend is 0.46666667. Therefore, the selected forecast trend of the stock-to-debt ratio data on November 1, 2018 is upward, and the rest of the situation will not be repeated by analogy.

[表1]
交易日期 受選預測趨勢 下跌機率 盤整機率 上漲機率 20181101 1 0.18666667 0.34666667 0.46666667 20181102 0 0.21333333 0.41666667 0.37000000 20181105 1 0.28000000 0.35666667 0.36333333 20181106 1 0.21333333 0.28000000 0.50666667 20181107 1 0.20333333 0.18000000 0.61666667 20181108 1 0.20666667 0.25333333 0.54000000 20181109 0 0.22333333 0.45000000 0.32666667 20181112 0 0.31666667 0.45666667 0.22666667 20181113 0 0.35666667 0.40666667 0.23666667 20181114 -1 0.55000000 0.19333333 0.25666667
[Table 1]
transaction date Selected Forecast Trends Down chance Consolidation probability Up chance 20181101 1 0.18666667 0.34666667 0.46666667 20181102 0 0.21333333 0.41666667 0.37000000 20181105 1 0.28000000 0.35666667 0.36333333 20181106 1 0.21333333 0.28000000 0.50666667 20181107 1 0.20333333 0.18000000 0.61666667 20181108 1 0.20666667 0.25333333 0.54000000 20181109 0 0.22333333 0.45000000 0.32666667 20181112 0 0.31666667 0.45666667 0.22666667 20181113 0 0.35666667 0.40666667 0.23666667 20181114 -1 0.55000000 0.19333333 0.25666667

最後,處理器81再以該些歷史股債比資料的該些受選預測趨勢決定下一個交易日的操作策略,並由輸出模組83輸出操作策略。舉例來說,假設歷史股債比資料的最後一筆資料為2018年11月14日,而當日的受選預測趨勢為下跌,則處理器81可以根據2018年11月14日的受選預測趨勢決定下一個交易日(例如是2018年11月15日)的操作策略,再透過輸出模組83將其輸出。具體來說,當輸出模組83是顯示螢幕時,可以文字、圖像、影片或者上述之組合呈現操作策略,但應知不以此為限;如同前述,輸出模組83也可以是印表機而可將操作策略印出,或者輸出模組83也可以是喇叭而以聲音或音樂的方式呈現操作策略。另一方面,在本例中,處理器81也可以依據2018年11月14日當日以及2018年11月14日當日前幾日的受選預測趨勢的平均值決定2018年11月15日的操作策略。Finally, the processor 81 determines the operation strategy for the next trading day based on the selected predicted trends of the historical stock-debt ratio data, and the output module 83 outputs the operation strategy. For example, assuming that the last piece of historical stock-to-debt ratio data is November 14, 2018, and the selected forecast trend for that day is down, the processor 81 may determine based on the selected forecast trend for November 14, 2018. The operation strategy for the next trading day (for example, November 15, 2018), and then output it through the output module 83. Specifically, when the output module 83 is a display screen, text, images, videos, or a combination of the above can be used to present the operation strategy, but it should be understood that this is not limited; as mentioned above, the output module 83 can also be a print The device can print out the operation strategy, or the output module 83 can also be a speaker and present the operation strategy in the form of sound or music. On the other hand, in this example, the processor 81 may also determine the operation on November 15, 2018 based on the average of the selected forecast trend on the day of November 14, 2018 and the days before November 14, 2018. Strategy.

在本創作一或多個實施例中,處理器81更以該些歷史股債比資料以及至少一市場資訊建立生存機率模型。舉例來說,市場資訊可以是風險情緒,例如是利差、匯率、VIX指數等;市場資訊也可以是各種總體經濟指標,例如是股價指數、本益比、殖利率、消費者物價指數等。更進一步地,在一或多個實施例中,處理器81更以該些歷史股債比資料以及前述市場資訊作為隨機生存森林演算法的輸入值而建立生存機率模型。需要說明的是,雖然此處是以隨機生存森林演算法建立生存機率模型但本創作並不以此演算法為限,只要能夠預測生存機率即可。In one or more embodiments of the present invention, the processor 81 further establishes a survival probability model based on the historical stock-debt ratio data and at least one market information. For example, market information can be risk sentiment, such as spreads, exchange rates, VIX indexes, etc .; market information can also be a variety of overall economic indicators, such as stock price indexes, price-earnings ratios, yields, consumer price indexes, and so on. Furthermore, in one or more embodiments, the processor 81 uses the historical stock-debt ratio data and the aforementioned market information as input values of a random survival forest algorithm to establish a survival probability model. It should be noted that although the survival probability model is established here with a random survival forest algorithm, this creation is not limited to this algorithm, as long as it can predict the survival probability.

另外,由於該些歷史股債比資料已經有實際發生的趨勢(例如在2018年11月2日,受選預測趨勢為盤整,而實際趨勢為上漲)。因此,可以利用調整演算法的輸入值的種類及/或權重來進行演算法的驗證,使得產生的生存機率模型更能夠反映實際狀況,進而提供使用者較為準確的預測分析。In addition, because these historical stock-to-debt ratio data have actually occurred (for example, on November 2, 2018, the selected forecast trend was consolidation, and the actual trend was upward). Therefore, the type and / or weight of the input value of the adjustment algorithm can be used to verify the algorithm, so that the generated survival probability model can better reflect the actual situation, and then provide users with more accurate predictive analysis.

除此之外,在本創作一或多個實施例中,處理器81更依據各特徵值的不同的條件,將該些歷史股債比資料分為多個第一歷史股債比資料與多個第二歷史股債比資料。舉例來說,在一實施例中,處理器81依據歷史股債比資料的交易日期早於2015年3月25日為條件,將該些歷史股債比資料分為多個第一歷史股債比資料(交易日期早於2015年3月25日的股債比資料)以及多個第二歷史股債比資料(交易日期晚於2015年3月25日的股債比資料),並且處理器81更依據該些第一歷史股債比資料建立生存機率模型。需要說明的是,雖然在本實施例中,處理器81是依據交易日期為條件而將歷史股債比資料加以區分為兩個部分,但並不以此為限;在一些實施例中,處理器81也可以透過對歷史股債比資料進行抽樣而獲得多個樣本群之後,再將樣本群分為第一歷史股債比資料以及第二歷史股債比資料。In addition, in one or more embodiments of the present invention, the processor 81 further divides the historical stock-debt ratio data into multiple first historical stock-debt ratio data according to different conditions of each characteristic value. Information on the second historical stock-to-debt ratio. For example, in an embodiment, the processor 81 divides the historical stock debt ratio data into a plurality of first historical stock debts on the condition that the transaction date of the historical stock debt ratio data is earlier than March 25, 2015. Ratio data (stock-debt ratio data with a transaction date earlier than March 25, 2015) and multiple second historical stock-debt ratio data (share-debt ratio data with a transaction date later than March 25, 2015), and the processor 81 based on these first historical stock-debt ratio data to establish a survival probability model. It should be noted that although in this embodiment, the processor 81 divides the historical stock-debt ratio data into two parts according to the condition of the transaction date, but it is not limited to this; in some embodiments, the processing The device 81 may also obtain multiple sample groups by sampling historical stock-debt ratio data, and then divide the sample group into first historical stock-debt ratio data and second historical stock-debt ratio data.

接著,處理器81更依據該些第二歷史股債比資料取得母體混淆矩陣以及多個子樣本混淆矩陣,母體混淆矩陣對應受選預測趨勢具有母體準確率,而各子樣本混淆矩陣對應受選預測趨勢具有子樣本準確率。在本實施例中,母體混淆矩陣即為根據所有第二歷史股債比資料所取得的混淆矩陣,其包括對應上漲、盤整、下跌的模型預測趨勢、實際趨勢以及對應各種情況的平均樣本數,而子樣本混淆矩陣則是透過不同分群條件,自所有第二歷史股債比資料選擇一部分所取得的混淆矩陣,其同樣包括對應上漲、盤整、下跌的模型預測趨勢、實際趨勢以及對應各種情況的平均樣本數。具體來說,前述分群條件為當處理器81判斷一第二歷史股債比資料中各預測趨勢的最高機率大於高門檻值(例如位於0.6至0.9之間)時,處理器81將此第二歷史股債比資料分群至Q1至Q4子混淆矩陣而對應不同情境。更進一步言,當最高機率大於0.9時,分群至Q1子混淆矩陣;當最高機率大於0.8時,分群至Q2子混淆矩陣;當最高機率大於0.7時,分群至Q3子混淆矩陣;當最高機率大於0.6時,分群至Q4子混淆矩陣。另一方面,當處理器81判斷一第二歷史股債比資料中的受選預測趨勢的機率大於低門檻值(例如位於0.4至0.5之間)時,處理器則將此第二歷史股債比資料分群至Q5至Q11子混淆矩陣而對應不同情境。更進一步言,當受選預測趨勢為上漲的機率大於0.5時,分群至Q5子混淆矩陣;當受選預測趨勢為盤整的機率大於0.5時,分群至Q6子混淆矩陣;當受選預測趨勢為下跌的機率大於0.5時,分群至Q7子混淆矩陣;當受選預測趨勢為上漲的機率大於0.4時,分群至Q8子混淆矩陣;當受選預測趨勢為盤整的機率大於0.4時,分群至Q9子混淆矩陣;當受選預測趨勢為下跌的機率大於0.4時,分群至Q10子混淆矩陣,否則分群至Q11子混淆矩陣。Then, the processor 81 further obtains a parent confusion matrix and a plurality of sub-sample confusion matrices based on the second historical stock-debt ratio data. The parent confusion matrix has a parent accuracy rate corresponding to the selected prediction trend, and each sub-sample confusion matrix corresponds to the selected prediction. Trends have sub-sample accuracy. In this embodiment, the parent confusion matrix is the confusion matrix obtained from all the second historical stock-debt ratio data, and it includes model prediction trends, actual trends corresponding to rising, consolidating, and falling, and average sample numbers corresponding to various situations. The sub-sample confusion matrix is a confusion matrix obtained by selecting a part of all the second historical stock-debt ratio data through different clustering conditions. It also includes model prediction trends corresponding to rising, consolidating, and falling, actual trends, and corresponding situations. The average number of samples. Specifically, the foregoing grouping condition is that when the processor 81 judges that the highest probability of each predicted trend in the second historical stock-debt ratio data is greater than a high threshold (for example, between 0.6 and 0.9), the processor 81 sets this second Historical stock-debt ratio data are grouped into Q1 to Q4 sub-confusion matrices and correspond to different scenarios. Furthermore, when the highest probability is greater than 0.9, it is grouped into the Q1 sub-confusion matrix; when the highest probability is greater than 0.8, it is grouped into the Q2 sub-confusion matrix; when the highest probability is greater than 0.7, it is grouped into the Q3 sub-confusion matrix; when the highest probability is greater than At 0.6, group to Q4 sub-confusion matrix. On the other hand, when the processor 81 judges that the probability of a selected predicted trend in the data of a second historical stock-debt ratio is greater than a low threshold (for example, between 0.4 and 0.5), the processor 81 The data are grouped into Q5 to Q11 sub-confusion matrix and correspond to different situations. Furthermore, when the probability of the selected forecasting trend is greater than 0.5, it is grouped into the Q5 sub-confusion matrix; when the probability of the selected forecasting trend is consolidation, it is grouped into the Q6 sub-confusion matrix; when the selected forecasting trend is When the probability of decline is greater than 0.5, the group is grouped into the Q7 sub-confusion matrix; when the probability of the selected forecasting trend is greater than 0.4, it is grouped into the Q8 sub-confusion matrix; when the probability of the selected forecasting trend is consolidation, the group is classified into Q9 Sub-confusion matrix; when the probability of the selected prediction trend is greater than 0.4, grouping into the Q10 sub-confusion matrix, otherwise grouping into the Q11 sub-confusion matrix.

接著,處理器81再判斷各第一歷史股債比資料滿足分群條件中的何者而決定各第一歷史股債比資料所對應的受選子樣本混淆矩陣,而取得下表2之各第一歷史股債比資料及其對應情境。換句話說,處理器81以前述分群條件判斷各第一歷史股債比資料應分類至哪個情境,在此不再贅述。Next, the processor 81 determines which of the clustering conditions of each of the first historical stock-to-bill ratio data determines the selected sub-sample confusion matrix corresponding to the first historical stock-to-bill ratio data, and obtains each of the first Historical stock-debt ratio data and their corresponding scenarios. In other words, the processor 81 judges which scenario each first historical stock-debt ratio data should be classified to based on the aforementioned grouping conditions, which will not be repeated here.

[表2]
交易日期 受選預測趨勢 下跌機率 盤整機率 上漲機率 情境 20181101 1 0.18666667 0.34666667 0.46666667 Q10 20181102 0 0.21333333 0.41666667 0.37000000 Q9 20181105 1 0.28000000 0.35666667 0.36333333 Q11 20181106 1 0.21333333 0.28000000 0.50666667 Q7 20181107 1 0.20333333 0.18000000 0.61666667 Q4 20181108 1 0.20666667 0.25333333 0.54000000 Q7 20181109 0 0.22333333 0.45000000 0.32666667 Q9 20181112 0 0.31666667 0.45666667 0.22666667 Q9 20181113 0 0.35666667 0.40666667 0.23666667 Q9 20181114 -1 0.55000000 0.19333333 0.25666667 Q5
[Table 2]
transaction date Selected Forecast Trends Down chance Consolidation probability Up chance Situation 20181101 1 0.18666667 0.34666667 0.46666667 Q10 20181102 0 0.21333333 0.41666667 0.37000000 Q9 20181105 1 0.28000000 0.35666667 0.36333333 Q11 20181106 1 0.21333333 0.28000000 0.50666667 Q7 20181107 1 0.20333333 0.18000000 0.61666667 Q4 20181108 1 0.20666667 0.25333333 0.54000000 Q7 20181109 0 0.22333333 0.45000000 0.32666667 Q9 20181112 0 0.31666667 0.45666667 0.22666667 Q9 20181113 0 0.35666667 0.40666667 0.23666667 Q9 20181114 -1 0.55000000 0.19333333 0.25666667 Q5

在決定各第一歷史股債比資料的情境(即受選子樣本混淆矩陣)後,處理器81再根據母體混淆矩陣的母樣本準確率與受選子樣本混淆矩陣的子樣本準確率之較高者的受選預測趨勢做為各第一歷史股債比資料的受選預測趨勢,以下以表3及表4說明。After determining the context of each first historical stock-debt ratio data (ie the selected subsample confusion matrix), the processor 81 then compares the accuracy of the parent sample of the parent confusion matrix with the accuracy of the subsample of the selected subsample confusion matrix. The selection forecast trend of the higher person is used as the selection forecast trend of each historical historical debt-to-equity ratio data, and is described in Tables 3 and 4 below.

表3為根據自2006年6月27日至2015年3月24日共2200筆股債比資料的所得到的母體混淆矩陣。如表3所示,預測趨勢為下跌(以-1表示)且實際趨勢為下跌的平均樣本數(即機率)是42.57%,預測趨勢為下跌且實際趨勢為盤整(以0表示)的平均樣本數是30.69%,而預測趨勢為下跌且實際趨勢為上漲(以1表示)的平均樣本數是24.09%。表4至表14分別為根據自2015年3月25日至2018年11月30日共937筆股債比資料的所得到的Q1至Q11共11個子樣本混淆矩陣。又如表12所示,舉例來說,子樣本混淆矩陣Q9共有185個樣本,其中預測趨勢為盤整且實際趨勢為盤整的平均樣本數是42.26%,而預測趨勢為上漲且實際趨勢為上漲的平均樣本數是35.29%。因此,對於2018年11月7日的股債比資料而言,其母體混淆矩陣的準確度為50.14%,大於子樣本混淆矩陣Q9的準確度為42.26%。換句話說,該機率為預測趨勢為下跌的前提下,實際下跌42.57%、實際盤整30.69%、實際上漲24.09%(實為條件機率,而非簡單機率)。Table 3 shows the matrix confusion matrix based on a total of 2,200 stock-to-debt ratio data from June 27, 2006 to March 24, 2015. As shown in Table 3, the average number of samples (ie, the probability) that the predicted trend is down (represented by -1) and the actual trend is down is 42.57%, and the average sample that the predicted trend is down and the actual trend is consolidated (represented by 0) The average number of samples is 30.69%, and the average sample number is 24.09% when the predicted trend is down and the actual trend is up (represented by 1). Tables 4 to 14 are the 11 sub-sample confusion matrices from Q1 to Q11 based on a total of 937 stock-to-debt ratio data from March 25, 2015 to November 30, 2018. As shown in Table 12, for example, the sub-sample confusion matrix Q9 has a total of 185 samples. The average number of samples for which the predicted trend is consolidation and the actual trend is consolidation is 42.26%, while the predicted trend is upward and the actual trend is upward. The average number of samples is 35.29%. Therefore, for the equity-debt ratio data on November 7, 2018, the accuracy of the parent confusion matrix is 50.14%, which is greater than the accuracy of the sub-sample confusion matrix Q9 of 42.26%. In other words, under the premise that the predicted trend is down, the actual drop is 42.57%, the actual consolidation is 30.69%, and the actual increase is 24.09% (it is a conditional probability, not a simple probability).

[表3]
母體混淆矩陣 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 42.57 30.69 24.09 盤整(0) 18.84 50.14 31.01 上漲(1) 12.94 37.06 49.65
[table 3]
Matrix confusion matrix actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 42.57 30.69 24.09 Consolidation (0) 18.84 50.14 31.01 Up (1) 12.94 37.06 49.65

[表4]
Q1 n=1 實際 盤整(0) 預測 下跌(-1) 100
[Table 4]
Q1 n = 1 actual Consolidation (0) prediction Down (-1) 100

[表5]
Q2 n=23 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 58.82 23.53 17.65 盤整(0) 100.00 0.00 0.00 上漲(1) 0.00 60.00 40.00
[table 5]
Q2 n = 23 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 58.82 23.53 17.65 Consolidation (0) 100.00 0.00 0.00 Up (1) 0.00 60.00 40.00

[表6]
Q3 n=55 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 71.43 14.29 14.29 盤整(0) 37.50 62.50 0.00 上漲(1) 5.26 52.63 42.11
[TABLE 6]
Q3 n = 55 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 71.43 14.29 14.29 Consolidation (0) 37.50 62.50 0.00 Up (1) 5.26 52.63 42.11

[表7]
Q4 n=153 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 36.96 36.96 26.09 盤整(0) 15.91 61.36 22.73 上漲(1) 12.70 25.40 61.90
[TABLE 7]
Q4 n = 153 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 36.96 36.96 26.09 Consolidation (0) 15.91 61.36 22.73 Up (1) 12.70 25.40 61.90

[表8]
Q5 n=71 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 46.48 36.62 16.90
[TABLE 8]
Q5 n = 71 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 46.48 36.62 16.90

[表9]
Q6 n=95 實際 下跌(-1) 盤整(0) 上漲(1) 預測 盤整(0) 13.68 57.89 28.42
[TABLE 9]
Q6 n = 95 actual Down (-1) Consolidation (0) Up (1) prediction Consolidation (0) 13.68 57.89 28.42

[表10]
Q7 n=83 實際 下跌(-1) 盤整(0) 上漲(1) 預測 上漲(1) 3.61 33.73 62.65
[TABLE 10]
Q7 n = 83 actual Down (-1) Consolidation (0) Up (1) prediction Up (1) 3.61 33.73 62.65

[表11]
Q8 n=95 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 38.71 31.18 30.11 盤整(0) 0.00 100.00 0.00 上漲(1) 100.00 0.00 0.00
[TABLE 11]
Q8 n = 95 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 38.71 31.18 30.11 Consolidation (0) 0.00 100.00 0.00 Up (1) 100.00 0.00 0.00

[表12]
Q9 n=195 實際 下跌(-1) 盤整(0) 上漲(1) 預測 盤整(0) 22.02 42.26 35.71 上漲(1) 11.76 52.94 35.29
[TABLE 12]
Q9 n = 195 actual Down (-1) Consolidation (0) Up (1) prediction Consolidation (0) 22.02 42.26 35.71 Up (1) 11.76 52.94 35.29

[表13]
Q10 n=71 實際 下跌(-1) 盤整(0) 上漲(1) 預測 上漲(1) 22.54 40.85 36.62
[TABLE 13]
Q10 n = 71 actual Down (-1) Consolidation (0) Up (1) prediction Up (1) 22.54 40.85 36.62

[表14]
Q11 n=93 實際 下跌(-1) 盤整(0) 上漲(1) 預測 下跌(-1) 34.21 31.58 34.21 盤整(0) 13.79 48.28 37.93 上漲(1) 23.08 42.31 34.62
[TABLE 14]
Q11 n = 93 actual Down (-1) Consolidation (0) Up (1) prediction Down (-1) 34.21 31.58 34.21 Consolidation (0) 13.79 48.28 37.93 Up (1) 23.08 42.31 34.62

於各子樣本混淆矩陣中,可以進一步依據混淆矩陣的機率分布調整預測結果。舉例來說,若初步預測結果為上漲且情境為Q9,由於在Q9情境中預測為上漲而實際趨勢卻是盤整的機率最高(52.94%),因此將預測結果從上漲更改為盤整。反之,若初步預測結果為下跌且情境為Q3,由於在Q3情境中預測為下跌而實際趨勢仍以下跌的機率最高(71.43%),因此預測結果仍維持為下跌。In each sub-sample confusion matrix, the prediction result can be further adjusted according to the probability distribution of the confusion matrix. For example, if the preliminary forecast result is up and the scenario is Q9, because the forecast in the Q9 scenario is predicted to rise and the actual trend is the highest probability of consolidation (52.94%), the forecast result is changed from up to consolidation. Conversely, if the preliminary forecast result is down and the scenario is Q3, the forecast trend will remain down since the actual trend is still the highest (71.43%) because the forecast is down in the Q3 scenario.

再以2018年11月7日的股債比資料為例,其受選預測趨勢為下跌並屬於情境Q4,則母體混淆矩陣對應下跌趨勢的母體準確率為42.57%,而子樣本混淆矩陣Q4對應下跌趨勢的子樣本準確率為36.96%。故處理器選擇母體混淆矩陣的受選預測趨勢做為2018年11月7日的股債比資料的受選預測趨勢,即下跌趨勢。Taking the stock-to-debt ratio data on November 7, 2018 as an example, the selected forecasting trend is down and belongs to the situation Q4. The maternal confusion matrix corresponding to the downtrend has a maternal accuracy of 42.57%, and the sub-sample confusion matrix Q4 corresponds The sub-sample accuracy of the downtrend is 36.96%. Therefore, the processor selects the selected forecasting trend of the parent confusion matrix as the selected forecasting trend of the equity-debt ratio data on November 7, 2018, that is, the downward trend.

藉此,根據本創作一或多個實施例的預測系統,可以利用情境分析的方式驗證、修正模型預測結果,進而更能夠反映實際狀況,提供使用者較為準確的預測分析。Thereby, according to the prediction system of one or more embodiments of the present invention, the prediction result of the model can be verified and modified by using the scenario analysis method, so as to better reflect the actual situation and provide users with more accurate prediction analysis.

在一或多個實施例中,處理器更對該些歷史股債比資料的下一個交易日之前的多個近期股債比資料所對應的該些受選預測趨勢進行移動加權平均計算而得到該些近期股債比資料的強度值。舉例來說,假定下一個交易日為2018年11月15日,則處理器可依據此日之前20日的股債比資料對應的受選預測趨勢進行移動加權平均而得到近20日的股債比資料的受選預測趨勢的變化狀況(即強度值),當強度值小於1而大於等於0.4時,定義強度值位於第一區間;當強度值小於0.4而大於等於0時,定義強度值位於第二區間;當強度值小於0而大於等於-0.4時,定義強度值位於第三區間;而當強度值小於-0.4而大於等於-1時,定義強度值位於第四區間。In one or more embodiments, the processor further obtains the selected weighted average of the selected forecast trends corresponding to the multiple recent stock-to-debt ratio data before the next trading day of the historical stock-to-debt ratio data to obtain The strength of these recent stock-to-debt ratio data. For example, assuming that the next trading day is November 15, 2018, the processor can perform a moving weighted average based on the selected forecasting trend corresponding to the stock-to-debt ratio data on the 20th day before that date to obtain nearly 20-day stocks and bonds. Than the selected forecast trend of the data (ie intensity value), when the intensity value is less than 1 but greater than or equal to 0.4, the defined intensity value is located in the first interval; when the intensity value is less than 0.4 and greater than or equal to 0, the defined intensity value is located at The second interval; when the intensity value is less than 0 but greater than or equal to -0.4, the defined intensity value is located in the third interval; and when the intensity value is less than -0.4 but greater than or equal to -1, the defined intensity value is located in the fourth interval.

接著,處理器81更進一步決定該些近期股債比資料的該些受選預測趨勢的標準差。當受選預測趨勢的標準差為大於0而小於等於1時,則屬於低波動度,意即受選預測趨勢在近期股債比資料的這些時間變化較小;另一方面,當受選預測趨勢的標準差大於1時,則屬於高波動度,意即受選預測趨勢在近期股債比資料的這些時間變化較大。Then, the processor 81 further determines the standard deviations of the selected forecasted trends of the recent stock-to-debt ratio data. When the standard deviation of the selected forecast trend is greater than 0 and less than or equal to 1, it is a low volatility, which means that the selected forecast trend has little change in these recent times of stock-debt ratio data; on the other hand, when the selected forecast When the standard deviation of the trend is greater than 1, it belongs to high volatility, which means that the selected forecast trend has a large change at these times in the recent stock-debt ratio data.

然後,處理器81再依據該些近期股債比資料的強度值以及該些近期股債比資料的該些受選預測趨勢的標準差決定下一個交易日的操作策略。舉例來說,當強度值位於第一區間或第二區間並具有高波動度或位於第一區間並具有低波動度時,處理器81決定下一個交易日的操作策略為積極,而提供股債比配置為7:3的操作建議;當強度值位於第二區間或第三區間並具有低波動度時,處理器81決定下一個交易日的操作策略為穩健,而提供股債比配置為5:5的操作建議;而當強度值位於第三區間或第四區間並具有高波動度或位於第四區間而具有低波動度時,處理器81決定下一個交易日的操作策略為保守,而提供股債比為3:7的操作建議。藉此,可以透過移動加權平均的方式使輸出訊號較為平滑,也就是說投資人不需要頻繁地變換股債比例,而可有效地節省交易成本,進而提升獲利。Then, the processor 81 then determines the operation strategy for the next trading day based on the strength values of the recent stock-to-debt ratio data and the standard deviations of the selected predicted trends of the recent stock-to-bond ratio data. For example, when the intensity value is located in the first or second interval and has high volatility or is located in the first interval and has low volatility, the processor 81 determines that the operation strategy for the next trading day is positive, and provides stock bonds Operational configuration with a ratio of 7: 3; when the intensity value is in the second or third range and has low volatility, the processor 81 decides that the operation strategy for the next trading day is robust, and provides a stock-to-debt ratio configuration of 5 : 5 operation suggestions; and when the intensity value is in the third or fourth interval and has high volatility or the fourth interval has low volatility, the processor 81 decides that the operating strategy for the next trading day is conservative, and Provide operational recommendations with a debt-to-equity ratio of 3: 7. In this way, the output signal can be made smoother by moving weighted average, which means that investors do not need to frequently change the ratio of stock and debt, which can effectively save transaction costs and improve profitability.

參閱圖2所示,圖2為本創作第二實施例的股債比趨勢預測方法的步驟流程圖,其適用於預測多個歷史股債比資料的下一個交易日的操作策略。如圖2所示,本創作一或多個實施例進一步揭露一種金融商品價格趨勢的預測方法,包括以下步驟:歷史股債比資料取得步驟S101、生存機率模型建立步驟S102以及操作策略決定步驟S103,各步驟說明如下。Referring to FIG. 2, FIG. 2 is a flowchart of steps of a method for predicting a stock-to-debt ratio trend according to a second embodiment of the present invention, which is applicable to an operation strategy for predicting the next trading day of multiple historical stock-to-debt ratio data. As shown in FIG. 2, one or more embodiments of the present invention further disclose a method for predicting the price trend of financial commodities, which includes the following steps: a historical share debt ratio data acquisition step S101, a survival probability model establishment step S102, and an operation strategy decision step S103 Each step is explained below.

歷史股債比資料取得步驟包括取得該些歷史股債比資料,如步驟S101所示;其中各歷史股債比資料包括多個特徵值。特徵值的說明已於前說明,不再贅述。The step of obtaining historical stock-to-bill ratio data includes obtaining the historical stock-to-bill ratio data, as shown in step S101; wherein each historical stock-to-bill ratio data includes multiple characteristic values. The description of the eigenvalues has been described before, and will not be repeated.

生存機率模型建立步驟包括以該些歷史股債比資料建立生存機率模型,如步驟S102所示;其中生存機率模型包括各歷史股債比資料分別在多個預測趨勢的生存機率,且於各歷史股債比資料中最高的生存機率所對應的預測趨勢為各歷史股債比資料的受選預測趨勢。The step of establishing the survival probability model includes establishing the survival probability model based on the historical stock-debt ratio data, as shown in step S102; wherein the survival probability model includes the survival probability of each historical stock-debt ratio data in multiple predicted trends, and in each history The forecast trend corresponding to the highest probability of survival in the stock-to-debt ratio data is the selected forecast trend for each historical stock-to-debt ratio data.

操作策略決定步驟包括以該些歷史股債比資料的該些受選預測趨勢決定下一個交易日的操作策略,如步驟S103所示。The operation strategy determination step includes determining the operation strategy for the next trading day based on the selected predicted trends of the historical stock-to-debt ratio data, as shown in step S103.

請參閱圖3,為本創作的第三實施例的股債比趨勢預測方法的細部流程圖。如圖3所示,根據本創作一或多個實施例,於生存機率模型建立步驟S102中,更包括:步驟S1021:以該些歷史股債比資料以及至少一市場資訊建立生存機率模型。Please refer to FIG. 3, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a third embodiment of the present invention. As shown in FIG. 3, according to one or more embodiments of the present invention, in step S102 for establishing a survival probability model, the method further includes: Step S1021: establishing a survival probability model based on the historical stock-debt ratio data and at least one market information.

請參閱圖4,為本創作的第四實施例的股債比趨勢預測方法的細部流程圖。如圖4所示,根據本創作一或多個實施例,於生存機率模型建立步驟S102中,更包括步驟S1022:以該些歷史股債比資料以及至少一市場資訊作為隨機森林演算法的輸入值而建立生存機率模型。Please refer to FIG. 4, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a fourth embodiment of the present invention. As shown in FIG. 4, according to one or more embodiments of the present invention, in step S102 of establishing a survival probability model, step S1022 is further included: the historical stock-debt ratio data and at least one market information are used as inputs of a random forest algorithm Value to build a survival probability model.

請參閱圖5,為本創作的第五實施例的股債比趨勢預測方法的細部流程圖。如圖5所示,根據本創作一或多個實施例,於生存機率模型建立步驟S102中,更包括步驟S1023:依據各特徵值的不同的條件,將該些歷史股債比資料分為多個第一歷史股債比資料與多個第二歷史股債比資料;以及步驟S1024:依據該些第一歷史股債比資料建立生存機率模型。Please refer to FIG. 5, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a fifth embodiment of the present invention. As shown in FIG. 5, according to one or more embodiments of the present invention, in step S102 of establishing a survival probability model, step S1023 is further included: according to different conditions of each characteristic value, the historical stock debt ratio data is divided into multiple The first historical stock debt ratio data and the plurality of second historical stock debt ratio data; and step S1024: establishing a survival probability model based on the first historical stock debt ratio data.

再者,請參閱圖6,為本創作的第六實施例的股債比趨勢預測方法的細部流程圖。如圖6所示,根據本創作一或多個實施例,於生存機率模型建立步驟S102中,除了前述步驟S1023、S1024外,更包括步驟S1025:依據該些第二歷史股債比資料取得母體混淆矩陣以及多個子樣本混淆矩陣,其中母體混淆矩陣對應受選預測趨勢具有母體準確率,各子樣本混淆矩陣對應受選預測趨勢具有子樣本準確率;步驟S1026:判斷各第一歷史股債比資料滿足分群條件,其中分群條件對應該些子樣本混淆矩陣中之受選子樣本混淆矩陣;以及步驟S1027:根據母體混淆矩陣的母樣本準確率與受選子樣本混淆矩陣的子樣本準確率之較高者的受選預測趨勢做為各第一歷史股債比資料的受選預測趨勢。Further, please refer to FIG. 6, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a sixth embodiment of the present invention. As shown in FIG. 6, according to one or more embodiments of the present invention, in step S102 of establishing a survival probability model, in addition to the foregoing steps S1023 and S1024, the method further includes step S1025: obtaining the parent body according to the second historical stock-debt ratio data. Confusion matrix and multiple sub-sample confusion matrices, in which the parent confusion matrix has a maternal accuracy rate corresponding to the selected prediction trend, and each sub-sample confusion matrix has a sub-sample accuracy rate corresponding to the selected prediction trend; step S1026: judging each first historical stock-debt ratio The data satisfy the clustering condition, where the clustering condition corresponds to the selected sub-sample confusion matrix in the sub-sample confusion matrix; and step S1027: according to the accuracy of the parent sample of the parent confusion matrix and the accuracy of the sub-sample of the selected sub-sample confusion matrix. The selected forecast trend of the higher one is used as the forecast trend of each first historical stock-debt ratio data.

請參閱圖7,為本創作的第七實施例的股債比趨勢預測方法的細部流程圖。如圖7所示,根據本創作一或多個實施例,於步驟S1026中,更包括步驟S1028:當各第一歷史股債比資料中最高的生存機率大於高門檻值時,判斷各第一歷史股債比資料滿足分群條件。進一步言,在一或多個實施例中,高門檻值位於0.6至0.9之間。Please refer to FIG. 7, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a seventh embodiment of the present invention. As shown in FIG. 7, according to one or more embodiments of the present invention, in step S1026, step S1028 is further included: when the highest survival probability in each first historical stock-debt ratio data is greater than a high threshold value, each first judgment is made. The historical stock-debt ratio data meets the grouping conditions. Further, in one or more embodiments, the high threshold is between 0.6 and 0.9.

請參閱圖8,為本創作的第八實施例的股債比趨勢預測方法的細部流程圖。如圖8所示,根據本創作一或多個實施例,於步驟S1026中,更包括步驟S1029:當各第一歷史股債比資料的對應該些預測趨勢中的其中之一的生存機率大於低門檻值時,判斷各第一歷史股債比資料滿足分群條件。進一步言,在一或多個實施例中,低門檻值位於0.4至0.5之間。Please refer to FIG. 8, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to an eighth embodiment of the present invention. As shown in FIG. 8, according to one or more embodiments of the present invention, in step S1026, step S1029 is further included: when each first historical stock-to-debt ratio data corresponds to one of the predicted trends, the survival probability is greater than When the threshold is low, it is judged that the data of each first historical stock debt ratio meets the grouping conditions. Further, in one or more embodiments, the low threshold is between 0.4 and 0.5.

請參閱圖9,為本創作的第九實施例的股債比趨勢預測方法的細部流程圖。如圖9所示,根據本創作一或多個實施例,於操作策略決定步驟S103中,更包括步驟S1031:對該些歷史股債比資料的下一個交易日之前的多個近期股債比資料所對應的該些受選預測趨勢進行移動加權平均計算而得到該些近期股債比資料的強度值;以及步驟S1032:依據該些近期股債比資料的強度值以及該些近期股債比資料的該些受選預測趨勢的標準差決定下一個交易日的操作策略。Please refer to FIG. 9, which is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a ninth embodiment of the present invention. As shown in FIG. 9, according to one or more embodiments of the present invention, in the operation strategy decision step S103, step S1031 is further included: a plurality of recent stock-to-debt ratios before the next trading day of the historical stock-to-debt ratio data. The selected forecasting trends corresponding to the data are subjected to moving weighted average calculation to obtain the strength values of the recent stock-to-bond ratio data; and step S1032: based on the strength values of the recent stock-to-bond ratio data and the recent stock-to-bond ratios The standard deviation of the selected forecast trends of the data determines the operating strategy for the next trading day.

綜合上述內容,根據本創作一或多個實施例所述的股債比趨勢預測系統,係利用生存機率模型估算可能的趨勢而提供適當的操作策略。在一些實施例中,可以將歷史股債比資料分為第一歷史股債比資料與第二歷史股債比資料,並以第一歷史股債比資料作為訓練資料而輸入模型,而以第二歷史股債比資料做為驗證資料而對應產生母體混淆矩陣與子樣本混淆矩陣,並透過分群條件對第一歷史股債比資料的各筆資料進行情境切割,以提升預測準確性。再者,於一或多個實施例中,可以透過移動加權平均的方式使輸出訊號較為平滑,因此不需要頻繁地變換股債比例,而可有效地節省交易成本,進而提升獲利。Based on the above, according to the equity-to-debt ratio trend prediction system described in one or more embodiments of the present invention, a survival probability model is used to estimate a possible trend and provide an appropriate operation strategy. In some embodiments, historical stock debt ratio data can be divided into first historical stock debt ratio data and second historical stock debt ratio data, and the first historical stock debt ratio data is used as training data to enter the model, and the first The historical stock debt ratio data is used as the verification data to generate the parental confusion matrix and the sub-sample confusion matrix, and the data of the first historical stock debt ratio data is context-sliced through clustering conditions to improve the prediction accuracy. Furthermore, in one or more embodiments, the output signal can be made smoother by using a moving weighted average method. Therefore, it is not necessary to frequently change the ratio of the stock and debt, which can effectively save transaction costs and thereby improve profitability.

80‧‧‧預測系統
81‧‧‧處理器
82‧‧‧儲存模組
83‧‧‧輸出模組
S101~S103、S1021~S1029、S1031~S1032‧‧‧步驟
80‧‧‧ Forecast System
81‧‧‧ processor
82‧‧‧Storage Module
83‧‧‧Output Module
S101 ~ S103, S1021 ~ S1029, S1031 ~ S1032‧‧‧Steps

[圖1]為本創作的第一實施例的股債比趨勢預測系統的架構示意圖。
[圖2]為本創作的第二實施例的股債比趨勢預測方法的步驟流程圖。
[圖3]為本創作的第三實施例的股債比趨勢預測方法的細部流程圖。
[圖4]為本創作的第四實施例的股債比趨勢預測方法的細部流程圖。
[圖5]為本創作的第五實施例的股債比趨勢預測方法的細部流程圖。
[圖6]為本創作的第六實施例的股債比趨勢預測方法的細部流程圖。
[圖7]為本創作的第七實施例的股債比趨勢預測方法的細部流程圖。
[圖8]為本創作的第八實施例的股債比趨勢預測方法的細部流程圖。
[圖9]為本創作的第九實施例的股債比趨勢預測方法的細部流程圖。
[Fig. 1] Schematic diagram of the stock-to-debt ratio trend prediction system of the first embodiment of this creation.
[Fig. 2] A flowchart of steps in a method for predicting a stock-to-debt ratio trend according to a second embodiment of the present invention.
[FIG. 3] A detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a third embodiment of the present invention.
4 is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a fourth embodiment of the present invention.
5 is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a fifth embodiment of the present invention.
6 is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a sixth embodiment of the present invention.
FIG. 7 is a detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a seventh embodiment of the present invention.
[FIG. 8] A detailed flowchart of a method for predicting a stock-to-debt ratio trend according to an eighth embodiment of the present invention.
[FIG. 9] A detailed flowchart of a method for predicting a stock-to-debt ratio trend according to a ninth embodiment of the present invention.

Claims (10)

一種股債比趨勢預測系統,適用於預測多個歷史股債比資料的下一個交易日的一操作策略,該預測系統包括:
一處理器、一儲存模組以及一輸出模組,該處理器、該儲存模組以及該輸出模組彼此訊號連接,其中:
該處理器自該儲存模組取得該些歷史股債比資料,其中各該歷史股債比資料包括多個特徵值;
該處理器以該些歷史股債比資料建立一生存機率模型,其中該生存機率模型包括各該歷史股債比資料分別在多個預測趨勢的一生存機率,於各該歷史股債比資料中最高的該生存機率所對應的該預測趨勢為各該歷史股債比資料的一受選預測趨勢;
該處理器以該些歷史股債比資料的該些受選預測趨勢決定該下一個交易日的該操作策略,並由該輸出模組輸出該操作策略。
A stock-to-debt ratio trend prediction system suitable for an operation strategy for predicting the next trading day of multiple historical stock-to-debt ratio data. The prediction system includes:
A processor, a storage module, and an output module. The processor, the storage module, and the output module are signally connected to each other. Among them:
The processor obtains the historical stock-to-bill ratio data from the storage module, wherein each of the historical stock-to-bill ratio data includes multiple characteristic values;
The processor establishes a survival probability model based on the historical stock debt ratio data, wherein the survival probability model includes a survival probability of each historical stock debt ratio data in a plurality of predicted trends, and is included in each historical stock debt ratio data The forecast trend corresponding to the highest probability of survival is a selected forecast trend for each historical stock-debt ratio data;
The processor determines the operation strategy for the next trading day based on the selected predicted trends of the historical stock debt ratio data, and the output module outputs the operation strategy.
如請求項1所述的預測系統,其中該處理器是以該些歷史股債比資料以及至少一市場資訊建立該生存機率模型。The prediction system according to claim 1, wherein the processor establishes the survival probability model based on the historical stock-debt ratio data and at least one market information. 如請求項2所述的預測系統,其中該處理器是以該些歷史股債比資料以及該至少一市場資訊作為隨機生存森林演算法的輸入值而建立該生存機率模型。The prediction system according to claim 2, wherein the processor establishes the survival probability model by using the historical stock-debt ratio data and the at least one market information as input values of a random survival forest algorithm. 如請求項1所述的預測系統,其中該處理器更依據各該特徵值的不同的條件,將該些歷史股債比資料分為多個第一歷史股債比資料與多個第二歷史股債比資料;該處理器是依據該些第一歷史股債比資料建立該生存機率模型。The prediction system according to claim 1, wherein the processor further divides the historical stock debt ratio data into a plurality of first historical stock debt ratio data and a plurality of second history according to different conditions of the characteristic values. Stock-to-debt ratio data; the processor builds the survival probability model based on the first historical stock-to-debt ratio data. 如請求項4所述的預測系統,其中該處理器更依據該些第二歷史股債比資料取得一母體混淆矩陣以及多個子樣本混淆矩陣,該母體混淆矩陣對應該受選預測趨勢具有一母體準確率,各該子樣本混淆矩陣對應該受選預測趨勢具有一子樣本準確率;該處理器判斷各該第一歷史股債比資料滿足一分群條件,該分群條件對應該些子樣本混淆矩陣中之一受選子樣本混淆矩陣;該處理器更根據該母體混淆矩陣的該母樣本準確率與該受選子樣本混淆矩陣的該子樣本準確率之較高者的該受選預測趨勢做為各該第一歷史股債比資料的該受選預測趨勢。The prediction system according to claim 4, wherein the processor further obtains a parent confusion matrix and a plurality of sub-sample confusion matrices based on the second historical stock-debt ratio data, and the parent confusion matrix has a parent corresponding to the selected prediction trend. Accuracy rate, each sub-sample confusion matrix should have a sub-sample accuracy rate for the selected predicted trend; the processor judges that each of the first historical stock-debt ratio data meets a clustering condition, and the clustering condition should correspond to the sub-sample confusion matrix One of the selected sub-sample confusion matrices; the processor further makes the selected prediction trend based on a higher accuracy rate of the parent sample of the parent confusion matrix and a higher accuracy rate of the sub-sample of the selected sub-sample confusion matrix The selected predicted trend for each of the first historical stock-to-debt ratio data. 如請求項5所述的預測系統,其中當各該第一歷史股債比資料中最高的該生存機率大於一高門檻值時,該處理器判斷各該第一歷史股債比資料滿足該分群條件。The prediction system according to claim 5, wherein when the highest probability of survival of each of the first historical stock debt ratio data is greater than a high threshold value, the processor determines that each of the first historical stock debt ratio data satisfies the cluster condition. 如請求項6所述的預測系統,其中該高門檻值位於0.6至0.9之間。The prediction system of claim 6, wherein the high threshold is between 0.6 and 0.9. 如請求項5所述的預測系統,其中當各該第一歷史股債比資料的對應該些預測趨勢中的其中之一的該生存機率大於一低門檻值時,該處理器判斷各該第一歷史股債比資料滿足該分群條件。The prediction system according to claim 5, wherein when the survival probability of each of the first historical stock-debt ratio data corresponding to one of the predicted trends is greater than a low threshold, the processor judges each of the first A historical stock-debt ratio data meets the criteria for this cluster. 如請求項8所述的預測系統,其中該低門檻值位於0.4至0.5之間。The prediction system of claim 8, wherein the low threshold is between 0.4 and 0.5. 如請求項1所述的預測系統,其中該處理器更對該些歷史股債比資料的該下一個交易日之前的多個近期股債比資料所對應的該些受選預測趨勢進行移動加權平均計算而得到該些近期股債比資料的一強度值;該處理器更依據該些近期股債比資料的該強度值以及該些近期股債比資料的該些受選預測趨勢的一標準差決定該下一個交易日的該操作策略。The prediction system according to claim 1, wherein the processor further weights the selected forecasting trends corresponding to the multiple recent stock-to-debt ratio data of the historical stock-to-debt ratio data before the next trading day. An average value is used to obtain an intensity value of the recent stock-to-bond ratio data; the processor is further based on the intensity value of the recent stock-to-bond ratio data and a selected standard for the selected forecast trends of the recent stock-to-bond ratio data. The difference determines the operation strategy for the next trading day.
TW108204658U 2019-04-16 2019-04-16 Stock-bond ratio trend prediction system TWM584500U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108204658U TWM584500U (en) 2019-04-16 2019-04-16 Stock-bond ratio trend prediction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108204658U TWM584500U (en) 2019-04-16 2019-04-16 Stock-bond ratio trend prediction system

Publications (1)

Publication Number Publication Date
TWM584500U true TWM584500U (en) 2019-10-01

Family

ID=69053317

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108204658U TWM584500U (en) 2019-04-16 2019-04-16 Stock-bond ratio trend prediction system

Country Status (1)

Country Link
TW (1) TWM584500U (en)

Similar Documents

Publication Publication Date Title
Madan et al. Automated bitcoin trading via machine learning algorithms
TWI769190B (en) Risk management method and device
Giudici et al. Network based scoring models to improve credit risk management in peer to peer lending platforms
US8812384B2 (en) Systems and methods for underlying asset risk monitoring for investment securities
US8442891B2 (en) Intermarket analysis
WO2023103527A1 (en) Access frequency prediction method and device
Manujakshi et al. A hybrid stock price prediction model based on pre and deep neural network
CN107679987A (en) Asset Allocation strategy acquisition methods, device, computer equipment and storage medium
CN109636620A (en) Asset Allocation method, apparatus, electronic equipment and computer readable storage medium
Li et al. Stock trading strategies based on deep reinforcement learning
KR102505632B1 (en) Method and apparatus of predicting default rate of individual business based on artificial intelligence model using credit information
Jabeen et al. An LSTM based forecasting for major stock sectors using COVID sentiment
CN109919363A (en) The price expectation method, device and equipment of financial product
TWI708202B (en) Stock-to-bond ratio trend prediction system and stock-to-bond ratio trend prediction method
TWM584500U (en) Stock-bond ratio trend prediction system
US10262369B2 (en) Systems and methods to implement an exchange messaging policy
CN115953245A (en) Stock trend prediction method and device based on sequence-to-graph
CN109767333A (en) Select based method, device, electronic equipment and computer readable storage medium
KR102222928B1 (en) Apparatus, method and computer program for driving financial estimates
Xue et al. Portfolio optimization model for gold and bitcoin based on weighted unidirectional dual-layer LSTM model and SMA-slope strategy
Wang et al. Application of Traditional Machine Learning Models for Quantitative Trading of Bitcoin
Zhou et al. Evolution of high-frequency systematic trading: a performance-driven gradient boosting model
Mugerman et al. Mortgage loans and bank risk taking: Finding the risk “sweet spot”
Malakauskas et al. The Application of Artificial Intelligence Tools in Creditworthiness Modelling for SME Entities
KR102593556B1 (en) A method for providing a trading bot and an operating server for performing the same