CN102930155B - Obtain the method and device of the early-warning parameters of electricity needs - Google Patents
Obtain the method and device of the early-warning parameters of electricity needs Download PDFInfo
- Publication number
- CN102930155B CN102930155B CN201210425468.6A CN201210425468A CN102930155B CN 102930155 B CN102930155 B CN 102930155B CN 201210425468 A CN201210425468 A CN 201210425468A CN 102930155 B CN102930155 B CN 102930155B
- Authority
- CN
- China
- Prior art keywords
- index
- leading
- consistent
- change
- rate
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Electrotherapy Devices (AREA)
Abstract
本发明公开了一种获取电力需求的预警参数的方法及装置。其中,该方法包括:获取用于生成预警指标的数据序列;根据调整参数对数据序列进行筛选获取数据序列;计算包含有趋势项和周期项的数据序列的趋势指数,并得到预警指标序列;提取预警指标序列中的基准指标和被选择指标;根据时差分析模型和/或K‑L信息量模型进行相关性计算,以获取被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标;将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。通过本发明,能够实现精确获取电力需求的预警参数,从而准确的根据短期周期性波动制定合理科学的应对措施的效果。
The invention discloses a method and a device for acquiring early warning parameters of power demand. Among them, the method includes: obtaining the data sequence used to generate the early warning index; filtering the data sequence according to the adjustment parameters to obtain the data sequence; calculating the trend index of the data sequence containing the trend item and the period item, and obtaining the early warning index sequence; extracting The benchmark index and the selected index in the early warning index sequence; the correlation calculation is performed according to the time difference analysis model and/or the K-L information model to obtain the correlation coefficient between the selected index and the benchmark index, and according to the correlation coefficient Screen the selected indicators to obtain leading indicators and consistent indicators; synthesize the leading indicators and consistent indicators to obtain the leading composite index and consistent composite index as early warning parameters. Through the present invention, it is possible to accurately acquire the early warning parameters of electric power demand, thereby accurately formulating reasonable and scientific countermeasures according to short-term periodic fluctuations.
Description
技术领域technical field
本发明涉及电力领域,具体而言,涉及一种获取电力需求的预警参数的方法及装置。The present invention relates to the field of electric power, in particular, to a method and device for obtaining early warning parameters of electric power demand.
背景技术Background technique
经济的周期波动是经济社会发展中客观存在的现象,是经济增长过程中不以人的意志为转移的客观规律,企图通过各种人为手段强制消除周期波动是不现实的,甚至在某些条件下人为强制消除周期波动还会加剧波动。通过对经济周期运行规律的研究,可以把握经济周期的波动规律,从而采取适当的手段来降低经济周期波动的幅度,延长经济波动的周期,从而实现经济持续增长的目的。The cyclical fluctuation of the economy is an objective phenomenon in economic and social development. It is an objective law that does not depend on human will in the process of economic growth. It is unrealistic to try to forcefully eliminate cyclical fluctuations through various artificial means. The artificially enforced elimination of periodic volatility can also exacerbate volatility. Through the study of the operating law of the economic cycle, we can grasp the fluctuation law of the economic cycle, and then take appropriate measures to reduce the amplitude of the economic cycle fluctuation and prolong the economic fluctuation cycle, so as to achieve the goal of sustainable economic growth.
作为宏观经济研究的一个核心问题,经济周期的研究一直受到各国政府以及众多经济学家的重视。随着经济理论的发展和计量经济技术的进步,国内外众多学者开始运用定量的方法对经济周期进行监控和预测,目的是尽量准确地把握周期各个阶段持续时间的长短、转折点出现的具体时间以及扩张和收缩的力度等,从而为政府和企业针对不同周期特点和形成机理制定科学、合理的应对措施,减缓周期波动的幅度,降低周期波动对经济发展造成的破坏程度。As a core issue of macroeconomic research, the study of economic cycle has always been valued by the governments of various countries and many economists. With the development of economic theory and the progress of econometric technology, many scholars at home and abroad have begun to use quantitative methods to monitor and predict the economic cycle. The strength of expansion and contraction, etc., so as to formulate scientific and reasonable countermeasures for the government and enterprises according to the characteristics and formation mechanisms of different cycles, slow down the magnitude of cyclical fluctuations, and reduce the damage caused by cyclical fluctuations to economic development.
经济活动是电力需求的推动力,因此电力需求也会出现周期定波动,但在电力需求领域,分析电力需求周期性波动的手段是对比多年的经济增长曲线和用电量增长曲线,结合经济学家对我国经济发展阶段的划分,较为主观地判断电力需求的波动周期是9-11年,还没有研究短期电力需求周期性波动的方法。Economic activities are the driving force of electricity demand, so electricity demand will also fluctuate periodically, but in the field of electricity demand, the means of analyzing periodic fluctuations in electricity demand is to compare the economic growth curve and electricity consumption growth curve for many years, combined with economics According to the classification of my country's economic development stages, experts subjectively judge that the fluctuation cycle of power demand is 9-11 years, and there is no method for studying the periodic fluctuation of short-term power demand.
为了解决上述问题,可以用预测技术直接预测未来的电力需求增长速度,分析其波动情况。但是,预测技术存在很多缺陷:In order to solve the above problems, forecasting technology can be used to directly predict the future growth rate of electricity demand and analyze its fluctuations. However, forecasting techniques have many flaws:
1、所采用的基础数据未经季节调整,春节、月内双休日天数、节假日天数、闰年都对基础数据有很大影响,以此为基础预测的波动趋势将是失真的;1. The basic data used has not been adjusted seasonally. The Spring Festival, the number of weekends in a month, the number of holidays, and leap years all have a great impact on the basic data. The fluctuation trend predicted based on this will be distorted;
2、无论使用回归、人均用电量、神经网络等因果关系模型,还是采用ARIMA、逻辑斯蒂等时间序列模型,都是根据统计数据的历史趋势做合理的外推,相当于重点关注图1中长期趋势的变化规律,根据长期趋势的变化规律并不能迅速地做出合理的复合当前经济的应对措施。2. Regardless of using causal relationship models such as regression, per capita electricity consumption, and neural networks, or using time series models such as ARIMA and logistic, reasonable extrapolation is done based on the historical trend of statistical data, which is equivalent to focusing on Figure 1 According to the changing law of medium and long-term trends, it is not possible to quickly make reasonable countermeasures to compound the current economy according to the changing law of long-term trends.
目前针对相关技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法制定合理的应对周期性波动的措施的问题,目前尚未提出有效的解决方案。At present, in the field of power demand, forecasting technology is used to obtain short-term periodic fluctuation distortion, and early warning parameters that meet power demand cannot be obtained, resulting in the inability to formulate reasonable measures to deal with periodic fluctuations. No effective solution has been proposed yet. Program.
发明内容Contents of the invention
针对相关技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法制定合理的应对周期性波动的措施的问题,目前尚未提出有效的解决方案,为此,本发明的主要目的在于提供一种获取电力需求的预警参数的方法及装置,以解决上述问题。Aiming at the problem in related technologies that using forecasting technology in the field of power demand to obtain short-term periodic fluctuation distortion, it is impossible to obtain early warning parameters that meet power demand, resulting in the inability to formulate reasonable measures to deal with periodic fluctuations. No effective solution has yet been proposed. Therefore, the main purpose of the present invention is to provide a method and device for obtaining early warning parameters of power demand, so as to solve the above problems.
为了实现上述目的,根据本发明的一个方面,提供了一种获取电力需求的预警参数的方法,该方法包括:获取用于生成预警指标的数据序列;根据调整参数对数据序列进行筛选,以获取包含有趋势项和周期项的数据序列;计算包含有趋势项和周期项的数据序列的趋势指数,并根据趋势指数对包含有趋势项和周期项的数据序列进行过滤,以得到预警指标序列,预警指标序列为数据序列中趋势指数为增长的数据;提取预警指标序列中的发电量为基准指标,并提取除发电量以外的指标为被选择指标;根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标;根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。In order to achieve the above object, according to one aspect of the present invention, a method for obtaining early warning parameters of power demand is provided, the method includes: obtaining a data sequence for generating early warning indicators; screening the data sequence according to the adjustment parameters to obtain Data series containing trend items and period items; calculate the trend index of the data series containing trend items and period items, and filter the data series containing trend items and period items according to the trend index to obtain the early warning index sequence, The early warning index sequence is the data whose trend index is increasing in the data sequence; the power generation in the early warning index sequence is extracted as the benchmark index, and the indicators other than the power generation are extracted as the selected indicators; according to the time difference analysis model and/or the K-L information volume model Carry out correlation calculation on the early warning indicators to obtain the correlation coefficient between each selected index and the benchmark index, and screen the selected indicators according to the correlation coefficient to obtain leading indicators and consistent indicators; according to the synthetic index model, the The leading index and the consistent index are synthesized to obtain the leading synthetic index and the consistent synthetic index as early warning parameters.
进一步地,利用时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标的步骤包括:根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:Further, use the time difference analysis model and/or the KL information model to perform correlation calculations on early warning indicators, and use the correlation coefficient between each selected index and the benchmark index, and filter the selected indicators according to the correlation coefficient, The steps for obtaining the leading index and the consistent index include: obtaining the correlation coefficient r l between each selected index and the benchmark index according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数,t=1,2,…,n为月份数;将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标。Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators, t=1, 2, ..., n is the number of months; the value of the time difference is within the first value range and the correlation coefficient r l is greater than the first The selected index of the threshold is used as the leading index, and the selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the consistent index.
进一步地,根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标的步骤包括:根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:Further, according to the time difference analysis model and/or the KL information model, the correlation calculation is performed on the early warning indicators, and the correlation coefficient between each selected index and the benchmark index is used, and the selected indicators are screened according to the correlation coefficient, The steps to obtain the leading index and the consistent index include: obtaining the correlation coefficient r l between each selected index and the benchmark index according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数,t=1,2,…,n为月份数;将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标的初始指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标的初始指标;对基准指标、先行指标的初始指标以及一致指标的初始指标进行标准化处理,以获取标准基准指标序列pt、标准被选择指标的序列qt,其中,标准被选择指标包括标准先行指标以及标准一致指标;按如下公式获取每个标准被选择指标和标准基准指标之间的K-L信息量k:kl=∑ptln(pt/qt+1),其中,l=0,±1,…,±12, t=1,2,…,n为月份数,l为时差,nl为所有指标的个数;将时差取值在第三取值范围内且K-L信息量kl小于第三阈值的标准被选择指标作为先行指标,并将时差取值在第四取值范围内且K-L信息量kl小于第四阈值的被选择指标作为一致指标。 Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators, t=1,2,...,n is the number of months; the value of the time difference is within the first value range and the correlation coefficient r l is greater than the first The selected index of the threshold is used as the initial index of the leading index, and the selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the initial index of the consistent index; for the benchmark index, the leading index The initial index of the index and the initial index of the consistent index are standardized to obtain the standard benchmark index sequence p t and the sequence q t of the standard selected index, where the standard selected index includes the standard leading index and the standard consistent index; according to the following formula Obtain the KL information k between each standard selected index and the standard benchmark index: k l =∑p t ln(p t /q t+1 ), where l=0,±1,…,±12, t=1, 2,..., n is the number of months, l is the time difference, n l is the number of all indicators; the standard that the time difference value is within the third value range and the KL information volume k l is less than the third threshold is taken Select the index as the leading index, and use the selected index whose time difference value is within the fourth value range and whose KL information volume k l is less than the fourth threshold as the consistent index.
进一步地,根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数的步骤包括:对先行指标和一致指标分别进行对称变化处理,以获取先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t),其中,通过如下公式对先行指标进行对称变化处理,以获取先行指标对称变化率Cw,i(t):Further, the step of synthesizing the leading index and the consistent index according to the composite index model to obtain the leading composite index and the consistent composite index as early warning parameters includes: respectively performing symmetrical change processing on the leading index and the consistent index to obtain the leading index symmetry The rate of change C w,i (t) and the symmetrical rate of change C z,i (t) of the consistent index, wherein, the leading index is processed symmetrically by the following formula to obtain the symmetrical rate of change C w,i (t) of the leading index :
其中,是第i(i=1,2,…,kw)个先行指标,t=2,3,…,n,kw为先行指标的个数;通过如下公式对一致指标进行对称变化处理,以获取一致指标对称变化率Cz,i(t):其中,是第i(i=1,2,…,kz)个一致指标,t=2,3,…,n为月份数,kz是一致指标的个数;对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数。 in, is the i-th (i=1, 2, ..., k w ) leading index, t=2, 3,..., n, k w is the number of leading indexes; the consistent index is changed symmetrically by the following formula, with Obtain the symmetrical rate of change C z,i (t) of the consistent index: in, is the i-th (i=1, 2, ..., k z ) consistent index, t = 2, 3, ..., n is the number of months, k z is the number of consistent indicators; the symmetric rate of change of the leading index C w, The results obtained after standardization and trend adjustment of i (t) and the consistent index symmetric rate of change C z,i (t) are combined and calculated to obtain the leading composite index and the consistent composite index.
进一步地,对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数的步骤包括:通过如下公式获取标准化因子Aw,i和Az,i: t=2,3,…,n;采用标准化因子Aw,i和Az,i分别将先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理,以得到标准化变化率Sw,i(t)和Sz,i(t),其中, t=2,3,…,n;对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t);根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),其中,
进一步地,对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)的步骤包括:通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t): 其中,λw,i和λz,i分别是先行指标和一致指标的第i个指标的权重;通过如下公式获取指标标准化因子Fw:
进一步地,在获取用于生成预警指标的数据序列之后,方法还包括:对数据序列中的数据进行预处理,预处理包括:填补缺失数据处理、修正噪声数据处理、数据平滑处理以及数据归一化处理。Further, after obtaining the data sequence used to generate the early warning indicator, the method also includes: preprocessing the data in the data sequence, the preprocessing includes: filling missing data processing, correcting noise data processing, data smoothing processing, and data normalization processing.
为了实现上述目的,根据本发明的一个方面,提供了一种获取电力需求的预警参数的装置,该装置包括:第一获取模块,用于获取用于生成预警指标的数据序列;第一处理模块,用于根据调整参数对数据序列进行筛选,以获取包含有趋势项和周期项的数据序列;第一计算模块,用于计算包含有趋势项和周期项的数据序列的趋势指数,并根据趋势指数对包含有趋势项和周期项的数据序列进行过滤,以得到预警指标序列,预警指标序列为数据序列中趋势指数为增长的数据;第一提取模块,用于提取预警指标序列中的发电量为基准指标,并提取除发电量以外的指标为被选择指标;第二计算模块,用于根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标;第二处理模块,用于根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。In order to achieve the above object, according to one aspect of the present invention, a device for obtaining early warning parameters of power demand is provided, the device includes: a first obtaining module, used to obtain a data sequence for generating early warning indicators; a first processing module , used to filter the data series according to the adjustment parameters to obtain the data series containing trend items and period items; the first calculation module is used to calculate the trend index of the data series containing trend items and period items, and according to the trend The index filters the data sequence containing the trend item and the period item to obtain the early warning index sequence. The early warning index sequence is the data whose trend index is increasing in the data sequence; the first extraction module is used to extract the power generation in the early warning index sequence as the benchmark index, and extract the index other than the power generation as the selected index; the second calculation module is used to perform correlation calculation on the early warning index according to the time difference analysis model and/or the K-L information model, so as to obtain each selected index The correlation coefficient between the index and the benchmark index, and the selected index is screened according to the correlation coefficient to obtain the leading index and the consistent index; the second processing module is used to synthesize the leading index and the consistent index according to the synthetic index model, To obtain the leading composite index and consistent composite index as early warning parameters.
进一步地,第二计算模块包括:第一子计算模块,用于根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数,t=1,2,…,n为月份数;第一子处理模块,用于将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标。Further, the second calculation module includes: a first sub-calculation module, which is used to obtain the correlation coefficient r l between each selected index and the benchmark index according to the following formula: Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators, t=1, 2,..., n is the number of months; the first sub-processing module is used to set the time difference within the first value range and The selected index whose correlation coefficient r l is greater than the first threshold is taken as the leading index, and the selected index whose time difference value is within the second value range and whose correlation coefficient r l is greater than the second threshold is regarded as the consistent index.
进一步地,第二计算模块包括:第二子计算模块,用于根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数,t=1,2,…,n为月份数;第二子处理模块,用于将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标的初始指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标的初始指标;第三子处理模块,用于对基准指标、先行指标的初始指标以及一致指标的初始指标进行标准化处理,以获取标准基准指标序列pt、标准被选择指标的序列qt,其中,标准被选择指标包括标准先行指标以及标准一致指标;第三子计算模块,用于按如下公式获取每个标准被选择指标和标准基准指标之间的K-L信息量kl:kl=∑ptln(pt/qt+1),其中,l=0,±1,…,±12, t=1,2,…,n为月份数,l为时差,nl为所有指标的个数;Further, the second calculation module includes: a second sub-calculation module, which is used to obtain the correlation coefficient r l between each selected indicator and the benchmark indicator according to the following formula: Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators, t=1, 2, ..., n is the number of months; the second sub-processing module is used to set the time difference within the first value range and The selected index whose correlation coefficient r l is greater than the first threshold is used as the initial index of the leading index, and the selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the consistent index Initial indicators; the third sub-processing module is used to standardize the benchmark indicators, the initial indicators of the leading indicators and the initial indicators of the consistent indicators, so as to obtain the standard benchmark indicator sequence p t and the standard selected indicator sequence q t , wherein, Standard selected indicators include standard leading indicators and standard consistent indicators; the third sub-calculation module is used to obtain the KL information k l between each standard selected indicator and standard benchmark indicator according to the following formula: k l =∑p t ln(p t /q t+1 ), where, l=0,±1,…,±12, t=1, 2,..., n is the number of months, l is the time difference, n l is the number of all indicators;
第四子处理模块,用于将时差取值在第三取值范围内且K-L信息量kl小于第三阈值的标准被选择指标作为先行指标,并将时差取值在第四取值范围内且K-L信息量kl小于第四阈值的被选择指标作为一致指标。The fourth sub-processing module is used to take the time difference value within the third value range and the standard selected index whose KL information volume k l is less than the third threshold as the leading index, and set the time difference value within the fourth value range And the selected index whose KL information amount k l is less than the fourth threshold is taken as the consistent index.
进一步地,第二处理模块包括:第五子处理模块,用于对先行指标和一致指标分别进行对称变化处理,以获取先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t),第五子处理模块包括:第四子计算模块,用于通过如下公式对先行指标进行对称变化处理,以获取先行指标对称变化率Cw,i(t):其中,是第i(i=1,2,…,kw)个先行指标,t=2,3,…,n为月份数,kw为先行指标的个数;第五子计算模块,用于通过如下公式对一致指标进行对称变化处理,以获取一致指标对称变化率Cz,i(t):其中,是第i(i=1,2,…,kz)个一致指标,t=2,3,…,n,kz是一致指标的个数;第六子处理模块,用于对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数。Further, the second processing module includes: a fifth sub-processing module, which is used to perform symmetrical change processing on the leading index and the consistent index respectively, so as to obtain the symmetrical rate of change C w,i (t) of the leading index and the symmetrical rate of change C of the consistent index z, i (t), the fifth sub-processing module includes: a fourth sub-calculation module, which is used to perform symmetrical change processing on the leading index through the following formula, so as to obtain the symmetrical rate of change C w,i (t) of the leading index: in, is the i-th (i=1, 2, ..., k w ) leading indicator, t=2, 3, ..., n is the number of months, and k w is the number of leading indicators; the fifth sub-calculation module is used to pass The following formula performs symmetrical change processing on the consistent index to obtain the symmetrical change rate C z,i (t) of the consistent index: in, is the i-th (i=1, 2,...,k z ) consistent index, t=2,3,...,n, k z is the number of consistent indexes; the sixth sub-processing module is used to be symmetrical to the leading index The results obtained after standardization and trend adjustment of the rate of change C w,i (t) and the symmetrical rate of change of the consistent index C z,i (t) are combined and calculated to obtain the leading composite index and the consistent composite index.
进一步地,第六子处理模块包括:第六子计算模块,用于通过如下公式获取标准化因子Aw,i和Az,i: t=2,3,…,n;第七子处理模块,用于采用标准化因子Aw,i和Az,i分别将先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理,以得到标准化变化率Sw,i(t)和Sz,i(t),其中, t=2,3,…,n;Further, the sixth sub-processing module includes: a sixth sub-calculation module, which is used to obtain the normalization factors A w, i and A z, i through the following formula: t=2,3,...,n; the seventh sub-processing module is used to use normalization factors A w,i and A z,i to respectively convert the leading index symmetric rate of change C w,i (t) and the consistent index symmetric rate of change C z,i (t) is standardized to obtain the standardized rate of change S w,i (t) and S z,i (t), where, t=2,3,...,n;
第八子处理模块,用于对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t);第七子计算模块,用于根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),其中,
进一步地,第八子处理模块包括:第九子处理模块,用于通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t):Further, the eighth sub-processing module includes: a ninth sub-processing module, which is used to respectively convert the standardized rate of change S w,i (t) of the leading index and the standardized rate of change S z,i (t) of the consistent index through the following formula Perform average rate of change processing to obtain the average rate of change R w (t) of leading indicators and the average rate of change R z (t) of consistent indicators:
进一步地,在执行获取模块之后,装置还包括:第十子处理模块,用于对数据序列中的数据进行预处理,预处理包括:填补缺失数据处理、修正噪声数据处理、数据平滑处理以及数据归一化处理。Further, after executing the acquisition module, the device further includes: a tenth sub-processing module, which is used to preprocess the data in the data sequence, and the preprocessing includes: filling missing data processing, correcting noise data processing, data smoothing processing, and data Normalized processing.
通过本申请的获取电力需求的预警参数的方法及装置,在获取原始数据序列中的趋势项和周期项之后,通过对数据序列筛选和计算获取先行指标和一致指标,然后将上述先行指标和一致指标用指数合成模型合成获得预警参数,并根据预警参数分析电力需求周期性波动,解决了现有技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法根据电力周期性波动制定合理的应对周期性波动的措施,实现了精确获取电力需求的预警参数,从而准确的根据短期周期性波动制定合理科学的应对措施的效果,进而减缓了周期波动的幅度,降低周期波动对电力行业和经济发展造成的破坏程度。Through the method and device for obtaining early warning parameters of electric power demand of the present application, after obtaining the trend item and cycle item in the original data sequence, the leading index and the consistent index are obtained by screening and calculating the data sequence, and then the above leading index and the consistent The index is synthesized with the index synthesis model to obtain the early warning parameters, and the periodic fluctuation of power demand is analyzed according to the early warning parameters, which solves the problem of using forecasting technology to obtain short-term periodic fluctuation distortion in the field of power demand in the prior art, and the early warning parameters that meet the power demand cannot be obtained. , so that it is impossible to formulate reasonable measures to deal with periodic fluctuations according to the periodic fluctuations of power, and realize the accurate acquisition of early warning parameters of power demand, so as to accurately formulate reasonable and scientific countermeasures according to short-term periodic fluctuations, thereby slowing down the cycle The magnitude of fluctuations can reduce the damage caused by cyclical fluctuations to the power industry and economic development.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据现有技术中电力需求的周期性波动的示意图;Fig. 1 is a schematic diagram according to the periodic fluctuation of power demand in the prior art;
图2是根据本发明的获取电力需求的预警参数的装置的结构示意图;Fig. 2 is a schematic structural diagram of a device for obtaining early warning parameters of power demand according to the present invention;
图3是根据本发明实施例的获取电力需求的预警参数的方法的流程图;3 is a flow chart of a method for obtaining early warning parameters of power demand according to an embodiment of the present invention;
图4是根据本发明实施例的获取电力需求的预警参数的方法的详细流程图;4 is a detailed flow chart of a method for obtaining early warning parameters of power demand according to an embodiment of the present invention;
图5是根据图4所示实施例的获取一致指标和先行指标的方法示意图;以及FIG. 5 is a schematic diagram of a method for obtaining consistent indicators and leading indicators according to the embodiment shown in FIG. 4; and
图6是根据图4所示实施例的趋势调整示意图。FIG. 6 is a schematic diagram of trend adjustment according to the embodiment shown in FIG. 4 .
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.
图2是根据本发明的获取电力需求的预警参数的装置的结构示意图。如图2所示,该装置包括:获取模块10,用于获取用于生成预警指标的数据序列;第一处理模块30,用于根据调整参数对数据序列进行筛选,以获取包含有趋势项和周期项的数据序列;第一计算模块50,用于计算包含有趋势项和周期项的数据序列的趋势指数,并根据趋势指数对包含有趋势项和周期项的数据序列进行过滤,以得到预警指标序列,预警指标序列为数据序列中趋势指数为增长的数据;第一提取模块70,用于提取预警指标序列中的发电量为基准指标,并提取除用电量以外的指标为被选择指标;第二计算模块90,用于根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标;第二处理模块110,用于根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。Fig. 2 is a schematic structural diagram of a device for obtaining early warning parameters of power demand according to the present invention. As shown in Figure 2, the device includes: an acquisition module 10, used to acquire a data sequence for generating early warning indicators; a first processing module 30, used to filter the data sequence according to the adjustment parameters, to obtain the data sequence containing trend items and The data sequence of the periodic item; the first calculation module 50 is used to calculate the trend index of the data sequence containing the trend item and the periodic item, and filter the data sequence containing the trend item and the periodic item according to the trend index to obtain an early warning The index sequence, the early warning index sequence is the data whose trend index is increasing in the data sequence; the first extraction module 70 is used to extract the power generation in the early warning index sequence as the benchmark index, and extract the indexes other than the electricity consumption as the selected index ; The second calculation module 90 is used to calculate the correlation of the early warning indicators according to the time difference analysis model and/or the K-L information model, so as to obtain the correlation coefficient between each selected index and the benchmark index, and according to the correlation coefficient Screen the selected indicators to obtain leading indicators and consistent indicators; the second processing module 110 is used to synthesize the leading indicators and consistent indicators according to the composite index model to obtain the leading composite index and consistent composite index as early warning parameters.
采用本发明的获取电力需求的预警参数的装置,通过获取模块将获取用于生成预警指标的数据序列,然后第一处理模块对数据序列进行筛选,并获取包含有趋势项和周期项的数据序列,之后第一计算模块计算上述数据序列的趋势指数,并根据趋势指数对上述数据序列进行过滤,以得到数据序列中趋势指数为增长的预警指标序列,然后通过第一提取模块提取预警指标序列中的发电量为基准指标,并提取除用电量以外的指标为被选择指标,之后第二计算模块根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标,最后第二处理模块根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。通过本申请的获取电力需求的预警参数的装置,先获取数据序列中的趋势项和周期项,然后对数据序列进行处理获取先行指标和一致指标,并将上述先行指标和一致指标用指数合成模型合成获得预警参数,解决了现有技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法根据电力周期性波动制定合理的应对措施的问题,实现了精确获取电力需求的预警参数,从而准确的根据短期周期性波动制定合理的应对措施的效果,进而减缓了周期波动的幅度,降低周期波动对电力行业和经济发展造成的破坏程度。Using the device for obtaining early warning parameters of power demand of the present invention, the data sequence used to generate early warning indicators will be obtained through the acquisition module, and then the first processing module will filter the data sequence and obtain the data sequence containing trend items and period items , then the first calculation module calculates the trend index of the above data sequence, and filters the above data sequence according to the trend index to obtain the early warning index sequence with the trend index in the data sequence growing, and then extracts the early warning index sequence through the first extraction module The power generation of the system is used as the benchmark index, and the indicators other than electricity consumption are extracted as the selected indicators, and then the second calculation module performs correlation calculation on the early warning indicators according to the time difference analysis model and/or the K-L information model, so as to obtain each selected indicator. Select the correlation coefficient between the index and the benchmark index, and screen the selected index according to the correlation coefficient to obtain the leading index and the consistent index, and finally the second processing module synthesizes the leading index and the consistent index according to the synthetic index model, To obtain the leading composite index and consistent composite index as early warning parameters. Through the device for obtaining early warning parameters of electric power demand in the present application, the trend item and period item in the data sequence are obtained first, and then the data sequence is processed to obtain the leading index and the consistent index, and the above leading index and the consistent index are combined into an index synthesis model The early warning parameters are synthesized to solve the problem in the prior art that using forecasting technology to obtain short-term periodic fluctuations in the field of power demand cannot obtain early warning parameters that meet power demand, resulting in the inability to formulate reasonable countermeasures based on periodic power fluctuations , to realize the accurate acquisition of early warning parameters of power demand, so as to accurately formulate reasonable countermeasures according to short-term periodic fluctuations, thereby slowing down the magnitude of periodic fluctuations and reducing the degree of damage caused by periodic fluctuations to the power industry and economic development.
具体地,在电力需求领域,用于生成预警指标的数据序列包括4部分:长期趋势项、行业扩张-繁荣收缩-衰退-再扩张等周期性规律导致的循环项、春夏秋冬或每月天数不同导致的季节项、不可知因素引起的随机项。通过本发明的获取电力需求的预警参数的装置,首先剔除原始数据序列中的季节项和随机项,获取其中的趋势项和周期项的数据序列,然后以季度国内生产总值或月度工业增加值作为基准指标,用时差相关分析或K-L信息量技术从大量的其他经济指标中筛选若干个先行指标和一致指标,最后用指数合成模型分别将若干个先行指标合成为先行指数,将若干个一致指标合成为一致指数,获取到预警参数,就可以根据预警参数实现利用先行指数的超前性判断一致指标的未来趋势的目的。Specifically, in the field of electricity demand, the data sequence used to generate early warning indicators includes four parts: long-term trend items, cycle items caused by periodic laws such as industry expansion-prosperity contraction-recession-re-expansion, spring, summer, autumn and winter or the number of days per month Seasonal items caused by different factors, random items caused by unknown factors. Through the device of the present invention for obtaining the early warning parameters of electric power demand, the seasonal item and the random item in the original data sequence are first eliminated, and the data sequence of the trend item and the cycle item is obtained, and then the quarterly GDP or the monthly industrial added value As a benchmark index, use time difference correlation analysis or K-L information technology to screen several leading indicators and consistent indicators from a large number of other economic indicators, and finally use the index synthesis model to synthesize several leading indicators into leading indexes respectively, and combine several consistent indicators Synthesized into a consensus index, and obtained the early warning parameters, the purpose of judging the future trend of the consensus index by using the advanced nature of the leading index can be realized according to the early warning parameters.
在本发明的上述实施例中,通过第一处理模块30对数据序列作筛选,对原始数据序列做季节调整,即剔除季节性因素和随机因素的影响,以长期趋势项(即上述实施例中的趋势项)和短期循环项(即上述实施例中的周期项)为基础,通过指标筛选和指数合成,用景气预警技术研究电力需求的波动趋势,并且,上述实施例用经济预警电力需求,从大量的经济指标中筛选先行指标和一致指标,用来判断电力需求的周期性波动,使得判断结果更加准确,使得用于制定合理应对措施的周期性波动更加精确合理。In the above-mentioned embodiments of the present invention, the data sequence is screened by the first processing module 30, and the original data sequence is seasonally adjusted, that is, the influence of seasonal factors and random factors is eliminated, and the long-term trend item (that is, in the above-mentioned embodiment) Based on the trend item) and the short-term cycle item (that is, the cycle item in the above-mentioned embodiment), through index screening and index synthesis, the fluctuation trend of power demand is studied with the boom early warning technology, and the above-mentioned embodiment uses the economic early warning power demand, Select leading indicators and consistent indicators from a large number of economic indicators to judge the periodic fluctuations of power demand, making the judgment results more accurate and making the periodic fluctuations used to formulate reasonable countermeasures more accurate and reasonable.
在本申请的上述实事例中,第二计算模块90包括:第一子计算模块,用于根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:In the above practical example of the present application, the second calculation module 90 includes: a first sub-calculation module, which is used to obtain the correlation coefficient r l between each selected index and the benchmark index according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数;第一子处理模块,用于将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标。 Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators; the first sub-processing module is used to select the selected indicators whose time difference value is within the first value range and the correlation coefficient r l is greater than the first threshold As the leading index, the selected index whose time difference value is within the second value range and whose correlation coefficient r l is greater than the second threshold is taken as the consistent index.
具体地,以基准指标做为筛选的“标杆”,用时差相关分析模型初步筛选一致指标和先行指标。除基准指标外的所有被选择指标都超前或滞后期l(即上述实施例中的时差)(l=0,±1,±2,…,±12),第一子计算模块根据下式分别计算每个被选择指标与基准指标的相关性系数rl:Specifically, the benchmark indicators are used as the "benchmark" for screening, and the time difference correlation analysis model is used to initially screen consistent indicators and leading indicators. All the selected indexes except the benchmark indexes lead or lag period l (i.e. the time difference in the above-mentioned embodiment) (l=0, ±1, ±2,..., ±12), the first sub-calculation module is respectively according to the following formula Calculate the correlation coefficient r l between each selected index and the benchmark index:
上式中Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,r为相关系数,l表示超前或滞后期(即时差),l取负数时表示超前,取正数时表示滞后,l被称为时差或延迟数,和分别为序列X和Y的平均值。nl是所有指标的数据个数。则最大的时差相关系数被认为反映了被选指标与基准指标的时差相关关系,相应的延迟数l表示超前或滞后期,即使得时差相关性系数rl最大的延迟数l就是该被选指标与基准指标的超前或滞后期。In the above formula, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is the selected index, r is the correlation coefficient, l means leading or lagging Period (instantaneous difference), when l is negative, it means ahead, when it is positive, it means lag, l is called time difference or delay number, and are the mean values of sequences X and Y, respectively. n l is the number of data of all indicators. Then the largest time-difference correlation coefficient is considered to reflect the time-difference correlation relationship between the selected index and the benchmark index, and the corresponding delay number l represents the leading or lagging period, that is, the largest delay number l of the time-difference correlation coefficient r l is the selected index The lead or lag period with respect to the benchmark metric.
根据本申请的上述实施例,第二计算模块90还可以包括:第二子计算模块,用于根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:According to the above-mentioned embodiment of the present application, the second calculation module 90 may further include: a second sub-calculation module, configured to obtain the correlation coefficient r l between each selected index and the benchmark index according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数;第二子处理模块,用于将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标的初始指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标的初始指标;第三子处理模块,用于对基准指标、先行指标的初始指标以及一致指标的初始指标进行标准化处理,以获取标准基准指标序列pt、标准被选择指标的序列qt,其中,标准被选择指标包括标准先行指标以及标准一致指标;第三子计算模块,用于按如下公式获取每个标准被选择指标和标准基准指标之间的K-L信息量kl: Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators; the second sub-processing module is used to select the selected indicators whose time difference value is within the first value range and the correlation coefficient r l is greater than the first threshold As the initial index of the leading index, the selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the initial index of the consistent index; the third sub-processing module is used for benchmarking Indicators, the initial indicators of the leading indicators and the initial indicators of the consistent indicators are standardized to obtain the standard benchmark index sequence p t and the sequence q t of the standard selected indicators, where the standard selected indicators include the standard leading indicators and the standard consistent indicators; The third sub-calculation module is used to obtain the KL information amount k l between each standard selected index and the standard benchmark index according to the following formula:
kl=∑ptln(pt/qt+1),其中,l=0,±1,…,±12, t=1,2,…,n,l为时差,nl为所有指标的个数;第四子处理模块,用于将时差取值在第三取值范围内且K-L信息量kl小于第三阈值的标准被选择指标作为先行指标,并将时差取值在第四取值范围内且K-L信息量kl小于第四阈值的被选择指标作为一致指标。其中,第一取值范围可以是小于-3,第二取值范围可以是大于或等于-2且小于或等于2,第一阈值可以是0.7,第二阈值也可以是0.7。其中,t为月份数。k l =∑p t ln(p t /q t+1 ), where, l=0,±1,…,±12, t=1, 2,..., n, l is the time difference, n l is the number of all indicators; the fourth sub-processing module is used to set the time difference value within the third value range and the KL information amount k l is less than the first The three-threshold standard selects the index as the leading index, and takes the selected index whose time difference value is within the fourth value range and the KL information k l is less than the fourth threshold as the consistent index. Wherein, the first value range may be less than -3, the second value range may be greater than or equal to -2 and less than or equal to 2, the first threshold may be 0.7, and the second threshold may also be 0.7. Among them, t is the number of months.
具体地,通过第二子计算模块计算获取到相关性系数rl之后,第二子处理模块将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标的初始指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标的初始指标,之后第三子处理模块将基准指标做标准化处理,处理后的标准基准指标序列记为pt:Specifically, after the correlation coefficient r l is obtained through the calculation of the second sub-calculation module, the second sub-processing module uses the selected index whose time difference value is within the first value range and the correlation coefficient r l is greater than the first threshold as The initial index of the leading index, and the selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the initial index of the consistent index, and then the third sub-processing module standardizes the benchmark index Processing, the processed standard benchmark index sequence is denoted as p t :
第三子处理模块将初选的先行指标和一致指标也做标准化处理,处理后的标准被选择指标的序列记为qt:The third sub-processing module also standardizes the pre-selected leading indicators and consistent indicators, and the processed standard is recorded as the sequence of selected indicators as q t :
然后,第四子处理模块按下式计算每个初选指标延迟l后关于基准指标的K-L信息量kl:Then, the fourth sub-processing module calculates the amount of KL information k l about the benchmark index after the delay l of each primary index:
kl=∑ptln(pt/qt+1),l=0,±1,…,±12k l =∑p t ln(p t /q t+1 ), l=0,±1,…,±12
其中,l表示超前或滞后期,l取负数时表示超前,取正数时表示滞后,l被称为时差,nl是数据取齐后的数据个数(即所有指标的个数),上述公式中的t代表月份,j代表年。Among them, l represents the leading or lagging period. When l is a negative number, it means leading, and when it is positive, it means lagging. l is called the time difference. In the formula, t represents the month and j represents the year.
更具体地,当计算出2L+1个K-L信息量后,从kl值中选出一个最小值kl′作为被选指标x关于基准指标y的K-L信息量,即其相对应的延迟数l*就是被选指标最适当的超前或滞后月数(季度)。K-L信息量越接近于0,说明指标x与基准指标y越接近。并将筛选出来的先行指标和一致指标分别记为W(3)和Z(3)。More specifically, after calculating 2L+1 KL information amounts, select a minimum value k l′ from the k l values as the KL information amount of the selected index x with respect to the benchmark index y, namely The corresponding delay number l * is the most appropriate leading or lagging months (quarters) of the selected indicators. The closer the KL information is to 0, the closer the index x is to the benchmark index y. And the screened leading indicators and consistent indicators are recorded as W (3) and Z (3) respectively.
根据本申请的上述实施例,第二处理模块110可以包括:第五子处理模块,用于对先行指标和一致指标分别进行对称变化处理,以获取先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t),第五子计算模块包括:第四子计算模块,用于通过如下公式对先行指标进行对称变化处理,以获取先行指标对称变化率Cw,i(t):According to the above-mentioned embodiments of the present application, the second processing module 110 may include: a fifth sub-processing module, configured to perform symmetrical change processing on the leading index and the consistent index respectively, so as to obtain the symmetric change rate C w,i (t) of the leading index And consistent index symmetric rate of change C z, i (t), the fifth sub-calculation module includes: the fourth sub-calculation module, used to carry out symmetric change processing to the leading index through the following formula, to obtain the leading index symmetric rate of change C w, i (t):
其中,是第i(i=1,2,…,kw)个先行指标,t=2,3,…,n,kw先行指标的个数;以及第五子计算模块,用于通过如下公式对一致指标进行对称变化处理,以获取一致指标对称变化率Cz,i(t): in, is the number of the i (i=1, 2, ..., k w ) leading indicators, t=2, 3, ..., n, k w leading indicators; and the fifth sub-calculation module, used for the following formula The consistent index is processed symmetrically to obtain the symmetrical change rate C z,i (t) of the consistent index:
其中,是第i(i=1,2,…,kz)个一致指标,t=2,3,…,n,kz是一致指标的个数;第六子处理模块,用于对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数。 in, is the i-th (i=1, 2, ..., k z ) consistent index, t=2, 3, ..., n, k z is the number of consistent indicators; the sixth sub-processing module is used to be symmetrical to the leading index The results obtained after standardization and trend adjustment of the rate of change C w,i (t) and the symmetrical rate of change of the consistent index C z,i (t) are combined and calculated to obtain the leading composite index and the consistent composite index.
具体地,第五子处理模块用指数合成模型求指标的对称变化率并通过第六子处理模块将其标准化,通过第五子处理模块中的第四子计算模块根据下述公式对求对称变化率Cw,i(t):Specifically, the fifth sub-processing module uses the exponential synthesis model to find the symmetrical rate of change of the index and standardizes it through the sixth sub-processing module, and the fourth sub-calculation module in the fifth sub-processing module according to the following formula Find the symmetrical rate of change C w,i (t):
t=2,3,…,n,其中,是第i(i=1,2,…,kw)个先行指标,kw是先行指标的个数。 t=2,3,...,n, where, is the i-th (i=1, 2, . . . , k w ) leading indicator, and k w is the number of leading indicators.
通过第五子计算模块根据下述公式对求对称变化率Cz,i(t):Through the fifth sub-calculation module according to the following formula Find the symmetrical rate of change C z,i (t):
t=2,3,…,n,其中,是第i(i=1,2,…,kz)个一致指标,kz是一致指标的个数。 t=2,3,...,n, where, is the i-th (i=1, 2, ..., k z ) consistent index, and k z is the number of consistent indexes.
在本申请的上述实施例中,第六子处理模块可以包括:第六子计算模块,用于通过如下公式获取标准化因子Aw,i和Az,i: t=2,3,…,n;第七子处理模块,用于采用标准化因子Aw,i和Az,i分别将先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理,以得到标准化变化率Sw,i(t)和Sz,i(t),其中,In the above-mentioned embodiment of the present application, the sixth sub-processing module may include: a sixth sub-calculation module, which is used to obtain the normalization factors A w, i and A z, i through the following formula: t=2,3,...,n; the seventh sub-processing module is used to use normalization factors A w, i and A z, i to respectively convert the leading index symmetric rate of change C w,i (t) and the consistent index symmetric rate of change C z,i (t) is standardized to obtain standardized rate of change S w,i (t) and S z,i (t), where,
第八子处理模块,用于对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t);第七子计算模块,用于根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),其中,
具体地,第六子计算模块根据如下公式对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)做标准化计算,使其平均绝对值等于1,获取标准化因子Aw,i和Az,i:Specifically, according to the following formula, the sixth sub-calculation module performs standardized calculations on the symmetrical rate of change C w,i (t) of the leading index and the symmetrical rate of change C z,i (t) of the consistent index, so that the average absolute value is equal to 1, and the obtained Normalization factors A w,i and A z,i :
然后第七子处理模块根据Aw,i和Az,i分别将Cw,i(t)和Cz,i(t)标准化,得到标准化变化率Sw,i(t)和Sz,i(t):Then the seventh sub-processing module standardizes C w, i (t) and C z, i (t) according to A w, i and A z, i respectively, and obtains standardized rate of change S w, i (t) and S z, i (t):
t=2,3,…,n,之后第八子处理模块根据标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t),并通过第七子计算模块根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),具体地:令Iw(1)=100,Iz(1)=100,则 t=2,3,...,n, then the eighth sub-processing module performs average change rate processing according to standardized change rates S w,i (t) and S z,i (t) to obtain the standardized average change rate of leading indicators V w (t) and the standardized average rate of change V z (t) of the consistent index, and through the seventh sub-calculation module according to the standardized average rate of change V w (t) of the leading index and the standardized average rate of change V z ( t) Perform composite calculations to obtain the leading composite index I w (t) and the consistent composite index I z (t), specifically: let I w (1)=100, I z (1)=100, then
更具体地,在获取到先行合成指数Iw(t)和一致合成指数Iz(t)之后,可以对电力需求趋势进行调整,方法如下:More specifically, after obtaining the leading composite index I w (t) and the consistent composite index I z (t), the power demand trend can be adjusted in the following way:
根据如下复利公式对一致指标组的每个序列分别求出各自的平均增长率:According to the following compound interest formula, calculate the respective average growth rate for each sequence of the consistent index group:
其中,图6是根据图4所示实施例的趋势调整示意图,如图6所示,t为月份,和分别是一致指标组第i个指标最先与最后循环的平均值,mIi与mLi分别是一致指标组第i个指标最先与最后循环的月数,k2是一致指标个数,mi是最先循环的中心到最后循环的中心之间的月数。Wherein, Fig. 6 is a schematic diagram of trend adjustment according to the embodiment shown in Fig. 4, as shown in Fig. 6, t is the month, and are the average values of the first and last cycles of the i-th index of the consistent index group, m Ii and m Li are the months of the first and last cycles of the i-th index of the consistent index group, k 2 is the number of consistent indicators, m i is the number of months between the center of the first cycle to the center of the last cycle.
然后求出一致指标组的平均增长率Gr,并将其作为目标趋势:之后对先行和一致指标的初始合成指数Iw(t)和Iz(t)分别用复利公式求出他们各自的平均增长率r′w和r′z:Then calculate the average growth rate G r of the consistent index group and use it as the target trend: Then use the compound interest formula to calculate their respective average growth rates r′ w and r′ z for the initial composite indices I w (t) and I z (t) of the leading and consistent indicators:
其中, in,
再对先行指标组和一致指标组的标准化平均变化率Vw(t)和Vz(t)做趋势调整:Then make trend adjustments for the standardized average rate of change V w (t) and V z (t) of the leading index group and the consistent index group:
V′w(t)=Vw(t)+(Gr-r′w),V′z(t)=Vz(t)+(Gr-r′z),t=2,3,...,n。然后根据上述实施例中的方法计算合成指数:令I′w(1)=100,I′z(1)=100,则V′ w (t)=V w (t)+(G r -r′ w ), V′ z (t)=V z (t)+(G r -r′ z ), t=2,3, ..., n. Then calculate composite index according to the method in above-mentioned embodiment: make I' w (1)=100, I' z (1)=100, then
生成以基准年份为100的先行合成指数CIw(t)和一致合成指数CIz(t):Generate the leading composite index CI w (t) and consistent composite index CI z (t) with the base year as 100:
其中和分别是I′w(t)和I′z(t)在基准年份的平均值。in and are the mean values of I′ w (t) and I′ z (t) in the base year, respectively.
根据本申请的上述实施例,第八子处理模块可以包括:第九子处理模块,用于通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t):According to the above-mentioned embodiments of the present application, the eighth sub-processing module may include: a ninth sub-processing module, which is used to respectively convert the normalized rate of change S w,i (t) of the leading index and the standardized rate of change S of the consistent index through the following formula z,i (t) performs average rate of change processing to obtain the average rate of change R w (t) of leading indicators and the average rate of change R z (t) of consistent indicators:
第九子计算模块,用于根据指标标准化因子Fw进行标准化平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率V2(t),其中,Vw(t)=Rw(t)/Fw,Vz(t)=Rz(t)。The ninth sub-calculation module is used to process the standardized average rate of change according to the index normalization factor Fw , so as to obtain the standardized average rate of change Vw ( t) of the leading index and the standardized average rate of change V2 (t) of the consistent index, where , V w (t)=R w (t)/F w , V z (t)=R z (t).
具体地,通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t):Specifically, the standardized rate of change S w,i (t) of the leading indicator and the standardized rate of change S z,i (t) of the consistent indicator are processed by the average rate of change respectively by the following formula to obtain the average rate of change R of the leading indicator w (t) and the average rate of change R z (t) of the consensus indicator:
然后根据如下公式计算指数标准化因子Fw:Then calculate the exponential normalization factor F w according to the following formula:
最后根据指标标准化因子Fw进行标准化平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t):Finally, the normalized average rate of change is processed according to the index standardization factor F w to obtain the standardized average rate of change V w (t) of the leading index and the standardized average rate of change V z (t) of the consistent index:
Vw(t)=Rw(t)/Fw,Vz(t)=Rz(t),t=2,3,…,n,其中,用一致指标序列的平均变化率的振幅去调整先行指标序列和滞后指标序列的平均变化率,其目的是为了把两个指数当作一个协调一致的体系来应用。V w (t) = R w (t)/F w , V z (t) = R z (t), t = 2, 3,..., n, where the amplitude of the average rate of change of the consistent index sequence is used to The purpose of adjusting the average rate of change of the leading index series and the lagging index series is to apply the two indexes as a coordinated system.
根据本申请的上述实施例,在执行获取模块10之后,装置还可以包括:第十子处理模块,用于对数据序列中的数据进行预处理,预处理包括:填补缺失数据处理、修正噪声数据处理、数据平滑处理以及数据归一化处理。According to the above-mentioned embodiments of the present application, after executing the acquisition module 10, the device may further include: a tenth sub-processing module, for preprocessing the data in the data sequence, the preprocessing includes: filling missing data processing, correcting noise data processing, data smoothing, and data normalization.
图3是根据本发明实施例的获取电力需求的预警参数的方法的流程图。图4是根据本发明实施例的获取电力需求的预警参数的方法的详细流程图。Fig. 3 is a flow chart of a method for obtaining early warning parameters of power demand according to an embodiment of the present invention. Fig. 4 is a detailed flow chart of a method for obtaining early warning parameters of power demand according to an embodiment of the present invention.
如图3和图4所示,该方法包括如下步骤:As shown in Figure 3 and Figure 4, the method includes the following steps:
步骤S102,获取用于生成预警指标的数据序列。Step S102, acquiring a data sequence for generating early warning indicators.
其中,该步骤可以通过图4中的步骤S202实现:收集宏观经济和电力需求月度数据,并做预处理。Wherein, this step can be realized by step S202 in FIG. 4 : collecting monthly data on macroeconomics and power demand, and performing preprocessing.
步骤S104,根据调整参数对数据序列进行筛选,以获取包含有趋势项和周期项的数据序列。其中,通过图4中步骤S204可以实现该方法:通过对数据序列作季节调整,获取所有指标的趋势项和周期项。In step S104, the data series are screened according to the adjustment parameters to obtain a data series including trend items and period items. Wherein, this method can be implemented through step S204 in FIG. 4: by making seasonal adjustments to the data series, the trend items and period items of all indicators are obtained.
具体地,在电力需求领域,生成预警指标的数据序列包括4部分:长期趋势项(即趋势项)、行业扩张-繁荣收缩-衰退-再扩张等周期性规律导致的循环项(即周期项)、春夏秋冬或每月天数不同导致的季节项、不可知因素引起的随机项,对数据为价值量和物理量的指标作季节调整,剔除数据序列中的季节项和随机项,获取其中的趋势项和周期项的数据序列。Specifically, in the field of electricity demand, the data sequence for generating early warning indicators includes four parts: long-term trend items (ie trend items), cycle items caused by periodic laws such as industry expansion-prosperity contraction-recession-re-expansion (ie cycle items) Seasonal items caused by different seasons, spring, summer, autumn and winter or the number of days per month, random items caused by unknown factors, seasonal adjustments are made to the indicators of data value and physical quantities, seasonal items and random items in the data sequence are eliminated, and trend items are obtained and a data sequence of periodic terms.
步骤S106,计算包含有趋势项和周期项的数据序列的趋势指数,并根据趋势指数对包含有趋势项和周期项的数据序列进行过滤,以得到预警指标序列,预警指标序列为数据序列中趋势指数为增长的数据。其中,该步骤可以通过步骤S206至S208实现:步骤S206判断数据序列中的指标数据是否为增长指数类指标数据,并且在是的情况下,执行步骤S208:计算指标的增长速度,在数据序列中的指标数据不是增长指数类指标数据的情况下,执行步骤S210。Step S106, calculate the trend index of the data sequence containing trend items and period items, and filter the data series containing trend items and period items according to the trend index to obtain the early warning index sequence, which is the trend in the data sequence Exponential is the growth data. Among them, this step can be realized through steps S206 to S208: step S206 judges whether the index data in the data sequence is growth index index data, and if yes, executes step S208: calculate the growth rate of the index, and in the data sequence In the case that the index data is not growth index index data, step S210 is performed.
步骤S108,提取预警指标序列中的发电量为基准指标,并提取除发电量以外的指标为被选择指标。其中,通过步骤S210实现该方法:确定基准指标。Step S108, extracting the power generation amount in the early warning index sequence as the reference index, and extracting the indexes other than the power generation amount as the selected indexes. Wherein, the method is realized through step S210: determining a benchmark index.
具体在电力需求领域,以季度国内生产总值或月度工业增加值作为基准指标。Specifically in the field of electricity demand, quarterly GDP or monthly industrial added value is used as the benchmark indicator.
步骤S110,根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标。其中,步骤S212可以实现该方法:用时差分析模型筛选初始一致指标和初始先行指标;然后执行步骤S214:用K-L信息量模型从初选的一致指标和先行指标中筛选最终的一致指标和先行指标。Step S110, perform correlation calculation on the warning indicators according to the time difference analysis model and/or the K-L information model, so as to obtain the correlation coefficient between each selected index and the benchmark index, and filter the selected indicators according to the correlation coefficient , to get the leading and consistent indicators. Among them, step S212 can implement this method: use the time difference analysis model to screen the initial consistent indicators and initial leading indicators; then perform step S214: use the K-L information model to screen the final consistent indicators and leading indicators from the primary consistent indicators and leading indicators .
具体地,可以用时差分析模型从宏观经济、工业产品产量等指标中初步筛选一致指标和先行指标。Specifically, the time-difference analysis model can be used to preliminarily screen consistent indicators and leading indicators from indicators such as macroeconomics and industrial product output.
步骤S112,根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。其中,通过执行步骤S216实现上述方法:用指数合成模型分别把一致指标和先行指标合成为一致指数和先行指数;然后执行步骤S218:根据一致指数和先行指数获取预警参数,并使用预警参数分析电力需求周期性波动。In step S112, the leading index and the consistent index are synthesized according to the synthetic index model, so as to obtain the leading synthetic index and the consistent synthetic index as early warning parameters. Among them, the above method is realized by executing step S216: using the index synthesis model to synthesize the consistent index and the leading index into the consistent index and the leading index; Demand fluctuates periodically.
具体地,用指数合成模型分别将若干个先行指标合成为先行指数,将若干个一致指标合成为一致指数,获取到预警参数,就可以根据预警参数实现利用先行指数的超前性判断一致指标的未来趋势的目的。Specifically, use the index synthesis model to synthesize several leading indicators into a leading index, and synthesize several consistent indicators into a consistent index. After obtaining the early warning parameters, the future of the consistent indicators can be judged based on the early warning parameters. purpose of the trend.
采用本发明的获取电力需求的预警参数的方法,通过将获取用于生成预警指标的数据序列进行筛选,并获取包含有趋势项和周期项的数据序列,之后计算上述数据序列的趋势指数,并根据趋势指数对该数据序列进行过滤,以得到数据序列中趋势指数为增长的预警指标序列,然后提取预警指标序列中的发电量为基准指标,并提取除用电量以外的指标为被选择指标,之后根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标,最后根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数。通过本申请的获取电力需求的预警参数的方法,先获取数据序列中的趋势项和周期项,然后通过筛选获取先行指标和一致指标,并将上述先行指标和一致指标用指数合成模型合成获得预警参数,解决了现有技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法根据电力周期性波动制定合理的应对措施的问题,实现了精确获取电力需求的预警参数,从而准确的根据短期周期性波动制定合理的应对周期性波动的措施的效果,进而减缓了周期波动的幅度,降低周期波动对电力行业和经济发展造成的破坏程度。Using the method for obtaining early warning parameters of electric power demand of the present invention, the data sequence obtained for generating early warning indicators is screened, and the data sequence containing trend items and period items is obtained, and then the trend index of the above data sequence is calculated, and Filter the data sequence according to the trend index to obtain the early warning index sequence in which the trend index is increasing in the data sequence, then extract the power generation in the early warning index sequence as the benchmark index, and extract the indicators other than electricity consumption as the selected indicators , and then calculate the correlation of the early warning indicators according to the time difference analysis model and/or the K-L information model, so as to obtain the correlation coefficient between each selected index and the benchmark index, and filter the selected indicators according to the correlation coefficient, In order to obtain the leading index and the consistent index, finally, according to the composite index model, the leading index and the consistent index are synthesized to obtain the leading composite index and the consistent composite index as early warning parameters. Through the method of obtaining early warning parameters of electric power demand in this application, the trend items and period items in the data sequence are obtained first, and then the leading indicators and consistent indicators are obtained through screening, and the above leading indicators and consistent indicators are synthesized with an index synthesis model to obtain early warning Parameters, which solves the problem in the prior art that using forecasting technology to obtain short-term periodic fluctuation distortion in the field of power demand, and the early warning parameters that meet the power demand cannot be obtained, resulting in the inability to formulate reasonable countermeasures according to the periodic fluctuation of power. Realized Accurately obtain the early warning parameters of power demand, so as to accurately formulate reasonable measures to deal with periodic fluctuations according to the effect of short-term periodic fluctuations, thereby slowing down the magnitude of periodic fluctuations and reducing the damage caused by periodic fluctuations to the power industry and economic development.
在本发明的上述实施例中,通过步骤S102首先对数据序列作筛选,也即对原始数据序列做季节调整,即剔除季节性因素和随机因素的影响,以长期趋势项(即上述实施例中的趋势项)和短期循环项(即上述实施例中的周期项)为基础,通过指标筛选和指数合成,用景气预警技术研究电力需求的波动趋势,并且,上述实施例用经济预警电力需求,从大量的经济指标中筛选先行指标和一致指标,用来判断电力需求的周期性波动,使得判断结果更加准确,使得用于制定合理应对措施的周期性波动更加精确合理。In the above-mentioned embodiment of the present invention, the data sequence is firstly screened through step S102, that is, the original data sequence is seasonally adjusted, that is, the influence of seasonal factors and random factors is removed, and the long-term trend item (that is, in the above-mentioned embodiment Based on the trend item) and the short-term cycle item (that is, the cycle item in the above-mentioned embodiment), through index screening and index synthesis, the fluctuation trend of power demand is studied with the boom early warning technology, and the above-mentioned embodiment uses the economic early warning power demand, Select leading indicators and consistent indicators from a large number of economic indicators to judge the periodic fluctuations of power demand, making the judgment results more accurate and making the periodic fluctuations used to formulate reasonable countermeasures more accurate and reasonable.
其中,步骤S202中的预处理可以包括:填补缺失数据处理、修正噪声数据处理、数据平滑处理以及数据归一化处理,并将处理后的数据序列作为Y(0)。Wherein, the preprocessing in step S202 may include: filling missing data processing, correcting noise data processing, data smoothing processing and data normalization processing, and the processed data sequence is taken as Y (0) .
具体地,在本申请的上述实施例中,在执行步骤S204之前,该方法还包括如下步骤:Specifically, in the above-mentioned embodiments of the present application, before performing step S204, the method further includes the following steps:
(1)去掉节假日或其它原因造成的给定月份在不同年份之间工作日数多少的差别,具体方法如下:(1) Remove the difference in the number of working days in a given month between different years caused by holidays or other reasons. The specific method is as follows:
在该实施例中,设待分析的月度数据序列(t=1,2,…,n)共有m年,n个月,n=m×12,t代表月份数,i代表星期数,j代表年数,则各月实际工作天数为Dt(t=1,2,…,n),m年平均的每个月份的工作天数为:(L=1,2,…,12),可得到工作天数调整系数序列pt:In this example, suppose the monthly data series to be analyzed (t=1,2,...,n) there are m years, n months, n=m×12, t represents the number of months, i represents the number of weeks, j represents the number of years, then the actual number of working days in each month is D t (t =1, 2,...,n), the average number of working days in each month in m years is: (L=1,2,…,12), the working days adjustment coefficient sequence p t can be obtained:
t=1,2,…,n,然后根据工作天数调整系数pt得到月份调整后的月度数据序列Y(1):
(2)对序列中的周工作日调整:从原序列中抽出因各月的周工作日(星期结构)不同而造成的变动。(2) Adjust the working day in the sequence: extract the changes caused by the different working days (week structure) of each month from the original sequence.
假设周工作日变动要素包含在不规则要素中,即不规则要素的形式是IDr,假设已从原序列分解出IDr,用回归分析求出星期一,二,……,日的相应权重,从而将IDr分解为真正的不规则要素I和周工作日变动要素Dr。Assume that the variable elements of the working day of the week are included in the irregular elements, that is, the form of the irregular elements is ID r , assuming that ID r has been decomposed from the original sequence, use regression analysis to find the corresponding weights of Monday, Tuesday, ..., days , so that the ID r is decomposed into the real irregular element I and the weekly working day variable element D r .
上式中:IDrt为包含有第t月周工作日变动要素Dr的不规则要素;xit为t月中星期i的天数(t=1,…,n);Bi为星期i的权重();At为t月的天数,2月取28.25天;It为真正的不规则要素。In the above formula: ID rt is an irregular element including the variable element D r of weekday in month t; x it is the number of days in week i in month t (t=1,...,n); B i is the number of days in week i Weights( ); A t is the number of days in month t, 28.25 days in February; I t is the real irregular element.
在由此得到的Bi的估计值为bi时,可根据如下公式计算得t月的周工作日变动要素Dr:When the estimated value of Bi thus obtained is bi , the variable element D r of the weekly working day in month t can be calculated according to the following formula:
Drt={x1t(b1+1)+x2t(b2+1)+…+x7t(b7+1)}/At。D rt ={x 1t (b 1 +1)+x 2t (b 2 +1)+...+x 7t (b 7 +1)}/A t .
(3)在根据节假日和周工作日因素对数据序列进行调整后,将序列中的特异项进行修正。(3) After adjusting the data series according to factors of holidays and working days, correct the peculiar items in the series.
在分解经济时间序列中的各种因素时,需要预先修正在不规则变动中具有显著异常值的项(即特异项,如罢工、气候恶劣的影响、数据误差等)。其方法是:When decomposing various factors in the economic time series, it is necessary to pre-correct items with significant outliers in irregular changes (that is, idiosyncratic items, such as strikes, the impact of bad weather, data errors, etc.). The method is:
a.特异项的界限值的设定。a. The setting of the threshold value of the unique item.
假设已从原序列中分解出不规则要素I。为了排除不规则变动要素I中的异常值,需要计算I的5年移动平均标准差。首先计算初始的5年移动平均标准差即:Assume that the irregular element I has been decomposed from the original sequence. In order to exclude outliers in the irregular variable element I, it is necessary to calculate the standard deviation of the 5-year moving average of I. First calculate the initial 5-year moving average standard deviation which is:
上式中是I序列的5年移动平均值,m是I序列的年数,t=1,2,…,n(t是I序列的月数)。让对应于5年期间的中心年,每年计算出一个故是一个年度序列。可以认为满足的It是特异的,除去这些It,由下式:In the above formula is the 5-year moving average of the I series, m is the number of years in the I series, t=1,2,...,n (t is the number of months in the I series). Let Corresponding to the central year of the 5-year period, one is calculated for each year so is an annual sequence. can be considered satisfied The I t is specific, remove these I t , by the following formula:
再次算出5年移动标准差{σj},式中t=1,2,…,n(t是I序列的月数),a是特异值的个数。{σj}序列两端各缺少2项,分别采用距离始端和终端第3年的{σj}来代替两端欠缺的两年的σj值。Calculate the 5-year moving standard deviation {σ j } again, where t=1,2,...,n (t is the number of months in the I series), and a is the number of outliers. Two items are missing at both ends of the {σ j } sequence, and the {σ j } of the 3rd year from the start and end are used to replace the missing two-year σ j values at both ends.
b.特异项的修正。b. The correction of the peculiar items.
根据5年移动标准差{σj}来计算修正的权数w,The modified weight w is calculated according to the 5-year moving standard deviation {σ j },
其中,t=1,2,…,n(t是I序列的月数),j=1,2,…,m,利用上述不等式可修正I序列的特异项:对应于wt<1的It,以该wt为权数,与之相近的前后各两项的It-2,It-1,It+1,It+2(注意所取的项所对应的w必须等于1,否则取旁边的值)共5项作加权平均,用这样得到的值替换It。若对应于wt<1的It位于两端时,以该wt为权,与其相近的3项wt=1的I值共4项作加权平均,用得到的这个平均值替换It。修正特异项后的I序列记为Iw。 Among them, t=1,2,…,n (t is the number of months in the I sequence), j=1,2,…,m, using the above inequalities can correct the peculiar term of the I sequence: It corresponds to w t <1 , with this w t as the weight, the two items of I t-2 , I t-1 , I t+1 , I t+2 that are similar to it before and after (note that the w corresponding to the selected item must be equal to 1 , otherwise take the value next to it) as a weighted average of 5 items, and use the value obtained in this way Replace I t . If I t corresponding to w t <1 is located at both ends, take this w t as the weight, and a total of 4 items of the I value of the three items w t = 1 close to it are used as weighted average, and the obtained average value is used Replace I t . The I sequence after correcting the specific items is recorded as I w .
(4)根据月度数据序列进行初始估计,获取初始趋势循环成分。(4) According to the monthly data series Make an initial estimate to obtain the initial trend cycle component.
使用中心化12项移动平均估计序列中的趋势循环成分 Estimating the Cyclic Component of Trend in a Series Using a Centered 12-Term Moving Average
其中,yt-6,yt-5,…,yt,…,yt+5,yt+6是月度数据序列中的元素。Among them, y t-6 , y t-5 , …, y t , …, y t+5 , y t+6 are monthly data series elements in .
(5)根据趋势循环成分估计季节不规则成分 (5) Cycle ingredients according to trend Estimated Seasonal Irregularity Component
(6)根据季节不规则成分对每个月份应用3×3移动平均初步估计季节成分:(6) Irregular composition according to season Apply a 3×3 moving average to each month to initially estimate the seasonal component:
首先根据如下公式,获取季节因子 First, according to the following formula, the seasonal factor is obtained
然后对季节因子进行标准化计算,得到标准季节因子以使得因子之和在每一个连续的12个月内都近似为零:Then the seasonal factor is standardized and calculated to obtain the standard seasonal factor so that the factors sum to approximately zero for each consecutive 12-month period:
(7)根据标准季节因子初次估计季节调整后序列 (7) According to the standard seasonal factor Initially estimated seasonally adjusted series
(8)用13项移动平均进一步估计趋势循环成分 (8) Use the 13-item moving average to further estimate the trend cycle component
(9)进一步估计季节不规则成分: (9) Further estimate seasonal irregularities:
(10)用3×5移动平均估计最终的季节成分:(10) Estimate the final seasonal component with a 3×5 moving average:
根据如下公式获取最终季节因子 Obtain the final seasonal factor according to the following formula
接着对季节因子进行标准化得到标准化的最终季节因子使得因子之和在每一个连续的12个月内都近似为零:Then for the seasonal factor Normalize to get the final standardized seasonal factor Make the factors sum to approximately zero for each consecutive 12-month period:
(11)根据标准化的最终季节因子估计季节调整后的序列 (11) According to the standardized final seasonal factor Estimating the Seasonally Adjusted Series
(12)获取最终的趋势循环成分,其方法如下:(12) Obtain the final trend cycle component, the method is as follows:
首先估计不规则成分: First estimate the irregular component:
然后用不规则项和趋势项的月增长率的绝对值之和的比值来衡量不规则成分的显著性 Then use the irregular term and trending items The ratio of the sum of the absolute values of the monthly growth rates to measure the significance of the irregular components
如果则用下述9项移动平均估计最终的趋势循环成分:if Then use the following 9-term moving average to estimate the final trend cycle component:
如果则用下述13项移动平均估计最终的趋势循环成分:if The final trend cycle component is then estimated using the following 13-term moving average:
如果则用下述23项移动平均估计最终的趋势循环成分:if Then use the following 23-term moving average to estimate the final trend cycle component:
经过上述计算获取到最终的趋势循环成分 The final trend cycle component is obtained through the above calculation
(13)根据趋势循环成分和季节调整后的序列估计最终的不规则成分:
则获取到在季节调整之后的仅包含趋势循环项的序列Y(2)=TC(3)。Then the sequence Y (2) =TC (3) containing only trend cycle items after seasonal adjustment is obtained.
在本申请的上述实施例中,图4中步骤S108具体通过如下方法实现:对物理量和价值量指标,计算季节调整之后的序列的发展指数: 是发展指数的指标,不做变换,即Y(3)=Y(2)。In the above-mentioned embodiment of the present application, step S108 in FIG. 4 is specifically realized by the following method: for the physical quantity and the value quantity index, calculate the development index of the sequence after seasonal adjustment: is the indicator of the development index, without transformation, that is, Y (3) =Y (2) .
在本申请的上述实施例中,执行步骤S110:根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以获取每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标的过程包括如下步骤:In the above-mentioned embodiments of the present application, step S110 is performed: performing correlation calculation on the early warning indicators according to the time difference analysis model and/or the K-L information model, so as to obtain the correlation coefficient between each selected indicator and the benchmark indicator, and The process of screening the selected indicators according to the correlation coefficient to obtain leading indicators and consistent indicators includes the following steps:
根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:Obtain the correlation coefficient r l between each selected index and the benchmark index according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,具体地为超前或滞后期,nl为所有指标的个数;将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标。其中,第一取值范围可以是小于-3,第一阈值可以是0.7,第二取值范围可以是大于等于-2且小于等于2,第二阈值可以是0.7。 Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, specifically the leading or lagging period, n l is the number of all indicators; the selected indicators whose time difference is within the first value range and the correlation coefficient r l is greater than the first threshold As the leading index, the selected index whose time difference value is within the second value range and whose correlation coefficient r l is greater than the second threshold is taken as the consistent index. Wherein, the first value range may be less than -3, the first threshold may be 0.7, the second value range may be greater than or equal to -2 and less than or equal to 2, and the second threshold may be 0.7.
具体地,该步骤中以基准指标作为筛选的“标杆”,用时差相关分析模型初步筛选一致指标和先行指标。除基准指标外的所有被选择指标都超前或滞后l期(即上述实施例中的时差)(l=0,±1,±2,…,±12),按下式分别计算每个被选择指标与基准指标的相关性系数rl:Specifically, in this step, benchmark indicators are used as the "benchmark" for screening, and the time difference correlation analysis model is used to initially screen consistent indicators and leading indicators. All the selected indicators except the benchmark indicators are ahead or lagged by l period (i.e. the time difference in the above-mentioned embodiment) (l=0, ±1, ±2,..., ±12), and each selected index is calculated according to the following formula The correlation coefficient r l between the index and the benchmark index:
上式中Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,r为相关系数,l表示超前或滞后期(即时差),l取负数时表示超前,取正数时表示滞后,l被称为时差或延迟数,和分别为序列X和Y的平均值。nl是所有指标的数据个数。则最大的时差相关系数被认为反映了被选指标与基准指标的时差相关关系,相应的延迟数l表示超前或滞后期,即使得时差相关性系数rl最大的延迟数l就是该被选指标与基准指标的超前或滞后期。In the above formula, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is the selected index, r is the correlation coefficient, l means leading or lagging Period (instantaneous difference), when l is negative, it means ahead, when it is positive, it means lag, l is called time difference or delay number, and are the mean values of sequences X and Y, respectively. n l is the number of data of all indicators. Then the largest time-difference correlation coefficient is considered to reflect the time-difference correlation relationship between the selected index and the benchmark index, and the corresponding delay number l represents the leading or lagging period, that is, the largest delay number l of the time-difference correlation coefficient r l is the selected index The lead or lag period with respect to the benchmark metric.
图5是根据图4所示实施例的获取一致指标和先行指标的方法示意图,具体地,在获取到相关性系数rl之后,通过图5所示的方法获取先行指标和一致指标:Fig. 5 is a schematic diagram of a method for obtaining a consistent index and a leading index according to the embodiment shown in Fig. 4. Specifically, after obtaining the correlation coefficient r l , the leading index and the consistent index are obtained by the method shown in Fig. 5:
步骤S302:检测指标数据是否时差<-3且相关性系数>0.7或者指标数据是否-2≤时差≤2且相关性系数>0.7。其中,在指标数据的时差<-3且相关性系数>0.7或者指标数据符合条件-2≤时差≤2且相关性系数>0.7的情况下,执行步骤S304,在指标数据不符合时差<-3且相关性系数>0.7,且不符合-2≤时差≤2且相关性系数>0.7的情况下,执行步骤S310:丢弃指标数据。Step S302: Detect whether the index data is time difference<-3 and correlation coefficient>0.7 or whether the index data is -2≤time difference≤2 and correlation coefficient>0.7. Among them, when the time difference of the index data<-3 and the correlation coefficient>0.7 or the index data meets the condition -2≤time difference≤2 and the correlation coefficient>0.7, execute step S304, and if the index data does not meet the time difference<-3 And if the correlation coefficient is >0.7, and if -2≤time difference≤2 and the correlation coefficient>0.7 are not met, execute step S310: discard the index data.
步骤S304:获取初始先行指标和初始一致指标,其中,在指标数据的时差<-3且相关性系数>0.7的情况下将该数据选取为初始先行指标,在指标数据的-2≤时差≤2且相关性系数>0.7的情况下,选取该指标数据为初始一致指标。Step S304: Obtain the initial leading index and the initial consistent index, wherein, when the time difference of the index data is <-3 and the correlation coefficient is >0.7, the data is selected as the initial leading index, and when the index data is -2≤time difference≤2 And when the correlation coefficient is >0.7, the index data is selected as the initial consistent index.
在本申请的上述实施例中,根据时差分析模型和/或K-L信息量模型对预警指标进行相关性计算,以每个被选择指标和基准指标之间的相关性系数,并根据相关性系数对被选择指标进行筛选,以获取先行指标和一致指标的步骤包括:根据如下公式获取每个被选择指标和基准指标之间的相关性系数rl:In the above-mentioned embodiment of the present application, according to the time difference analysis model and/or the KL information amount model, the correlation calculation is performed on the early warning indicators, and the correlation coefficient between each selected index and the benchmark index is used, and the correlation coefficient is calculated according to the correlation coefficient. The step of screening the selected indicators to obtain the leading indicators and consistent indicators includes: obtaining the correlation coefficient r l between each selected indicator and the benchmark indicator according to the following formula:
其中,l=0,±1,±2,…,±12,Y=(y1,y2,…,yn)为基准指标,X=(x1,x2,…,xn)为被选择指标,l为时差,nl为所有指标的个数;将时差取值在第一取值范围内且相关性系数rl大于第一阈值的被选择指标作为先行指标的初始指标,并将时差取值在第二取值范围内且相关性系数rl大于第二阈值的被选择指标作为一致指标的初始指标;对基准指标、先行指标的初始指标以及一致指标的初始指标进行标准化处理,以获取标准基准指标序列pt、标准被选择指标的序列qt,其中,标准被选择指标包括标准先行指标以及标准一致指标;按如下公式获取每个标准被选择指标和标准基准指标之间的K-L信息量kl: Among them, l=0,±1,±2,…,±12, Y=(y 1 ,y 2 ,…,y n ) is the benchmark index, X=(x 1 ,x 2 ,…,x n ) is Selected indicators, l is the time difference, n l is the number of all indicators; the selected index whose time difference value is within the first value range and the correlation coefficient r l is greater than the first threshold is used as the initial indicator of the leading indicator, and The selected index whose time difference value is within the second value range and the correlation coefficient r l is greater than the second threshold is used as the initial index of the consistent index; standardize the initial index of the benchmark index, the leading index, and the initial index of the consistent index , to obtain the standard benchmark index sequence p t and the standard selected index sequence q t , where the standard selected index includes the standard leading index and the standard consistent index; according to the following formula to obtain the relationship between each standard selected index and the standard benchmark index The amount of KL information k l :
kl=∑ptln(pt/qt+1),其中,l=0,±1,…,±12, t=1,2,…,n,l为时差,nl为所有指标的个数;将时差取值在第三取值范围内且K-L信息量kl小于第三阈值的标准被选择指标作为先行指标,并将时差取值在第四取值范围内且K-L信息量kl小于第四阈值的被选择指标作为一致指标。其中,第三取值范围可以是小于-3,第三阈值可以是0.3,第四取值范围可以是大于等于-2且小于等于2,第四阈值可以是0.3。k l =∑p t ln(p t /q t+1 ), where l=0,±1,…,±12, t=1, 2,..., n, l is the time difference, n l is the number of all indicators; the standard selected index that the time difference value is within the third value range and the KL information volume k l is less than the third threshold is taken as The leading index, and the selected index whose time difference value is within the fourth value range and whose KL information volume k l is less than the fourth threshold is taken as a consistent index. Wherein, the third value range may be less than -3, the third threshold may be 0.3, the fourth value range may be greater than or equal to -2 and less than or equal to 2, and the fourth threshold may be 0.3.
上述方法可以通过如下步骤实现:将基准指标做标准化处理,处理后的标准基准指标序列记为pt:The above method can be realized through the following steps: standardize the benchmark index, and record the processed standard benchmark index sequence as p t :
将初选的先行指标和一致指标也做标准化处理,处理后的标准被选择指标的序列记为qt:The pre-selected leading indicators and consistent indicators are also standardized, and the sequence of the selected indicators after processing is denoted as q t :
然后,按下式计算每个初选指标延迟l后关于基准指标的K-L信息量kl:Then, the amount of KL information k l about the benchmark index after the delay l of each primary index is calculated according to the following formula:
kl=∑ptln(pt/qt+l)=0,±1,…,±12k l =∑p t ln(p t /q t+l )=0,±1,…,±12
其中,l表示超前或滞后期,l取负数时表示超前,取正数时表示滞后,l被称为时差,nl是数据取齐后的数据个数(即所有指标的个数),上述公式中的t代表月份,i代表星期数。Among them, l represents the leading or lagging period. When l is a negative number, it means leading, and when it is positive, it means lagging. l is called the time difference. The t in the formula represents the month, and the i represents the week number.
当计算出2L+1个K-L信息量后,从kl值中选出一个最小值kl′作为被选指标x关于基准指标y的K-L信息量,即其相对应的延迟数l*就是被选指标最适当的超前或滞后月数(季度),其中,K-L信息量越接近于0,说明指标x与基准指标y越接近。After calculating 2L+1 KL information volume, select a minimum value k l′ from the k l value as the KL information volume of the selected index x with respect to the benchmark index y, that is The corresponding delay number l * is the most appropriate leading or lagging months (quarters) of the selected index, among which, the closer the KL information is to 0, the closer the index x is to the benchmark index y.
具体地可以通过如下步骤筛选先行指标和一致指标分别记为W(3)和Z(3):Specifically, the leading indicators and consistent indicators can be screened through the following steps, which are recorded as W (3) and Z (3) respectively:
步骤S306:检测初始先行指标是否时差<-3且K-L信息量<0.3或者初始一致数据是否-2≤时差≤2且K-L信息量<0.3。其中,在初始先行指标符合时差<-3且K-L信息量<0.3或者初始一致数据符合-2≤时差≤2且K-L信息量<0.3的情况下,执行步骤S308,在初始先行指标不符合时差<-3且K-L信息量<0.3,执行步骤S310:丢弃指标数据,在初始一致数据不符合-2≤时差≤2且K-L信息量<0.3的情况下,执行步骤S310:丢弃指标数据。Step S306: Detect whether the initial leading index is time difference<-3 and K-L information content<0.3 or whether the initial consistent data is -2≤time difference≤2 and K-L information content<0.3. Among them, when the initial leading index meets the time difference<-3 and the K-L information content<0.3 or the initial consistent data meets the condition that -2≤time difference≤2 and the K-L information content<0.3, step S308 is executed. -3 and K-L information volume<0.3, perform step S310: discard index data, and perform step S310: discard index data if the initial consistent data does not meet -2≤time difference≤2 and K-L information volume<0.3.
步骤S308:选定先行指标和一致指标。其中,在初始先行指标的时差<-3且K-L信息量<0.3的情况下,选定该指标为现行指标,在初始一致指标数据,-2≤时差≤2且K-L信息量<0.3的情况下,选定该指标为一致指标。例如:选取延迟数l=-2,-3,-4的指标作为初选的先行指标,延迟数l=-1,0,1的指标作为初选的一致指标。Step S308: Select a leading indicator and a consistent indicator. Among them, in the case of the time difference of the initial leading index <-3 and the K-L information volume <0.3, the index is selected as the current index. In the case of the initial consistent index data, -2≤time difference≤2 and the K-L information volume<0.3 , select this indicator as the consistent indicator. For example: select the index with delay number l=-2, -3, -4 as the leading index for primary selection, and the index with delay number l=-1, 0, 1 as the consistent index for primary selection.
根据本申请的上述实施例,根据合成指数模型将先行指标和一致指标进行合成,以获取作为预警参数的先行合成指数和一致合成指数的步骤包括:对先行指标和一致指标分别进行对称变化处理,以获取先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t),其中,通过如下公式对先行指标进行对称变化处理,以获取先行指标对称变化率Cw,i(t):According to the above-mentioned embodiment of the present application, the step of synthesizing the leading index and the consistent index according to the composite index model to obtain the leading composite index and the consistent composite index as early warning parameters includes: performing symmetrical change processing on the leading index and the consistent index respectively, In order to obtain the symmetrical rate of change C w, i (t) of the leading index and the symmetrical rate of change C z, i (t) of the consistent index, where the symmetrical change of the leading index is processed by the following formula to obtain the symmetrical rate of change C w of the leading index , i (t):
其中,是第i(i=1,2,…,kw)个先行指标,t=2,3,…,n,kw先行指标的个数;通过如下公式对一致指标进行对称变化处理,以获取一致指标对称变化率Cz,i(t): in, is the number of the i-th (i=1, 2, ..., k w ) leading indicators, t = 2, 3, ..., n, k w leading indicators; through the following formula, carry out symmetrical change processing on the consistent indicators to obtain Symmetric rate of change of consistency index C z,i (t):
其中,是第i(i=1,2,…,kz)个一致指标,t=2,3,…,n,kz是一致指标的个数;对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数。其中,上述公式中的t代表月份。 in, is the i-th (i=1, 2,...,k z ) consistent index, t=2,3,...,n, k z is the number of consistent indexes; the symmetric change rate C w,i (t ) and the consistent index symmetric rate of change C z,i (t) are standardized and trend-adjusted, and the results obtained after the synthetic calculation are performed to obtain the leading synthetic index and the consistent synthetic index. Wherein, t in the above formula represents a month.
具体地,用指数合成模型求指标的对称变化率并将其标准化,根据下述公式分别对和求对称变化率Cw,i(t)和Cz,i(t):Specifically, use the exponential synthesis model to find the symmetrical rate of change of the index and standardize it, and use the following formulas to calculate and Find the symmetrical rates of change C w,i (t) and C z,i (t):
t=2,3,…,n,其中,是第i(i=1,2,…,kw)个先行指标,是第i(i=1,2,…,kz)个一致指标,kw和kz分别是先行指标和一致指标的个数。 t=2,3,…,n, where, is the i (i=1, 2, ..., k w ) leading index, is the i-th (i=1, 2, ..., k z ) consistent index, and k w and k z are the numbers of the leading index and the consistent index respectively.
在本申请的上述实施例中,对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理和趋势调整之后得到的结果进行合成计算,以获取先行合成指数和一致合成指数的步骤包括:通过如下公式获取标准化因子Aw,i和Az,i: t=2,3,…,n;采用标准化因子Aw,i和Az,i分别将先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)进行标准化处理,以得到标准化变化率Sw,i(t)和Sz,i(t),其中,In the above-mentioned embodiments of the present application, the results obtained after standardization and trend adjustment of the leading index symmetric rate of change C w,i (t) and the consistent index symmetric rate of change C z,i (t) are synthetically calculated to The steps of obtaining the preceding composite index and the consistent composite index include: obtaining the normalization factors A w,i and A z,i by the following formula: t=2,3,...,n; use standardized factors A w,i and A z,i to respectively carry out the symmetrical change rate C w,i (t) of the leading index and the symmetrical change rate C z,i (t) of the consistent index Standardized processing to obtain the standardized rate of change S w,i (t) and S z,i (t), where,
对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t);根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),其中,
具体地,根据如下公式对先行指标对称变化率Cw,i(t)和一致指标对称变化率Cz,i(t)做标准化计算,使其平均绝对值等于1,获取标准化因子Aw,i和Az,i:Specifically, according to the following formula, standardize the leading index symmetric rate of change C w,i (t) and the consistent index symmetric rate of change C z,i (t), so that the average absolute value is equal to 1, and the standardized factor A w, i and Az,i :
It,
然后根据Aw,i和Az,i分别将Cw,i(t)和Cz,i(t)标准化,得到标准化变化率Sw,i(t)和Sz,i(t):Then standardize C w,i (t) and C z,i (t) according to A w,i and A z,i respectively, and obtain the standardized rate of change S w,i (t) and S z,i (t):
t=2,3,…,n,之后根据标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t),并根据先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)进行合成计算,以获取先行合成指数Iw(t)和一致合成指数Iz(t),具体地:Iw(1)=100,Iz(1)=100,则 t=2,3,...,n, and then carry out the average change rate processing according to the standardized change rate S w,i (t) and S z,i (t) to obtain the standardized average change rate V w (t) of the leading indicator and the standardized average rate of change V z (t) of the consistent index, and perform synthetic calculations based on the standardized average rate of change V w (t) of the leading index and the standardized average rate of change V z (t) of the consistent index to obtain the leading composite index I w (t) and consistent synthetic index I z (t), specifically: I w (1)=100, I z (1)=100, then
更具体地,在获取到先行合成指数Iw(t)和一致合成指数Iz(t)之后,可以对电力需求趋势进行调整,方法如下:More specifically, after obtaining the leading composite index I w (t) and the consistent composite index I z (t), the power demand trend can be adjusted in the following way:
根据如下复利公式对一致指标组的每个序列分别求出各自的平均增长率:According to the following compound interest formula, calculate the respective average growth rate for each sequence of the consistent index group:
其中,如图6所示,t为月份,和分别是一致指标组第i个指标最先与最后循环的平均值,mIi与mLi分别是一致指标组第i个指标最先与最后循环的月数,k2是一致指标个数,mi是最先循环的中心到最后循环的中心之间的月数。Among them, as shown in Figure 6, t is the month, and are the average values of the first and last cycles of the i-th index of the consistent index group, m Ii and m Li are the months of the first and last cycles of the i-th index of the consistent index group, k 2 is the number of consistent indicators, m i is the number of months between the center of the first cycle to the center of the last cycle.
然后求出一致指标组的平均增长率Gr,并将其作为目标趋势:之后对先行和一致指标的初始合成指数Iw(t)和Iz(t)分别用复利公式求出他们各自的平均增长率r′w和r′z:Then calculate the average growth rate G r of the consistent index group and use it as the target trend: Then use the compound interest formula to calculate their respective average growth rates r′ w and r′ z for the initial composite indices I w (t) and I z (t) of the leading and consistent indicators:
其中, in,
再对先行指标组和一致指标组的标准化平均变化率Vw(t)和Vz(t)做趋势调整:Then make trend adjustments for the standardized average rate of change V w (t) and V z (t) of the leading index group and the consistent index group:
V′w(t)=Vw(t)+(Gr-r′w),V′z(t)=Vz(t)+(Gr-r′z),t=2,3,…,n。然后根据上述实施例中的方法计算合成指数:令I′w(1)=100,I′z(1)=100,则V′ w (t)=V w (t)+(Gr-r′ w ), V′ z (t)=V z (t)+(Gr-r′ z ), t=2,3,…, n. Then calculate composite index according to the method in above-mentioned embodiment: make I' w (1)=100, I' z (1)=100, then
生成以基准年份为100的先行合成指数CIw(t)和一致合成指数CIz(t):Generate the leading composite index CI w (t) and consistent composite index CI z (t) with the base year as 100:
其中和分别是I′w(t)和I′z(t)在基准年份的平均值。in and are the mean values of I′ w (t) and I′ z (t) in the base year, respectively.
根据本申请的上述实施例,对标准化变化率Sw,i(t)和Sz,i(t)进行平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t)的步骤包括:According to the above-mentioned embodiment of the present application, the average rate of change processing is performed on the standardized rate of change S w,i (t) and S z,i (t), so as to obtain the normalized average rate of change V w (t) of the leading index and the consistent index The steps of the normalized average rate of change V z (t) include:
通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t):The standardized rate of change S w,i (t) of the leading index and the standardized rate of change S z,i (t) of the consistent index are processed by the average rate of change respectively by the following formula to obtain the average rate of change R w (t ) and the average rate of change R z (t) of the consensus indicator:
具体地,在获取初始合成指数Iw(t)和Iz(t)之前,通过如下公式分别将先行指标的标准化变化率Sw,i(t)和一致指标的标准化变化率Sz,i(t)进行平均变化率处理,以获取先行指标的平均变化率Rw(t)和一致指标的平均变化率Rz(t):Specifically, before obtaining the initial synthetic indices I w (t) and I z (t), the standardized rate of change S w,i (t) of the leading index and the standardized rate of change S z,i of the consistent index are respectively calculated by the following formula (t) Perform average rate of change processing to obtain the average rate of change R w (t) of leading indicators and the average rate of change R z (t) of consistent indicators:
然后根据如下公式计算指数标准化因子Fw:Then calculate the exponential normalization factor F w according to the following formula:
最后根据指标标准化因子Fw进行标准化平均变化率处理,以获取先行指标的标准化平均变化率Vw(t)和一致指标的标准化平均变化率Vz(t):Finally, the normalized average rate of change is processed according to the index standardization factor F w to obtain the standardized average rate of change V w (t) of the leading index and the standardized average rate of change V z (t) of the consistent index:
Vw(t)=Rw(t)/Fw,Vz(t)=Rz(t),t=2,3,…,n,其中,用一致指标序列的平均变化率的振幅去调整先行指标序列和滞后指标序列的平均变化率,其目的是为了把两个指数当作一个协调一致的体系来应用。V w (t)=R w (t)/F w , V z (t)=R z (t), t=2,3,…,n, where the amplitude of the average rate of change of the consistent index sequence is used to The purpose of adjusting the average rate of change of the leading index series and the lagging index series is to apply the two indexes as a coordinated system.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowcharts of the accompanying drawings may be performed in a computer system, such as a set of computer-executable instructions, and that although a logical order is shown in the flowcharts, in some cases, The steps shown or described may be performed in an order different than here.
从以上的描述中,可以看出,本发明实现了如下技术效果:通过本申请的获取电力需求的预警参数的方法及装置,在获取原始数据序列中的趋势项和周期项之后,通过对数据序列筛选和计算获取先行指标和一致指标,然后将上述先行指标和一致指标用指数合成模型合成获得预警参数,并根据预警参数分析电力需求周期性波动,解决了现有技术中在电力需求领域采用预测技术获取短期周期性波动失真,无法获取得到符合电力需求的预警参数,从而导致无法根据电力周期性波动制定合理的应对周期性波动的措施,实现了精确获取电力需求的预警参数,从而准确的根据短期周期性波动制定合理科学的应对措施的效果,进而减缓了周期波动的幅度,降低周期波动对电力行业和经济发展造成的破坏程度。From the above description, it can be seen that the present invention achieves the following technical effects: through the method and device for obtaining early warning parameters of electric power demand of the present application, after obtaining the trend item and period item in the original data sequence, by analyzing the data Sequence screening and calculation to obtain leading indicators and consistent indicators, and then use the index synthesis model to synthesize the above leading indicators and consistent indicators to obtain early warning parameters, and analyze the periodic fluctuations of power demand according to the early warning parameters, which solves the problem of power demand in the prior art. Forecasting technology obtains short-term periodic fluctuation distortion, and cannot obtain early warning parameters that meet power demand, which leads to the inability to formulate reasonable measures to deal with periodic fluctuations based on periodic power fluctuations. According to the effect of formulating reasonable and scientific countermeasures based on short-term cyclical fluctuations, the magnitude of cyclical fluctuations is slowed down, and the degree of damage caused by cyclical fluctuations to the power industry and economic development is reduced.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by computing devices, thus, they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or they can be integrated into Multiple modules or steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210425468.6A CN102930155B (en) | 2012-10-30 | 2012-10-30 | Obtain the method and device of the early-warning parameters of electricity needs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210425468.6A CN102930155B (en) | 2012-10-30 | 2012-10-30 | Obtain the method and device of the early-warning parameters of electricity needs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102930155A CN102930155A (en) | 2013-02-13 |
CN102930155B true CN102930155B (en) | 2016-10-05 |
Family
ID=47644952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210425468.6A Active CN102930155B (en) | 2012-10-30 | 2012-10-30 | Obtain the method and device of the early-warning parameters of electricity needs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102930155B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182800B (en) * | 2013-05-21 | 2018-01-16 | 中国农业科学院棉花研究所 | The intelligent Forecasting of time series based on trend and cyclic swing |
CN104951991A (en) * | 2014-03-28 | 2015-09-30 | 中国石油天然气股份有限公司 | Method and device for acquiring gas consumption behavior characteristics of user natural gas |
CN103996076B (en) * | 2014-05-15 | 2017-11-21 | 广东电网公司 | The change method for early warning and system of electricity needs |
CN104965108A (en) * | 2015-05-25 | 2015-10-07 | 上海电机学院 | Intelligent ammeter used for early warning of step electric quantity violation and voltage violation, and early warning method |
CN110032745A (en) * | 2018-01-11 | 2019-07-19 | 富士通株式会社 | Generate the method and apparatus and computer readable storage medium of sensing data |
CN109754114A (en) * | 2018-11-30 | 2019-05-14 | 跨越速运集团有限公司 | Goods amount intelligent Forecasting and system |
CN111539844B (en) * | 2020-04-20 | 2023-06-16 | 海南电网有限责任公司 | Moon electricity quantity prediction method based on K-L information quantity and ARIMA error correction |
CN111476030B (en) * | 2020-05-08 | 2022-03-15 | 中国科学院计算机网络信息中心 | Prospective factor screening method based on deep learning |
CN112116139A (en) * | 2020-09-03 | 2020-12-22 | 国网经济技术研究院有限公司 | A method and system for forecasting power demand |
CN113344737B (en) * | 2021-06-04 | 2023-11-24 | 北京国电通网络技术有限公司 | Device control method, device, electronic device and computer readable medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585953A (en) * | 2001-09-13 | 2005-02-23 | Abb股份有限公司 | Method and system to calculate a demand for electric power |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008111467A1 (en) * | 2007-03-09 | 2008-09-18 | Sanyo Electric Co., Ltd. | Demand control system, demand controller, demand program, and demand control method |
-
2012
- 2012-10-30 CN CN201210425468.6A patent/CN102930155B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585953A (en) * | 2001-09-13 | 2005-02-23 | Abb股份有限公司 | Method and system to calculate a demand for electric power |
Non-Patent Citations (2)
Title |
---|
基于景气指数的宏观经济监测预警系统研究;龚盈盈;《中国优秀硕士学位论文全文数据库》;20060415(第4期);第12-18页 * |
短期电力供需预警系统及应用;温权等;《能源技术经济》;20110120;第23卷(第1期);第25-30页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102930155A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102930155B (en) | Obtain the method and device of the early-warning parameters of electricity needs | |
Liu et al. | Forecasting power output of photovoltaic system using a BP network method | |
CN109657881A (en) | A kind of neural network photovoltaic power generation prediction technique and system suitable for small sample | |
CN103942461B (en) | Water quality parameter Forecasting Methodology based on online online-sequential extreme learning machine | |
CN105260803A (en) | Power consumption prediction method for system | |
CN106600037B (en) | Multi-parameter auxiliary load prediction method based on principal component analysis | |
CN103123665A (en) | Short-term Electric Load Forecasting Method Based on Fuzzy Clustering Similar Days | |
CN103605878B (en) | A kind of general blood glucose prediction method based on data modeling and model transplantations | |
CN103093285A (en) | Short-term load forecast method based on artificial neural network | |
CN106251008A (en) | A kind of photovoltaic power Forecasting Methodology chosen based on combining weights similar day | |
CN102831488A (en) | Power load forecasting process based on improved grey forecasting method | |
CN103336891A (en) | Pseudo-measurement generation method applied to estimating condition of distribution network | |
Li et al. | A k-nearest neighbor locally weighted regression method for short-term traffic flow forecasting | |
CN104657791A (en) | Wind power plant group wind speed distribution prediction method based on correlation analysis | |
CN105023066A (en) | Business expansion analytical prediction system and method based on seasonal adjustment | |
CN113516845A (en) | Road monthly traffic volume prediction method based on SARIMA-NAR combined model | |
CN110535149A (en) | A kind of area Gong Biantai electric load three-phase imbalance prediction technique | |
CN104463358A (en) | Small hydropower station power generation capacity predicating method combining coupling partial mutual information and CFS ensemble forecast | |
CN105184388A (en) | Non-linear regression method for urban power load short-period prediction | |
CN105005825A (en) | Method and system for predicting photovoltaic power based on dynamic neural network | |
Cao et al. | Does the weather affect the Chinese stock markets? Evidence from the analysis of DCCA cross-correlation coefficient | |
CN104239983A (en) | Big data perspective based demand response cutting load measurement method | |
CN108154260A (en) | A kind of short-term wind power forecast method | |
CN108830405B (en) | Real-time power load prediction system and method based on multi-index dynamic matching | |
Chen et al. | Port cargo throughput forecasting based on combination model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |