TWM645669U - Stock price factor analysis system - Google Patents

Stock price factor analysis system Download PDF

Info

Publication number
TWM645669U
TWM645669U TW112204188U TW112204188U TWM645669U TW M645669 U TWM645669 U TW M645669U TW 112204188 U TW112204188 U TW 112204188U TW 112204188 U TW112204188 U TW 112204188U TW M645669 U TWM645669 U TW M645669U
Authority
TW
Taiwan
Prior art keywords
stock price
model
shap
module
data
Prior art date
Application number
TW112204188U
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 TW112204188U priority Critical patent/TWM645669U/en
Publication of TWM645669U publication Critical patent/TWM645669U/en

Links

Abstract

A stock price factor analysis system includes a model training module, a SHAP value calculation module, and a determination module. The model training module is configured to train a model by a machine learning method based on multiple factor data corresponding to each of multiple factors affecting stock prices and historical return rates or maximum fallback values of a preset time period in historical stock prices. The SHAP value calculation module is electrically connected to the model training module and configured to substitute the factor data into the model to obtain respective SHAP values corresponding to the factor data. The determination module is electrically connected to the SHAP value calculation module and configured to determine a degree of influence of each of the factors according to the SHAP values corresponding to the factor data, so as to select a plurality of key factors, and then assist investors in determining trading of stock markets.

Description

股價因素分析系統 Stock price factor analysis system

本揭露文件係關於一種股價因素分析系統,特別是一種判斷影響股價的關鍵因素的系統。 This disclosure document relates to a stock price factor analysis system, particularly a system for determining key factors affecting stock prices.

影響股市的因素十分眾多,例如利率的走升或下跌、景氣因供需有週期性的循環、公司營收、甚至天災人禍及政府政策等等,都會造成股價的上下波動,而如何預測股價走勢是大多數投資人最感興趣的議題。為了輔助投資人對股價走勢的判斷,各種預測股價變化的方法也因應而生,例如從歷史價格、價量強弱、技術面、基本面及/或籌碼面等資訊來進行判斷。 There are many factors that affect the stock market, such as the rise or fall of interest rates, the cyclical cycle of prosperity due to supply and demand, company revenue, even natural and man-made disasters, government policies, etc., which will cause the stock price to fluctuate up and down. How to predict the stock price trend is The issue that most investors are most interested in. In order to assist investors in judging stock price trends, various methods of predicting stock price changes have also emerged, such as making judgments based on historical prices, price and volume strength, technical aspects, fundamentals and/or chips, etc.

然而,股市瞬息萬變,要準確預測股價未來的漲跌是十分困難的,但若能掌握股價走勢的關鍵因素,依然可以判斷出股市漲跌的大方向及目前處在景氣或產品循環的位置。因此,為了在眾多影響股市的因素中,找出主要影響股價走勢的關鍵因素,有必要研發關於股價因素的分析技術,以進一步輔助投資人判斷股市的買賣。 However, the stock market is changing rapidly, and it is very difficult to accurately predict the future rise and fall of stock prices. However, if you can grasp the key factors of stock price trends, you can still determine the general direction of the stock market's rise and fall and its current position in the boom or product cycle. Therefore, in order to find out the key factors that mainly affect the stock price trend among the many factors that affect the stock market, it is necessary to develop analysis technology on stock price factors to further assist investors in judging stock market buying and selling.

在本揭露文件之一技術態樣中提出一種股價因 素分析系統。股價因素分析系統包含模型訓練模組、SHAP值計算模組和判斷模組。模型訓練模組用以基於影響股價的複數個因素各自所對應的複數個因素資料和歷史股價中一預設時間段的歷史報酬率或最大回落值,以機器學習方法訓練模型。SHAP值計算模組,電連接模型訓練模組,用以將此等因素資料代入此模型,並對此模型執行SHAP演算法處理,以獲得此等因素資料各自所對應的SHAP值。判斷模組,電連接SHAP值計算模組,用以根據此等因素資料各自所對應的SHAP值判斷此等因素中各者的影響程度,以選出複數個關鍵因素。 A stock price factor is proposed in one of the technical aspects of this disclosure document. element analysis system. The stock price factor analysis system includes a model training module, a SHAP value calculation module and a judgment module. The model training module is used to train the model using a machine learning method based on the plurality of factor data corresponding to each of the plurality of factors that affect the stock price and the historical return rate or maximum retracement value of a preset time period in the historical stock price. The SHAP value calculation module is electrically connected to the model training module, and is used to substitute the factor data into the model, and perform SHAP algorithm processing on the model to obtain the SHAP values corresponding to the factor data. The judgment module is electrically connected to the SHAP value calculation module, and is used to judge the degree of influence of each of these factors based on the SHAP values corresponding to the data of these factors, so as to select a plurality of key factors.

在一實施例中,此等因素資料各自所對應的SHAP值為每一此等因素資料分別於此預設時間段中的複數個時間區間所對應的複數個SHAP值的加總或平均值。 In one embodiment, the SHAP value corresponding to each of these factor data is the sum or average of a plurality of SHAP values corresponding to a plurality of time intervals in the preset time period for each of these factor data.

在一實施例中,股價因素分析系統更包含歷史數據計算模組。歷史數據計算模組用以根據歷史股價計算此預設時間段的歷史報酬率,以供模型訓練模組進行存取。 In one embodiment, the stock price factor analysis system further includes a historical data calculation module. The historical data calculation module is used to calculate the historical return rate of this preset time period based on historical stock prices for access by the model training module.

在一實施例中,股價因素分析系統更包含數值轉換模組。數值轉換模組用以將此歷史報酬率或最大回落值作數值轉換,其中模型訓練模組是基於此等因素資料和經數值轉換後的歷史報酬率或最大回落值,以機器學習方法訓練此模型。 In one embodiment, the stock price factor analysis system further includes a numerical conversion module. The numerical conversion module is used to convert the historical return rate or the maximum fallback value into a numerical value. The model training module is based on these factor data and the numerically converted historical return rate or maximum fallback value, and trains the historical return rate or maximum fallback value using machine learning methods. Model.

在一實施例中,股價因素分析系統更包含資料收集模組。資料收集模組用以自總體經濟指標、基本面指標、原物料指標、籌碼指標、外匯、技術面指標所構成的群組中 選取此等因素及收集此等因素各自所對應的因素資料,以供模型訓練模組進行存取。 In one embodiment, the stock price factor analysis system further includes a data collection module. The data collection module is used to select from the group consisting of overall economic indicators, fundamental indicators, raw material indicators, chip indicators, foreign exchange, and technical indicators. Select these factors and collect factor data corresponding to each of these factors for access by the model training module.

在一實施例中,此等因素資料為此等因素各自對應的成長率資料或是此等因素經數值轉換所產生的資料。 In one embodiment, the factor data is the corresponding growth rate data of these factors or data generated by numerical conversion of these factors.

在一實施例中,模型訓練模組是以自動化機器學習方法訓練此模型。 In one embodiment, the model training module trains the model using automated machine learning methods.

在一實施例中,模型訓練模組將此等因素資料依時序分為訓練集、驗證集、和測試集,並基於訓練集、驗證集、測試集和歷史報酬率或最大回落值,以機器學習方法訓練、驗證、和測試此模型。 In one embodiment, the model training module divides these factor data into a training set, a verification set, and a test set in time sequence, and based on the training set, verification set, test set, and historical return rate or maximum fallback value, the machine Learning methods train, validate, and test this model.

在一實施例中,股價因素分析系統更包含模型資料庫。模型資料庫用以儲存模型訓練模組所訓練的模型。 In one embodiment, the stock price factor analysis system further includes a model database. The model database is used to store models trained by the model training module.

在一實施例中,股價因素分析系統更包含狀態監控模組。狀態監控模組用以將模型資料庫中模型的資訊顯示於顯示器。 In one embodiment, the stock price factor analysis system further includes a status monitoring module. The status monitoring module is used to display model information in the model database on the monitor.

100、200:股價因素分析方法 100, 200: Stock price factor analysis method

S110、S120、S130、S140、S210、S220、S232、S234、 S240:步驟 S110, S120, S130, S140, S210, S220, S232, S234, S240: Steps

400、500:股價因素分析系統 400, 500: Stock price factor analysis system

410、510:資料收集模組 410, 510: Data collection module

420、520:影響因素資料庫 420, 520: Influencing factors database

430、530:歷史數據計算模組 430, 530: Historical data calculation module

440、540:歷史數據資料庫 440, 540: Historical data database

450、550:模型訓練模組 450, 550: Model training module

460、560:SHAP值計算模組 460, 560: SHAP value calculation module

470、570:判斷模組 470, 570: Judgment module

480、580:模型資料庫 480, 580: Model database

490、590:狀態監控模組 490, 590: Status monitoring module

512:第一數值轉換模組 512: The first numerical conversion module

532:第二數值轉換模組 532: Second numerical value conversion module

600:伺服器 600:Server

610a、610b:使用者設備 610a, 610b: User equipment

圖1為本揭露文件之一實施例之股價因素分析方法的流程圖。 Figure 1 is a flow chart of a stock price factor analysis method according to one embodiment of this disclosure document.

圖2為本揭露文件之一實施例之股價因素分析方法的流程圖。 Figure 2 is a flow chart of a stock price factor analysis method according to one embodiment of this disclosure document.

圖3A為本揭露文件之一實施例之關鍵因素排序結果示例圖。 FIG. 3A is an example diagram of key factor ranking results according to an embodiment of the present disclosure.

圖3B為本揭露文件之一實施例之關鍵因素排序結果示例圖。 FIG. 3B is an example diagram of key factor ranking results according to an embodiment of the present disclosure.

圖3C為本揭露文件之一實施例之關鍵因素排序結果示例圖。 FIG. 3C is an example diagram of key factor ranking results according to an embodiment of the present disclosure.

圖4為本揭露文件之一實施例之股價因素分析系統架構示意圖。 Figure 4 is a schematic diagram of the stock price factor analysis system architecture according to one embodiment of this disclosure document.

圖5為本揭露文件之一實施例之股價因素分析系統架構示意圖。 Figure 5 is a schematic diagram of the stock price factor analysis system architecture according to one embodiment of this disclosure document.

圖6為本揭露文件之一實施例之股價因素分析系統使用場景圖。 Figure 6 is a usage scenario diagram of the stock price factor analysis system according to one embodiment of this disclosure document.

下文係舉實施例配合所附圖式作詳細說明,但所描述的具體實施例僅僅用以解釋本新型,並不用來限定本新型,而結構操作之描述非用以限制其執行之順序,任何由元件重新組合之結構,所產生具有均等功效的裝置,皆為本新型揭示內容所涵蓋的範圍。 The following is a detailed description of the embodiments in conjunction with the accompanying drawings. However, the specific embodiments described are only used to explain the present invention and are not used to limit the present invention. The description of the structural operations is not intended to limit the order of its execution. Any The structure of the components being reassembled to produce a device with equal functions is within the scope of the disclosure of the present invention.

此外,本新型所提到的“第一”及“第二”等用語並不代表任何順序、數量或者重要性,只是用於區分不同的部分,且附圖僅僅用以示意性地加以說明。 In addition, the terms "first" and "second" mentioned in the present invention do not represent any order, quantity or importance, but are only used to distinguish different parts, and the drawings are only used for schematic illustration.

在全篇說明書與申請專利範圍所使用之用詞(terms),除有特別註明外,通常具有每個用詞使用在此領域中、在此揭露之內容中與特殊內容中的平常意義。某些用以描述本揭露之用詞將於下或在此說明書的別處討論,以提供本領 域技術人員在有關本揭露之描述上額外的引導。 Unless otherwise noted, the terms used throughout the specification and patent claims generally have their ordinary meanings as used in the field, in the disclosure and in the particular content. Certain terms used to describe the present disclosure are discussed below or elsewhere in this specification to provide an understanding of Those skilled in the art are provided with additional guidance regarding the description of this disclosure.

請參閱圖1,圖1繪示本揭露文件之一實施例之股價因素分析方法100的流程圖。股價因素分析方法100用於從眾多影響股價的因素中判斷出較為關鍵的一或多個因素,其包含有步驟S110、S120、S130和S140等流程,各個步驟內容如下: Please refer to FIG. 1 , which illustrates a flow chart of a stock price factor analysis method 100 according to an embodiment of this disclosure document. The stock price factor analysis method 100 is used to determine one or more key factors from many factors that affect the stock price. It includes steps S110, S120, S130 and S140, and the contents of each step are as follows:

S110:收集影響股價的複數個因素各自所對應的複數個因素資料,以及計算歷史股價中一預設時間段的歷史報酬率或最大回落值(Max drawdown,MDD)。 S110: Collect multiple factor data corresponding to multiple factors that affect the stock price, and calculate the historical return rate or maximum drawdown value (Max drawdown, MDD) of a preset time period in the historical stock price.

S120:基於因素資料和歷史報酬率或最大回落值,以機器學習方法訓練模型。 S120: Use machine learning methods to train the model based on factor data and historical return rates or maximum drawdown values.

S130:執行SHAP演算法(SHapley Additive exPlanations)處理,以獲得因素資料各自所對應的SHAP值。 S130: Execute SHAP algorithm (SHapley Additive exPlanations) processing to obtain SHAP values corresponding to each factor data.

S140:根據因素資料各自所對應的SHAP值判斷各因素資料的影響程度,以選出複數個關鍵因素。 S140: Determine the degree of influence of each factor data based on its corresponding SHAP value to select multiple key factors.

詳細來說,於步驟S110收集影響股價的複數個因素各自所對應的複數個因素資料中,例如是針對某一股票產品A,收集可能影響其之股價的因素於某一時間點或某一時間段所對應的數據資料。其中,可透過處理器自動化收集影響股價的因素各自所對應的因素資料,並儲存於資料庫中,或者,使用者也可自行輸入因素及相對應的因素資料以儲存於資料庫中。而影響股價的因素例如選自總體經濟指標、基本面指標、原物料指標、籌碼指標、外匯、技術面指 標所構成的群組。 Specifically, in step S110, multiple factors corresponding to multiple factors that affect the stock price are collected. For example, for a certain stock product A, factors that may affect its stock price at a certain point in time or at a certain time are collected. The data corresponding to the segment. Among them, the processor can automatically collect the corresponding factor data of the factors that affect the stock price and store it in the database. Alternatively, the user can also input the factors and the corresponding factor data themselves and store them in the database. The factors that affect the stock price are selected from the overall economic indicators, fundamental indicators, raw material indicators, chip indicators, foreign exchange, and technical indicators. group consisting of targets.

其中,總體經濟指標包括例如恐慌指數、10年期公債利率、10年期減2年期公債利差、美國30年期抵押貸款利率、美國高收益指數選擇權調整利差、美國整體庫存、美國製造業耐久財新訂單、美國耐久財消費支出、美國初領失業救濟金人數、美國非農就業人口、和美國五周內失業人口等等。 Among them, general economic indicators include, for example, the panic index, 10-year Treasury bond rate, 10-year minus 2-year Treasury bond spread, U.S. 30-year mortgage rate, U.S. high yield index option-adjusted spread, U.S. overall inventories, U.S. New orders for manufacturing durable goods, U.S. consumer spending on durable goods, U.S. initial jobless claims, U.S. non-farm payrolls, and U.S. unemployment within five weeks, etc.

基本面指標包括例如公告或經過季節調整後的月營收、月營收與股價的比率、過去財報計算得本益比、利用公告財報與營收預估的本益比、過去財報計算得股價淨值比、利用公告財報與營收預估的股價淨值比、已公告營收預估的現金殖利率、和過去或即將的股息殖利率等等。 Fundamental indicators include, for example, announced or seasonally adjusted monthly revenue, the ratio of monthly revenue to stock price, price-to-earnings ratio calculated from past financial reports, price-to-earnings ratio calculated using announced financial reports and revenue estimates, and stock price calculated from past financial reports. Net worth ratio, stock price to net worth ratio using announced financial reports and revenue estimates, cash yields of announced revenue estimates, and past or upcoming dividend yields, etc.

原物料指標包括例如布蘭特原油、WTI原油、天然氣、黃金、銀、銅、鐵、錫、美國黃豆、美國小麥、美國玉米、和CRB商品指數等等。 Raw material indicators include, for example, Brent crude oil, WTI crude oil, natural gas, gold, silver, copper, iron, tin, US soybeans, US wheat, US corn, and CRB commodity index, etc.

籌碼指標包括例如股東持有平均張數、股東持有600張以上比例、股東持有1000張以上比例、外資買賣超(含5日、20日、60日等平均值)、投信買賣超(含5日、20日、60日等平均值)、自營商買賣超(含5日、20日、60日等平均值)、融資餘額(含5日、20日、60日平均值)、和融券餘額(含5日、20日、60日平均值)等等。 Chip indicators include, for example, the average number of chips held by shareholders, the proportion of shareholders holding more than 600 chips, the proportion of shareholders holding more than 1,000 chips, foreign investment trading excess (including the average of 5 days, 20 days, 60 days, etc.), investment trust trading excess (including 5-day, 20-day, 60-day average, etc.), dealer trading excess (including 5-day, 20-day, 60-day average, etc.), financing balance (including 5-day, 20-day, 60-day average), and Securities lending balance (including 5-day, 20-day, 60-day average), etc.

外匯包括例如美金指數、美金對台幣匯率、和澳幣對美金匯率等等。 Foreign exchange includes, for example, the U.S. dollar index, the U.S. dollar to Taiwan dollar exchange rate, and the Australian dollar to U.S. dollar exchange rate, etc.

技術面指標包括例如交易量(含5日、20日、60日等平均值)和過去的價格等等。 Technical indicators include, for example, trading volume (including 5-day, 20-day, 60-day averages, etc.) and past prices, etc.

應理解的是,本新型的股價因素分析方法100所收集的因素資料並不限於取自上述例子,任何可能影響股價的因素皆可應用於本新型所揭示的股價因素分析方法100。 It should be understood that the factor data collected by the stock price factor analysis method 100 of the present invention is not limited to the above examples, and any factors that may affect the stock price can be applied to the stock price factor analysis method 100 disclosed by the present invention.

於一實施例中,影響股價的因素所對應的因素資料可例如為各個因素於固定時間間隔的成長率等數據資料。舉例來說,可根據使用者需求,收集有關股票產品A的各個因素於過去任意時間段的成長率。於另一實施例中,亦可應實際需要,將影響股價的因素所對應的因素資料進行取log值等數值轉換,本新型對此不作任何限制。 In one embodiment, the factor data corresponding to the factors that affect the stock price may be, for example, data such as the growth rate of each factor at a fixed time interval. For example, according to user needs, the growth rate of various factors related to stock product A in any time period in the past can be collected. In another embodiment, the factor data corresponding to the factors that affect the stock price can also be converted into numerical values such as log values according to actual needs. The present invention does not impose any restrictions on this.

此外,於步驟S110收集歷史股價中預設時間段的歷史報酬率或最大回落值中,例如針對此股票產品A,收集其於過去一段預設時間的報酬率或最大回落值。例如,股價因素分析方法100可收集股票產品A過去數年、數月、數周、或任意時間區間的歷史報酬率或最大回落值。較佳地,股價因素分析方法100於步驟S110中是收集前述因素資料的時間點之後一段預設時間的報酬率或最大回落值。舉例來說,當收集的因素資料為各影響因素於時間點T1的資料,則收集時間點T1之後一段預設時間的歷史報酬率或最大回落值。 In addition, in step S110, in collecting the historical return rate or the maximum retracement value of the preset time period in the historical stock price, for example, for this stock product A, its return rate or the maximum retracement value of the preset time period in the past is collected. For example, the stock price factor analysis method 100 can collect the historical return rate or maximum drawdown value of stock product A in the past years, months, weeks, or any time interval. Preferably, in step S110 of the stock price factor analysis method 100, the rate of return or the maximum fallback value is collected for a preset period of time after the time point of the aforementioned factor data. For example, when the factor data collected is the data of each influencing factor at time point T1, then the historical return rate or maximum drop value for a preset period after time point T1 is collected.

接著,於步驟S120中,將於步驟S110所收集的因素資料及歷史報酬率或最大回落值,透過機器學習方法來訓練模型。詳細來說,以因素資料作為訓練模型的輸入,而歷史報酬率或最大回落值作為訓練模型的目標,透過機器學 習訓練出最符合的模型。其中,訓練模型例如為XGBoost、Random Forest、類神經網路等等,本新型並不加以限制。 Next, in step S120, the factor data and historical return rate or maximum retracement value collected in step S110 are used to train the model through machine learning methods. Specifically, the factor data is used as the input of the training model, and the historical return rate or maximum retracement value is used as the target of the training model. Through machine learning Learn to train the most suitable model. Among them, the training model is, for example, XGBoost, Random Forest, neural network, etc., which is not limited by the present invention.

訓練好模型後,股價因素分析方法100於步驟S130中,將目前或欲分析的特定時間點的各因素資料代入此訓練好的模型,並針對此訓練好的模型執行SHAP演算法(SHapley Additive exPlanations)處理,以獲得各因素資料所對應的SHAP值。其中,SHAP演算法可測量模型中每個特徵(即因素資料)對每個預測(即歷史報酬率或最大回落值)的正面或負面貢獻的程度。舉例來說,當SHAP值為正值時,其數值越大,則正面貢獻程度越大,而當SHAP值為負值時,其數值越小,則負面貢獻程度越大。簡單來說,SHAP值的絕對值越大,則貢獻程度越大。 After training the model, in step S130, the stock price factor analysis method 100 substitutes the current factor data or the specific time point to be analyzed into the trained model, and executes the SHAP algorithm (SHapley Additive exPlanations) on the trained model. ) processing to obtain the SHAP value corresponding to each factor data. Among them, the SHAP algorithm can measure the degree of positive or negative contribution of each feature (i.e., factor data) in the model to each prediction (i.e., historical return rate or maximum drawdown value). For example, when the SHAP value is positive, the larger the value, the greater the positive contribution. When the SHAP value is negative, the smaller the value, the greater the negative contribution. Simply put, the greater the absolute value of the SHAP value, the greater the contribution.

最後,股價因素分析方法100於步驟S140中,根據步驟S130中所計算出的因素資料各自所對應的SHAP值,判斷各因素資料對股價的影響程度/貢獻程度,以選出目前或特定時間點的複數個關鍵因素。 Finally, in step S140, the stock price factor analysis method 100 determines the degree of influence/contribution of each factor data on the stock price based on the SHAP value corresponding to the factor data calculated in step S130, so as to select the current or specific time point. Plural key factors.

於本新型另一實施例中,可進一步分析各因素在歷史上特定時期影響股價的關鍵程度。請參閱圖2,圖2繪示本揭露文件之一實施例之股價因素分析方法200的流程圖。其中,股價因素分析方法200包含有步驟S210、S220、S232、S234和S240等流程,各個步驟內容如下: In another embodiment of the present invention, the criticality of each factor affecting the stock price at a specific period in history can be further analyzed. Please refer to FIG. 2 , which illustrates a flow chart of a stock price factor analysis method 200 according to an embodiment of this disclosure document. Among them, the stock price factor analysis method 200 includes steps S210, S220, S232, S234 and S240. The contents of each step are as follows:

S210:收集影響股價的複數個因素各自所對應的複數個因素資料,以及計算歷史股價中一預設時間段的歷史報酬率或最大回落值。 S210: Collect multiple factor data corresponding to multiple factors that affect the stock price, and calculate the historical return rate or maximum drop value of a preset time period in the historical stock price.

S220:基於因素資料和歷史報酬率或最大回落值,以機器學習方法訓練模型。 S220: Use machine learning methods to train the model based on factor data and historical return rates or maximum drawdown values.

S232:執行SHAP演算法處理,計算各因素資料分別於預設時間段中的複數個時間區間所對應的複數個SHAP值。 S232: Execute SHAP algorithm processing to calculate a plurality of SHAP values corresponding to a plurality of time intervals in the preset time period for each factor data.

S234:將因素資料各自對應的複數個SHAP值進行加總及/或平均,以產生因素資料各自所對應的SHAP重要值(SHAP Feature Importance)。 S234: Sum up and/or average a plurality of SHAP values corresponding to each factor data to generate a SHAP Feature Importance (SHAP Feature Importance) corresponding to each factor data.

S240:根據因素資料各自所對應的SHAP重要值,判斷各因素資料的影響程度,以選出複數個關鍵因素。 S240: Based on the SHAP importance values corresponding to the factor data, determine the degree of influence of each factor data to select a plurality of key factors.

其中,股價因素分析方法200的步驟S210和S220等步驟依序對應股價因素分析方法100的步驟S110和S120等步驟,相關說明請見前文描述,於此不在贅述。 Among them, steps S210 and S220 of the stock price factor analysis method 200 correspond to steps S110 and S120 of the stock price factor analysis method 100 in sequence. Please refer to the previous description for relevant descriptions and will not be repeated here.

於此實施例中,股價因素分析方法200與股價因素分析方法100的主要不同之處在於,將步驟S130進一步細分為步驟S232和S234。其中,股價因素分析方法200於步驟S232中是針對於步驟S220中訓練好的模型,代入步驟S210儲存的歷史報酬率或最大回落值對應的預設時間段中的複數個時間區間所對應的各因素資料,並對基於每個時間區間的模型執行SHAP演算法,因此可獲得各因素資料於各個時間區間所對應的SHAP值。舉例來說,假設歷史報酬率或最大回落值對應的預設時間段為數年,則預設時間段可例如以每年、每月、每周、或每日等為基本單位來劃分出複數個時間區間。應理解的是,預設時間段和時間區間可根據 實際需求作調整,本新型並不作限制。 In this embodiment, the main difference between the stock price factor analysis method 200 and the stock price factor analysis method 100 is that step S130 is further subdivided into steps S232 and S234. Among them, the stock price factor analysis method 200 in step S232 is to substitute the historical return rate or the plurality of time intervals corresponding to the preset time period corresponding to the maximum retracement value stored in step S210 for the model trained in step S220. Factor data, and execute the SHAP algorithm on the model based on each time interval, so the SHAP value corresponding to each factor data in each time interval can be obtained. For example, assuming that the preset time period corresponding to the historical return rate or the maximum retracement value is several years, the preset time period can be divided into a plurality of times based on annual, monthly, weekly, or daily units. interval. It should be understood that the preset time period and time interval can be based on Adjustments are made to actual needs and are not limited by this model.

接著,於步驟S234中,將因素資料各自對應的複數個SHAP值進行加總,以獲得各因素資料各自對應的SHAP重要值。較佳地,可將因素資料各自對應的複數個SHAP值取絕對值後在進行加總,以獲得各因素資料各自對應的SHAP重要值。於一實施例中,亦可將SHAP重要值進一步進行平均值計算或其他數值轉換,本新型並不加以限制。 Next, in step S234, a plurality of SHAP values corresponding to each factor data are added up to obtain SHAP importance values corresponding to each factor data. Preferably, the plurality of SHAP values corresponding to each factor data can be taken as absolute values and then summed to obtain the SHAP importance values corresponding to each factor data. In one embodiment, the SHAP important values can also be further subjected to average calculation or other numerical conversion, which is not limited by the present invention.

最後,股價因素分析方法200於步驟S240中,是根據因素資料各自所對應的SHAP重要值,判斷各因素資料的影響程度,以選出特定時期的複數個關鍵因素。 Finally, in step S240, the stock price factor analysis method 200 determines the degree of influence of each factor data based on the SHAP importance value corresponding to each factor data, so as to select a plurality of key factors in a specific period.

請參閱圖3A-3C,圖3A繪示本揭露文件之一實施例的歷史前十大關鍵因素排序結果示例圖,圖3B繪示本揭露文件之一實施例前五大看漲關鍵因素排序結果示例圖,而圖3C繪示本揭露文件之一實施例的前五大看跌關鍵因素排序結果示例圖。 Please refer to Figures 3A-3C. Figure 3A illustrates an example of the ranking results of the top ten key factors in history according to one embodiment of this disclosure document. Figure 3B illustrates an example of the ranking results of the top five bullish key factors according to one embodiment of this disclosure document. , and Figure 3C illustrates an example diagram of the ranking results of the top five bearish key factors according to one embodiment of this disclosure document.

於圖3A的示例中,是透過股價因素分析方法200來判斷歷史上影響股價的各因素的關鍵程度排序,其中以SHAP重要值的大小進行各因素的關鍵程度排序,所對應的SHAP重要值越大,則此因素對於股票產品的貢獻程度越大,即影響能力越關鍵。舉例來說,圖3A中,因素「美國高收益指數選擇權調整利差」的SHAP重要值大於「美國高收益指數選擇權調整利差YoY」等其餘因素的SHAP重要值,則以股價因素分析方法200作為輔助判斷的依據時,可判斷 出因素「美國高收益指數選擇權調整利差」最為關鍵。因此,可排序出各個因素對於股價變化的重要程度。 In the example of FIG. 3A , the stock price factor analysis method 200 is used to determine the criticality ranking of various factors that have historically affected the stock price. The criticality ranking of each factor is based on the size of the SHAP importance value, and the corresponding SHAP importance value is greater. If the factor is larger, the greater the contribution of this factor to the stock product, that is, the more critical the influence ability. For example, in Figure 3A, the SHAP importance value of the factor "U.S. High Yield Index Option Adjusted Spread" is greater than the SHAP importance value of other factors such as "U.S. High Yield Index Option Adjusted Spread YoY", then the stock price factor analysis is used When method 200 is used as the basis for auxiliary judgment, it can be judged The most critical factor is "U.S. High Yield Index Option Adjusted Spread". Therefore, the importance of each factor to stock price changes can be sorted.

應理解的是,圖3A僅為本新型實施例應用股價因素分析方法200的一個示例,其僅排序出某一時期的前十大關鍵因素,並未列出所有因素的當前排序,而因素的選擇、關鍵因素的數量及時間的設定等可根據使用者依實際需求作設計。 It should be understood that Figure 3A is only an example of applying the stock price factor analysis method 200 according to the embodiment of the present invention. It only ranks the top ten key factors in a certain period, and does not list the current ranking of all factors. The selection of factors , the number of key factors and the setting of time can be designed according to the actual needs of the user.

於另一實施例中,亦可只針對股票產品當前的漲或跌的因素進行分析。如圖3B所示,透過股價因素分析方法100,可例如根據當前的SHAP值排序出前五大看漲(即影響股價上漲)的關鍵因素。其中,關於看漲的關鍵因素,是提取SHAP值為正值(正面貢獻)的因素來進行排序。而圖3B的示例中,前四大因素「美國整體庫存QoQ」、「融資餘額QoQ」、「融資餘額(20日平均)」和「美國30年期抵押貸款利率(周)YoY」的SHAP值皆為0.01,則各者關鍵程度相同,根據使用者設定,亦可將此等SHAP值相等的因素皆設為相同序號(例如皆為”1”),本新型對此不作限制。 In another embodiment, the analysis can also be performed only on the current rising or falling factors of the stock product. As shown in FIG. 3B , through the stock price factor analysis method 100 , the top five key factors that are bullish (that is, affect the rise of the stock price) can be sorted, for example, according to the current SHAP value. Among them, the key factor for bullishness is to extract the factors with a positive SHAP value (positive contribution) to sort. In the example in Figure 3B, the SHAP values of the top four factors "U.S. overall inventory QoQ", "Financing balance QoQ", "Financing balance (20-day average)" and "U.S. 30-year mortgage interest rate (week) YoY" If both are 0.01, then the criticality of each factor is the same. According to user settings, these factors with equal SHAP values can also be set to the same serial number (for example, both are "1"). This model does not limit this.

此外,如圖3C所示,股價因素分析方法100亦可例如根據當前的SHAP值排序出前五大看跌(即影響股價下跌)的關鍵因素。其中,關於看跌的關鍵因素,是提取SHAP值為負值(負面貢獻)的因素來進行排序。如前文所述,當SHAP值為負值時,則數值越低(或絕對值越大),表示負面貢獻程度越大,亦即越為關鍵。 In addition, as shown in FIG. 3C , the stock price factor analysis method 100 can also sort the top five key factors that are bearish (that is, affect the stock price to fall) based on the current SHAP value. Among them, the key factor for bearishness is to extract the factors with negative SHAP values (negative contribution) for sorting. As mentioned above, when the SHAP value is negative, the lower the value (or the greater the absolute value), the greater the negative contribution, that is, the more critical it is.

於本新型的又一實施例中,因為在股價因素分 析方法100的步驟S110或股價因素分析方法200的步驟S210中收集歷史報酬率的過程中,歷史報酬率的分布不一定是有規律的,因此可在步驟S110/S210收集歷史報酬率後,進一步將歷史報酬率作數值轉換,並於步驟S120/S220中基於因素資料和經數值轉換後的歷史報酬率,以機器學習方法來訓練模型。其中將歷史報酬率作數值轉換的步驟,例如是將歷史報酬率作Yeo-Johnson transformation或Box-Cox transformation等數值轉換。或者,可在步驟S110/S210收集最大回落值後,進一步將最大回落值作數值轉換,並於步驟S120/S220中基於因素資料和經數值轉換後的最大回落值,以機器學習方法來訓練模型。其中將最大回落值作數值轉換的步驟,例如是將最大回落值進一步除以股價產品於預設時間段中的最高淨值,以得到最大回落值百分比。藉此,可使得步驟S120/S220中模型的訓練準確度更高。 In another embodiment of the present invention, because in the analysis of stock price factors In the process of collecting historical return rates in step S110 of the analysis method 100 or step S210 of the stock price factor analysis method 200, the distribution of historical return rates is not necessarily regular. Therefore, after collecting the historical return rates in steps S110/S210, further The historical return rate is converted into a numerical value, and in steps S120/S220, a machine learning method is used to train the model based on the factor data and the numerically converted historical return rate. The step of converting the historical return rate into numerical value is, for example, converting the historical return rate into numerical conversion such as Yeo-Johnson transformation or Box-Cox transformation. Alternatively, after collecting the maximum fallback value in step S110/S210, the maximum fallback value can be further converted into a numerical value, and in step S120/S220, the model can be trained using a machine learning method based on the factor data and the numerically converted maximum fallback value. . The step of converting the maximum retracement value into a numerical value is, for example, further dividing the maximum retracement value by the highest net value of the stock price product in the preset time period to obtain the maximum retracement value percentage. This can make the training accuracy of the model in steps S120/S220 higher.

此外,步驟S120/S220亦可透過自動化機器學習(AutoML)來進行模型的訓練,以建立精確的模型。於一實施例中,股價因素分析方法還可將因素資料依時序分為訓練集、驗證集、和測試集。基於所劃分的訓練集、驗證集、測試集和歷史報酬率或最大回落值,股價因素分析方法100/200可於步驟S120/S220以機器學習方法來訓練、驗證、和測試模型,藉此避免過擬合(Over-fitting)的狀況發生。 In addition, step S120/S220 can also perform model training through automated machine learning (AutoML) to establish an accurate model. In one embodiment, the stock price factor analysis method can also divide the factor data into a training set, a verification set, and a test set in time sequence. Based on the divided training set, verification set, test set and historical return rate or maximum retracement value, the stock price factor analysis method 100/200 can use machine learning methods to train, verify, and test the model in steps S120/S220, thereby avoiding Over-fitting occurs.

請參閱圖4,圖4繪示本揭露文件之一實施例之 股價因素分析系統400的架構示意圖。股價因素分析系統400例如由處理器執行,其可執行股價因素分析方法100及股價因素分析方法200。股價因素分析系統400至少包含資料收集模組410、影響因素資料庫420、歷史數據計算模組430、歷史數據資料庫440、模型訓練模組450、SHAP值計算模組460、以及判斷模組470。 Please refer to Figure 4. Figure 4 illustrates an embodiment of this disclosure document. Schematic diagram of the architecture of the stock price factor analysis system 400. The stock price factor analysis system 400 is executed, for example, by a processor, which can execute the stock price factor analysis method 100 and the stock price factor analysis method 200 . The stock price factor analysis system 400 at least includes a data collection module 410, an influencing factor database 420, a historical data calculation module 430, a historical data database 440, a model training module 450, a SHAP value calculation module 460, and a judgment module 470 .

股價因素分析系統400的收集模組410和歷史數據計算模組430用以執行例如股價因素分析方法100/200的步驟S110/S210。資料收集模組410自總體經濟指標、基本面指標、原物料指標、籌碼指標、外匯、技術面指標所構成的群組中,選取影響例如股票產品A之股價的因素及收集此等因素各自所對應的因素資料,以供影響因素資料庫420進行儲存。歷史數據計算模組430根據例如股票產品A之歷史股價計算預設時間段的歷史報酬率或最大回落值,以供歷史數據資料庫440進行儲存。 The collection module 410 and the historical data calculation module 430 of the stock price factor analysis system 400 are used to perform steps S110/S210 of the stock price factor analysis method 100/200, for example. The data collection module 410 selects factors that affect the stock price of stock product A from the group consisting of overall economic indicators, fundamental indicators, raw material indicators, chip indicators, foreign exchange, and technical indicators, and collects the respective factors of these factors. The corresponding factor data is provided for storage by the influencing factor database 420. The historical data calculation module 430 calculates the historical return rate or the maximum retracement value of the preset time period based on, for example, the historical stock price of stock product A for storage by the historical data database 440.

模型訓練模組450用以執行例如股價因素分析方法100/200的步驟S120/220,其基於影響因素資料庫420儲存的因素資料和歷史數據資料庫440儲存的歷史報酬率或最大回落值,以機器學習方法訓練模型。其中,模型訓練模組450可以是透過自動化機器學習方法來訓練模型。此外,模型訓練模組450更可將此等因素資料依時序分為訓練集、驗證集、和測試集,並基於此訓練集、此驗證集、此測試集和歷史數據資料庫440儲存的歷史報酬率或最大回落值,以機器學習方法訓練、驗證、和測試模型,藉此避免過 擬合(Over-fitting)的狀況。 The model training module 450 is used to perform, for example, steps S120/220 of the stock price factor analysis method 100/200, which is based on the factor data stored in the influencing factor database 420 and the historical return rate or maximum retracement value stored in the historical data database 440, to Machine learning methods train models. Among them, the model training module 450 can train the model through automated machine learning methods. In addition, the model training module 450 can further divide the factor data into a training set, a verification set, and a test set in time sequence, and based on the training set, the verification set, the test set and the history stored in the historical data database 440 Return rate or maximum drawdown value, train, validate, and test the model using machine learning methods to avoid excessive Over-fitting status.

SHAP值計算模組460,電連接模型訓練模組450,用以執行例如股價因素分析方法100的步驟S130及/或股價因素分析方法200的步驟S232和S234。其中,SHAP值計算模組460執行股價因素分析方法100的步驟S130時,將目前或欲分析的特定時間點的因素資料代入模型訓練模組450所訓練好的模型,並對此模型執行SHAP演算法處理,以獲得因素資料各自所對應的SHAP值,並根據因素資料各自所對應的SHAP值判斷此等因素中各者的影響程度,以選出目前或特定時間點的複數個關鍵因素。或者,SHAP值計算模組460執行股價因素分析方法200的步驟S232時,將儲存的歷史報酬率或最大回落值對應的預設時間段中的複數個時間區間所對應的各因素資料,分別代入模型訓練模組450所訓練好的模型,並對基於每個時間區間的模型執行SHAP演算法,以獲得各因素資料於各個時間區間所對應的SHAP值。接著,SHAP值計算模組460執行股價因素分析方法200的步驟S234,將因素資料各自對應的複數個SHAP值進行加總,以獲得各因素資料各自對應的SHAP重要值。 The SHAP value calculation module 460 is electrically connected to the model training module 450, and is used to perform, for example, step S130 of the stock price factor analysis method 100 and/or steps S232 and S234 of the stock price factor analysis method 200. Among them, when the SHAP value calculation module 460 executes step S130 of the stock price factor analysis method 100, it substitutes the factor data currently or at a specific time point to be analyzed into the model trained by the model training module 450, and performs SHAP calculation on the model. Method processing to obtain the SHAP values corresponding to the factor data, and judge the degree of influence of each of these factors based on the SHAP values corresponding to the factor data, so as to select multiple key factors at present or at a specific time point. Alternatively, when the SHAP value calculation module 460 executes step S232 of the stock price factor analysis method 200, the factor data corresponding to a plurality of time intervals in the preset time period corresponding to the stored historical return rate or the maximum retracement value are substituted respectively into The model training module 450 executes the SHAP algorithm on the trained model based on each time interval to obtain the SHAP value corresponding to each factor data in each time interval. Next, the SHAP value calculation module 460 executes step S234 of the stock price factor analysis method 200 to sum up a plurality of SHAP values corresponding to each factor data to obtain the SHAP importance value corresponding to each factor data.

判斷模組470,電連接SHAP值計算模組460,用以執行例如股價因素分析方法100/200的步驟S140/S240,其根據SHAP值計算模組460計算出的SHAP值判斷此等因素中各者的影響程度,以選出目前或某特定時間點的複數個關鍵因素,或者,根據SHAP值計算模組460計算出的SHAP重要值判斷此等因素中各者的影響程度,以 選出特定時期的的複數個關鍵因素。關於股價因素分析系統400中資料收集模組410、影響因素資料庫420、歷史數據計算模組430、歷史數據資料庫440、模型訓練模組450、SHAP值計算模組460、以及判斷模組470各者的詳細步驟流程,可參閱前述有關股價因素分析方法100及股價因素分析方法200的說明。 The judgment module 470 is electrically connected to the SHAP value calculation module 460, and is used to perform steps S140/S240 of the stock price factor analysis method 100/200, for example. It judges each of these factors based on the SHAP value calculated by the SHAP value calculation module 460. to select a plurality of key factors at present or at a specific point in time, or to judge the degree of influence of each of these factors according to the SHAP important value calculated by the SHAP value calculation module 460, so as to Select a plurality of key factors for a specific period. Regarding the data collection module 410, the influencing factor database 420, the historical data calculation module 430, the historical data database 440, the model training module 450, the SHAP value calculation module 460, and the judgment module 470 in the stock price factor analysis system 400 For the detailed step-by-step process of each, please refer to the aforementioned descriptions of the stock price factor analysis method 100 and the stock price factor analysis method 200.

於一實施例中,股價因素分析系統400更包含有模型資料庫480。模型資料庫480可用於儲存模型訓練模組450針對各時間點所訓練的一或多個模型,以供日後需要時取用。於另一實施例中,股價因素分析系統400可更包含狀態監控模組490。狀態監控模組490可用於將模型資料庫480中儲存的一或多個模型的資訊顯示於顯示器,以供使用者檢視。 In one embodiment, the stock price factor analysis system 400 further includes a model database 480 . The model database 480 can be used to store one or more models trained by the model training module 450 at each time point for future retrieval when needed. In another embodiment, the stock price factor analysis system 400 may further include a status monitoring module 490 . The status monitoring module 490 can be used to display the information of one or more models stored in the model database 480 on the display for the user to view.

請參閱圖5,圖5繪示本揭露文件之一實施例之股價因素分析系統500的架構示意圖。股價因素分析系統500例如由處理器執行,其同樣可執行股價因素分析方法100及股價因素分析方法200。股價因素分析系統500包含資料收集模組510、第一數值轉換模組512、影響因素資料庫520、歷史數據計算模組530、第二數值轉換模組532、歷史數據資料庫540、模型訓練模組550、SHAP值計算模組560、判斷模組570、模型資料庫580、以及狀態監控模組590。其中股價因素分析系統500中的資料收集模組510、影響因素資料庫520、歷史數據計算模組530、歷史數據資料庫540、模型訓練模組550、SHAP值計算模組560、判斷模 組570、模型資料庫580、以及狀態監控模組590,依序對應於股價因素分析系統400中的資料收集模組410、影響因素資料庫420、歷史數據計算模組430、歷史數據資料庫440、模型訓練模組450、SHAP值計算模組460、判斷模組470、模型資料庫480、以及狀態監控模組490,其等對應模組皆具有相同的功能,相關說明請見前文描述,於此不再贅述。 Please refer to FIG. 5 , which is a schematic structural diagram of a stock price factor analysis system 500 according to an embodiment of this disclosure document. The stock price factor analysis system 500 is executed, for example, by a processor, which can also execute the stock price factor analysis method 100 and the stock price factor analysis method 200 . The stock price factor analysis system 500 includes a data collection module 510, a first numerical conversion module 512, an influencing factor database 520, a historical data calculation module 530, a second numerical conversion module 532, a historical data database 540, and a model training module. Group 550, SHAP value calculation module 560, judgment module 570, model database 580, and status monitoring module 590. Among them, the data collection module 510, the influencing factor database 520, the historical data calculation module 530, the historical data database 540, the model training module 550, the SHAP value calculation module 560, and the judgment module in the stock price factor analysis system 500 The group 570, the model database 580, and the status monitoring module 590 correspond in sequence to the data collection module 410, the influencing factor database 420, the historical data calculation module 430, and the historical data database 440 in the stock price factor analysis system 400. , model training module 450, SHAP value calculation module 460, judgment module 470, model database 480, and status monitoring module 490. Their corresponding modules all have the same functions. For relevant instructions, please refer to the previous description. This will not be described again.

與股價因素分析系統400不同的是,股價因素分析系統500尚具有包含第一數值轉換模組512及/或第二數值轉換模組532的數值轉換模組。第一數值轉換模組512用以將資料收集模組510所收集的因素資料進一步計算轉換為基於固定時間間隔的成長率等數據資料,以供影響因素資料庫520儲存。或者,第一數值轉換模組512更可將因素資料進行取log值等數值轉換,以供影響因素資料庫520儲存。 Different from the stock price factor analysis system 400, the stock price factor analysis system 500 also has a numerical value conversion module including a first numerical value conversion module 512 and/or a second numerical value conversion module 532. The first numerical conversion module 512 is used to further calculate and convert the factor data collected by the data collection module 510 into growth rate and other data based on a fixed time interval for storage in the influencing factor database 520 . Alternatively, the first numerical conversion module 512 can further convert the factor data into numerical values such as log values for storage in the influencing factor database 520 .

而第二數值轉換模組532用以將歷史數據計算模組530計算出的歷史報酬率進一步作例如Yeo-Johnson transformation或Box-Cox transformation等數值轉換,以供歷史數據資料庫540儲存。或者,第二數值轉換模組532用以將歷史數據計算模組530計算出的最大回落值進一步除以股價產品於預設時間段中的最高淨值,以得到最大回落值百分比,以供歷史數據資料庫540儲存。藉此,模型訓練模組550可基於經數值轉換後的因素資料及/或經數值轉換後的歷史報酬率或最大回落值,以機器學習方法來訓練模型,以獲得更精確的模型。 The second numerical conversion module 532 is used to further perform numerical conversion on the historical rate of return calculated by the historical data calculation module 530, such as Yeo-Johnson transformation or Box-Cox transformation, for storage in the historical data database 540. Alternatively, the second numerical conversion module 532 is used to further divide the maximum retracement value calculated by the historical data calculation module 530 by the highest net value of the stock price product in the preset time period to obtain the maximum retracement value percentage for historical data. Database 540 stores. Thereby, the model training module 550 can use the machine learning method to train the model based on the numerically converted factor data and/or the numerically converted historical return rate or maximum drawdown value to obtain a more accurate model.

請參閱圖6,圖6繪示本揭露文件之一實施例之股價因素分析系統400及500的使用場景圖。圖6中,股價因素分析系統400及500例如可架設於伺服器600中。伺服器600可供一或多個使用者設備進行存取。舉例來說,伺服器600可供使用者設備610a例如透過有線或無線存取技術連接,以供其進一步使用股價因素分析系統400及/或500。此外,伺服器600亦可供另一使用者設備610b例如透過有線或無線存取技術連接,以供其進一步使用股價因素分析系統400及/或500。其中,使用者設備可為電腦、手機、或各種非移動式或攜帶型智慧型裝置,而使用者設備610a及使用者設備610b可為相同或不同之設備,且可同時或不同時對伺服器600進行存取,本新型並不加以限制。應理解的是,圖6中使用者設備的數量僅用以示例,伺服器600亦可供兩者以上之更多使用者設備進行連接以使用股價因素分析系統400及/或500,本新型並不限制。 Please refer to FIG. 6 , which illustrates a usage scenario diagram of the stock price factor analysis systems 400 and 500 according to an embodiment of this disclosure document. In FIG. 6 , the stock price factor analysis systems 400 and 500 can be set up in the server 600 , for example. Server 600 is accessible to one or more user devices. For example, the server 600 can be connected to the user device 610a through wired or wireless access technology for further use of the stock price factor analysis system 400 and/or 500. In addition, the server 600 can also be connected to another user device 610b, for example, through wired or wireless access technology, so that it can further use the stock price factor analysis system 400 and/or 500. Among them, the user equipment can be a computer, a mobile phone, or various non-mobile or portable smart devices, and the user equipment 610a and the user equipment 610b can be the same or different equipment, and can access the server at the same time or not at the same time. 600 for access, which is not limited by this model. It should be understood that the number of user devices in Figure 6 is only for example, and the server 600 can also be connected to more than two user devices to use the stock price factor analysis system 400 and/or 500. The present invention does not not limited.

雖然本新型之實施例已揭露如上,然其並非用以限定本新型,任何熟習此技藝者,在不脫離本新型之精神和範圍內,當可做些許之更動與潤飾,因此本新型之保護範圍當以後附之申請專利範圍所界定為準。 Although the embodiments of the present invention have been disclosed above, they are not intended to limit the present invention. Anyone skilled in the art can make some modifications and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention is The scope shall be determined by the appended patent application scope.

400:股價因素分析系統 400: Stock price factor analysis system

410:資料收集模組 410:Data collection module

420:影響因素資料庫 420:Influencing factors database

430:歷史數據計算模組 430: Historical data calculation module

440:歷史數據資料庫 440: Historical data database

450:模型訓練模組 450:Model training module

460:SHAP值計算模組 460: SHAP value calculation module

470:判斷模組 470:Judgement module

480:模型資料庫 480:Model database

490:狀態監控模組 490:Status monitoring module

Claims (10)

一種股價因素分析系統,架設於一伺服器,包含:一模型訓練模組,用以基於影響股價的複數個因素各自所對應的複數個因素資料和歷史股價中一預設時間段的一歷史報酬率或一最大回落值,以機器學習方法訓練一模型;一SHAP值計算模組,電連接該模型訓練模組,用以將該等因素資料代入該模型,並對該模型執行SHAP演算法處理,以獲得該等因素資料各自所對應的SHAP值;以及一判斷模組,電連接該SHAP值計算模組,用以根據該等因素資料各自所對應的SHAP值判斷該等因素中各者的影響程度,以選出複數個關鍵因素。 A stock price factor analysis system, set up on a server, including: a model training module, used to base on multiple factors data corresponding to multiple factors that affect stock prices and a historical return in a preset time period in historical stock prices. rate or a maximum fallback value, and trains a model with a machine learning method; a SHAP value calculation module, electrically connected to the model training module, is used to substitute the factor data into the model, and perform SHAP algorithm processing on the model , to obtain the SHAP value corresponding to each of the factor data; and a judgment module, electrically connected to the SHAP value calculation module, for judging the SHAP value of each of the factors according to the SHAP value corresponding to the factor data. degree of influence to select multiple key factors. 如請求項1所述之股價因素分析系統,其中該等因素資料各自所對應的SHAP值為每一該等因素資料分別於該預設時間段中的複數個時間區間所對應的複數個SHAP值的加總或平均值。 The stock price factor analysis system as described in request item 1, wherein the SHAP values corresponding to each of the factor data are a plurality of SHAP values corresponding to a plurality of time intervals in the preset time period for each of the factor data. The sum or average of. 如請求項1所述之股價因素分析系統,更包含:一歷史數據計算模組,用以根據歷史股價計算該預設時間段的該歷史報酬率或該最大回落值,以供該模型訓練模組進行存取。 The stock price factor analysis system described in claim 1 further includes: a historical data calculation module for calculating the historical rate of return or the maximum fallback value of the preset time period based on the historical stock price for training the model. group for access. 如請求項1所述之股價因素分析系統,更包含: 一數值轉換模組,用以將該歷史報酬率或該最大回落值作數值轉換,其中該模型訓練模組是基於該等因素資料和經數值轉換後的該歷史報酬率或該最大回落值,以機器學習方法訓練該模型。 The stock price factor analysis system as described in request item 1 further includes: A numerical conversion module for converting the historical return rate or the maximum retracement value into a numerical value, wherein the model training module is based on the factor data and the historical return rate or the maximum retracement value after numerical conversion, The model is trained using machine learning methods. 如請求項1所述之股價因素分析系統,更包含:一資料收集模組,用以自總體經濟指標、基本面指標、原物料指標、籌碼指標、外匯、技術面指標所構成的群組中選取該等因素及收集該等因素各自所對應的該等因素資料,以供該模型訓練模組進行存取。 The stock price factor analysis system as described in claim 1 further includes: a data collection module for collecting data from a group consisting of overall economic indicators, fundamental indicators, raw material indicators, chip indicators, foreign exchange, and technical indicators. Select the factors and collect the factor data corresponding to each of the factors for access by the model training module. 如請求項1所述之股價因素分析系統,其中該等因素資料為該等因素各自對應的成長率資料或是該等因素經數值轉換所產生的資料。 The stock price factor analysis system as described in request item 1, wherein the factor data is the growth rate data corresponding to the factors or data generated by numerical conversion of the factors. 如請求項1所述之股價因素分析系統,其中該模型訓練模組是以自動化機器學習方法訓練該模型。 The stock price factor analysis system as described in claim 1, wherein the model training module trains the model using an automated machine learning method. 如請求項1所述之股價因素分析系統,其中該模型訓練模組將該等因素資料依時序分為一訓練集、一驗證集、和一測試集,並基於該訓練集、該驗證集、該測試集和該歷史報酬率或該最大回落值,以機器學習方法訓練、驗證、和測試該模型。 The stock price factor analysis system as described in request item 1, wherein the model training module divides the factor data into a training set, a verification set, and a test set in time sequence, and based on the training set, the verification set, Use the test set and the historical return rate or the maximum retracement value to train, verify, and test the model using machine learning methods. 如請求項1所述之股價因素分析系統,更包含:一模型資料庫,用以儲存該模型訓練模組所訓練的該模型。 The stock price factor analysis system as described in claim 1 further includes: a model database for storing the model trained by the model training module. 如請求項9所述之股價因素分析系統, 更包含:一狀態監控模組,用以將該模型資料庫中該模型的資訊顯示於一顯示器。 A stock price factor analysis system as described in claim 9, It also includes: a status monitoring module for displaying the model information in the model database on a monitor.
TW112204188U 2021-10-26 2021-10-26 Stock price factor analysis system TWM645669U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112204188U TWM645669U (en) 2021-10-26 2021-10-26 Stock price factor analysis system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112204188U TWM645669U (en) 2021-10-26 2021-10-26 Stock price factor analysis system

Publications (1)

Publication Number Publication Date
TWM645669U true TWM645669U (en) 2023-09-01

Family

ID=88926454

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112204188U TWM645669U (en) 2021-10-26 2021-10-26 Stock price factor analysis system

Country Status (1)

Country Link
TW (1) TWM645669U (en)

Similar Documents

Publication Publication Date Title
Hammoudeh et al. Risk management of precious metals
US6453303B1 (en) Automated analysis for financial assets
Sorescu et al. The cross section of analyst recommendations
TW530234B (en) Methods and systems for efficiently sampling portfolios for optimal underwriting
US11593886B1 (en) Methods and systems to quantify and index correlation risk in financial markets and risk management contracts thereon
AU2444101A (en) Methods and systems for finding value and reducing risk
Singh et al. Feedback spillover dynamics of crude oil and global assets indicators: A system-wide network perspective
AU2730301A (en) Methods and systems for optimizing return and present value
Johnson et al. On the systematic volatility of unpriced earnings
CN109345050A (en) A kind of quantization transaction prediction technique, device and equipment
Allen et al. Volatility Spillovers from Australia's major trading partners across the GFC
TWM586419U (en) Intelligent financial investment and decision analysis system
KR20200023669A (en) System for Recommending Investment of Big data based Real estate
KR101004375B1 (en) Fund management method and system using an analysis of portfolio strategy and risk
CN103430201A (en) Private company valuation
Makkonen et al. Multi‐criteria decision support in the liberalized energy market
Atmadja The granger causality tests for the five ASEAN countries stock markets and macroeconomic variables during and post the 1997 Asian financial crisis
Fang et al. Positive and negative price bubbles of Chinese agricultural commodity futures
TWM645669U (en) Stock price factor analysis system
TWI248007B (en) Method for evaluating market trade based on trend prediction
TW202318322A (en) Stock price factor analysis method and system
Pınar et al. Modeling and Forecasting the Markets Volatility and VaR Dynamics of Commodity
KR20090102884A (en) Method and apparatus for selecting stock item which price is synchronized with the price index of stocks
Datta Industrial sickness in India–An empirical analysis
TWI841282B (en) Investment protfolio analysis method and system