WO2020024712A1 - Method and device for predicting number of foreign transactions - Google Patents

Method and device for predicting number of foreign transactions Download PDF

Info

Publication number
WO2020024712A1
WO2020024712A1 PCT/CN2019/091570 CN2019091570W WO2020024712A1 WO 2020024712 A1 WO2020024712 A1 WO 2020024712A1 CN 2019091570 W CN2019091570 W CN 2019091570W WO 2020024712 A1 WO2020024712 A1 WO 2020024712A1
Authority
WO
WIPO (PCT)
Prior art keywords
foreign exchange
exchange transaction
transaction volume
prediction
business day
Prior art date
Application number
PCT/CN2019/091570
Other languages
French (fr)
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 阿里巴巴集团控股有限公司
Publication of WO2020024712A1 publication Critical patent/WO2020024712A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • This specification relates to the field of data processing technology, and particularly to a method and device for predicting foreign exchange transaction volume.
  • this manual provides methods and devices for predicting foreign exchange transaction volume.
  • a method for predicting foreign exchange transaction volume includes: calculating a foreign exchange transaction volume according to a predicted foreign exchange transaction volume value for each business day and a real foreign exchange transaction volume value corresponding to the business day. Change trends, and predict foreign exchange transaction volume in the future time period according to the change trends, wherein the predicted foreign exchange transaction volume for each business day is obtained according to the following methods: historical foreign exchange transaction volume before the current forecast time node Input multiple pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model; calculate the predicted value of foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result; N is A preset positive integer.
  • the step of calculating a foreign exchange transaction volume prediction value on the Nth business day after the current prediction time node according to each current first prediction result includes: using a weighted average value of each current first prediction result as the current prediction. Forecast value of foreign exchange transaction volume on the Nth business day after the time node.
  • the method further comprises: calculating an impact factor of the specific business day according to the predicted value of the foreign exchange transaction volume on a specific business day; and performing a prediction on the predicted value of the foreign exchange transaction volume of the specific business day in a future time period according to the impact factor. Amended.
  • the step of calculating the impact factor of the specific business day based on the predicted value of the foreign exchange transaction volume on the specific business day includes: comparing the predicted value of the foreign exchange transaction volume on the specific business day with the foreign exchange transaction volume on the specific business day. The ratio of the true values is used as the influence factor.
  • the method further includes: separately inputting the foreign exchange transaction volume of a specific business day into the plurality of prediction models to obtain second prediction results corresponding to each prediction model; and calculating the specific business day according to each second prediction result forex trading volume forecast.
  • the step of calculating a foreign exchange transaction volume prediction value on the specific business day according to each second prediction result includes: using a weighted average of each second prediction result as the foreign exchange transaction volume prediction value on the specific business day.
  • the historical foreign exchange transaction volume before the current prediction time node is respectively input into a plurality of pre-trained prediction models
  • the step of obtaining the current first prediction result corresponding to each prediction model includes: entering the historical foreign exchange transaction before the current prediction time node. Input the pre-trained first prediction model to obtain the first prediction result corresponding to the first prediction model; input the historical foreign exchange transaction volume of the N business days closest to the current prediction time node into the pre-trained second prediction model to obtain the second A first prediction result corresponding to the prediction model; and a historical foreign exchange transaction volume of N business days in the historical period of the current prediction time node is input to a pre-trained third prediction model to obtain a first prediction result corresponding to the third prediction model.
  • the first prediction model is an ARIMA model
  • the second prediction model is a mean estimation model
  • the third prediction model is a ring-by-trend trend estimation model.
  • a device for predicting foreign exchange transaction volume includes a prediction module for respectively predicting a foreign exchange transaction volume value for each business day and a real foreign exchange transaction volume value for a corresponding business day.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method according to any one of the embodiments is implemented.
  • a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements any implementation when the program is executed.
  • Example method Example method.
  • FIG. 1 is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
  • FIG. 2 is a schematic diagram of time series data according to an embodiment of the present specification.
  • FIG. 3 is an overall principle diagram of foreign exchange transaction volume prediction according to an embodiment of the present specification.
  • FIG. 4 is a block diagram of a foreign exchange transaction volume prediction device according to an embodiment of the present specification.
  • FIG. 5 is a schematic diagram of a computer device for implementing a method of an embodiment of the present specification according to an embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • word “if” as used herein can be interpreted as “at” or "when” or "in response to determination”.
  • FIG. 1 it is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
  • the method may include:
  • Step 102 Calculate the change trend of the foreign exchange transaction volume according to the predicted value of the foreign exchange transaction volume of each business day and the real value of the foreign exchange transaction volume of the corresponding business day, and predict the foreign exchange transaction volume in the future period according to the change trend.
  • the forecast value of foreign exchange transaction volume for each business day is obtained according to the following methods:
  • Step 104 input the historical foreign exchange transaction volume before the current prediction time node into a plurality of pre-trained prediction models, and obtain the current first prediction result corresponding to each prediction model;
  • Step 106 Calculate the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
  • the business day is a statistical period of the business volume, which may be the same as the natural day (0:00 to 23:59), or may be preset by the business system. For example, it may be set to a certain natural day. 15:00 to 14:59 of the next day, or set to another time period.
  • the predicted value of the foreign exchange transaction volume and the true value of the foreign exchange transaction volume may be obtained for a plurality of business days.
  • (N1, N2, ..., NT) the predicted value of the foreign exchange transaction volume for a total of T business days and
  • the real value, predicted value and real value of the foreign exchange transaction volume are set to (v1, v2, ..., vT) and (V1, V2, ..., VT), respectively.
  • the ratio of the real value to the predicted value of the corresponding business day can be calculated, and the ratio corresponding to each business day is used as the change trend of the foreign exchange transaction volume. That is, the change trend of the foreign exchange transaction volume is (V1 / v1, V2 / v2, ..., VT / vT).
  • the foreign exchange transaction volume in the future time period is predicted according to the change trend, and the foreign exchange transaction volume in the i-th business day can be predicted according to the change trend of multiple business days before the i-th business day.
  • the change trend of multiple business days before 1 business day predicts the foreign exchange transaction volume of the i + 1th business day, and so on.
  • the predicted value of the foreign exchange transaction volume vi (1 ⁇ i ⁇ T) for each business day can be obtained by performing steps 104 and 106.
  • the current forecast time node can be set according to actual needs.
  • the foreign exchange transaction volume before the current forecast time node can be used to predict the foreign exchange transaction volume on the Nth day after the current forecast time node.
  • the current prediction time node is T
  • the foreign exchange transaction volume to be predicted is the foreign exchange transaction volume on the Nth day after the current prediction time node. This prediction method can be called T + N prediction.
  • the foreign exchange transaction volume can be either the forward transaction volume or the reverse transaction volume.
  • the foreign exchange transaction volume here can be either the forward transaction volume or the reverse transaction volume.
  • the user's purchase and payment behavior and the user's refund behavior bring about the opposite flow of funds.
  • the user's payment behavior is a forward transaction
  • the user's refund behavior is a Reverse transactions
  • the forward transaction volume is the total amount of the user's payment to the merchant
  • the reverse transaction volume is the total amount of the user's refund from the merchant.
  • a business day date attribute and / or a business day promotion attribute of each business day may also be obtained for use in correcting the prediction result of a specific business day.
  • the business day date attribute is whether the date corresponding to the business day is at the beginning, end of the month, middle of the month, working day, non-working day, or holiday.
  • the business day promotion attribute is whether or not there is a promotion activity and the activity level of the promotion activity on the business day. Among them, the activity level is determined by factors such as the discount strength of the promotion activity, the coverage of merchants, and the expected transaction volume.
  • the time series data of one embodiment is shown in FIG. 2.
  • the historical foreign exchange transaction volume before the current prediction time node may be input into a pre-trained first prediction model to obtain the first prediction corresponding to the first prediction model.
  • Results input the historical foreign exchange transaction volume of the N business days closest to the current prediction time node into the pre-trained second prediction model to obtain the first prediction result corresponding to the second prediction model; and the historical synchronization period N current prediction time nodes
  • the historical foreign exchange transaction volume on the business day is input to a pre-trained third prediction model to obtain a first prediction result corresponding to the third prediction model.
  • the first training model obtains the first prediction result according to the historical full data
  • the second training model obtains the first prediction result according to the data of the last N business days
  • the third training model obtains the prediction result according to the historical synchronization data.
  • the three models obtain forecast results from different perspectives.
  • the forecast results of each model are combined to obtain the forecast value of foreign exchange transaction volume, which can reduce the forecast bias of each model itself and obtain a more stable forecast result.
  • the first prediction model may be ARIMA (Autoregressive Integrated Moving Model)
  • the second prediction model may be a mean estimation model
  • the third prediction model may be a ring-on-trend trend estimation model.
  • the ARIMA model can sense the periodic trend, growth trend, and seasonal trend of the data.
  • the mean value estimation model is based on the recent data mean, and the forecast value is focused on the imitation of recent stable trends. Trends over the same period in history Predict trends in the current period, with emphasis on imitating historical periods.
  • the types and number of prediction models used in practical applications are not limited to the above embodiments, and other types of prediction models that can obtain stability trends may be used instead of the above models.
  • An overall schematic diagram of the foreign exchange transaction volume prediction of one embodiment is shown in FIG. 3.
  • the entire historical data can be directly input to the model to obtain the first prediction result.
  • the historical foreign exchange transaction volume of the N business days closest to the current forecast time node can be averaged, and the average value can be used as the first prediction result.
  • the historical value of the historical period of the current forecast time node (denoted as day1) and the sum of the historical values of day M and day M after day1 can be used.
  • the historical value of the first N days of the current prediction time node is used to divide the historical value of the first N days of day1 to obtain the ring ratio r, and then this ring ratio r is multiplied by the sum of the historical values of M days after day1 to obtain the final prediction. value.
  • the value of M is a positive integer, and optionally, the value of M is 1.
  • the weighted average value of each current first prediction result may be used as the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node.
  • the weight of each first prediction result may be a normalized weight, that is, the sum of the weights is 1.
  • the method further comprises: calculating an impact factor of the specific business day according to the predicted value of the foreign exchange transaction volume on the specific business day; and predicting the foreign exchange transaction volume of the specific business day in the future time period according to the impact factor. Value is corrected.
  • a specific business day is a business day in which there may be an event that has a large impact on the foreign exchange transaction volume. For example, it can be a business day at the beginning of the month, a business day at the end of the month, or a holiday, or a business day where a big promotion event is held on Double Eleven, Double Twelve, and so on.
  • the ratio of the predicted value of the foreign exchange transaction volume on the specific business day to the actual value of the foreign exchange transaction volume on the specific business day may be used as the influence factor, and the influence factor may be used to determine the specific business in the future time period.
  • Daily foreign exchange transaction volume forecasts are revised.
  • the method for obtaining the predicted value of the foreign exchange transaction volume on a specific business day may be similar to step 104. That is, the foreign exchange transaction volume of a specific business day is input into the multiple prediction models, and second prediction results corresponding to each prediction model are obtained; and the predicted value of the foreign exchange transaction volume of the specific business day is calculated according to each second prediction result.
  • the multiple prediction models used here may be the same as the prediction models used in step 104, and the prediction mode of each model may also be the same as the prediction mode of each prediction model in step 104.
  • the weighted average value of each second prediction result may be used as the foreign exchange transaction volume prediction value on the specific business day.
  • the N-day data prediction of T + N in a specific business day is divided into two parts, one part is the stable trend of the sequence. One part is due to the influencing factors and trends brought by a specific business day. Finally, the two parts of the trend are merged to obtain the forecast value of the foreign exchange transaction volume in the future time period, which improves the accuracy of the forecast results.
  • an embodiment of the present specification further provides a device for predicting foreign exchange transaction volume.
  • the device may include:
  • the prediction module 402 is configured to calculate a change trend of the foreign exchange transaction volume according to the predicted value of the foreign exchange transaction volume of each business day and the real value of the foreign exchange transaction volume corresponding to the business day, and to predict the foreign exchange transaction volume in the future time period according to the change trend. Perform forecasting, where the forecast value of foreign exchange transaction volume for each business day is obtained by executing the functions of the following modules:
  • the input module 404 is configured to input the historical foreign exchange transaction volume before the current prediction time node into a plurality of pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model;
  • the calculation module 406 is configured to calculate the predicted value of the foreign exchange transaction amount on the Nth business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
  • the relevant part may refer to the description of the method embodiment.
  • the device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
  • the embodiments of the apparatus of the present specification can be applied to a computer device, such as a server or a terminal device.
  • the device embodiments may be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory and running the processor through the file processing processor.
  • FIG. 5 it is a hardware structure diagram of the computer equipment where the device of this specification is located, except for the processor 502, the memory 504, the network interface 506, and the non-volatile memory 508 shown in FIG. 5.
  • the server or electronic device where the device is located in the embodiment may generally include other hardware according to the actual function of the computer device, and details are not described herein again.
  • the embodiment of the present specification also provides a computer storage medium.
  • the storage medium stores a program, and when the program is executed by a processor, the method in any of the foregoing embodiments is implemented.
  • an embodiment of the present specification further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the program, any one of the foregoing embodiments is implemented.
  • This application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code.
  • Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technologies
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disc
  • Magnetic tape cartridges magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and device for predicting the number of foreign transactions, the method comprising: using a plurality of prediction models, predicting the number of foreign transactions for each business day from different perspectives, and then according to a prediction value and an actual value, calculating a variation trend for the number of foreign transactions, thereby predicting the number of foreign transactions within a future time period, and increasing the accuracy of prediction.

Description

外汇交易量预测方法和装置Method and device for predicting foreign exchange transaction volume 技术领域Technical field
本说明书涉及数据处理技术领域,尤其涉及外汇交易量预测方法和装置。This specification relates to the field of data processing technology, and particularly to a method and device for predicting foreign exchange transaction volume.
背景技术Background technique
在国际汇兑业务中,需要通过提前购买下一个购汇结算周期的各外汇交易量,减少潜在的汇率敞口波动风险,进行损益控制。为了进行损益控制,需要对每个购汇结算周期的外汇交易量进行预测。因此,有必要对外汇交易量的预测方式进行改进。In the international currency exchange business, it is necessary to reduce the potential risk of fluctuations in exchange rate exposure and control profit and loss by purchasing the foreign exchange transaction volume of the next foreign exchange purchase settlement cycle in advance. In order to carry out profit and loss control, it is necessary to forecast the foreign exchange transaction volume of each foreign exchange settlement cycle. Therefore, it is necessary to improve the forecasting method of foreign exchange transaction volume.
发明内容Summary of the invention
基于此,本说明书提供了外汇交易量预测方法和装置。Based on this, this manual provides methods and devices for predicting foreign exchange transaction volume.
根据本说明书实施例的第一方面,提供一种外汇交易量预测方法,所述方法包括:分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别根据以下方式获取:分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。According to a first aspect of the embodiments of the present specification, a method for predicting foreign exchange transaction volume is provided. The method includes: calculating a foreign exchange transaction volume according to a predicted foreign exchange transaction volume value for each business day and a real foreign exchange transaction volume value corresponding to the business day. Change trends, and predict foreign exchange transaction volume in the future time period according to the change trends, wherein the predicted foreign exchange transaction volume for each business day is obtained according to the following methods: historical foreign exchange transaction volume before the current forecast time node Input multiple pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model; calculate the predicted value of foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result; N is A preset positive integer.
可选地,根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值的步骤包括:将各个当前第一预测结果的加权平均值作为所述当前预测时间节点之后第N个业务日的外汇交易量预测值。Optionally, the step of calculating a foreign exchange transaction volume prediction value on the Nth business day after the current prediction time node according to each current first prediction result includes: using a weighted average value of each current first prediction result as the current prediction. Forecast value of foreign exchange transaction volume on the Nth business day after the time node.
可选地,所述方法还包括:根据特定业务日的外汇交易量预测值计算所述特定业务日的影响因子;根据所述影响因子对未来时间段中特定业务日的外汇交易量预测值进行修正。Optionally, the method further comprises: calculating an impact factor of the specific business day according to the predicted value of the foreign exchange transaction volume on a specific business day; and performing a prediction on the predicted value of the foreign exchange transaction volume of the specific business day in a future time period according to the impact factor. Amended.
可选地,根据特定业务日的外汇交易量预测值计算所述特定业务日的影响因子的步骤包括:将所述特定业务日的外汇交易量预测值与所述特定业务日的外汇交易量的真实值的比值作为所述影响因子。Optionally, the step of calculating the impact factor of the specific business day based on the predicted value of the foreign exchange transaction volume on the specific business day includes: comparing the predicted value of the foreign exchange transaction volume on the specific business day with the foreign exchange transaction volume on the specific business day. The ratio of the true values is used as the influence factor.
可选地,所述方法还包括:分别将特定业务日的外汇交易量输入所述多个预测模型,获取各个预测模型对应的第二预测结果;根据各个第二预测结果计算所述特定业务日的外汇交易量预测值。Optionally, the method further includes: separately inputting the foreign exchange transaction volume of a specific business day into the plurality of prediction models to obtain second prediction results corresponding to each prediction model; and calculating the specific business day according to each second prediction result Forex trading volume forecast.
可选地,根据各个第二预测结果计算所述特定业务日的外汇交易量预测值的步骤包括:将各个第二预测结果的加权平均值作为所述特定业务日的外汇交易量预测值。Optionally, the step of calculating a foreign exchange transaction volume prediction value on the specific business day according to each second prediction result includes: using a weighted average of each second prediction result as the foreign exchange transaction volume prediction value on the specific business day.
可选地,分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果的步骤包括:将当前预测时间节点之前的历史外汇交易量输入预先训练的第一预测模型,获取第一预测模型对应的第一预测结果;将距当前预测时间节点最近N个业务日的历史外汇交易量输入预先训练的第二预测模型,获取第二预测模型对应的第一预测结果;以及将当前预测时间节点的历史同期N个业务日的历史外汇交易量输入预先训练的第三预测模型,获取第三预测模型对应的第一预测结果。Optionally, the historical foreign exchange transaction volume before the current prediction time node is respectively input into a plurality of pre-trained prediction models, and the step of obtaining the current first prediction result corresponding to each prediction model includes: entering the historical foreign exchange transaction before the current prediction time node. Input the pre-trained first prediction model to obtain the first prediction result corresponding to the first prediction model; input the historical foreign exchange transaction volume of the N business days closest to the current prediction time node into the pre-trained second prediction model to obtain the second A first prediction result corresponding to the prediction model; and a historical foreign exchange transaction volume of N business days in the historical period of the current prediction time node is input to a pre-trained third prediction model to obtain a first prediction result corresponding to the third prediction model.
可选地,所述第一预测模型为ARIMA模型,所述第二预测模型为均值估计模型,所述第三预测模型为环比趋势估计模型。Optionally, the first prediction model is an ARIMA model, the second prediction model is a mean estimation model, and the third prediction model is a ring-by-trend trend estimation model.
根据本说明书实施例的第二方面,提供一种外汇交易量预测装置,所述装置包括:预测模块,用于分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别通过执行以下模块的功能来获取:输入模块,用于分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;计算模块,用于根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。According to a second aspect of the embodiments of the present specification, a device for predicting foreign exchange transaction volume is provided. The device includes a prediction module for respectively predicting a foreign exchange transaction volume value for each business day and a real foreign exchange transaction volume value for a corresponding business day. Calculate the change trend of foreign exchange transaction volume, and predict the foreign exchange transaction volume in the future time period according to the change trend, wherein the forecast value of foreign exchange transaction volume for each business day is obtained by executing the functions of the following modules: input module, It is used to input the historical foreign exchange transaction volume before the current prediction time node into multiple pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model; a calculation module is configured to calculate the first prediction result according to each current first prediction result The forecast value of the foreign exchange transaction volume on the Nth business day after the current forecast time node; N is a preset positive integer.
根据本说明书实施例的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现任一实施例所述的方法。According to a third aspect of the embodiments of the present specification, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to any one of the embodiments is implemented.
根据本说明书实施例的第四方面,提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现任一实施例所述的方法。According to a fourth aspect of the embodiments of the present specification, there is provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements any implementation when the program is executed. Example method.
应用本说明书实施例方案,采用多个预测模型,从不同角度对各个业务日的外汇交易量进行预测,再根据预测值和真实值计算外汇交易量的变化趋势,从而对未来时间段 内的外汇交易量进行预测,提高了预测准确度。Applying the solution of the embodiment of this specification, using multiple forecasting models, forecasting the foreign exchange transaction volume of each business day from different perspectives, and then calculating the change trend of foreign exchange transaction volume based on the predicted value and the real value, so as to predict the foreign exchange volume in the future time Prediction of transaction volume improves prediction accuracy.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present specification.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本说明书的实施例,并与说明书一起用于解释本说明书的原理。The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the specification, and together with the description serve to explain the principles of the specification.
图1是本说明书一个实施例的外汇交易量预测方法流程图。FIG. 1 is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
图2是本说明书一个实施例的时间序列数据的示意图。FIG. 2 is a schematic diagram of time series data according to an embodiment of the present specification.
图3是本说明书一个实施例的外汇交易量预测总体原理图。FIG. 3 is an overall principle diagram of foreign exchange transaction volume prediction according to an embodiment of the present specification.
图4是本说明书一个实施例的外汇交易量预测装置的框图。FIG. 4 is a block diagram of a foreign exchange transaction volume prediction device according to an embodiment of the present specification.
图5是本说明书一个实施例的用于实施本说明书实施例方法的计算机设备的示意图。FIG. 5 is a schematic diagram of a computer device for implementing a method of an embodiment of the present specification according to an embodiment of the present specification.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Rather, they are merely examples of devices and methods consistent with certain aspects of the specification, as detailed in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determination".
如图1所示,是本说明书一个实施例的外汇交易量预测方法流程图。所述方法可包 括:As shown in FIG. 1, it is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification. The method may include:
步骤102:分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别根据以下方式获取:Step 102: Calculate the change trend of the foreign exchange transaction volume according to the predicted value of the foreign exchange transaction volume of each business day and the real value of the foreign exchange transaction volume of the corresponding business day, and predict the foreign exchange transaction volume in the future period according to the change trend. Among them, the forecast value of foreign exchange transaction volume for each business day is obtained according to the following methods:
步骤104:分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;Step 104: input the historical foreign exchange transaction volume before the current prediction time node into a plurality of pre-trained prediction models, and obtain the current first prediction result corresponding to each prediction model;
步骤106:根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。Step 106: Calculate the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
在上述实施例中,业务日即业务量的一个统计周期,其可以与自然日(0:00至23:59)相同,也可以由业务系统预先设定,例如,可以设定为某个自然日的15:00至次日的14:59,或者设定为其他时间段。In the above embodiment, the business day is a statistical period of the business volume, which may be the same as the natural day (0:00 to 23:59), or may be preset by the business system. For example, it may be set to a certain natural day. 15:00 to 14:59 of the next day, or set to another time period.
在步骤102中,可以获取多个业务日的外汇交易量预测值和外汇交易量真实值,例如,可以获取(N1,N2,……,NT)共T个业务日的外汇交易量预测值和外汇交易量真实值,预测值和真实值分别设为(v1,v2,……,vT)和(V1,V2,……,VT)。在计算外汇交易量的变化趋势时,可以计算对应业务日的真实值与预测值的比值,将各个业务日对应的比值作为外汇交易量的变化趋势。即,外汇交易量的变化趋势为(V1/v1,V2/v2,……,VT/vT)。In step 102, the predicted value of the foreign exchange transaction volume and the true value of the foreign exchange transaction volume may be obtained for a plurality of business days. For example, (N1, N2, ..., NT) the predicted value of the foreign exchange transaction volume for a total of T business days and The real value, predicted value and real value of the foreign exchange transaction volume are set to (v1, v2, ..., vT) and (V1, V2, ..., VT), respectively. When calculating the change trend of the foreign exchange transaction volume, the ratio of the real value to the predicted value of the corresponding business day can be calculated, and the ratio corresponding to each business day is used as the change trend of the foreign exchange transaction volume. That is, the change trend of the foreign exchange transaction volume is (V1 / v1, V2 / v2, ..., VT / vT).
根据所述变化趋势对未来时间段内的外汇交易量进行预测,可以根据第i个业务日之前的多个业务日的变化趋势对第i个业务日的外汇交易量进行预测,根据第i+1个业务日之前的多个业务日的变化趋势对第i+1个业务日的外汇交易量进行预测,以此类推。其中,每个业务日的外汇交易量预测值vi(1≤i≤T)可通过执行步骤104和步骤106来获取。The foreign exchange transaction volume in the future time period is predicted according to the change trend, and the foreign exchange transaction volume in the i-th business day can be predicted according to the change trend of multiple business days before the i-th business day. The change trend of multiple business days before 1 business day predicts the foreign exchange transaction volume of the i + 1th business day, and so on. The predicted value of the foreign exchange transaction volume vi (1 ≦ i ≦ T) for each business day can be obtained by performing steps 104 and 106.
在步骤104中,当前预测时间节点可以根据实际需要设定,一般来说,可以采用当前预测时间节点以前的外汇交易量来预测当前预测时间节点之后第N天的外汇交易量。假设当前预测时间节点为T,待预测的外汇交易量为当前预测时间节点之后第N天的外汇交易量,这种预测方式可称为T+N预测。In step 104, the current forecast time node can be set according to actual needs. Generally, the foreign exchange transaction volume before the current forecast time node can be used to predict the foreign exchange transaction volume on the Nth day after the current forecast time node. Assume that the current prediction time node is T, and the foreign exchange transaction volume to be predicted is the foreign exchange transaction volume on the Nth day after the current prediction time node. This prediction method can be called T + N prediction.
重复执行步骤104和步骤106,可以根据当前预测时间节点T之前的外汇交易量来获取当前预测时间节点T的T+N预测结果,根据当前预测时间节点T+1之前的外汇交易量来获取当前预测时间节点T+1的T+N预测结果,以此类推。Repeat steps 104 and 106 to obtain the T + N forecast result of the current forecast time node T according to the current forecast time node T and the current forecast time node T + N to obtain the current forecast time T + N prediction result at prediction time node T + 1, and so on.
用于预测的外汇交易量可以按照时间顺序生成时间序列数据。这里的外汇交易量可以是正向交易量,也可以是逆向交易量。在消费场景中,用户的购买付款行为与用户退款行为带来的是相反的资金流动,在资金结算时,对于商户视角,用户付款行为为一种正向交易,用户退款行为为一种逆向交易,因此,正向交易量即用户向商户付款的总量,逆向交易量即为用户从商户退款的总量。Forex trading volume can be used to generate time series data in chronological order. The foreign exchange transaction volume here can be either the forward transaction volume or the reverse transaction volume. In the consumption scenario, the user's purchase and payment behavior and the user's refund behavior bring about the opposite flow of funds. When the funds are settled, from the perspective of the merchant, the user's payment behavior is a forward transaction, and the user's refund behavior is a Reverse transactions, therefore, the forward transaction volume is the total amount of the user's payment to the merchant, and the reverse transaction volume is the total amount of the user's refund from the merchant.
还可以获取各个业务日的业务日日期属性和/或业务日促销属性,以用于对特定业务日的预测结果的修正。其中,业务日日期属性即业务日对应的日期是否月初、月末、月中、工作日、非工作日或者节假日等属性。业务日促销属性即业务日是否存在促销活动以及促销活动的活动等级,其中,活动等级由促销活动的折扣力度、覆盖商户范围、预期交易量等因素来决定。一个实施例的时间序列数据如图2所示。A business day date attribute and / or a business day promotion attribute of each business day may also be obtained for use in correcting the prediction result of a specific business day. Among them, the business day date attribute is whether the date corresponding to the business day is at the beginning, end of the month, middle of the month, working day, non-working day, or holiday. The business day promotion attribute is whether or not there is a promotion activity and the activity level of the promotion activity on the business day. Among them, the activity level is determined by factors such as the discount strength of the promotion activity, the coverage of merchants, and the expected transaction volume. The time series data of one embodiment is shown in FIG. 2.
在一个实施例中,获取各个预测模型对应的当前第一预测结果时,可以将当前预测时间节点之前的历史外汇交易量输入预先训练的第一预测模型,获取第一预测模型对应的第一预测结果;将距当前预测时间节点最近N个业务日的历史外汇交易量输入预先训练的第二预测模型,获取第二预测模型对应的第一预测结果;以及将当前预测时间节点的历史同期N个业务日的历史外汇交易量输入预先训练的第三预测模型,获取第三预测模型对应的第一预测结果。In one embodiment, when obtaining the current first prediction result corresponding to each prediction model, the historical foreign exchange transaction volume before the current prediction time node may be input into a pre-trained first prediction model to obtain the first prediction corresponding to the first prediction model. Results; input the historical foreign exchange transaction volume of the N business days closest to the current prediction time node into the pre-trained second prediction model to obtain the first prediction result corresponding to the second prediction model; and the historical synchronization period N current prediction time nodes The historical foreign exchange transaction volume on the business day is input to a pre-trained third prediction model to obtain a first prediction result corresponding to the third prediction model.
第一训练模型根据历史全量数据来获取第一预测结果,第二训练模型根据最近N个业务日的数据来获取第一预测结果,第三训练模型根据历史同期数据来获取预测结果。三种模型分别从不同的角度来获取预测结果,最后将各个模型的预测结果综合起来得到外汇交易量预测值,能够减少各个模型自身的预测偏差,获取较为平稳的预测结果。The first training model obtains the first prediction result according to the historical full data, the second training model obtains the first prediction result according to the data of the last N business days, and the third training model obtains the prediction result according to the historical synchronization data. The three models obtain forecast results from different perspectives. Finally, the forecast results of each model are combined to obtain the forecast value of foreign exchange transaction volume, which can reduce the forecast bias of each model itself and obtain a more stable forecast result.
其中,所述第一预测模型可以是ARIMA(Autoregressive Integrated Moving Average Model,自回归积分滑动平均模型),所述第二预测模型可以是均值估计模型,所述第三预测模型可以是环比趋势估计模型。ARIMA模型能感知数据周期趋势、增长趋势、季节趋势;均值估计模型是就按近期的数据的均值,获得的预测值,偏重于对近期稳定趋势的模仿;环比趋势估计模型参考历史同期走势,用历史同期的趋势预测当期的趋势,偏重于对历史同期的模仿。当然,在实际应用中所采用的预测模型的种类和数量均不限于上述实施例,可采用其他数量的多种能够获得稳定性趋势的预测模型来替代上述模型。一个实施例的外汇交易量预测总体原理图如图3所示。Wherein, the first prediction model may be ARIMA (Autoregressive Integrated Moving Model), the second prediction model may be a mean estimation model, and the third prediction model may be a ring-on-trend trend estimation model. . The ARIMA model can sense the periodic trend, growth trend, and seasonal trend of the data. The mean value estimation model is based on the recent data mean, and the forecast value is focused on the imitation of recent stable trends. Trends over the same period in history Predict trends in the current period, with emphasis on imitating historical periods. Of course, the types and number of prediction models used in practical applications are not limited to the above embodiments, and other types of prediction models that can obtain stability trends may be used instead of the above models. An overall schematic diagram of the foreign exchange transaction volume prediction of one embodiment is shown in FIG. 3.
对于ARIMA模型,可以将历史全量数据直接输入该模型,以获取第一预测结果。对于均值估计模型,可以对距当前预测时间节点最近N个业务日的历史外汇交易量求平 均,将均值作为第一预测结果。对于环比趋势估计模型,可以当前预测时间节点的历史同期(记作day1)的前N天的历史值以及day1后M天的历史值总和。用当前预测时间节点的前N天的历史值去除以day1的前N天的历史值,得到环比比值r,然后用这个环比比值r去乘以day1后M天的历史值总和,得到最终的预测值。M的取值为正整数,可选地,M的值为1。For the ARIMA model, the entire historical data can be directly input to the model to obtain the first prediction result. For the average estimation model, the historical foreign exchange transaction volume of the N business days closest to the current forecast time node can be averaged, and the average value can be used as the first prediction result. For the ring-by-trend trend estimation model, the historical value of the historical period of the current forecast time node (denoted as day1) and the sum of the historical values of day M and day M after day1 can be used. The historical value of the first N days of the current prediction time node is used to divide the historical value of the first N days of day1 to obtain the ring ratio r, and then this ring ratio r is multiplied by the sum of the historical values of M days after day1 to obtain the final prediction. value. The value of M is a positive integer, and optionally, the value of M is 1.
在步骤106中,可以将各个当前第一预测结果的加权平均值作为所述当前预测时间节点之后第N个业务日的外汇交易量预测值。各个第一预测结果的权值可以是归一化权值,即权值之和为1。In step 106, the weighted average value of each current first prediction result may be used as the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node. The weight of each first prediction result may be a normalized weight, that is, the sum of the weights is 1.
在一个实施例中,所述方法还包括:根据特定业务日的外汇交易量预测值计算所述特定业务日的影响因子;根据所述影响因子对未来时间段中特定业务日的外汇交易量预测值进行修正。In one embodiment, the method further comprises: calculating an impact factor of the specific business day according to the predicted value of the foreign exchange transaction volume on the specific business day; and predicting the foreign exchange transaction volume of the specific business day in the future time period according to the impact factor. Value is corrected.
其中,特定业务日是可能存在对外汇交易量具有较大影响的事件的业务日。例如,可以是月初业务日、月末业务日、节假日,或者双十一、双十二等举行大促销活动的业务日。通过对特定业务日的外汇交易量预测值进行修正,能够提高预测准确度。Among them, a specific business day is a business day in which there may be an event that has a large impact on the foreign exchange transaction volume. For example, it can be a business day at the beginning of the month, a business day at the end of the month, or a holiday, or a business day where a big promotion event is held on Double Eleven, Double Twelve, and so on. By correcting the forecast value of the foreign exchange transaction volume on a specific business day, the forecast accuracy can be improved.
具体地,可以将所述特定业务日的外汇交易量预测值与所述特定业务日的外汇交易量的真实值的比值作为所述影响因子,并以此影响因子来对未来时间段中特定业务日的外汇交易量预测值进行修正。Specifically, the ratio of the predicted value of the foreign exchange transaction volume on the specific business day to the actual value of the foreign exchange transaction volume on the specific business day may be used as the influence factor, and the influence factor may be used to determine the specific business in the future time period. Daily foreign exchange transaction volume forecasts are revised.
其中,特定业务日的外汇交易量预测值的获取方式可以采用与步骤104类似的方式。即,分别将特定业务日的外汇交易量输入所述多个预测模型,获取各个预测模型对应的第二预测结果;根据各个第二预测结果计算所述特定业务日的外汇交易量预测值。可选地,这里采用的多个预测模型可以与步骤104采用的各个预测模型相同,每种模型的预测方式也可以与步骤104中各个预测模型的预测方式相同。The method for obtaining the predicted value of the foreign exchange transaction volume on a specific business day may be similar to step 104. That is, the foreign exchange transaction volume of a specific business day is input into the multiple prediction models, and second prediction results corresponding to each prediction model are obtained; and the predicted value of the foreign exchange transaction volume of the specific business day is calculated according to each second prediction result. Optionally, the multiple prediction models used here may be the same as the prediction models used in step 104, and the prediction mode of each model may also be the same as the prediction mode of each prediction model in step 104.
进一步地,在获取各个预测模型对应的第二预测结果之后,可以将各个第二预测结果的加权平均值作为所述特定业务日的外汇交易量预测值。Further, after obtaining the second prediction result corresponding to each prediction model, the weighted average value of each second prediction result may be used as the foreign exchange transaction volume prediction value on the specific business day.
本说明书实施例对于没有更多的信息的时间序列,只知道特定业务日的日期属性时,将特定业务日中的T+N的N天数据预测分为两部分,一部分是序列的稳定趋势,一部分是由于特定业务日带来的影响因素与趋势,最后将两部分趋势相融合,以得到未来时间段的外汇交易量预测值,提高了预测结果的准确度。In the embodiment of the present specification, for a time series without more information, when only the date attributes of a specific business day are known, the N-day data prediction of T + N in a specific business day is divided into two parts, one part is the stable trend of the sequence. One part is due to the influencing factors and trends brought by a specific business day. Finally, the two parts of the trend are merged to obtain the forecast value of the foreign exchange transaction volume in the future time period, which improves the accuracy of the forecast results.
以上实施例中的各种技术特征可以任意进行组合,只要特征之间的组合不存在冲突 或矛盾,但是限于篇幅,未进行一一描述,因此上述实施方式中的各种技术特征的任意进行组合也属于本说明书公开的范围。The various technical features in the above embodiments can be arbitrarily combined, as long as there is no conflict or contradiction in the combination of features, but it is limited in space and has not been described one by one, so the various technical features in the above embodiments are arbitrarily combined. It also belongs to the scope disclosed in this specification.
如图4所示,本说明书实施例还提供一种外汇交易量预测装置,所述装置可包括:As shown in FIG. 4, an embodiment of the present specification further provides a device for predicting foreign exchange transaction volume. The device may include:
预测模块402,用于分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别通过执行以下模块的功能来获取:The prediction module 402 is configured to calculate a change trend of the foreign exchange transaction volume according to the predicted value of the foreign exchange transaction volume of each business day and the real value of the foreign exchange transaction volume corresponding to the business day, and to predict the foreign exchange transaction volume in the future time period according to the change trend. Perform forecasting, where the forecast value of foreign exchange transaction volume for each business day is obtained by executing the functions of the following modules:
输入模块404,用于分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;The input module 404 is configured to input the historical foreign exchange transaction volume before the current prediction time node into a plurality of pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model;
计算模块406,用于根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。The calculation module 406 is configured to calculate the predicted value of the foreign exchange transaction amount on the Nth business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
上述装置中各个模块的功能和作用的实现过程具体详情见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of each module in the above device, refer to the implementation process of corresponding steps in the foregoing method, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part may refer to the description of the method embodiment. The device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
本说明书装置的实施例可以应用在计算机设备上,例如服务器或终端设备。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在文件处理的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本说明书装置所在计算机设备的一种硬件结构图,除了图5所示的处理器502、内存504、网络接口506、以及非易失性存储器508之外,实施例中装置所在的服务器或电子设备,通常根据该计算机设备的实际功能,还可以包括其他硬件,对此不再赘述。The embodiments of the apparatus of the present specification can be applied to a computer device, such as a server or a terminal device. The device embodiments may be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory and running the processor through the file processing processor. In terms of hardware, as shown in FIG. 5, it is a hardware structure diagram of the computer equipment where the device of this specification is located, except for the processor 502, the memory 504, the network interface 506, and the non-volatile memory 508 shown in FIG. 5. In addition, the server or electronic device where the device is located in the embodiment may generally include other hardware according to the actual function of the computer device, and details are not described herein again.
相应地,本说明书实施例还提供一种计算机存储介质,所述存储介质中存储有程序,所述程序被处理器执行时实现上述任一实施例中的方法。Correspondingly, the embodiment of the present specification also provides a computer storage medium. The storage medium stores a program, and when the program is executed by a processor, the method in any of the foregoing embodiments is implemented.
相应地,本说明书实施例还提供一种计算机设备,包括存储器、处理器及存储在存 储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一实施例中的方法。Accordingly, an embodiment of the present specification further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, any one of the foregoing embodiments is implemented. Method.
本申请可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。This application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology. Information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
本领域技术人员在考虑说明书及实践这里公开的说明书后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the specification disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include the common general knowledge or conventional technical means in the technical field not disclosed by this disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise structure that has been described above and illustrated in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is limited only by the following claims.
以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above are merely preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principles of the present disclosure shall be included in the present disclosure. Within the scope of protection.

Claims (11)

  1. 一种外汇交易量预测方法,所述方法包括:A method for predicting foreign exchange transaction volume, the method includes:
    分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别根据以下方式获取:Calculate the change trend of foreign exchange transaction volume based on the predicted value of foreign exchange transaction volume for each business day and the real value of foreign exchange transaction volume for the corresponding business day, and predict the foreign exchange transaction volume in the future time period based on the change trend, where each The forecast value of foreign exchange transaction volume on the business day is obtained according to the following methods:
    分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;Input the historical foreign exchange transaction volume before the current prediction time node into multiple pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model;
    根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。Calculate the predicted value of foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
  2. 根据权利要求1所述的方法,根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值的步骤包括:The method according to claim 1, wherein the step of calculating the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node according to each current first prediction result comprises:
    将各个当前第一预测结果的加权平均值作为所述当前预测时间节点之后第N个业务日的外汇交易量预测值。The weighted average value of each current first prediction result is used as the predicted value of the foreign exchange transaction volume on the Nth business day after the current prediction time node.
  3. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    根据特定业务日的外汇交易量预测值计算所述特定业务日的影响因子;Calculating the impact factor of the specific business day according to the forecast value of the foreign exchange transaction volume on the specific business day;
    根据所述影响因子对未来时间段中特定业务日的外汇交易量预测值进行修正。Correct the predicted value of the foreign exchange transaction volume for a specific business day in the future time period according to the impact factor.
  4. 根据权利要求3所述的方法,根据特定业务日的外汇交易量预测值计算所述特定业务日的影响因子的步骤包括:The method according to claim 3, the step of calculating the impact factor of the specific business day based on the predicted value of foreign exchange transaction volume on the specific business day comprises:
    将所述特定业务日的外汇交易量预测值与所述特定业务日的外汇交易量的真实值的比值作为所述影响因子。The ratio of the predicted value of the foreign exchange transaction volume on the specific business day to the true value of the foreign exchange transaction volume on the specific business day is used as the influence factor.
  5. 根据权利要求3所述的方法,所述方法还包括:The method according to claim 3, further comprising:
    分别将特定业务日的外汇交易量输入所述多个预测模型,获取各个预测模型对应的第二预测结果;Input the foreign exchange transaction volume of a specific business day into the plurality of prediction models, and obtain second prediction results corresponding to each prediction model;
    根据各个第二预测结果计算所述特定业务日的外汇交易量预测值。Calculate the predicted foreign exchange transaction volume for the specific business day according to each second prediction result.
  6. 根据权利要求5所述的方法,根据各个第二预测结果计算所述特定业务日的外汇交易量预测值的步骤包括:The method according to claim 5, wherein the step of calculating a forecast value of the foreign exchange transaction volume on the specific business day according to each second prediction result comprises:
    将各个第二预测结果的加权平均值作为所述特定业务日的外汇交易量预测值。The weighted average of each second prediction result is used as the predicted value of the foreign exchange transaction volume on the specific business day.
  7. 根据权利要求1至6任意一项所述的方法,分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果的步骤包括:The method according to any one of claims 1 to 6, respectively inputting a historical foreign exchange transaction volume before a current prediction time node into a plurality of pre-trained prediction models, and obtaining the current first prediction result corresponding to each prediction model includes:
    将当前预测时间节点之前的历史外汇交易量输入预先训练的第一预测模型,获取第 一预测模型对应的第一预测结果;Input the historical foreign exchange transaction volume before the current prediction time node into a pre-trained first prediction model to obtain a first prediction result corresponding to the first prediction model;
    将距当前预测时间节点最近N个业务日的历史外汇交易量输入预先训练的第二预测模型,获取第二预测模型对应的第一预测结果;以及Input the historical foreign exchange transaction volume of the N business days closest to the current prediction time node into a pre-trained second prediction model to obtain a first prediction result corresponding to the second prediction model; and
    将当前预测时间节点的历史同期N个业务日的历史外汇交易量输入预先训练的第三预测模型,获取第三预测模型对应的第一预测结果。The historical foreign exchange transaction volume of the N historical business days during the current forecast time node is input into a pre-trained third prediction model to obtain a first prediction result corresponding to the third prediction model.
  8. 根据权利要求7所述的方法,所述第一预测模型为ARIMA模型,所述第二预测模型为均值估计模型,所述第三预测模型为环比趋势估计模型。The method according to claim 7, wherein the first prediction model is an ARIMA model, the second prediction model is a mean estimation model, and the third prediction model is a chain-wise trend estimation model.
  9. 一种外汇交易量预测装置,所述装置包括:A foreign exchange transaction volume prediction device, the device includes:
    预测模块,用于分别根据各个业务日的外汇交易量预测值和对应业务日的外汇交易量真实值计算外汇交易量的变化趋势,并根据所述变化趋势对未来时间段内的外汇交易量进行预测,其中,各个业务日的外汇交易量预测值分别通过执行以下模块的功能来获取:The forecasting module is configured to calculate a change trend of the foreign exchange transaction volume according to the predicted value of the foreign exchange transaction volume of each business day and the real value of the foreign exchange transaction volume of the corresponding business day, and perform a foreign exchange transaction volume in the future time period according to the change trend Forecast, in which the forecast value of foreign exchange transaction volume for each business day is obtained by executing the functions of the following modules:
    输入模块,用于分别将当前预测时间节点之前的历史外汇交易量输入预先训练的多个预测模型,获取各个预测模型对应的当前第一预测结果;An input module for inputting historical foreign exchange transaction volumes before the current prediction time node into a plurality of pre-trained prediction models to obtain the current first prediction result corresponding to each prediction model;
    计算模块,用于根据各个当前第一预测结果计算所述当前预测时间节点之后第N个业务日的外汇交易量预测值;N为预设的正整数。A calculation module is configured to calculate a predicted value of a foreign exchange transaction amount on an N-th business day after the current prediction time node according to each current first prediction result; N is a preset positive integer.
  10. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至8任意一项所述的方法。A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
  11. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至8任意一项所述的方法。A computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
PCT/CN2019/091570 2018-08-02 2019-06-17 Method and device for predicting number of foreign transactions WO2020024712A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810871712.9A CN108846525A (en) 2018-08-02 2018-08-02 Dealing amount of foreign exchange prediction technique and device
CN201810871712.9 2018-08-02

Publications (1)

Publication Number Publication Date
WO2020024712A1 true WO2020024712A1 (en) 2020-02-06

Family

ID=64195258

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091570 WO2020024712A1 (en) 2018-08-02 2019-06-17 Method and device for predicting number of foreign transactions

Country Status (3)

Country Link
CN (1) CN108846525A (en)
TW (1) TWI714113B (en)
WO (1) WO2020024712A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846525A (en) * 2018-08-02 2018-11-20 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device
CN110059847B (en) * 2019-03-01 2021-07-13 创新先进技术有限公司 Model prediction acceleration method and device
CN110163752A (en) * 2019-04-16 2019-08-23 阿里巴巴集团控股有限公司 A kind of dealing amount of foreign exchange prediction technique, apparatus and system
CN111796995B (en) * 2020-06-30 2024-02-09 中国工商银行股份有限公司 Integrated learning-based cyclic serial number usage early warning method and system
CN113139686A (en) * 2021-04-25 2021-07-20 中国工商银行股份有限公司 Transaction amount dynamic threshold monitoring method and device
TWI795949B (en) * 2021-10-15 2023-03-11 財團法人資訊工業策進會 Apparatus and method for training prediction model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161677A1 (en) * 2000-05-01 2002-10-31 Zumbach Gilles O. Methods for analysis of financial markets
CN101853480A (en) * 2009-03-31 2010-10-06 北京邮电大学 Foreign exchange transaction method based on neural network prediction models
CN107346464A (en) * 2016-05-06 2017-11-14 腾讯科技(深圳)有限公司 Operational indicator Forecasting Methodology and device
CN107506845A (en) * 2017-07-07 2017-12-22 成都阜特科技股份有限公司 A kind of electricity sales amount Forecasting Methodology and its system based on multi-model fusion
CN108846525A (en) * 2018-08-02 2018-11-20 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875027B (en) * 2016-06-06 2020-11-06 创新先进技术有限公司 Resource request value prediction method and device, and transaction amount prediction method
TWI631525B (en) * 2016-06-13 2018-08-01 謝漢銘 Financial commodity transaction data processing device and method thereof
CN106503853A (en) * 2016-11-02 2017-03-15 华南师范大学 A kind of foreign exchange transaction forecast model based on multiple scale convolutional neural networks
CN107102969A (en) * 2017-04-28 2017-08-29 湘潭大学 The Forecasting Methodology and system of a kind of time series data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161677A1 (en) * 2000-05-01 2002-10-31 Zumbach Gilles O. Methods for analysis of financial markets
CN101853480A (en) * 2009-03-31 2010-10-06 北京邮电大学 Foreign exchange transaction method based on neural network prediction models
CN107346464A (en) * 2016-05-06 2017-11-14 腾讯科技(深圳)有限公司 Operational indicator Forecasting Methodology and device
CN107506845A (en) * 2017-07-07 2017-12-22 成都阜特科技股份有限公司 A kind of electricity sales amount Forecasting Methodology and its system based on multi-model fusion
CN108846525A (en) * 2018-08-02 2018-11-20 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FOREIGN EXCHANGE MARKET ANALYSIS: "How to Correctly Analyze Foreign Exchange Market", FXCM MARKET VIEW, 26 January 2017 (2017-01-26), XP055684680, Retrieved from the Internet <URL:https://www.fuhuiapac.com/gb/insights/fx-market-analysis> *

Also Published As

Publication number Publication date
TW202008231A (en) 2020-02-16
TWI714113B (en) 2020-12-21
CN108846525A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
WO2020024712A1 (en) Method and device for predicting number of foreign transactions
Baptista et al. Macroprudential policy in an agent-based model of the UK housing market
WO2020024718A1 (en) Method and device for predicting foreign exchange transaction volume
Elliott et al. Economic forecasting
Adam et al. House price booms and the current account
CN107194723B (en) Bidirectional matching recommendation method for borrowing items and lenders in network micropayment
JP6354059B2 (en) Financial information analysis system and program
CN110415119A (en) Model training, bill business prediction technique, device, storage medium and equipment
RU2678164C2 (en) System and method for determining tradable value
TW202032478A (en) Method, system and equipment for optimizing transaction cost
CN112132639A (en) Dynamic pricing method of data set based on machine learning
JP7399967B2 (en) Trading schedule management system
Li et al. Predicting loss given default of unsecured consumer loans with time-varying survival scores
WO2021207779A1 (en) Systems and computer-implemented methods for capital management
Smith et al. Countercyclical capital regime revisited: Tests of robustness
CN110210885A (en) Excavate method, apparatus, equipment and the readable storage medium storing program for executing of potential customers
Zhou et al. Business Metric-Aware Forecasting for Inventory Management
JP2019021320A (en) Computer system, method and program for accumulating asset having value which fluctuates over time
Becker Decomposition methods for large scale stochastic and robust optimization problems
Assenza et al. Learning in a credit economy
WO2008138065A1 (en) Automated tool for investment technologies
Znaczko Forecasting Foreign Exchange Rates
Stancu et al. Estimation of default rates using the regression model and forward-looking modeling
US20220318900A1 (en) Method and apparatus to process data
JP2000020603A (en) Method and device for calculating risk and storage medium with risk calculation program stored therein

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19844969

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19844969

Country of ref document: EP

Kind code of ref document: A1