CN107274298A - A kind of agricultural product price fluctuation method for early warning and system - Google Patents
A kind of agricultural product price fluctuation method for early warning and system Download PDFInfo
- Publication number
- CN107274298A CN107274298A CN201710479479.5A CN201710479479A CN107274298A CN 107274298 A CN107274298 A CN 107274298A CN 201710479479 A CN201710479479 A CN 201710479479A CN 107274298 A CN107274298 A CN 107274298A
- Authority
- CN
- China
- Prior art keywords
- price fluctuation
- agricultural product
- probability
- price
- density function
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000005070 sampling Methods 0.000 claims description 11
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 abstract description 10
- 238000002790 cross-validation Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 235000012055 fruits and vegetables Nutrition 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 235000013622 meat product Nutrition 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000004445 quantitative analysis Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0283—Price estimation or determination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/02—Agriculture; Fishing; Forestry; Mining
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Marketing (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Husbandry (AREA)
- Tourism & Hospitality (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Agronomy & Crop Science (AREA)
- Mining & Mineral Resources (AREA)
- Entrepreneurship & Innovation (AREA)
- Marine Sciences & Fisheries (AREA)
- Game Theory and Decision Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及农产品价格监控技术领域,特别是涉及一种农产品价格波动预警方法及系统。The invention relates to the technical field of price monitoring of agricultural products, in particular to a method and system for early warning of price fluctuations of agricultural products.
背景技术Background technique
农产品是自然再生产与社会再生产相结合的产业形式,对农业和农村经济的发展起着至关重要的作用,因此分析农产品的价格波动对政府进行宏观调控以及农民指定生产策略具有十分重要的意义。Agricultural products are an industrial form that combines natural reproduction and social reproduction, and play a vital role in the development of agriculture and rural economy. Therefore, analyzing the price fluctuations of agricultural products is of great significance for the government to carry out macro-control and farmers to designate production strategies.
农产品的价格受生产空间布局的影响,也受产品消费时间分布的影响,还受市场信号及政策效应滞后的影响,这导致农产品的价格波动是较为复杂的变化过程。目前国内外对农产品的价格波动进行分析的手段多为直接通过专家进行判断。然而通过专家判断的手段往往受限于专家的经验丰富程度,并且分析结果较为主观。The price of agricultural products is affected by the spatial distribution of production, the time distribution of product consumption, and the lag of market signals and policy effects. This makes the price fluctuation of agricultural products a relatively complicated process of change. At present, most of the means of analyzing the price fluctuation of agricultural products at home and abroad are directly judged by experts. However, the means of expert judgment is often limited by the experience of experts, and the analysis results are relatively subjective.
发明内容Contents of the invention
本发明的目的是提供一种农产品价格波动预警方法及系统,能够对农产品的价格波动进行准确预警,提高农产品价格波动分析的客观性。The object of the present invention is to provide a method and system for early warning of price fluctuations of agricultural products, which can accurately warn the price fluctuations of agricultural products and improve the objectivity of the analysis of price fluctuations of agricultural products.
为实现上述目的,本发明提供了如下方案:To achieve the above object, the present invention provides the following scheme:
一种农产品价格波动预警方法,包括:An early warning method for price fluctuations of agricultural products, comprising:
对待测区域内待测种类的农产品的历史价格波动进行采样,得到样本数据;Sampling the historical price fluctuations of the agricultural products of the type to be tested in the area to be tested to obtain sample data;
利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数;所述概率密度函数为反映所述农产品的价格波动值的可能出现的概率的函数;Using a kernel density estimation method to analyze the sample data to obtain a probability density function of price fluctuations of agricultural products; the probability density function is a function reflecting the possible probability of the price fluctuation value of the agricultural products;
从所述样本数据中获取各个警度对应的预设价格波动范围内的价格波动值;所述警度表示报警程度,所述警度与所述农产品的价格波动值成正比;Acquiring the price fluctuation value within the preset price fluctuation range corresponding to each warning degree from the sample data; the warning degree represents the degree of warning, and the warning degree is proportional to the price fluctuation value of the agricultural product;
对所述价格波动值进行最小二乘运算,得到每个所述警度对应的价格波动分位概率;所述价格波动分位概率为比所述警度所对应的价格波动值小的概率;Carrying out the least squares operation on the price fluctuation value to obtain the price fluctuation quantile probability corresponding to each of the warning degrees; the price fluctuation quantile probability is a probability smaller than the price fluctuation value corresponding to the warning degree;
根据所述概率密度函数和所述价格波动分位概率确定不同警度的价格波动范围;Determine price fluctuation ranges with different warning degrees according to the probability density function and the price fluctuation quantile probability;
将待测区域内待测种类的农产品价格波动值与所述价格波动范围进行对比,当所述农产品价格波动值介于所述价格波动范围内时,发出对应所述警度的预警。The price fluctuation value of the agricultural product to be tested in the area to be tested is compared with the price fluctuation range, and when the price fluctuation value of the agricultural product is within the price fluctuation range, an early warning corresponding to the warning degree is issued.
可选的,所述利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数,具体包括:Optionally, the analysis of the sample data by using the kernel density estimation method to obtain the probability density function of agricultural product price fluctuations specifically includes:
将高斯核函数作为所述核密度估计方法的核函数,对所述样本数据进行分析,得到概率密度函数;Using a Gaussian kernel function as the kernel function of the kernel density estimation method, analyzing the sample data to obtain a probability density function;
对所述概率密度函数的窗宽进行选择,确定最优窗宽;所述最优窗宽为使利用所述概率密度函数相对于样本数据的偏差最小的窗宽;所述窗宽为所述概率密度函数的参数。Select the window width of the probability density function to determine the optimal window width; the optimal window width is the window width that minimizes the deviation of the probability density function relative to the sample data; the window width is the Parameters of the probability density function.
本发明还公开了一种农产品价格波动预警系统,包括:The invention also discloses an early warning system for price fluctuations of agricultural products, including:
采样模块,用于对待测区域内待测种类的农产品的历史价格波动进行采样,得到样本数据;The sampling module is used to sample historical price fluctuations of agricultural products of the type to be tested in the area to be tested to obtain sample data;
核密度估计模块,用于利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数;所述概率密度函数为反映所述农产品的价格波动值的可能出现的概率的函数;The kernel density estimation module is used to analyze the sample data by using the kernel density estimation method to obtain the probability density function of the price fluctuation of agricultural products; the probability density function is a function reflecting the possible probability of the price fluctuation value of the agricultural products ;
警度波动值获取模块,用于从所述样本数据中获取各个警度对应的预设价格波动范围内的价格波动值;所述警度表示报警程度,所述警度与所述农产品的价格波动值成正比;The warning degree fluctuation value acquisition module is used to obtain the price fluctuation value within the preset price fluctuation range corresponding to each warning degree from the sample data; the warning degree indicates the degree of warning, and the warning degree is related to the price of the agricultural product The fluctuation value is proportional to;
分位数计算模块,用于对所述价格波动值进行最小二乘运算,得到每个所述警度对应的价格波动分位概率;所述价格波动分位概率为比所述警度所对应的价格波动值小的概率;The quantile calculation module is used to perform the least squares operation on the price fluctuation value to obtain the price fluctuation quantile probability corresponding to each of the warning degrees; the price fluctuation quantile probability is the ratio corresponding to the warning degree The probability that the price fluctuation value of is small;
警度范围确定模块,用于根据所述概率密度函数和所述价格波动分位概率确定不同警度的价格波动范围;A warning range determination module, configured to determine price fluctuation ranges with different warning degrees according to the probability density function and the price fluctuation quantile probability;
预警模块,用于将待测区域内待测种类的农产品价格波动值与所述价格波动范围进行对比,当所述农产品价格波动值介于所述价格波动范围内时,发出对应所述警度的预警。The early warning module is used to compare the price fluctuation value of the agricultural product of the type to be tested in the area to be tested with the price fluctuation range, and when the price fluctuation value of the agricultural product is within the price fluctuation range, issue a corresponding alarm early warning.
可选的,所述核密度估计模块,具体包括:Optionally, the kernel density estimation module specifically includes:
概率密度函数确定单元,用于将高斯核函数作为所述核密度估计方法的核函数,对所述样本数据进行分析,得到概率密度函数;A probability density function determination unit, configured to use a Gaussian kernel function as the kernel function of the kernel density estimation method, analyze the sample data, and obtain a probability density function;
窗宽选择单元,用于对所述概率密度函数的窗宽进行选择,确定最优窗宽;所述最优窗宽为使利用所述概率密度函数相对于样本数据的偏差最小的窗宽;所述窗宽为所述概率密度函数的参数。The window width selection unit is used to select the window width of the probability density function and determine the optimal window width; the optimal window width is the window width that minimizes the deviation of the probability density function relative to the sample data; The window width is a parameter of the probability density function.
根据本发明提供的具体实施例,本发明公开了以下技术效果:本发明的农产品价格波动预警方法及系统,通过对农产品的历史价格波动进行采样和分析,准确得出特定区域内特定农产品种类的价格波动规律,从而确定不同警度的价格波动范围,能够对农产品的价格波动进行准确预警。同时由于本发明的方法及系统是按区域和农产品种类进行分析的,可以适用于各种农产品的价格预警,具有普遍适用性和针对性,在提高方法的应用范围的同时能够提高准确度。并且本发明的方法基于历史数据,通过客观分析得到,相对于现有的直接通过专家进行判断的手段,提高了农产品价格波动分析的客观性。According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the agricultural product price fluctuation early warning method and system of the present invention can accurately obtain the price of a specific type of agricultural product in a specific area by sampling and analyzing the historical price fluctuation of agricultural products. Price fluctuation rules, so as to determine the range of price fluctuations with different warning degrees, can accurately warn the price fluctuations of agricultural products. At the same time, because the method and system of the present invention are analyzed according to the region and the type of agricultural products, it can be applied to the price warning of various agricultural products, has universal applicability and pertinence, and can improve the accuracy while improving the application range of the method. Moreover, the method of the present invention is based on historical data and obtained through objective analysis. Compared with the existing means of directly judging by experts, the objectivity of agricultural product price fluctuation analysis is improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1为本发明农产品价格波动预警方法实施例一的方法流程图;Fig. 1 is the method flowchart of Embodiment 1 of the method for early warning of price fluctuations of agricultural products of the present invention;
图2为本发明农产品价格波动预警系统实施例的系统结构图。Fig. 2 is a system structure diagram of an embodiment of the agricultural product price fluctuation early warning system of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
实施例一:Embodiment one:
图1为本发明农产品价格波动预警方法实施例一的方法流程图。FIG. 1 is a flow chart of Embodiment 1 of the method for early warning of price fluctuations of agricultural products in the present invention.
参见图1,该农产品价格波动预警方法,包括:See Figure 1, the early warning method for price fluctuations of agricultural products, including:
步骤101:对待测区域内待测种类的农产品的历史价格波动进行采样,得到样本数据;Step 101: Sampling the historical price fluctuations of agricultural products of the type to be tested in the area to be tested to obtain sample data;
步骤102:利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数;所述概率密度函数为反映所述农产品的价格波动值的可能出现的概率的函数;该步骤具体包括:Step 102: Analyze the sample data using the kernel density estimation method to obtain the probability density function of the price fluctuation of agricultural products; the probability density function is a function reflecting the possible probability of the price fluctuation value of the agricultural product; this step is specifically include:
将高斯核函数作为所述核密度估计方法的核函数,对所述样本数据进行分析,得到概率密度函数;Using a Gaussian kernel function as the kernel function of the kernel density estimation method, analyzing the sample data to obtain a probability density function;
对所述概率密度函数的窗宽进行选择,确定最优窗宽;所述最优窗宽为使利用所述概率密度函数相对于样本数据的偏差最小的窗宽;所述窗宽为所述概率密度函数的参数;Select the window width of the probability density function to determine the optimal window width; the optimal window width is the window width that minimizes the deviation of the probability density function relative to the sample data; the window width is the parameters of the probability density function;
步骤103:从所述样本数据中获取各个警度对应的预设价格波动范围内的价格波动值;所述警度表示报警程度,所述警度与所述农产品的价格波动值成正比;Step 103: Obtain the price fluctuation value within the preset price fluctuation range corresponding to each warning degree from the sample data; the warning degree indicates the degree of warning, and the warning degree is proportional to the price fluctuation value of the agricultural product;
步骤104:对所述价格波动值进行最小二乘运算,得到每个所述警度对应的价格波动分位概率;所述价格波动分位概率为比所述警度所对应的价格波动值小的概率;Step 104: Perform the least squares operation on the price fluctuation value to obtain the price fluctuation quantile probability corresponding to each of the warning degrees; the price fluctuation quantile probability is smaller than the price fluctuation value corresponding to the warning degree The probability;
步骤105:根据所述概率密度函数和所述价格波动分位概率确定不同警度的价格波动范围;Step 105: Determine the range of price fluctuations with different warning degrees according to the probability density function and the quantile probability of price fluctuations;
步骤106:将待测区域内待测种类的农产品价格波动值与所述价格波动范围进行对比,当所述农产品价格波动值介于所述价格波动范围内时,发出对应所述警度的预警。Step 106: Compare the price fluctuation value of the agricultural product to be tested in the area to be tested with the price fluctuation range, and when the price fluctuation value of the agricultural product is within the price fluctuation range, issue an early warning corresponding to the warning degree .
本发明的农产品价格波动预警方法,通过对农产品的历史价格波动进行采样和分析,准确得出特定区域内特定农产品种类的价格波动规律,从而确定不同警度的价格波动范围,能够对农产品的价格波动进行准确预警。同时由于本发明的方法是按区域和农产品种类进行分析的,可以适用于各种农产品的价格预警,具有普遍适用性和针对性,在提高方法的应用范围的同时能够提高准确度。并且本发明的方法基于历史数据,通过客观分析得到,相对于现有的直接通过专家进行判断的手段,提高了农产品价格波动分析的客观性。The agricultural product price fluctuation early warning method of the present invention accurately obtains the price fluctuation law of a specific type of agricultural product in a specific area by sampling and analyzing the historical price fluctuation of agricultural products, thereby determining the price fluctuation range of different warning degrees, and can predict the price of agricultural products. Accurate early warning of fluctuations. At the same time, because the method of the present invention is analyzed according to the region and the type of agricultural products, it can be applied to the price warning of various agricultural products, has universal applicability and pertinence, and can improve the accuracy while increasing the application range of the method. Moreover, the method of the present invention is based on historical data and obtained through objective analysis. Compared with the existing means of directly judging by experts, the objectivity of agricultural product price fluctuation analysis is improved.
实施例二:Embodiment two:
一种农产品价格波动预警方法,包括:An early warning method for price fluctuations of agricultural products, comprising:
对待测区域内待测种类的农产品的历史价格波动进行采样,得到样本数据。Sampling the historical price fluctuations of the agricultural products of the type to be tested in the area to be tested to obtain sample data.
利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数;Analyzing the sample data using a kernel density estimation method to obtain a probability density function of price fluctuations of agricultural products;
所述概率密度函数表示为:The probability density function is expressed as:
其中为概率密度函数,n为所述样本数据的数量,i为样本数据的序号;Xi为第i个样本数据,K(x)为核函数,x为所述概率密度函数的变量,h为窗宽。in is the probability density function, n is the quantity of the sample data, and i is the sequence number of the sample data; Xi is the i -th sample data, K(x) is a kernel function, x is the variable of the probability density function, and h is window width.
本实施例中选用高斯核函数作为核函数,则所述核函数K(x)为:Select Gaussian kernel function as kernel function in the present embodiment, then described kernel function K (x) is:
根据核密度估计方法所得到的概率密度函数的偏差和误差随着窗宽h的变化朝着不同的方向变化,窗宽h过大时会使得估计曲线过平滑,窗宽h过小时会使得估计曲线欠平滑,因此所述概率密度函数对窗宽h的选择比较敏感。The deviation and error of the probability density function obtained according to the kernel density estimation method change in different directions with the change of the window width h. The curve is not smooth, so the probability density function is sensitive to the choice of window width h.
为了使概率密度函数更接近真实函数,本实施例采用均方误差(MSE,MeanSquared Error)准则来选择窗宽,从而使概率密度函数更接近真实函数f(x)。所述均方误差准则要求均方误差最小。均方误差的计算公式为:In order to make the probability density function closer to the real function, this embodiment adopts the mean square error (MSE, Mean Squared Error) criterion to select the window width, so that the probability density function is closer to the real function f(x). The mean square error criterion requires that the mean square error be minimum. The formula for calculating the mean square error is:
其中表示概率密度函数的方差,表示概率密度函数相对真实函数f(x)的偏差。的期望,的期望。o(h4)为h4的无穷小量,为的无穷小量。in represents the probability density function Variance, Indicates the deviation of the probability density function from the true function f(x). expectations, expectations. o(h 4 ) is the infinitesimal quantity of h 4 , for an infinitesimal amount of .
在计算窗宽时,本实施例中采用最小二乘交叉验证法计算最优窗宽。该最小二乘交叉验证法不需要对所述概率密度函数做任何假设,直接从实际数据出发即可得到最优窗宽。该最小二乘交叉验证法使所述概率密度函数的积分平方差(ISE,Integrated squareerror)最小时的窗宽为最优窗宽。即:When calculating the window width, in this embodiment, the least squares cross-validation method is used to calculate the optimal window width. The least squares cross-validation method does not need to make any assumptions on the probability density function, and can obtain the optimal window width directly from actual data. In the least squares cross-validation method, the window width when the integrated square error (ISE, Integrated square error) of the probability density function is minimized is the optimal window width. which is:
其中表示当所述积分平方差最小时的窗宽,hopt为最优窗宽;in Indicates the window width when the integral square difference is the smallest, h opt is the optimal window width;
则 but
其中,Xj为第j个样本数据。Among them, X j is the jth sample data.
通过上述方法确定出窗宽后即可确定所述概率密度函数。The probability density function can be determined after the window width is determined by the above method.
计算出所述概率密度函数之后,采用p-分位法对各个警度对应的农产品价格波动范围进行计算,具体为:After calculating the probability density function, the p-quantile method is used to calculate the fluctuation range of agricultural product prices corresponding to each warning degree, specifically:
从所述样本数据中获取各个警度对应的预设价格波动范围内的价格波动值;所述警度表示报警程度,所述警度与所述农产品的价格波动值成正比;Acquiring the price fluctuation value within the preset price fluctuation range corresponding to each warning degree from the sample data; the warning degree represents the degree of warning, and the warning degree is proportional to the price fluctuation value of the agricultural product;
对所述价格波动值进行最小二乘运算,得到每个所述警度对应的价格波动分位概率;所述价格波动分位概率为比所述警度所对应的价格波动值小的概率。The least squares operation is performed on the price fluctuation value to obtain the price fluctuation quantile probability corresponding to each of the warning degrees; the price fluctuation quantile probability is a probability smaller than the price fluctuation value corresponding to the warning degree.
对所述价格波动分位概率的设置需采用定性与定量相结合的方法,主要遵循以下原则:一是经济含义的重要性和全面性。比如果蔬类产品与肉类产品概率密度函数的分布明显不同,因此对不同类别的农产品应设置不同的价格波动分位概率;同时随着区域产量的减少,对应的区域的价格波动也会较为显著,因此不同区域的价格波动分位概率的设置也应该有所不同。二是指标的测度能力。各个警度对总体农产品市场价格变动的反应需要具有灵敏性和可靠性,还要具有相对稳定性。三是指标的时效性,指标不是静态的,而是随着时间进行调整、补充和修改,以满足市场预警需要。The setting of quantile probabilities of price fluctuations requires a combination of qualitative and quantitative methods, mainly following the following principles: First, the importance and comprehensiveness of economic meanings. For example, the distribution of the probability density function of fruit and vegetable products is obviously different from that of meat products, so different price fluctuation quantile probabilities should be set for different types of agricultural products; at the same time, as the regional output decreases, the corresponding regional price fluctuations will also be more significant , so the setting of the quantile probability of price fluctuations in different regions should also be different. The second is the measurement ability of indicators. The response of each alarm level to the price change of the overall agricultural product market needs to be sensitive and reliable, as well as relatively stable. The third is the timeliness of the indicators. The indicators are not static, but are adjusted, supplemented and modified over time to meet the needs of market early warning.
因此,所述价格波动分位概率可以采用最小二乘法得到,即:Therefore, the quantile probability of price fluctuation can be obtained by using the least square method, namely:
其中,p(m)为第m个警度的价格波动分位概率,xi为第m个警度对应的预设价格波动范围内的价格波动值;x(m)为第m个警度的价格波动分位概率所对应的期望分位数。Among them, p (m) is the price fluctuation quantile probability of the mth warning level, x i is the price fluctuation value within the preset price fluctuation range corresponding to the mth warning level; x (m) is the mth warning level The expected quantile corresponding to the quantile probability of price fluctuation of .
本发明将不连续的样本数据转换成连续的函数,并利用连续的函数计算各个警度的价格波动分位概率,从而能够准确计算出各个价格波动分位概率对应的分位数的具体数值,使得各个警度对应的价格波动范围更加准确,提高了预警的准确度。The present invention converts the discontinuous sample data into a continuous function, and uses the continuous function to calculate the price fluctuation quantile probability of each warning level, thereby accurately calculating the specific value of the quantile corresponding to each price fluctuation quantile probability, It makes the price fluctuation range corresponding to each warning level more accurate, and improves the accuracy of early warning.
计算出各个警度所对应的价格波动分位概率p(m)之后,即可根据所述概率密度函数计算得到各个所述价格波动分位概率所对应的分位数所述分位数为在所述概率密度函数中所述价格波动分位概率所对应的价格波动值;具体计算公式为:After calculating the price fluctuation quantile probability p (m) corresponding to each alert degree, the quantile corresponding to each price fluctuation quantile probability can be calculated according to the probability density function The quantile is the price fluctuation value corresponding to the price fluctuation quantile probability in the probability density function; the specific calculation formula is:
其中,为价格波动分位概率p(m)所对应的分位数;in, is the quantile corresponding to the price fluctuation quantile probability p (m) ;
不同的警度对应不同的分位数,根据各所述分位数即可求出各个警度的价格波动范围。Different warning degrees correspond to different quantiles, and the price fluctuation range of each warning degree can be calculated according to the quantiles.
本实施例中,设置有四个警度,报警时分别对应四种不同颜色的预警灯。四种预警灯的颜色按警度从高到低分别为红色、橙色、黄色和蓝色。其中蓝灯表示价格波动微高、黄灯表示价格波动偏高、橙灯表示价格波动过高、红灯表示价格波动极高。当农产品价格波动值处在某个警度所对应的价格波动范围内时,则对应颜色的预警灯会被点亮。In this embodiment, there are four warning levels, which respectively correspond to four warning lights of different colors when calling the police. The colors of the four warning lights are respectively red, orange, yellow and blue according to the degree of warning from high to low. Among them, the blue light indicates that the price fluctuation is slightly high, the yellow light indicates that the price fluctuation is high, the orange light indicates that the price fluctuation is too high, and the red light indicates that the price fluctuation is extremely high. When the price fluctuation value of agricultural products is within the price fluctuation range corresponding to a certain warning degree, the warning light of the corresponding color will be lit.
实施例三:Embodiment three:
图2为本发明农产品价格波动预警系统实施例的系统结构图。Fig. 2 is a system structure diagram of an embodiment of the agricultural product price fluctuation early warning system of the present invention.
参见图2,该农产品价格波动预警系统,包括:See Figure 2, the agricultural product price fluctuation early warning system includes:
采样模块201,用于对待测区域内待测种类的农产品的历史价格波动进行采样,得到样本数据;The sampling module 201 is used to sample the historical price fluctuations of the agricultural products of the type to be tested in the area to be tested to obtain sample data;
核密度估计模块202,用于利用核密度估计方法对所述样本数据进行分析,得到农产品价格波动的概率密度函数;所述概率密度函数为反映所述农产品的价格波动值的可能出现的概率的函数;The kernel density estimation module 202 is configured to use a kernel density estimation method to analyze the sample data to obtain a probability density function of price fluctuations of agricultural products; the probability density function reflects the probability of possible occurrence of the price fluctuation value of the agricultural products function;
警度波动值获取模块203,用于从所述样本数据中获取各个警度对应的预设价格波动范围内的价格波动值;所述警度表示报警程度,所述警度与所述农产品的价格波动值成正比;The warning degree fluctuation value acquisition module 203 is used to obtain the price fluctuation value within the preset price fluctuation range corresponding to each warning degree from the sample data; the warning degree indicates the degree of warning, and the warning degree and the agricultural product The price fluctuation value is proportional;
分位数计算模块204,用于对所述价格波动值进行最小二乘运算,得到每个所述警度对应的价格波动分位概率;所述价格波动分位概率为比所述警度所对应的价格波动值小的概率;The quantile calculation module 204 is used to perform the least squares operation on the price fluctuation value to obtain the price fluctuation quantile probability corresponding to each of the warning degrees; The probability that the corresponding price fluctuation value is small;
警度范围确定模块205,用于根据所述概率密度函数和所述价格波动分位概率确定不同警度的价格波动范围;A warning degree range determination module 205, configured to determine price fluctuation ranges with different warning degrees according to the probability density function and the price fluctuation quantile probability;
预警模块206,用于将待测区域内待测种类的农产品价格波动值与所述价格波动范围进行对比,当所述农产品价格波动值介于所述价格波动范围内时,发出对应所述警度的预警。The early warning module 206 is used to compare the price fluctuation value of the agricultural product of the type to be tested in the area to be tested with the price fluctuation range, and when the price fluctuation value of the agricultural product is within the price fluctuation range, send a corresponding alarm degree of warning.
所述核密度估计模块202,具体包括:The kernel density estimation module 202 specifically includes:
概率密度函数确定单元,用于将高斯核函数作为所述核密度估计方法的核函数,对所述样本数据进行分析,得到概率密度函数;A probability density function determination unit, configured to use a Gaussian kernel function as the kernel function of the kernel density estimation method, analyze the sample data, and obtain a probability density function;
窗宽选择单元,用于对所述概率密度函数的窗宽进行选择,确定最优窗宽;所述最优窗宽为使利用所述概率密度函数相对于样本数据的偏差最小的窗宽;所述窗宽为所述概率密度函数的参数。The window width selection unit is used to select the window width of the probability density function and determine the optimal window width; the optimal window width is the window width that minimizes the deviation of the probability density function relative to the sample data; The window width is a parameter of the probability density function.
本发明的农产品价格波动预警系统,通过对农产品的历史价格波动进行采样和分析,准确得出特定区域内特定农产品种类的价格波动规律,从而确定不同警度的价格波动范围,能够对农产品的价格波动进行准确预警。同时由于本发明的系统是按区域和农产品种类进行分析的,可以适用于各种农产品的价格预警,具有普遍适用性和针对性,在提高方法的应用范围的同时能够提高准确度。并且本发明的方法基于历史数据,通过客观分析得到,相对于现有的直接通过专家进行判断的手段,提高了农产品价格波动分析的客观性。The agricultural product price fluctuation early warning system of the present invention accurately obtains the price fluctuation law of a specific type of agricultural product in a specific area by sampling and analyzing the historical price fluctuation of agricultural products, thereby determining the price fluctuation range of different warning degrees, and can predict the price of agricultural products. Accurate early warning of fluctuations. Simultaneously, because the system of the present invention analyzes according to regions and types of agricultural products, it can be applied to price warnings of various agricultural products, has universal applicability and pertinence, and can improve accuracy while increasing the application range of the method. Moreover, the method of the present invention is based on historical data and obtained through objective analysis. Compared with the existing means of directly judging by experts, the objectivity of agricultural product price fluctuation analysis is improved.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; meanwhile, for those of ordinary skill in the art, according to the present invention Thoughts, there will be changes in specific implementation methods and application ranges. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710479479.5A CN107274298A (en) | 2017-06-22 | 2017-06-22 | A kind of agricultural product price fluctuation method for early warning and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710479479.5A CN107274298A (en) | 2017-06-22 | 2017-06-22 | A kind of agricultural product price fluctuation method for early warning and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107274298A true CN107274298A (en) | 2017-10-20 |
Family
ID=60068138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710479479.5A Pending CN107274298A (en) | 2017-06-22 | 2017-06-22 | A kind of agricultural product price fluctuation method for early warning and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107274298A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107798482A (en) * | 2017-11-16 | 2018-03-13 | 中国农业科学院农业信息研究所 | A kind of market for farm products unusual fluctuations risk monitoring method and system |
CN108846689A (en) * | 2018-05-07 | 2018-11-20 | 河南金凤电子科技有限公司 | A kind of food price monitoring and managing method, equipment and system |
CN109978617A (en) * | 2019-03-22 | 2019-07-05 | 中国农业科学院农业信息研究所 | Agricultural product big data prediction technique, system, terminal and storage medium |
CN109978616A (en) * | 2019-03-22 | 2019-07-05 | 中国农业科学院农业信息研究所 | Agricultural product data monitoring early warning system |
CN110706078A (en) * | 2019-09-30 | 2020-01-17 | 中国农业科学院农业信息研究所 | A method and system for monitoring and early warning of abnormal price fluctuations of fresh agricultural products |
CN112100037A (en) * | 2020-09-25 | 2020-12-18 | 北京奇艺世纪科技有限公司 | Alarm level identification method and device, electronic equipment and storage medium |
CN112269912A (en) * | 2020-11-18 | 2021-01-26 | 布瑞克农业大数据科技集团有限公司 | Agricultural big data price early warning management system and method |
-
2017
- 2017-06-22 CN CN201710479479.5A patent/CN107274298A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107798482A (en) * | 2017-11-16 | 2018-03-13 | 中国农业科学院农业信息研究所 | A kind of market for farm products unusual fluctuations risk monitoring method and system |
CN108846689A (en) * | 2018-05-07 | 2018-11-20 | 河南金凤电子科技有限公司 | A kind of food price monitoring and managing method, equipment and system |
CN108846689B (en) * | 2018-05-07 | 2021-03-16 | 河南金凤电子科技有限公司 | Food price supervision method, equipment and system |
CN109978617A (en) * | 2019-03-22 | 2019-07-05 | 中国农业科学院农业信息研究所 | Agricultural product big data prediction technique, system, terminal and storage medium |
CN109978616A (en) * | 2019-03-22 | 2019-07-05 | 中国农业科学院农业信息研究所 | Agricultural product data monitoring early warning system |
CN110706078A (en) * | 2019-09-30 | 2020-01-17 | 中国农业科学院农业信息研究所 | A method and system for monitoring and early warning of abnormal price fluctuations of fresh agricultural products |
CN112100037A (en) * | 2020-09-25 | 2020-12-18 | 北京奇艺世纪科技有限公司 | Alarm level identification method and device, electronic equipment and storage medium |
CN112100037B (en) * | 2020-09-25 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Alarm level identification method, device, electronic equipment and storage medium |
CN112269912A (en) * | 2020-11-18 | 2021-01-26 | 布瑞克农业大数据科技集团有限公司 | Agricultural big data price early warning management system and method |
CN112269912B (en) * | 2020-11-18 | 2021-07-27 | 布瑞克农业大数据科技集团有限公司 | Agricultural big data price early warning management system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107274298A (en) | A kind of agricultural product price fluctuation method for early warning and system | |
AU2020101238A4 (en) | A Kind of Method for Early Warning of Price Fluctuation of Agricultural Product and Its System | |
CN116186634B (en) | Intelligent management system for construction data of building engineering | |
WO2021057230A1 (en) | Color identification-based water quality detection method, apparatus and device, and storage medium | |
CN104200113A (en) | Internet of Things data uncertainty measurement, prediction and outlier-removing method based on Gaussian process | |
CN107798482A (en) | A kind of market for farm products unusual fluctuations risk monitoring method and system | |
CN104063710B (en) | Exceptional spectrum elimination method in measured spectra curve based on supporting vector machine model | |
CN108900622B (en) | Data fusion method and device based on Internet of things and computer readable storage medium | |
WO2018184304A1 (en) | Method and device for detecting health state of network element | |
US20190005401A1 (en) | A method and a system for determining a concentration range for a sample by means of a calibration curve | |
CN102357933A (en) | Real-time quality monitoring method based on rubber mixing process | |
CN109840671A (en) | Operational development effect calculates equipment, operational development effect calculation method and recording medium | |
CN109459399A (en) | A kind of spectral water quality COD, turbidity detection method | |
CN116522270A (en) | Data processing system for smart sponge city | |
CN111723479B (en) | Process-Oriented Remote Sensing Estimation Method of Algae Total Amount in Eutrophic Lakes | |
CN111998918A (en) | Error correction method, error correction device and flow sensing system | |
CN112504321A (en) | Information processing method and device for improving instrument calibration precision | |
CN112566170B (en) | Network quality assessment method, device, server and storage medium | |
CN112651173B (en) | A non-destructive testing method and generalizable system for agricultural product quality based on cross-domain spectral information | |
CN115931727A (en) | Chlorophyll a remote sensing retrieval method, device, system and storage medium | |
CN115358301A (en) | Distribution network voltage data cleaning platform and its cleaning method | |
CN111695735B (en) | Flow calculation-based railway bow net real-time early warning method, system and device | |
CN101782763A (en) | Method for monitoring statistical process control | |
CN117804553A (en) | Intelligent gas meter based on NB-IoT technology | |
WO2020172210A1 (en) | System and methods for data model detection and surveillance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |