WO2019119478A1 - Exchange rate analysis method based on genetic algorithm - Google Patents

Exchange rate analysis method based on genetic algorithm Download PDF

Info

Publication number
WO2019119478A1
WO2019119478A1 PCT/CN2017/118527 CN2017118527W WO2019119478A1 WO 2019119478 A1 WO2019119478 A1 WO 2019119478A1 CN 2017118527 W CN2017118527 W CN 2017118527W WO 2019119478 A1 WO2019119478 A1 WO 2019119478A1
Authority
WO
WIPO (PCT)
Prior art keywords
exchange rate
genetic algorithm
attribute
mendelian
data
Prior art date
Application number
PCT/CN2017/118527
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 WO2019119478A1 publication Critical patent/WO2019119478A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • 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/02Banking, e.g. interest calculation or account maintenance

Definitions

  • the invention relates to computer software technology, in particular to a method for analyzing an exchange rate based on a genetic algorithm.
  • Rimcharoen et al. proposed an adaptive evolutionary strategy (ESs) method for predicting stock trading in Thailand, in which the GA method and the ES method were combined. Since then, there has been no further study of the ES method used to predict exchange rates.
  • ESs adaptive evolutionary strategy
  • PSO Particle Swarm Optimization
  • the determination of exchange rate values has long been regarded as the most challenging of the high-frequency time series trading applications [3-5, 29, 30].
  • some different models are described as the phenomenon that prices follow random walks, which is suitable for genetic algorithms with random and nonlinear search capabilities.
  • the Mendelian genetic algorithm will be applied to the empirical analysis of exchange rate values, which can provide an evolutionary and computational method to solve the problem of exchange rate value determination. Therefore, the object of the present invention is to provide a method for analyzing exchange rate based on genetic algorithm, in particular, an exchange rate analysis method based on Mendelian genetic algorithm.
  • the technical solution of the present invention is: a method for analyzing an exchange rate based on a genetic algorithm, comprising the following steps:
  • the first step is to pre-process the exchange rate price data; the pre-processing includes removing the data away from the mean, normalization, etc.;
  • the pre-processed exchange rate price data is input into the exchange rate model, and the fitness function is used to optimize the exchange rate model:
  • the third step is to verify the optimized result, verify that the output data result is verified, the verification fails, and the second and third steps are repeated after the Mendelian genetic algorithm is processed, until the optimized result is verified and the result is output.
  • the parameters of the exchange rate model are optimized by the fitness function as follows:
  • is the first-order difference of the sequence
  • S t+1 is the exchange rate of t+1 time
  • S t is the spot exchange rate, which is defined as the domestic price of the foreign currency, see equation (1)
  • ⁇ t+1 As the interference term, as shown in equation (3), it indicates that the future exchange rate change is a function of the gap between the spot exchange rate and the expected basic factor
  • b is the discount factor
  • f(x t ) is the basic factor at time t
  • x t is a simultaneous order flow
  • q is the future periodic factor
  • the x t+q+1 in the brackets corresponds to the t+q+1 moment of x
  • x t+q corresponds to the t+q moment of x, which is actually the sequence of x.
  • t+q+1 data is taken backward to calculate.
  • H. Decoding Repeat the iterative AH step to obtain the optimal solution, and use the adaptive function to evaluate whether the optimal solution after decoding meets the requirements of the optimization calculation. If the requirements are met, the final optimized solution set is obtained; otherwise, the operating parameters are modified and recalculated. Until the final optimization solution set is obtained.
  • the encoding is a binary encoding.
  • xi is defined as a COF value observed in foreign exchange (cumulative order flow)
  • yi is defined as the foreign exchange and local currency obtained by log(/). proportion.
  • the national currency is as follows:
  • ⁇ x i (t) and ⁇ y i (t-1) are differential data sequences obtained during data preprocessing at times t and t-1, as shown in equations (14) and (15).
  • the calculation method of the Mendelian operator is as follows;
  • Each chromosomal position in the parent population is assigned an attribute, and there are three attribute types: D attribute represents dominant, pure and dominant genes, and R attributes represent recessive, pure and recessive genes and H Attributes represent hybrid, hybrid genes;
  • the two chromosomes in the optional parent population are cross-tested as the parental chromosome to obtain the progeny chromosome. If the attribute of the parental chromosomal location is D, the attribute of the chromosomal position of the offspring is D; if the attributes of the parental chromosomal location are R The attribute of the chromosomal position of the progeny is R; if the attribute of one parent chromosomal position is R and the attribute of the other parent chromosomal position is D, the attribute of the chromosomal position of the progeny is H; if the attribute of a parent chromosomal position is D The attribute of another parental chromosomal location is H, then the chromosomal position of the offspring is 50% D, 50% is H; if the attribute of one parent chromosomal location is R and the attribute of the other parent chromosomal location is H, then the daughter chromosome The position 50% is R, 50% is H; if the parental chromoso
  • Each chromosomal bit in the parent population is randomly assigned an attribute.
  • Figure 1 is an exchange rate analysis method based on a computational intelligent aided design framework
  • Figure 2 is a working flow chart of Mendelian genetic algorithm
  • Figure 3 is a Mendelian operator: parent to child
  • Figure 4 is a definition of the decision coefficient R 2 ;
  • Figure 5 is a raw data preprocessing process and fitness function generation
  • Figure 6 is the evolutionary fitting data of the yen against the US dollar
  • Figure 7 is the sampling and modeling of data 1 (Mark vs. US dollar);
  • Figure 8 is the sampling and modeling of data 2 (yen against US dollars).
  • the Mendelian operator is inserted after selecting the operator, which can effectively utilize the advantage of the Mendelian operator's local search ability, as shown in FIG.
  • the general Mendelian operator was often inserted after the mutation operator.
  • genetic mutations may produce unstable populations, which will result in contamination of the entire genetic process output [20, 21].
  • mutation operators are randomly generated by changing a binary bit from '0' to '1', and vice versa.
  • the basic method of mutation is the ability to recombine the improved solution at a given probability, but it may also damage the dominant population and lose good solutions and convergence [22-24].
  • the Mendelian operator will amplify this unstable community from the perspective of micro-evolution through its local search capabilities.
  • Mendelian genetic algorithm is characterized by Mendelian operators, which are easily synchronized with multi-objective GA processes, such as multi-objective genetic algorithm (MOGA) [25], niche genetic algorithm (NPGA) [26], Non-dominated sorting genetic algorithm (NSGA) [27] Non-dominated sorting genetic algorithm II (NSGAII) [28].
  • MOGA multi-objective genetic algorithm
  • NPGA niche genetic algorithm
  • NSGA Non-dominated sorting genetic algorithm
  • NGAII Non-dominated sorting genetic algorithm II
  • the exchange rate analysis method based on Mendelian genetic algorithm has the following advantages: (1) mobilizing computing resources; (2) reducing computational costs.
  • Mendelian genetic algorithm can process linear and nonlinear models through evolutionary process, and has high complexity, and it is elastic and can be used as a positive optimization solution method to carry out between models. Conversion.
  • the order flow is defined as the net buyer and seller's order flow currency transactions, which is used as a measure of net buying pressure [3]. According to previous reports [1, 4, 5, 31, 32], order flows are closely related to a broad set of current and expected macroeconomic fundamentals, and such order flows are used as a useful predictor of exchange rate movements. .
  • S t is the spot exchange rate, which is defined as the domestic price of the foreign currency
  • b is the discount factor
  • q is the future periodic factor
  • f(x t ) is the basic factor at time t
  • x t is simultaneously engraved Order flow
  • the relationship between the spot exchange rate S t and the order flow x t at the same time can be written as follows, by iterating (2).
  • is the first-order difference of the sequence
  • ⁇ t is the interference term, as shown in equation (3) [34], which indicates that the future exchange rate change is a function of the gap between the spot exchange rate and the expected basic factor. This is also an expected change in the fundamental factors in the long run.
  • Mendel's principles (some biologists refer to Mendel's principles as rules) apply to genetic inheritance in traditional natural environments. Mendel's conclusions can be summarized in two principles for these pea experiments. [14,15,35]
  • a Mendelian genetic algorithm can be defined as a Mendelian genetic operator introduced into the genetic algorithm, and then the optimization study and parameter estimation are applied to establish a regression model for the determination of exchange rate values.
  • the encoding/decoding operation of the Mendelian genetic algorithm utilizes a binary encoding method. Normally, all bits (genes) of the chromosome can use two binary-encoded letters '1' and '0', where the gene represented by "1" is activated and '0' is invalid.
  • '0' and '1' are the binary values of the two bits, the length of the chromosome, or the binary number, which are all Mendelian genetic operators, known as the percentage of Mendelian age ( MP), where MP is a scale factor that includes the length of the balanced parent chromosome binary number.
  • MP is a scale factor that includes the length of the balanced parent chromosome binary number.
  • the Mendelian operator produces chromosomes Xo1 and Xo2 from the descendants of the parental chromosome based on the properties of each binary number, which is defined by Punnet-aquare [14, 15].
  • the two parental chromosomes Xp1 and Xp2 can generate Xo1 of a sub-chromosome, as shown in Figure 3. For the second progeny of the Xo2 chromosome obtained, the production process needs to be repeated.
  • each chromosomal bit is assigned an attribute that includes the type of the corresponding character of the gene.
  • attrP1 and attrP2 are attributes of a binary position of the parental chromosomes Xp1 and Xp2; attrO is a property of a binary bit of the descendant chromosome Xo1 or Xo2.
  • the coefficient of regression analysis is the study of the functional relationship between two or more variables, where the regression model used in the decision coefficient (R2) is a quantitative measurement of the AC count, passing the model in Figure 4 [30, 36] , and larger R2 values (close to uniform) are considered to be better variability data, as given by equation (4).
  • R 2 is the two given data sequences y i and The decision coefficient, as shown in Figure 5, y i is the implementation data, For dotted data, y i is the observation data for the exchange trade [37]; For the sample data, the estimation process from Mendel-GA; Is the average data of the observed data y i ; k is the sample size of two given data sequences; SS tot total corrected square sum, as shown in equation (5).
  • SS err is the sum of squared residuals, as shown in equation (6) [30, 36], which is the goal of traditional OLS estimation.
  • the purpose of the OLS method is to minimize SS err .
  • R 2 can also measure the variance ratio of independent variables [38], therefore, by comparing the explained variance Total variance Equation (4) can be rewritten as equation (7) from the perspective of variance.
  • R 2 is borrowed from the definition of the fitness function as an observation data sequence. And a measurement statistic of the protocol data sequence between the samples y i generated by the Mendelian genetic algorithm.
  • equation (10) The fitness function defined in this paper is shown in equation (11). The purpose is to find the best parameters by using Mendelian genetic algorithm. Bring R 2 close to maximum.
  • Equations (12) and (13) are the conversion of the German mark to the US dollar and the Japanese yen against the US dollar.
  • ⁇ x i (t) and ⁇ y i (t-1) are differential data sequences obtained during data preprocessing at times t and t-1, as shown in equations (14) and (15).
  • the empirical results use a specially designed MATLAB simulation toolbox based on Mendelian genetic algorithm (the simulation toolbox is the toolbox obtained by the Mendelian genetic algorithm based on the exchange rate analysis method in this application), and then unified by SGALAB. Description [39]. Unless otherwise stated, all results were generated by the parameters of the following genetic algorithms, as shown in Table 2, which used binary encoding/decoding, league selection, single point crossing and mutation in the Mendelian genetic evolution process. The results of the Mendelian genetic algorithm are also compared with those of the standard genetic algorithm and the OLS method.
  • the total number of experiments is 1000.
  • the maximum, minimum, and average values of the fits are used to show the single-run performance of the Mendelian genetic algorithm (fitmaxi, fitmini, and fitmeani).
  • the Mendelian genetic algorithm runs 1000 times of total results, and the average data for fitmaxi, fitmini and fitmeani for all experiments is shown in the figure.
  • the E(*) and variance VAR(*) of the maximum fitness values of all experiments can be used as indicators to evaluate the overall performance of the Mendelian genetic algorithm, as shown in the table. Shown in 3-6.
  • Figures 5 and 6 depict the fitted values of Data-I (DM vs. US Dollar) and Data-II (Japanese Yen vs. US Dollar), respectively.
  • time is defined as the maximum population algebra, and the fitness is set from a rapidly growing state to a stable state under the initial parameters set forth in Table 2.
  • the solid lines in Figures 5 and 6 represent the average of the total fitness, the fitness value is marked as "+", the data at the top is the maximum of the average total fitness, and the data at the bottom is marked as '+'. The minimum value of the average total fitness.
  • Tables 3 and 4 The results of the mean and variance of Data-I (DM vs. USD) are shown in Tables 3 and 4. Specifically, in Table 3, E[ ⁇ 1], E[ ⁇ 2], and E[ ⁇ 3] in the Mendelian genetic algorithm, the standard GA, and the OLS algorithm are all similar. In the comparison of Mendelian genetic algorithm, standard genetic algorithm and OLS E[R 2 ], the Mendelian genetic algorithm E[R 2 ] is the largest, and the standard genetic algorithm E[R 2 ] is the second largest. OLS has the smallest E[R 2 ], which indicates that the Mendelian genetic algorithm is superior to the other two.
  • Table 4 shows the VAR[ ⁇ 1], VAR[ ⁇ 2] and VAR[ ⁇ 3] of the Mendelian genetic algorithm, the standard genetic algorithm and the OLS algorithm, which are slightly different.
  • the VAR[R 2 ] of the Mendelian genetic algorithm is smaller than the standard GA. Genetic algorithms, which means that the results of the Mendelian genetic algorithm stay in a smaller dispersion range than the standard genetic algorithm.
  • the VAR[*] value of the OLS algorithm is zero because it is not solved by traditional numerical methods, and the results are the same in every experiment.
  • the data points represented by 'o' are from the sample data, and the data points represented by '*' are autoregressive models as given in equation (10), which all show how the regression model Estimate exchange rate trading behavior.
  • Estimates for ⁇ 1, ⁇ 2 and ⁇ 3 are given in Tables 3 and 5.
  • ⁇ 1 and ⁇ 2 are in a relatively stable state, and ⁇ 3 shows how the historical data of ⁇ y i (t-1) is estimated.
  • Figures 9 and 10 show how ⁇ 3 affects R 2 , which measures the performance of the regression model.
  • the coefficient of determination is improved compared to the results of Evans and Lyons [37]: where, for Mark/USD, the coefficient of determination is increased to 60% ⁇ 64%.
  • the coefficient of determination has improved a little, from 40% to 40.73%.

Abstract

Disclosed is an exchange rate analysis method based on a genetic algorithm. The method comprises the following steps: Step one: pre-processing exchange rate price data; Step two: inputting the pre-processed exchange rate price data into an exchange rate model and optimizing parameters of the exchange rate model using a fitness function; Step three: verifying the results after optimization, the data results passing the verification; if the verification fails, repeating the second and third steps after Mendelian genetic algorithm processing, until the optimized results pass the verification, and outputting the results. The method of the invention has better search capabilities than the standard genetic algorithm and the conventional least squares method.

Description

一种基于遗传算法的汇率分析方法A Method of Exchange Rate Analysis Based on Genetic Algorithm 技术领域Technical field
本发明涉及计算机软件技术,尤其涉及一种基于遗传算法的汇率分析方法。The invention relates to computer software technology, in particular to a method for analyzing an exchange rate based on a genetic algorithm.
背景技术Background technique
汇率变动模型在国际金融领域里是一项艰巨的任务。在学术研究中的一个强烈共识为宏观经济基本因素在汇率短期波动方面没有解释力[1,2]。相反,微观结构方法着重于信息与宏观基本因素、非基本因素和其在外汇市场的传输,以及对汇率波动的影响。实证证据表明了汇率和其对应的同期订单流之间有着积极的联系,其被定义为买方发起的贸易和销售商发起的贸易之间的净值[3-5]。The exchange rate movement model is a difficult task in the international financial arena. A strong consensus in academic research is that macroeconomic fundamentals have no explanatory power in terms of short-term exchange rate fluctuations [1, 2]. Instead, the microstructural approach focuses on information and macro fundamentals, non-basic factors and their transmission in the foreign exchange market, as well as the impact on exchange rate fluctuations. Empirical evidence suggests a positive link between the exchange rate and its corresponding concurrent order flow, defined as the net value between the buyer-initiated trade and the seller-initiated trade [3-5].
其他进化计算(EC)方法和其他金融研究也提出了对于汇率分析方法的研究。在1996年,Hann和Steurer[6]通过人工神经网络(ANNs)分析了数据频率对于美元的影响(马克预测)。研究表明当月度数据被应用时,ANN并没有极大地提高预测的准确性。在2003年,齐和吴[7]提出了一种多层次前馈网络来预测汇率,计算结果得出的结论是:人工神经网络在样本外预测精度时不能有效地执行。2007年,亚达夫等[8]为了预测自2002年到2004年之间的汇率,运用标准的多层神经网络(SMN)来预测一系列时间序列数据。Other evolutionary computation (EC) methods and other financial studies have also proposed research on exchange rate analysis methods. In 1996, Hann and Steurer [6] analyzed the effect of data frequency on the US dollar (Mark prediction) through artificial neural networks (ANNs). Studies have shown that when monthly data is applied, ANN does not greatly improve the accuracy of the prediction. In 2003, Qi Hewu [7] proposed a multi-level feedforward network to predict the exchange rate. The calculation results concluded that the artificial neural network could not be effectively executed in the out-of-sample prediction accuracy. In 2007, Yadav et al. [8] used a standard multi-layer neural network (SMN) to predict a series of time series data in order to predict the exchange rate between 2002 and 2004.
在2005年,Rimcharoen等人[9]提出了将一种自适应进化策略(ESs)方法用来预测泰国的股票交易,其中GA方法与ES方法被结合应用。自此,再也没有对于ES方法用来预测汇率的进一步研究。In 2005, Rimcharoen et al. [9] proposed an adaptive evolutionary strategy (ESs) method for predicting stock trading in Thailand, in which the GA method and the ES method were combined. Since then, there has been no further study of the ES method used to predict exchange rates.
Worasucheep和Chongstitvatana[10]在2009年提出的差分进化算法(DE)中结合了多种策略的优点,但并没有进一步研究运用DE或DE相关的方法来分析汇率。Worasucheep and Chongstitvatana [10] combined the advantages of multiple strategies in the differential evolution algorithm (DE) proposed in 2009, but did not further study the use of DE or DE related methods to analyze exchange rates.
粒子群优化(PSO)方法是一个群智能算法,这是一个以人群为基础,根据个人的社会行为(颗粒)在一个多维搜索空间之间移动的搜索算法。enortaite和Simutis[11]于2004年,Zhao和Yang[12]于2009年,都运用PSO与人工神经网络结合的方法来预测股市,但没有任何研究是关于运用PSO的方法来预测汇率的。The Particle Swarm Optimization (PSO) method is a group intelligence algorithm, which is a crowd-based search algorithm that moves between a multi-dimensional search space based on individual social behavior (particles). In 2004, Zhao and Yang [12] used both PSO and artificial neural networks to predict the stock market in 2009, but no research has been conducted on the use of PSO to predict exchange rates.
在20世纪70年代,遗传算法被Holland[13]引入密歇根大学。受达尔文进化论的启发,该大学将三个基本遗传算子——选择、交叉和突变应用到人口的问题中。实际问题的特点往往是由一些非相称的性能和竞争的措施或目标,施加了一些限制的决策变量。从所有非劣效性的选择中选择一个合适的折中解决方案不是问题唯一所依赖的,它通常也依赖于决策者的 主观偏好。因此,最终的解决问题的办法是优化和决策过程。In the 1970s, genetic algorithms were introduced to the University of Michigan by Holland [13]. Inspired by Darwin's theory of evolution, the university applies three basic genetic operators—selection, crossover, and mutation—to population problems. The characteristics of actual problems are often imposed by some disproportionate performance and competitive measures or targets that impose some limiting decision variables. Choosing a suitable compromise solution from all non-inferiority choices is not the only problem that depends on it. It usually also depends on the subjective preferences of the decision maker. Therefore, the ultimate solution to the problem is the optimization and decision-making process.
近年来,许多文献中已经提出了运用孟德尔法则的遗传算法的应用领域[14~19]。如图1所示。在以前的研究中[16~19],孟德尔算子往往被插入到突变算子之后。基于突变的概率Pm,基因突变可能会产生不稳定的种群,这将会导致整个遗传过程输出值被污染[20,21]。通常情况下,变异算子是随机通过改变一个二进制位从'0'到'1'产生的,反之亦然。突变的基本方法是能够在给定的概率下,对于改进的解的重新组合,但也有可能会损害主导种群,失去优良的解和收敛趋势[22~24]。孟德尔算子将通过其局部搜索能力,从微进化的观点出发,放大这种不稳定的群落。In recent years, many fields of literature have proposed the application of genetic algorithms using Mendel's law [14-19]. As shown in Figure 1. In previous studies [16-19], the Mendelian operator was often inserted after the mutation operator. Based on the mutation probability Pm, genetic mutations may produce unstable populations, which will result in contamination of the entire genetic process output [20, 21]. Typically, mutation operators are randomly generated by changing a binary bit from '0' to '1', and vice versa. The basic method of mutation is the ability to recombine the improved solution at a given probability, but it may also damage the dominant population and lose good solutions and convergence [22-24]. The Mendelian operator will amplify this unstable community from the perspective of micro-evolution through its local search capabilities.
发明内容Summary of the invention
汇率值的确定一直被视为高频时间序列的交易应用中最具挑战性的[3-5,29,30]。为提供给投资者和研究人员更为精确的预测,一些不同的模型被描述为价格遵循随机游走的现象,这很适合具有随机性和非线性搜索能力的遗传算法。孟德尔遗传算法将被应用到经验性的分析汇率值的研究中,它可以提供一个进化和计算方法以解决汇率值判定的问题。因此,本发明的目的是提供一种基于遗传算法的汇率分析方法,尤其是一种基于孟德尔遗传算法的汇率分析方法。The determination of exchange rate values has long been regarded as the most challenging of the high-frequency time series trading applications [3-5, 29, 30]. In order to provide investors and researchers with more accurate predictions, some different models are described as the phenomenon that prices follow random walks, which is suitable for genetic algorithms with random and nonlinear search capabilities. The Mendelian genetic algorithm will be applied to the empirical analysis of exchange rate values, which can provide an evolutionary and computational method to solve the problem of exchange rate value determination. Therefore, the object of the present invention is to provide a method for analyzing exchange rate based on genetic algorithm, in particular, an exchange rate analysis method based on Mendelian genetic algorithm.
本发明的技术方案为:一种基于遗传算法的汇率分析方法,包括如下步骤:The technical solution of the present invention is: a method for analyzing an exchange rate based on a genetic algorithm, comprising the following steps:
第一步、将汇率价格数据进行预处理;预处理包括去除远离均值的数据,归一化等;The first step is to pre-process the exchange rate price data; the pre-processing includes removing the data away from the mean, normalization, etc.;
第二步、将经过预处理的汇率价格数据输入汇率模型中,采用适应度函数对汇率模型进行参数优化:In the second step, the pre-processed exchange rate price data is input into the exchange rate model, and the fitness function is used to optimize the exchange rate model:
第三步、将优化后的结果进行验证,验证通过输出数据结果,验证未通过,进行孟德尔遗传算法处理后再重复第二步和第三步,直至优化后的结果通过验证,输出结果。The third step is to verify the optimized result, verify that the output data result is verified, the verification fails, and the second and third steps are repeated after the Mendelian genetic algorithm is processed, until the optimized result is verified and the result is output.
第二步中以适应度函数对汇率模型进行参数优化的方法如下:In the second step, the parameters of the exchange rate model are optimized by the fitness function as follows:
确定汇率模型,以订单流来确定汇率,如式(2)Determine the exchange rate model and use the order flow to determine the exchange rate, as in (2)
Figure PCTCN2017118527-appb-000001
Figure PCTCN2017118527-appb-000001
其中,Δ为序列的一阶差分;,S t+1是t+1时间的汇率,S t是即期汇率,它被定义为外国货币的国内价格,见式(1);ε t+1为干扰项,如式(3)所示,表示未来汇率的变化是位于即期汇率与期望的基本因素之间缺口的函数;b为贴现因子;f(x t)为在t时间的基本因素;x t为同时刻的订单流; Where Δ is the first-order difference of the sequence; S t+1 is the exchange rate of t+1 time, and S t is the spot exchange rate, which is defined as the domestic price of the foreign currency, see equation (1); ε t+1 As the interference term, as shown in equation (3), it indicates that the future exchange rate change is a function of the gap between the spot exchange rate and the expected basic factor; b is the discount factor; f(x t ) is the basic factor at time t ;x t is a simultaneous order flow;
Figure PCTCN2017118527-appb-000002
Figure PCTCN2017118527-appb-000002
Figure PCTCN2017118527-appb-000003
Figure PCTCN2017118527-appb-000003
q为今后的定期因子,
Figure PCTCN2017118527-appb-000004
为市场决策者对于在t时间之q段时间的基本因素的期望,在t时间具有信息条件,t+q是表示时间段,例如,t=1秒,q=5秒。
Figure PCTCN2017118527-appb-000005
对应的是t+1时刻,
Figure PCTCN2017118527-appb-000006
对应的是t时刻,括号里面的x t+q+1对应的是x的t+q+1时刻,x t+q对应的是x的t+q时刻,其实是表示x这个序列里面,在t时刻,向后取t+q+1个数据来计算。
q is the future periodic factor,
Figure PCTCN2017118527-appb-000004
For the market decision maker's expectation of the basic factors of the q-time at t time, there is an information condition at time t, and t+q is a time period, for example, t = 1 second, q = 5 seconds.
Figure PCTCN2017118527-appb-000005
Corresponding to the time t+1,
Figure PCTCN2017118527-appb-000006
Corresponding to the time t, the x t+q+1 in the brackets corresponds to the t+q+1 moment of x, and x t+q corresponds to the t+q moment of x, which is actually the sequence of x. At time t, t+q+1 data is taken backward to calculate.
采用基于孟德尔算子的遗传算法对式(2)进行迭代计算:Iterative calculation of equation (2) is performed using a genetic algorithm based on Mendelian operator:
A、初始化各个参数A, initialize each parameter
B、对所有变量进行编码;B. Encode all variables;
C、进行遗传算法的选择操作;C. Perform a selection operation of the genetic algorithm;
D、采用孟德尔算子进行计算;D, using the Mendelian operator for calculation;
E、进行遗传算法的交叉操作;E. Perform cross operation of the genetic algorithm;
F、进行遗传算法的突变操作;F. performing a mutation operation of the genetic algorithm;
H、解码:重复迭代A-H步骤获得最优解,采用适应性函数评价解码后最优解是否满足此次优化计算的要求,若满足要求,获取最终优化解集;否则,修改运行参数,重新计算直到获取最终优化解集。H. Decoding: Repeat the iterative AH step to obtain the optimal solution, and use the adaptive function to evaluate whether the optimal solution after decoding meets the requirements of the optimization calculation. If the requirements are met, the final optimized solution set is obtained; otherwise, the operating parameters are modified and recalculated. Until the final optimization solution set is obtained.
所述编码为二进制编码。The encoding is a binary encoding.
用于评价解码后最优解的适应度函数如式(10)和(11),当获得的最优解能够使R 2接近最大时,满足优化计算的要求: The fitness function for evaluating the decoded optimal solution is as shown in equations (10) and (11). When the obtained optimal solution can make R 2 close to the maximum, the requirements of the optimization calculation are satisfied:
Figure PCTCN2017118527-appb-000007
Figure PCTCN2017118527-appb-000007
Figure PCTCN2017118527-appb-000008
Figure PCTCN2017118527-appb-000008
其中,β 1,β 2和β 3分别是3个系数,xi定义为一种外汇所被观测到的COF值(累计订单流),yi定义为外汇与本国币通过log(/)所得到的比例。本国币如下式: Where β 1 , β 2 and β 3 are 3 coefficients, respectively, xi is defined as a COF value observed in foreign exchange (cumulative order flow), and yi is defined as the foreign exchange and local currency obtained by log(/). proportion. The national currency is as follows:
Y i=log(外汇/本国币)×10000 Y i =log (foreign exchange / local currency) × 10000
Δx i(t)和Δy i(t-1)是在时间t和t-1的数据预处理过程中得到的差分数据序列,如方程(14)和(15)所示。 Δx i (t) and Δy i (t-1) are differential data sequences obtained during data preprocessing at times t and t-1, as shown in equations (14) and (15).
Δx i(t)=x i(t)x i(t-1) (14) Δx i (t)=x i (t)x i (t-1) (14)
Δy i(t-1)=y i(t-1)-y i(t-2) ( 15) Δy i (t-1)=y i (t-1)-y i (t-2) ( 15 )
孟德尔算子的计算方法如下;The calculation method of the Mendelian operator is as follows;
父代种群中的每个染色体位被分配一个属性,有三个属性类型的基因:D属性代表占主导地位,纯种和优势基因,R属性代表隐性的,纯种的和隐性基因和H属性代表混合,杂交基因;Each chromosomal position in the parent population is assigned an attribute, and there are three attribute types: D attribute represents dominant, pure and dominant genes, and R attributes represent recessive, pure and recessive genes and H Attributes represent hybrid, hybrid genes;
任选父代种群中的两条染色体作为亲代染色体进行交叉试验获得子代染色体,若亲代染色体位的属性都为D,则子代染色体位的属性为D;若亲代染色体位的属性都为R,则子代染色体位的属性为R;若一条亲代染色体位的属性为R,另一条亲代染色体位的属性为D,则子代染色体位的属性为H;若一条亲代染色体位的属性为D,另一条亲代染色体位的属性为H,则子代染色体位50%为D,50%为H;若一条亲代染色体位的属性为R,另一条亲代染色体位的属性为H,则子代染色体位50%为R,50%为H;若一条亲代染色体位的属性为H,另一条亲代染色体位的属性为H,则子代染色体位25%为R,25%为D,50%为H。与表1代表孟德尔遗传算子的算法。The two chromosomes in the optional parent population are cross-tested as the parental chromosome to obtain the progeny chromosome. If the attribute of the parental chromosomal location is D, the attribute of the chromosomal position of the offspring is D; if the attributes of the parental chromosomal location are R The attribute of the chromosomal position of the progeny is R; if the attribute of one parent chromosomal position is R and the attribute of the other parent chromosomal position is D, the attribute of the chromosomal position of the progeny is H; if the attribute of a parent chromosomal position is D The attribute of another parental chromosomal location is H, then the chromosomal position of the offspring is 50% D, 50% is H; if the attribute of one parent chromosomal location is R and the attribute of the other parent chromosomal location is H, then the daughter chromosome The position 50% is R, 50% is H; if the parental chromosomal location is H and the other parental chromosomal location is H, then the progeny chromosomal location is 25% R, 25% D, 50% H . And Table 1 represents the algorithm of the Mendelian genetic operator.
父代种群中的每个染色体位被随机分配一个属性。Each chromosomal bit in the parent population is randomly assigned an attribute.
附图说明DRAWINGS
图1是基于计算智能辅助设计框架的汇率分析方法;Figure 1 is an exchange rate analysis method based on a computational intelligent aided design framework;
图2是孟德尔遗传算法工作流程图Figure 2 is a working flow chart of Mendelian genetic algorithm
图3是孟德尔算子:亲代到子代;Figure 3 is a Mendelian operator: parent to child;
图4是判定系数R 2的定义; Figure 4 is a definition of the decision coefficient R 2 ;
图5是原始数据预处理过程和适应度函数生成;Figure 5 is a raw data preprocessing process and fitness function generation;
图6是日元对美元的进化拟合数据;Figure 6 is the evolutionary fitting data of the yen against the US dollar;
图7是数据1的抽样和建模(马克对美元);Figure 7 is the sampling and modeling of data 1 (Mark vs. US dollar);
图8是数据2的抽样和建模(日元对美元);Figure 8 is the sampling and modeling of data 2 (yen against US dollars);
图9是β3与R 2的关系曲线(β 3VS.Δlog(DM/USD)当(β 1=-4.9297,β 2=0.2211)) Figure 9 is a plot of β3 versus R 23 VS.Δlog(DM/USD) when (β 1 =-4.9297, β 2 =0.2211))
图10是β3与R 2的关系曲线(β 3VS.Δlog(JPY/USD)当(β 1=-4.9625,β 2=0.3185)) Figure 10 is a plot of β3 vs. R 23 VS.Δlog(JPY/USD) when (β 1 =-4.9625, β 2 =0.3185))
具体实施方式Detailed ways
近年来,许多文献中已经提出了运用孟德尔法则的遗传算法的应用领域[14~19]。本申请提出了一种新的基于孟德尔遗传算法的模型,该模型与标准遗传算法以及之前研究的区别有以下几个方面:In recent years, many fields of literature have proposed the application of genetic algorithms using Mendel's law [14-19]. This application proposes a new model based on Mendelian genetic algorithm, which differs from the standard genetic algorithm and previous research in the following aspects:
(1)在本申请中,孟德尔算子在选择算子之后插入,这可以有效的利用孟德尔算子局部搜索能力的优势,如图2示。在以前的研究[16~19],一般的孟德尔算子往往被插入到突变算子之后。基于突变的概率Pm,基因突变可能会产生不稳定的种群,这将会导致整个遗传过程输出值被污染[20,21]。通常情况下,变异算子是随机通过改变一个二进制位从'0'到'1'产生的,反之亦然。突变的基本方法是能够在给定的概率下,对于改进的解的重新组合,但也有可能会损害主导种群,失去优良的解和收敛趋势[22~24]。孟德尔算子将通过其局部搜索能力,从微进化的观点出发,放大这种不稳定的群落。(1) In the present application, the Mendelian operator is inserted after selecting the operator, which can effectively utilize the advantage of the Mendelian operator's local search ability, as shown in FIG. In previous studies [16-19], the general Mendelian operator was often inserted after the mutation operator. Based on the mutation probability Pm, genetic mutations may produce unstable populations, which will result in contamination of the entire genetic process output [20, 21]. Typically, mutation operators are randomly generated by changing a binary bit from '0' to '1', and vice versa. The basic method of mutation is the ability to recombine the improved solution at a given probability, but it may also damage the dominant population and lose good solutions and convergence [22-24]. The Mendelian operator will amplify this unstable community from the perspective of micro-evolution through its local search capabilities.
(2)孟德尔遗传算法是以孟德尔算子为特征,其很容易与多目标的GA过程同步,如多目标遗传算法(MOGA)[25],小生境遗传算法(NPGA)[26],非支配排序遗传算法(NSGA)[27]非支配排序遗传算法II(NSGAII)[28]。(2) Mendelian genetic algorithm is characterized by Mendelian operators, which are easily synchronized with multi-objective GA processes, such as multi-objective genetic algorithm (MOGA) [25], niche genetic algorithm (NPGA) [26], Non-dominated sorting genetic algorithm (NSGA) [27] Non-dominated sorting genetic algorithm II (NSGAII) [28].
(3)标准遗传算法是基于达尔文的理论,这是由差别生存和成功繁殖为特征。在孟德尔遗传算法中,孟德尔定律所指出的相等的配子,其结合于随机形成等概率的受精卵和等概率的繁殖植物的过程中,这也贯穿于生命周期的各个阶段。(3) The standard genetic algorithm is based on Darwin's theory, which is characterized by differential survival and successful reproduction. In Mendelian genetic algorithm, the equal gametes pointed out by Mendel's law are combined in the process of randomly forming equal-proportioned fertilized eggs and equal-probative reproductive plants, which also run through all stages of the life cycle.
如图1所示,基于孟德尔遗传算法的汇率分析方法具有如下几个优点:(1)调动计算资源;(2)减少计算成本。As shown in Figure 1, the exchange rate analysis method based on Mendelian genetic algorithm has the following advantages: (1) mobilizing computing resources; (2) reducing computational costs.
汇率值的确定一直被视为高频时间序列的交易应用中最具挑战性的。[3-5,29,30]为提供给投资者和研究人员更为精确的预测,一些不同的模型被描述为价格遵循随机游走的现象,这很适合具有随机性和非线性搜索能力的遗传算法。孟德尔遗传算法将被应用到经验性的分析汇率值的研究中,它可以提供一个进化和计算方法以解决汇率值判定的问题。具体来说,是尝试比较孟德尔遗传算法和传统的估值方法,例如,普通最小二乘法(OLS)或线性最小二乘(LS)估计。OLS和LS是用来估计在线性回归模型中未知参数的方法。这些方法使所观 察到的响应中的数据集之间的平方距离的总和最小化,以及预测线性近似的响应。相比较于OLS或LS,孟德尔遗传算法,通过进化过程,可以处理线性和非线性模型,且具有较高的复杂性,而且它是弹性的,可以作为积极优化求解方法从而进行模型之间的转换。The determination of exchange rate values has long been considered the most challenging of trading applications for high frequency time series. [3-5, 29, 30] In order to provide investors and researchers with more accurate predictions, some different models are described as the phenomenon that prices follow random walks, which is suitable for random and non-linear search capabilities. Genetic algorithm. The Mendelian genetic algorithm will be applied to the empirical analysis of exchange rate values, which can provide an evolutionary and computational method to solve the problem of exchange rate value determination. Specifically, attempts are made to compare Mendelian genetic algorithms with traditional estimation methods, such as ordinary least squares (OLS) or linear least squares (LS) estimates. OLS and LS are methods used to estimate unknown parameters in a linear regression model. These methods minimize the sum of the squared distances between the data sets in the observed response and predict the response of the linear approximation. Compared with OLS or LS, Mendelian genetic algorithm can process linear and nonlinear models through evolutionary process, and has high complexity, and it is elastic and can be used as a positive optimization solution method to carry out between models. Conversion.
1、汇率确定模型1. Exchange rate determination model
2001年,Killeen等人[4]发现的汇率与累计订单流(COF)之间的协整关系,这是在所有微观结构模型价格最接近的决定因素。在2003年佩恩[5]使用非标准向量自相关来考察订单流与汇率之间的因果关系。In 2001, Killeen et al. [4] found a cointegration relationship between the exchange rate and the cumulative order flow (COF), which is the closest determinant of the price of all microstructure models. In 2003, Payne [5] used non-standard vector autocorrelation to examine the causal relationship between order flow and exchange rate.
订单流被定义为净买方和卖方的订单流货币的交易,这是作为衡量净买入压力[3]。根据之前的报道[1,4,5,31,32],订单流是与一组广泛的当前和预期的宏观经济基本面密切相关的,这样的订单流被当做对汇率的变动的一个有用预测。The order flow is defined as the net buyer and seller's order flow currency transactions, which is used as a measure of net buying pressure [3]. According to previous reports [1, 4, 5, 31, 32], order flows are closely related to a broad set of current and expected macroeconomic fundamentals, and such order flows are used as a useful predictor of exchange rate movements. .
微观结构的方法是使用订单流来代理反映汇率波动的信息。Obstfeld和Rogoff[1]在2000年做了一个深入的研究,表明订单流包含的信息是有关汇率变动。从传统的汇率理论出发,汇率可被表示为现在和预期的基本因素的贴现现值(见式1)。[1,4,5,32,33]The microstructural approach uses an order flow to proxy information that reflects exchange rate fluctuations. Obstfeld and Rogoff [1] conducted an in-depth study in 2000, indicating that the order flow contains information about exchange rate movements. From the traditional exchange rate theory, the exchange rate can be expressed as the discounted present value of the current and expected basic factors (see Equation 1). [1,4,5,32,33]
Figure PCTCN2017118527-appb-000009
Figure PCTCN2017118527-appb-000009
其中,S t是即期汇率,它被定义为外国货币的国内价格,b为贴现因子;q为今后的定期因子,f(x t)为在t时间的基本因素;x t为同时刻的订单流;
Figure PCTCN2017118527-appb-000010
为市场决策者对于在t时间之q段时间的基本因素的期望,在t时间具有信息条件.
Where, S t is the spot exchange rate, which is defined as the domestic price of the foreign currency, b is the discount factor; q is the future periodic factor, f(x t ) is the basic factor at time t; x t is simultaneously engraved Order flow
Figure PCTCN2017118527-appb-000010
For the market decision makers' expectations of the basic factors of the q-time at t time, there are information conditions at time t.
具体而言,即期汇率S t和同期订单流x t之间的关系,可以写成如下形式,通过迭代式(2)。 Specifically, the relationship between the spot exchange rate S t and the order flow x t at the same time can be written as follows, by iterating (2).
Figure PCTCN2017118527-appb-000011
Figure PCTCN2017118527-appb-000011
其中,among them,
Δ为序列的一阶差分;ε t为干扰项,如式(3)所示[34],这表明未来汇率的变化是位于即期汇率与期望的基本因素之间缺口的函数。这也是一个在长期对基本因素的预期变化。 Δ is the first-order difference of the sequence; ε t is the interference term, as shown in equation (3) [34], which indicates that the future exchange rate change is a function of the gap between the spot exchange rate and the expected basic factor. This is also an expected change in the fundamental factors in the long run.
Figure PCTCN2017118527-appb-000012
Figure PCTCN2017118527-appb-000012
捕捉购买外币为外国货币的需求增加,导致外币的升值和国内货币贬值,即期汇率价格得到增加。我们预测即期汇率和相应的订单流呈正相关关系。The increase in demand for foreign currency purchases for foreign currencies has led to an increase in foreign currency and a depreciation of the domestic currency, and the spot exchange rate has increased. We predict that the spot exchange rate is positively correlated with the corresponding order flow.
2、运用孟德尔原则的遗传算法2. Genetic algorithm using the Mendelian principle
孟德尔的原则(有些生物学家将孟德尔的原则称之为法则)运用于传统自然环境中的基 因遗传。孟德尔的结论在两个原则可以概括这些豌豆实验。[14,15,35]Mendel's principles (some biologists refer to Mendel's principles as rules) apply to genetic inheritance in traditional natural environments. Mendel's conclusions can be summarized in two principles for these pea experiments. [14,15,35]
(i)分离的原则-在生物的体细胞中,控制同一性状的遗传因子成对存在,不相融合;在形成配子时,成对的遗传因子发生分离,分离后的遗传因子分别进入不同的配子中,随配子遗传给后代。(i) Principle of separation - In the somatic cells of living organisms, genetic factors controlling the same trait are paired and not fused; when gametes are formed, the paired genetic factors are separated, and the isolated genetic factors enter different In gametes, the gametes are inherited to the offspring.
(ii)自由组合原则-控制不同性状的遗传因子的分离和组合是互不干扰的;在形成配子时,决定同一性状的成对的遗传因子彼此分离,决定不同性状的遗传因子自由组合。(ii) Free combination principle - The separation and combination of genetic factors controlling different traits do not interfere with each other; in the formation of gametes, the paired genetic factors that determine the same trait are separated from each other, and the genetic factors that determine different traits are freely combined.
如图3中所示,我们已包含了孟德遗传法则在GA中的整体进化框架,它可以从微观进化的角度准确的描述在遗传算法过程中细胞分裂的遗传过程。一个孟德尔遗传算法的方法,可以被定义为当一个孟德尔遗传算子引入遗传算法中,然后应用最优化研究和参数估计来建立汇率值确定的回归模型。As shown in Figure 3, we have included the overall evolutionary framework of the Mendelian genetic law in GA, which can accurately describe the genetic process of cell division in the process of genetic algorithm from the perspective of micro-evolution. A Mendelian genetic algorithm can be defined as a Mendelian genetic operator introduced into the genetic algorithm, and then the optimization study and parameter estimation are applied to establish a regression model for the determination of exchange rate values.
3、孟德尔算子3, Mendelian operator
在本文中,孟德尔遗传算法的编码/解码操作是利用二进制编码方法。通常情况下,所有位(基因)的染色体可以使用两个二进制编码字母'1'和'0',其中,“1”代表的基因被激活,而'0'则表示无效。In this paper, the encoding/decoding operation of the Mendelian genetic algorithm utilizes a binary encoding method. Normally, all bits (genes) of the chromosome can use two binary-encoded letters '1' and '0', where the gene represented by "1" is activated and '0' is invalid.
如图3中所示,'0'和'1'是两个位的二进制值编码的染色体,染色体的长度,或二进制数,都是孟德尔遗传算子,被称作孟德尔年龄的百分比(MP),其中,MP是一个比例因子,包括平衡亲本染色体二进制数长度。孟德尔算子根据每个二进制数的属性,产生的来自亲本染色体的后代的染色体Xo1和Xo2,这用Punnet-aquare来定义[14,15]。两个亲本染色体Xp1和Xp2可以生成一个子染色体的Xo1,如图3示,为获得的第二个子代的Xo2染色体,产生过程需要反复进行。As shown in Figure 3, '0' and '1' are the binary values of the two bits, the length of the chromosome, or the binary number, which are all Mendelian genetic operators, known as the percentage of Mendelian age ( MP), where MP is a scale factor that includes the length of the balanced parent chromosome binary number. The Mendelian operator produces chromosomes Xo1 and Xo2 from the descendants of the parental chromosome based on the properties of each binary number, which is defined by Punnet-aquare [14, 15]. The two parental chromosomes Xp1 and Xp2 can generate Xo1 of a sub-chromosome, as shown in Figure 3. For the second progeny of the Xo2 chromosome obtained, the production process needs to be repeated.
正如表1中所示,在针对孟德尔遗传算子的Punnet-square中,每个染色体位被分配一个属性,其中包括基因相应的字符的类型。有三个属性类型的基因:D(占主导地位,纯种和优势基因),R(隐性的,纯种的和隐性基因)和H(混合,杂交基因)。attrP1和attrP2是亲本染色体Xp1和Xp2一个二进制位的属性;attrO的是子代染色体Xo1或Xo2一个二进制位的属性。As shown in Table 1, in Punnet-square for the Mendelian genetic operator, each chromosomal bit is assigned an attribute that includes the type of the corresponding character of the gene. There are three types of genes: D (dominant, pure and dominant), R (recessive, pure and recessive) and H (mixed, hybrid). attrP1 and attrP2 are attributes of a binary position of the parental chromosomes Xp1 and Xp2; attrO is a property of a binary bit of the descendant chromosome Xo1 or Xo2.
表1. 1位染色体的旁氏表Table 1. Parallel table of chromosome 1
Figure PCTCN2017118527-appb-000013
Figure PCTCN2017118527-appb-000013
Figure PCTCN2017118527-appb-000014
Figure PCTCN2017118527-appb-000014
4、适应度函数的定义4. Definition of fitness function
4.1.测量的拟合优度-判定系数4.1. Goodness of fit for measurement - decision coefficient
回归分析的系数是两个或两个以上变量之间的功能关系的研究,其中判定系数(R2)中所采用的回归模型是一个数量测量交流计数,通过图4中的模型[30,36],和较大的R2值(接近统一)被认为是更好的可变性的数据,如方程(4)给出。The coefficient of regression analysis is the study of the functional relationship between two or more variables, where the regression model used in the decision coefficient (R2) is a quantitative measurement of the AC count, passing the model in Figure 4 [30, 36] , and larger R2 values (close to uniform) are considered to be better variability data, as given by equation (4).
Figure PCTCN2017118527-appb-000015
Figure PCTCN2017118527-appb-000015
其中,among them,
R 2是两个给定的数据序列y i
Figure PCTCN2017118527-appb-000016
的判定系数,如图5所示,y i为实现数据,
Figure PCTCN2017118527-appb-000017
为虚线数据,y i是兑换贸易的观测数据[37];
Figure PCTCN2017118527-appb-000018
为样本数据,来自于Mendel-GA的估过程;
Figure PCTCN2017118527-appb-000019
为所观察到的数据y i的平均值数据;k为两个给定数据序列的样本大小;SS tot总校正平方和,如式(5)中所示。
R 2 is the two given data sequences y i and
Figure PCTCN2017118527-appb-000016
The decision coefficient, as shown in Figure 5, y i is the implementation data,
Figure PCTCN2017118527-appb-000017
For dotted data, y i is the observation data for the exchange trade [37];
Figure PCTCN2017118527-appb-000018
For the sample data, the estimation process from Mendel-GA;
Figure PCTCN2017118527-appb-000019
Is the average data of the observed data y i ; k is the sample size of two given data sequences; SS tot total corrected square sum, as shown in equation (5).
Figure PCTCN2017118527-appb-000020
Figure PCTCN2017118527-appb-000020
其中,among them,
SS err是残差平方和,作为式(6)中所示[30,36],这是传统OLS估计的目标,OLS方法的目的就是最小化SS errSS err is the sum of squared residuals, as shown in equation (6) [30, 36], which is the goal of traditional OLS estimation. The purpose of the OLS method is to minimize SS err .
Figure PCTCN2017118527-appb-000021
Figure PCTCN2017118527-appb-000021
同时,R 2还可以测量独立变量的方差比例[38],因此,通过比较被解释的方差
Figure PCTCN2017118527-appb-000022
与总方差的
Figure PCTCN2017118527-appb-000023
方程(4)从方差的角度出发可以被重新写为方程式(7)。
At the same time, R 2 can also measure the variance ratio of independent variables [38], therefore, by comparing the explained variance
Figure PCTCN2017118527-appb-000022
Total variance
Figure PCTCN2017118527-appb-000023
Equation (4) can be rewritten as equation (7) from the perspective of variance.
Figure PCTCN2017118527-appb-000024
Figure PCTCN2017118527-appb-000024
其中,among them,
Figure PCTCN2017118527-appb-000025
为被解释变量,作为模型预测中的变量如方程(8)所示。
Figure PCTCN2017118527-appb-000025
As the explanatory variable, as a variable in the model prediction, as shown in equation (8).
Figure PCTCN2017118527-appb-000026
Figure PCTCN2017118527-appb-000026
Figure PCTCN2017118527-appb-000027
为总变量,如方程(9)中所示。
Figure PCTCN2017118527-appb-000027
For the total variable, as shown in equation (9).
Figure PCTCN2017118527-appb-000028
Figure PCTCN2017118527-appb-000028
4.2回归模型的拟合函数4.2 The fitting function of the regression model
为了评估孟德尔遗传算法在具有现有的汇率和COF功能情况下的性能,R 2为适应度函数的定义被借用,它作为观测数据序列
Figure PCTCN2017118527-appb-000029
和孟德尔遗传算法生成的样本y i之间的协议数据序列的一个测量统计。利用R 2所应用的基本思想,汇率和COF的联系可以通过方程(10)来描述,本文定义的适应度函数如式(11)所示,其目的是利用孟德尔遗传算法找到最好的参数使R 2接近最大。
In order to evaluate the performance of the Mendelian genetic algorithm with existing exchange rate and COF functions, R 2 is borrowed from the definition of the fitness function as an observation data sequence.
Figure PCTCN2017118527-appb-000029
And a measurement statistic of the protocol data sequence between the samples y i generated by the Mendelian genetic algorithm. Using the basic idea applied by R 2 , the relationship between exchange rate and COF can be described by equation (10). The fitness function defined in this paper is shown in equation (11). The purpose is to find the best parameters by using Mendelian genetic algorithm. Bring R 2 close to maximum.
Figure PCTCN2017118527-appb-000030
Figure PCTCN2017118527-appb-000030
Figure PCTCN2017118527-appb-000031
Figure PCTCN2017118527-appb-000031
斜率系数和历史数据,其中,Xi定义为一种外汇所被观测到的COF值,Yi定义为外汇与美元同通过log(/)所得到的比例。式(12)和(13)为德国马克对美元和日元对美元的数据换算。Slope coefficient and historical data, where Xi is defined as the COF value observed for a foreign exchange, and Yi is defined as the ratio of foreign exchange to the US dollar through log(/). Equations (12) and (13) are the conversion of the German mark to the US dollar and the Japanese yen against the US dollar.
Figure PCTCN2017118527-appb-000032
Figure PCTCN2017118527-appb-000032
Figure PCTCN2017118527-appb-000033
Figure PCTCN2017118527-appb-000033
Δx i(t)和Δy i(t-1)是在时间t和t-1的数据预处理过程中得到的差分数据序列,如方程(14)和(15)所示。 Δx i (t) and Δy i (t-1) are differential data sequences obtained during data preprocessing at times t and t-1, as shown in equations (14) and (15).
Δx i(t)=x i(t)-x i(t-1)   (14) Δx i (t)=x i (t)-x i (t-1) (14)
Δy i(t-1)=y i(t-1)-yi (t-2)   (15) Δy i (t-1)=y i (t-1)-yi ( t-2) (15)
可以分别通过等式(4)来看出,数值仿真通过
Figure PCTCN2017118527-appb-000034
Figure PCTCN2017118527-appb-000035
产生了微小的误差,该误差可能造成精度的损失。出于对计算精度的保护,通过缩放的比例因子,数值误差的计算精度可以被缩放到可接受的数值范围。比例因子可以根据具体情况逐一选择。如图中6所示,为了降低数值仿真误差产生的可能性,数据序列y i一直被多次缩放到一个数量。在DM对美元和日元对美元的情况下,一个缩放因子(常数)10,000。然后,生成Δx i(t)和Δy i(t)的差分数据序列,接下来的步骤是通过等式(11)产生拟合函数。
Can be seen by equation (4), numerical simulation passed
Figure PCTCN2017118527-appb-000034
with
Figure PCTCN2017118527-appb-000035
A small error is produced which may result in a loss of accuracy. For the protection of the calculation accuracy, the accuracy of the numerical error can be scaled to an acceptable range of values by the scale factor of the scaling. The scale factor can be selected one by one according to the specific situation. As shown in Figure 6, in order to reduce the possibility of numerical simulation errors, the data sequence y i is always scaled multiple times to a quantity. In the case of DM versus USD and JPY against the US dollar, a scaling factor (constant) of 10,000. Then, a differential data sequence of Δx i (t) and Δy i (t) is generated, and the next step is to generate a fitting function by equation (11).
1.实证结果和结论1. Empirical results and conclusions
表2.孟德尔遗传算法的经验参数Table 2. Empirical parameters of the Mendelian genetic algorithm
Figure PCTCN2017118527-appb-000036
Figure PCTCN2017118527-appb-000036
原始的汇率数据来自Evans和Lyons采集于2002年,其中有两组交易数据:The original exchange rate data was collected by Evans and Lyons in 2002, with two sets of transaction data:
实证结果均使用特别设计的基于孟德尔遗传算法的MATLAB仿真工具箱(该仿真工具箱即该申请中的基于孟德尔遗传算法的汇率分析方法经过编程获得的工具箱),之后将用SGALAB来统一说明[39]。除非另有说明,否则所有的结果都通过下列遗传算法的参数产生,如表2所示,在孟德尔遗传进化过程中都采用了二进制编码/解码,联赛选择,单点交叉和变异。孟德尔遗传算法的结果也与标准遗传算法和OLS方法的结果进行了比较。The empirical results use a specially designed MATLAB simulation toolbox based on Mendelian genetic algorithm (the simulation toolbox is the toolbox obtained by the Mendelian genetic algorithm based on the exchange rate analysis method in this application), and then unified by SGALAB. Description [39]. Unless otherwise stated, all results were generated by the parameters of the following genetic algorithms, as shown in Table 2, which used binary encoding/decoding, league selection, single point crossing and mutation in the Mendelian genetic evolution process. The results of the Mendelian genetic algorithm are also compared with those of the standard genetic algorithm and the OLS method.
如表2所示,总的实验数为1000,对于拟合结果,拟合的最大值,最小值和平均值用来 显示孟德尔遗传算法的单次运行性能(fitmaxi,fitmini和fitmeani),而孟德尔遗传算法运行1000次的总结果,所有实验的fitmaxi,fitmini和fitmeani的平均数据如图中所示。As shown in Table 2, the total number of experiments is 1000. For the fitting results, the maximum, minimum, and average values of the fits are used to show the single-run performance of the Mendelian genetic algorithm (fitmaxi, fitmini, and fitmeani). The Mendelian genetic algorithm runs 1000 times of total results, and the average data for fitmaxi, fitmini and fitmeani for all experiments is shown in the figure.
与此同时,对于孟德尔遗传算法全部的1000次实验,所有实验的最大适应度值的E(*)和方差VAR(*)可作为指标,用来评估孟德尔遗传算法的整体性能,如表3-6中所示。At the same time, for all 1000 experiments of the Mendelian genetic algorithm, the E(*) and variance VAR(*) of the maximum fitness values of all experiments can be used as indicators to evaluate the overall performance of the Mendelian genetic algorithm, as shown in the table. Shown in 3-6.
图5和图6分别描述了Data-I(DM相对于美元)和Data-II(日元对美元)评价过程中的拟合值。在整个进化中,时间被定义为最大种群代数,适应度在表2所示的初始参数的设定下,从一个快速增长的状态到达一个稳定的状态。图5和图6中的实线表示是总适应度的平均值,适应度值标记为“+”,在顶端的数据为平均总适应度的最大值,在底部的数据标记为'+'是平均总适应度的最小值。Figures 5 and 6 depict the fitted values of Data-I (DM vs. US Dollar) and Data-II (Japanese Yen vs. US Dollar), respectively. Throughout evolution, time is defined as the maximum population algebra, and the fitness is set from a rapidly growing state to a stable state under the initial parameters set forth in Table 2. The solid lines in Figures 5 and 6 represent the average of the total fitness, the fitness value is marked as "+", the data at the top is the maximum of the average total fitness, and the data at the bottom is marked as '+'. The minimum value of the average total fitness.
Data-I(DM对USD)的均值和方差的结果在表3和表4中所示。具体而言,在表3中,孟德尔遗传算法、标准GA和OLS算法中的E[β1],E[β2]和E[β3],三者都是相接近的。在孟德尔遗传算法,标准遗传算法和OLS三者E[R 2]的比较中,孟德尔遗传算法的E[R 2]是最大的,标准遗传算法的E[R 2]是第二大,OLS的E[R 2]最小,这表明孟德尔遗传算法优于其他两个。 The results of the mean and variance of Data-I (DM vs. USD) are shown in Tables 3 and 4. Specifically, in Table 3, E[β1], E[β2], and E[β3] in the Mendelian genetic algorithm, the standard GA, and the OLS algorithm are all similar. In the comparison of Mendelian genetic algorithm, standard genetic algorithm and OLS E[R 2 ], the Mendelian genetic algorithm E[R 2 ] is the largest, and the standard genetic algorithm E[R 2 ] is the second largest. OLS has the smallest E[R 2 ], which indicates that the Mendelian genetic algorithm is superior to the other two.
表4显示了孟德尔遗传算法、标准遗传算法和OLS算法的VAR[β1],VAR[β2]和VAR[β3],三者略有不同,孟德尔遗传算法的VAR[R 2]小于标准GA遗传算法,这意味着,孟德尔遗传算法的结果相比较于标准遗传算法停留在一个更小的分散范围内。OLS算法的VAR[*]值是零,因为它不是由传统的数值方法所解决的,其结果在每一个实验中都相同。 Table 4 shows the VAR[β1], VAR[β2] and VAR[β3] of the Mendelian genetic algorithm, the standard genetic algorithm and the OLS algorithm, which are slightly different. The VAR[R 2 ] of the Mendelian genetic algorithm is smaller than the standard GA. Genetic algorithms, which means that the results of the Mendelian genetic algorithm stay in a smaller dispersion range than the standard genetic algorithm. The VAR[*] value of the OLS algorithm is zero because it is not solved by traditional numerical methods, and the results are the same in every experiment.
同样的,表5和表6中所示的Data-II(日元对美元的)的平均值和方差的结果,它可以用来证明孟德尔遗传算法比标准的遗传算法和OLS法具有更好的搜索能力。Similarly, the results of the mean and variance of Data-II (Japanese yen versus US dollar) shown in Tables 5 and 6, can be used to prove that Mendelian genetic algorithm is better than standard genetic algorithm and OLS method. Search ability.
如图7和图8所示,用'o'代表的数据点来自样本数据,用'*'代表的数据点是如方程(10)所给出的自回归模型,它们都显示了回归模型如何估计汇率交易行为。对于β1,β2和β3的估计在表3和表5中给出。根据孟德尔GA方法得到的仿真结果所示,β1和β2处于一个相对稳定的状态,β3显示了Δy i(t-1)的历史数据如何估
Figure PCTCN2017118527-appb-000037
图9和图10显示了β3是如何对R 2产生影响的,其衡量了回归模型的性能。如表3和表5所示,相比较于Evans和Lyons的研究结果[37],判定系数得到提高:其中,对于马克/美元,判定系数得到提高到60%→64%,
As shown in Fig. 7 and Fig. 8, the data points represented by 'o' are from the sample data, and the data points represented by '*' are autoregressive models as given in equation (10), which all show how the regression model Estimate exchange rate trading behavior. Estimates for β1, β2 and β3 are given in Tables 3 and 5. According to the simulation results obtained by the Mendelian GA method, β1 and β2 are in a relatively stable state, and β3 shows how the historical data of Δy i (t-1) is estimated.
Figure PCTCN2017118527-appb-000037
Figures 9 and 10 show how β3 affects R 2 , which measures the performance of the regression model. As shown in Tables 3 and 5, the coefficient of determination is improved compared to the results of Evans and Lyons [37]: where, for Mark/USD, the coefficient of determination is increased to 60% → 64%.
对于日元/美元,判定系数得到一点点改善,从40%→40.73%。For the yen/dollar, the coefficient of determination has improved a little, from 40% to 40.73%.
表3.数据1(马克对美元)的孟德尔遗传算法下的平均值Table 3. Average of the Mendelian genetic algorithm for data 1 (Mark vs. US dollar)
Figure PCTCN2017118527-appb-000038
Figure PCTCN2017118527-appb-000038
Figure PCTCN2017118527-appb-000039
Figure PCTCN2017118527-appb-000039
表4.数据1(马克对美元)的孟德尔遗传算法下的方差值Table 4. Variance values under the Mendelian genetic algorithm for data 1 (Mark vs. US dollar)
Figure PCTCN2017118527-appb-000040
Figure PCTCN2017118527-appb-000040
表5.数据2(日元对美元)的孟德尔遗传算法下的平均值Table 5. Average of the Mendelian genetic algorithm for data 2 (yen against the US dollar)
Figure PCTCN2017118527-appb-000041
Figure PCTCN2017118527-appb-000041
Figure PCTCN2017118527-appb-000042
Figure PCTCN2017118527-appb-000042
表6.数据2(日元对美元)的孟德尔遗传算法下的方差值Table 6. Variance values under the Mendelian genetic algorithm for data 2 (Japanese yen versus US dollar)
Figure PCTCN2017118527-appb-000043
Figure PCTCN2017118527-appb-000043
比较孟德尔遗传算法,标准遗传算法和OLS算法的结果,它表明孟德尔遗传算法优于标准遗传算法和OLS。Comparing the results of Mendelian genetic algorithm, standard genetic algorithm and OLS algorithm, it shows that Mendelian genetic algorithm is superior to standard genetic algorithm and OLS.
参考文献references
[1]M.Obstfeld,K.Rogoff,The six major puzzles in international macroeconomics:is there a common cause?,NBER Working Papers 7777,2000.[1]M.Obstfeld, K. Rogoff, The six major puzzles in international macroeconomics: is there a common cause? , NBER Working Papers 7777, 2000.
[2]K.Rogoff,The purchasing power parity puzzle,Journal of Economic Literature34(1996)647–668.[2] K. Rogoff, The purchasing power parity puzzle, Journal of Economic Literature 34 (1996) 647–668.
[3]R.Lyons,The Microstructure Approach to Exchange Rates,MIT Press,London,England,2001.[3] R. Lyons, The Microstructure Approach to Exchange Rates, MIT Press, London, England, 2001.
[4]W.P.Killeen,R.K.Lyons,M.J.Moore,Fixed versus flexible:lessons from ems order flow,Journal of International Money and Finance 25(2006)551–579.[4] W. P. Killeen, R. K. Lyons, M. J. Moore, Fixed versus flexible: lessons from ems order flow, Journal of International Money and Finance 25 (2006) 551–579.
[5]R.Payne,Informed trade in spot foreign exchange markets:an empirical investigation,Journal of International Economics 61(2003)307–329.[5] R. Payne, Informed trade in spot foreign exchange markets: an empirical investigation, Journal of International Economics 61 (2003) 307–329.
[6]T.H.Hann,E.Steurer,Much ado about nothing?exchange rate forecasting:neural networks vs.linear models using monthly and weekly data,Neurocomputing 10(1996)323–339.[6]T.H.Hann, E.Steurer, Much ado about nothing? Exchange rate forecasting: neural networks vs. linear models using monthly and weekly data, Neurocomputing 10 (1996) 323–339.
[7]M.Qi,Y.Wu,Nonlinear prediction of exchange rates with monetary  fundamentals, Journal of Empirical Finance 10 (2003) 623–640.[7] M. Qi, Y. Wu, Nonlinear prediction of exchange rates with monetary fundamentals, Journal of Empirical Finance 10 (2003) 623–640.
[8] R. N. Yadav, P. K. Kalra, J. John, Time series prediction with single multiplicative neuron model, Applied Soft Computing 7 (2007) 1157–1163.[8] R. N. Yadav, P. K. Kalra, J. John, Time series prediction with single multiplicative neuron model, Applied Soft Computing 7 (2007) 1157–1163.
[9] S. Rimcharoen, D. Sutivong, P. Chongstitvatana, Prediction of the stock exchange of thailand using adaptive evolution strategies, in: Proceedings of the 17th IEEE International Conference on Tools with Artificial Intelligence, IEEE Computer Society, Washington, DC, USA, 2005.[9] S. Rimcharoen, D. Sutivong, P. Chongstitvatana, Prediction of the stock exchange of thailand using adaptive evolution strategies, in: Proceedings of the 17th IEEE International Conference on Tools with Artificial Intelligence, IEEE Computer Society, Washington, DC, USA, 2005.
[10] C. Worasucheep, P. Chongstitvatana, A multi-strategy differential evolution algorithm for financial, Prediction with Single Multiplicative Neuron, ICONIP 2009, Part II, LNCS, vol. 5864, 2009, pp. 122–130.[10] C. Worasucheep, P. Chongstitvatana, A multi-strategy differential evolution algorithm for financial, Prediction with Single Multiplicative Neuron, ICONIP 2009, Part II, LNCS, vol. 5864, 2009, pp. 122–130.
[11] J. Nenortaite, R. Simutis, Stocks’ Trading System Based on the Particle Swarm Optimization Algorithm, Workshop on Computational Methods in Finance and Insurance, Lecture Notes in Computer Science, vol. 3039/2004, Springer, 2004.[11] J. Nenortaite, R. Simutis, Stocks’ Trading System Based on the Particle Swarm Optimization Algorithm, Workshop on Computational Methods in Finance and Insurance, Lecture Notes in Computer Science, vol. 3039/2004, Springer, 2004.
[12] L. Zhao, Y. Yang, Expert systems with applications: pso-based single multiplicative neuron model for time series prediction, Expert Systems with Applications 36 (2009) 2805–2812[12] L. Zhao, Y. Yang, Expert systems with applications: pso-based single multiplicative neuron model for time series prediction, Expert Systems with Applications 36 (2009) 2805–2812
[13] J. H. Holland, Adaptation in Natural and Artificial Systems, The University of Michigan Press, 1975.[13] J. H. Holland, Adaptation in Natural and Artificial Systems, The University of Michigan Press, 1975.
[14] G. Mendel, Experiments in Plant Hybridization, 1865. < www. mendelweb. org/Mendel. html>. [14] G. Mendel, Experiments in Plant Hybridization, 1865. < www. mendelweb. org/ Mendel. html>.
[15] D. O’ Neil, Mendel’s Genetics, 2009. < http: //anthro. palomar. edu/mendel/mendel_1. htm>. [15] D. O' Neil, Mendel's Genetics, 2009. < http: //anthro. palomar. edu/mendel/ mendel_1.htm>.
[16] I. S. Song, H. W. Woo, M. J. Tahk, Agenetic algorithm with a Mendel operator for global minimization, in: Proceedings of the 1999 Congress on Evolutionary Computation, Washington, DC, USA, vol. 2, 1999, pp. 1521–1526.[16] I. S. Song, H. W. Woo, M. J. Tahk, Agenetic algorithm with a Mendel operator for global minimization, in: Proceedings of the 1999 Congress on Evolutionary Computation, Washington, DC, USA, vol. 2, 1999, pp. 1521–1526.
[17] C. S. Park, H. Lee, H. C. Bang, M. J. Tahk, Modified mendel operation for multimodal function optimization, in: Proceedings of the 2001 Congress on Evolutionary Computation, Seoul, South Korea, vol. 2, 2001, pp. 1388–1392.[17] C. S. Park, H. Lee, H. C. Bang, M. J. Tahk, Modified mendel operation for multimodal function optimization, in: Proceedings of the 2001 Congress on Evolutionary Computation, Seoul, South Korea, vol 2, 2001, pp. 1388–1392.
[18] B. Anthony Kadrovach, S. R. Michaud, J. B. Zydallis, G. B. Lamont, B. Secrest, D. Strong, Extending the simple genetic algorithm into multi-objective problems via mendelian pressure, 2001 Genetic and Evolutionary Computation  Conference,San Fran孟德尔遗传算法孟德尔遗传算法co,California,7–11July,vol.1,2001,pp.181–188.[18] B. Anthony Kadrovach, S. R. Michaud, J. B. Zydallis, G. B. Lamont, B. Secrest, D. Strong, Extending the simple genetic algorithm into multi-objective problems via mendelian pressure, 2001 Genetic And Evolutionary Computation Conference, San Fran Mendelian Genetic Algorithm Mendelian Genetic Algorithms, California, 7–11 July, vol. 1, 2001, pp.181–188.
[19]B.A.Kadrovach,J.B.Zydallis,G.B.Lamont,Use of mendelian pressure in a multi-objective genetic algorithm,in:Proceedings of the 2002Congress on Evolutionary Computation,Piscataway,New Jersey,12–17May,vol.1,2002,pp.962–967.[19] BAK Adrovach, JBZydallis, GB Lamont, Use of mendelian pressure in a multi-objective genetic algorithm, in: Proceedings of the 2002 Congress on Evolutionary Computation, Piscataway, New Jersey, 12–17 May, vol. 1, 2002, pp .962–967.
[20]H.Ishibuchi,T.Yoshida,T.Murata,Balance between genetic search and local search in memetic algorithms for multiobjective permutation flowshop scheduling,IEEE Transactions on Evolutionary Computation 7(2003)204–223.[20] H. Ishibuchi, T. Yoshida, T. Murata, Balance between genetic search and local search in memetic algorithms for multiobjective permutation flowshop scheduling, IEEE Transactions on Evolutionary Computation 7 (2003) 204–223.
[21]Victoria Furió,Andrés Moya,Rafael Sanjuán,The cost of replication fidelity inan RNA virus,Proceedings of the National Academy of Sciences 102(2005)10233–10237.[21] Victoria Furió, Andrés Moya, Rafael Sanjuán, The cost of replication fidelity inan RNA virus, Proceedings of the National Academy of Sciences 102 (2005) 10233–10237.
[22]E.Zitzler,Evolutionary Algorithms for Multiobjective Optimization:Methods and Applications,Diss.ETH No.13398,ETH Zurich,Switzerland,1999.[22] E. Zitzler, Evolutionary Algorithms for Multiobjective Optimization: Methods and Applications, Diss. ETH No. 13398, ETH Zurich, Switzerland, 1999.
[23]The National Academy of Sciences(NAS),Teaching about Evolution and the Nature of Science,National Academy of Sciences Press,2004.[23] The National Academy of Sciences (NAS), Teaching about Evolution and the Nature of Science, National Academy of Sciences Press, 2004.
[24]R.L.Haupt,S.E.Haupt,Practical Genetic Algorithms,second ed.,John Wiley&Sons,Inc.,2004.[24] R.L. Haupt, S.E. Haupt, Practical Genetic Algorithms, second ed., John Wiley & Sons, Inc., 2004.
[25]C.M.Fonseca,P.J.Fleming,Genetic algorithm for multi-objective optimisation:formulation,discussion and generalization,in:S.Forrest(Ed.),Genetic Algorithm:Proceedings of the Fifth International Conference,vol.1,Morgan Kaufmann,San Mateo,CA,1993,pp.141–153.[25] CMFonseca, PJFleming, Genetic algorithm for multi-objective optimisation: formulation, discussion and generalization, in: S. Forrest (Ed.), Genetic Algorithm: Proceedings of the Fifth International Conference, vol. 1, Morgan Kaufmann, San Mateo, CA, 1993, pp. 141–153.
[26]J.N.Horn,D.E.N.Goldberg,A niched pareto genetic algorithm for multi-objective optimisation,in:Proceedings of the First IEEE Conference on Evolutionary Computation,IEEE World Congress on Computational Intelligence,27–29June,vol.1,1994,pp.82–87.[26] JNHorn, DENGoldberg, A niched pareto genetic algorithm for multi-objective optimisation, in: Proceedings of the First IEEE Conference on Evolutionary Computation, IEEE World Congress on Computational Intelligence, 27–29 June, vol. 1, 1994, pp .82–87.
[27]N.Srinivas,K.Deb,Multiobjective optimisation using nondominated sorting in genetic algorithm,Evolutionary Computation 2(1994)221–248.[27] N. Srinivas, K. Deb, Multiobjective optimisation using nondominated sorting in genetic algorithm, Evolutionary Computation 2 (1994) 221–248.
[28]K.Deb,A.Pratap,S.Agarwal,T.Meyarivan,A fast and elitist multiobjective  genetic algorithm: NSGAII, IEEE Transactions on Evolutionary Computation 6(2002) 182–197.[28] K. Deb, A. Pratap, S. Agarwal, T. Meyarivan, A fast and elitist multiobjective genetic algorithm: NSGAII, IEEE Transactions on Evolutionary Computation 6 (2002) 182–197.
[29] P. Tenti, Forecasting foreign exchange rates using recurrent neural networks, Applied Artificial Intelligence 10 (1996) 567–581.[29] P. Tenti, Forecasting foreign exchange rates using recurrent neural networks, Applied Artificial Intelligence 10 (1996) 567–581.
[30] D. N. Gujarati, Basic Econometrics, fourth ed. , McGraw-Hill Companies, 2004.[30] D. N. Gujarati, Basic Econometrics, fourth ed., McGraw-Hill Companies, 2004.
[31] S. Reitz, M. A. Schmidt, M. P. Taylor, End-user order flow and exchange rate dynamics, The European Journal of Finance 17 (2011) 153–168.[31] S. Reitz, M. A. Schmidt, M. P. Taylor, End-user order flow and exchange rate dynamics, The European Journal of Finance 17 (2011) 153–168.
[32] D. Rime, L. Sarno, E. Sojli, Exchange rate forecasting, order flow, and macroeconomic information, CEPR Discussion Paper No. DP7225, 2009.Available at SSRN: < http: //ssrn. com/abstract=1372545>. [32] D. Rime, L. Sarno, E. Sojli, Exchange rate forecasting, order flow, and macroeconomic information, CEPR Discussion Paper No. DP7225, 2009.Available at SSRN: < http: //ssrn. com/abstract= 1372545> .
[33] T. Andersen, T. Bollerslev, F. X. Diebold, C. Vega, Microeffects of macroannouncements: real-time price discovery in foreign exchange,American Economic Review 93 (2003) 38–62.[33] T. Andersen, T. Bollerslev, F. X. Diebold, C. Vega, Microeffects of macroannouncements: real-time price discovery in foreign exchange, American Economic Review 93 (2003) 38–62.
[34] P. Bacchetta, E. Wincoop, Can information heterogeneity explain the exchange rate determination puzzle? , American Economic Review 96 (2006) 552–576[34] P. Bacchetta, E. Wincoop, Can information heterogeneity explain the exchange rate determination puzzle? , American Economic Review 96 (2006) 552–576
[35] J. Marks, The construction of mendel’s  laws, Evolutionary Anthropology 17 (2008) 250–253.[35] J. Marks, The construction of mendel’s laws, Evolutionary Anthropology 17 (2008) 250–253.
[36] D. C. Montgomery, G. C. Runger, Applied Statistics and Probability for Engineers, third ed. , John Wiley&Sons, Inc., 2003.[36] D. C. Montgomery, G. C. Runger, Applied Statistics and Probability for Engineers, third ed., John Wiley & Sons, Inc., 2003.
[37] M. Evans, R. Lyons, Order flow and exchange rate dynamics, Journal of Political Economy 110 (2002) 170–180.[37] M. Evans, R. Lyons, Order flow and exchange rate dynamics, Journal of Political Economy 110 (2002) 170–180.
[38] M. P. Allen, Understanding Regression Analysis, Springer, 2007.[38] M. P. Allen, Understanding Regression Analysis, Springer, 2007.
[39] Y. Chen, Simple Genetic Algorithm Laboratory Toolbox for MATLAB, 2009.[39] Y. Chen, Simple Genetic Algorithm Laboratory Toolbox for MATLAB, 2009.
< http: //www. mathworks. co. uk/matlabcentral/fileexchange/5882> < http: //www. mathworks. co. uk/matlabcentral/fileexchange/5882 >

Claims (6)

  1. 一种基于遗传算法的汇率分析方法,包括如下步骤:A method for analyzing exchange rate based on genetic algorithm includes the following steps:
    第一步、将汇率价格数据进行预处理;The first step is to preprocess the exchange rate price data;
    第二步、将经过预处理的汇率价格数据输入汇率模型中,采用适应度函数对汇率模型进行参数优化:In the second step, the pre-processed exchange rate price data is input into the exchange rate model, and the fitness function is used to optimize the exchange rate model:
    第三步、将优化后的结果进行验证,验证通过数据结果,验证未通过,进行孟德尔遗传算法处理后再重复第二步和第三步,直至优化后的结果通过验证,输出结果。The third step is to verify the optimized result, verify the data result, verify that it has not passed, and then perform the Mendelian genetic algorithm processing and then repeat the second step and the third step until the optimized result is verified and the result is output.
  2. 根据权利要求1所述的基于遗传算法的汇率分析方法,其特征在于,第二步中以适应度函数对汇率模型进行参数优化的方法如下:The genetic algorithm-based exchange rate analysis method according to claim 1, wherein the method for optimizing the exchange rate model by the fitness function in the second step is as follows:
    确定汇率模型,以订单流来确定汇率,如式(2)Determine the exchange rate model and use the order flow to determine the exchange rate, as in (2)
    Figure PCTCN2017118527-appb-100001
    Figure PCTCN2017118527-appb-100001
    其中,Δ为序列的一阶差分;S t+1是t+1时间的汇率,S t是即期汇率,它被定义为外国货币的国内价格,见式(1);ε t+1为干扰项,如式(3)所示,表示未来汇率的变化是位于即期汇率与期望的基本因素之间缺口的函数;b为贴现因子;f(x t)为在t时间的基本因素;x t为同时刻的订单流; Where Δ is the first-order difference of the sequence; S t+1 is the exchange rate of t+1 time, and S t is the spot exchange rate, which is defined as the domestic price of the foreign currency, see equation (1); ε t+1 is The interference term, as shown in equation (3), indicates that the future exchange rate change is a function of the gap between the spot exchange rate and the expected basic factor; b is the discount factor; f(x t ) is the basic factor at time t; x t is a simultaneous order flow;
    Figure PCTCN2017118527-appb-100002
    Figure PCTCN2017118527-appb-100002
    Figure PCTCN2017118527-appb-100003
    Figure PCTCN2017118527-appb-100003
    q为今后的定期因子,
    Figure PCTCN2017118527-appb-100004
    为市场决策者对于在t时间之q段时间的基本因素的期望,在t时间具有信息条件,t+q是表示时间段。
    q is the future periodic factor,
    Figure PCTCN2017118527-appb-100004
    For the market decision maker's expectation of the basic factors of the q-time at t time, there is an information condition at time t, and t+q is a time period.
  3. 根据权利要求1所述的基于遗传算法的汇率分析方法,其特征在于,采用基于孟德尔算子的遗传算法对式(2)进行迭代计算:The genetic algorithm-based exchange rate analysis method according to claim 1, wherein the genetic algorithm based on the Mendelian operator is used to perform an iterative calculation on the formula (2):
    A、初始化各个参数;A, initialize each parameter;
    B、对所有变量进行编码;B. Encode all variables;
    C、进行遗传算法的选择操作;C. Perform a selection operation of the genetic algorithm;
    D、采用孟德尔算子进行计算;D, using the Mendelian operator for calculation;
    E、进行遗传算法的交叉操作;E. Perform cross operation of the genetic algorithm;
    F、进行遗传算法的突变操作;F. performing a mutation operation of the genetic algorithm;
    H、解码:重复迭代A-H步骤获得最优解,采用适应性函数评价解码后最优解是否满足此次优化计算的要求,若满足要求,获取最终优化解集;否则,修改运行参数,重新计算直到获取最终优化解集。H. Decoding: Repeat the iterative AH step to obtain the optimal solution, and use the adaptive function to evaluate whether the optimal solution after decoding meets the requirements of the optimization calculation. If the requirements are met, the final optimized solution set is obtained; otherwise, the operating parameters are modified and recalculated. Until the final optimization solution set is obtained.
  4. 根据权利要求3所述的基于遗传算法的汇率分析方法,其特征在于,所述编码为二进制编码。The genetic algorithm-based exchange rate analysis method according to claim 3, wherein the encoding is a binary encoding.
  5. 根据权利要求3所述的基于遗传算法的汇率分析方法,其特征在于,用于评价解码后最优解的适应度函数如式(10)和(11),当获得的最优解能够使R 2接近最大时,满足优化计算的要求: The genetic algorithm-based exchange rate analysis method according to claim 3, wherein the fitness function for evaluating the decoded optimal solution is expressed by equations (10) and (11), and the obtained optimal solution enables R to be obtained. 2 When the maximum is reached, the requirements of the optimization calculation are met:
    Figure PCTCN2017118527-appb-100005
    Figure PCTCN2017118527-appb-100005
    Figure PCTCN2017118527-appb-100006
    Figure PCTCN2017118527-appb-100006
    其中,β 1,β 2和β 3分别是3个系数,xi定义为一种外汇所被观测到的COF值(累计订单流),yi定义为外汇与本国币通过log(/)所得到的比例。本国币如下式: Where β 1 , β 2 and β 3 are 3 coefficients, respectively, xi is defined as a COF value observed in foreign exchange (cumulative order flow), and yi is defined as the foreign exchange and local currency obtained by log(/). proportion. The national currency is as follows:
    Y i=log(外汇/本国币)×10000 Y i =log (foreign exchange / local currency) × 10000
    Δx i(t)和Δy i(t-1)是在时间t和t-1的数据预处理过程中得到的差分数据序列,如方程(14)和(15)所示。 Δx i (t) and Δy i (t-1) are differential data sequences obtained during data preprocessing at times t and t-1, as shown in equations (14) and (15).
    Δx i(t)=x i(t)-x i(t-1)       (14) Δx i (t)=x i (t)-x i (t-1) (14)
    Δy i(t-1)=y i(t-1)-y i(t-2)       (15) Δy i (t-1)=y i (t-1)-y i (t-2) (15)
  6. 根据权利要求3所述的基于遗传算法的汇率分析方法,其特征在于,孟德尔算子的计算方法如下;The genetic algorithm-based exchange rate analysis method according to claim 3, wherein the calculation method of the Mendelian operator is as follows;
    父代种群中的每个染色体位被分配一个属性,有三个属性类型的基因:D属性代表占主导地位,纯种和优势基因,R属性代表隐性的,纯种的和隐性基因,H属性代表混合,杂交基因;Each chromosomal position in the parent population is assigned an attribute, and there are three attribute types: D attribute represents dominant, pure and dominant genes, and R attribute represents recessive, pure and recessive genes, H Attributes represent hybrid, hybrid genes;
    任选父代种群中的两条染色体作为亲代染色体进行交叉试验获得子代染色体,若亲代染色体位的属性都为D,则子代染色体位的属性为D;若亲代染色体位的属性都为R,则子代染色体位的属性为R;若一条亲代染色体位的属性为R,另一条亲代染色体位的属性为D,则子代染色体位的属性为H;若一条亲代染色体位的属性为D,另一条亲代染色体位的属性为H,则子代染色体位50%为D,50%为H;若一条亲代染色体位的属性为R,另一条亲代染色体位的属性为H,则子代染色体位50%为R,50%为H;若一条亲代染色体位的属性为H,另一条亲代染色体位的属性为H,则子代染色体位25%为R,25%为D,50%为H。The two chromosomes in the optional parent population are cross-tested as the parental chromosome to obtain the progeny chromosome. If the attribute of the parental chromosomal location is D, the attribute of the chromosomal position of the offspring is D; if the attributes of the parental chromosomal location are R The attribute of the chromosomal position of the progeny is R; if the attribute of one parent chromosomal position is R and the attribute of the other parent chromosomal position is D, the attribute of the chromosomal position of the progeny is H; if the attribute of a parent chromosomal position is D The attribute of another parental chromosomal location is H, then the chromosomal position of the offspring is 50% D, 50% is H; if the attribute of one parent chromosomal location is R and the attribute of the other parent chromosomal location is H, then the daughter chromosome The position 50% is R, 50% is H; if the parental chromosomal location is H and the other parental chromosomal location is H, then the progeny chromosomal location is 25% R, 25% D, 50% H .
PCT/CN2017/118527 2017-12-20 2017-12-26 Exchange rate analysis method based on genetic algorithm WO2019119478A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711385764.7 2017-12-20
CN201711385764.7A CN108090828A (en) 2017-12-20 2017-12-20 A kind of Foreign Exchange Rate Analysis method based on genetic algorithm

Publications (1)

Publication Number Publication Date
WO2019119478A1 true WO2019119478A1 (en) 2019-06-27

Family

ID=62177581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118527 WO2019119478A1 (en) 2017-12-20 2017-12-26 Exchange rate analysis method based on genetic algorithm

Country Status (2)

Country Link
CN (1) CN108090828A (en)
WO (1) WO2019119478A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532721A (en) * 2019-09-05 2019-12-03 哈尔滨理工大学 The method for accurately extracting unknown phase-shift phase based on optimization quanta particle swarm optimization
CN113283822A (en) * 2021-07-23 2021-08-20 支付宝(杭州)信息技术有限公司 Feature processing method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112365035B (en) * 2020-10-28 2022-05-24 广西电网有限责任公司电力科学研究院 Optimization method based on GIS map and non-dominated sorting differential evolution algorithm
CN115099393B (en) * 2022-08-22 2023-04-07 荣耀终端有限公司 Neural network structure searching method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550782A (en) * 2015-12-31 2016-05-04 天津英福科技有限公司 Interactive method for macroeconomic analysis system established based on macroeconomic data
CN105809270A (en) * 2016-01-05 2016-07-27 淮海工学院 Security investment combination evolution optimization method based on interval multi-target planning
CN106056244A (en) * 2016-05-30 2016-10-26 重庆大学 Stock price optimization prediction method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456109A (en) * 2011-08-01 2012-05-16 中国人民解放军国防科学技术大学 Training method for Trojan horse incident prediction least squares support vector machine, and prediction method
CN106875027B (en) * 2016-06-06 2020-11-06 创新先进技术有限公司 Resource request value prediction method and device, and transaction amount prediction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550782A (en) * 2015-12-31 2016-05-04 天津英福科技有限公司 Interactive method for macroeconomic analysis system established based on macroeconomic data
CN105809270A (en) * 2016-01-05 2016-07-27 淮海工学院 Security investment combination evolution optimization method based on interval multi-target planning
CN106056244A (en) * 2016-05-30 2016-10-26 重庆大学 Stock price optimization prediction method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHEN, YI ET AL.: "Exchange Rates Determination Based on Genetic Algorithms Using Mendel's Principles: Investigation and Estimation Under Uncertainty", INFORMATION FUSION, vol. 14, no. 3, 31 July 2013 (2013-07-31), pages 327 - 333, XP028529448 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532721A (en) * 2019-09-05 2019-12-03 哈尔滨理工大学 The method for accurately extracting unknown phase-shift phase based on optimization quanta particle swarm optimization
CN110532721B (en) * 2019-09-05 2022-08-05 哈尔滨理工大学 Method for accurately extracting unknown phase shift quantity based on optimized quantum particle swarm optimization
CN113283822A (en) * 2021-07-23 2021-08-20 支付宝(杭州)信息技术有限公司 Feature processing method and device

Also Published As

Publication number Publication date
CN108090828A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
Chen et al. A hybrid approach for portfolio selection with higher-order moments: Empirical evidence from Shanghai Stock Exchange
Asadi et al. Hybridization of evolutionary Levenberg–Marquardt neural networks and data pre-processing for stock market prediction
Chandra et al. DIVACE: Diverse and accurate ensemble learning algorithm
Ferreira et al. A new intelligent system methodology for time series forecasting with artificial neural networks
Hajizadeh et al. A hybrid modeling approach for forecasting the volatility of S&P 500 index return
WO2019119478A1 (en) Exchange rate analysis method based on genetic algorithm
Dash Performance analysis of a higher order neural network with an improved shuffled frog leaping algorithm for currency exchange rate prediction
Onwubolu Design of hybrid differential evolution and group method of data handling networks for modeling and prediction
Chen et al. Exchange rates determination based on genetic algorithms using mendel’s principles: Investigation and estimation under uncertainty
Psaradellis et al. Modelling and trading the US implied volatility indices. Evidence from the VIX, VXN and VXD indices
Sermpinis et al. Inflation and unemployment forecasting with genetic support vector regression
Thinyane et al. An investigation into the use of intelligent systems for currency trading
Hindrayani et al. Indonesian stock price prediction including covid19 era using decision tree regression
Contreras et al. ENMX: An elastic network model to predict the FOREX market evolution
Araújo A hybrid intelligent morphological approach for stock market forecasting
Araújo Translation invariant morphological time-lag added evolutionary forecasting method for stock market prediction
Zhang et al. Application of online multitask learning based on least squares support vector regression in the financial market
Araújo et al. An evolutionary morphological approach for financial time series forecasting
Rimcharoen et al. Prediction of the stock exchange of Thailand using adaptive evolution strategies
Zhou et al. Selecting valuable stock using genetic algorithm
Azlan et al. Univariate financial time series prediction using clonal selection algorithm
Yu et al. Multi-attribute portfolio selection with genetic optimization algorithms
Prelipcean et al. The role of predictability of financial series in emerging market applications
Mitilineos et al. Forecasting of future stock prices using neural networks and genetic algorithms
Karathanasopoulos Modelling and trading the London, New York and Frankfurt stock exchanges with a new gene expression programming trader tool

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: 17935347

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: 17935347

Country of ref document: EP

Kind code of ref document: A1