Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Calculation and realization of new method grey residual error correction model

Abstract

Aiming at the problem of prediction accuracy of stochastic volatility series, this paper proposes a method to optimize the grey model(GM(1,1)) from the perspective of residual error. In this study, a new fitting method is firstly used, which combines the wavelet function basis and the least square method to fit the residual data of the true value and the predicted value of the grey model(GM(1,1)). The residual prediction function is constructed by using the fitting method. Then, the prediction function of the grey model(GM(1,1)) is modified by the residual prediction function. Finally, an example of the wavelet residual-corrected grey prediction model (WGM) is obtained. The test results show that the fitting accuracy of the wavelet residual-corrected grey prediction model has irreplaceable advantages.

1. Introduction

Since its birth in 1982, the grey system theory has been widely used in the fields of economy, management and engineering technology [110]. Among them, the grey prediction model(GM(1,1)) is one of the core contents of the grey system theory. Its characteristics are that it needs fewer samples and the calculation is simple, so it is better than the traditional prediction method. However, in recent years, many scholars have proposed the improvement of the grey model and the study of its application scope The research can be roughly divided into two categories: 1) using the method of function transformation to improve the smoothness of the sequence can reduce the level ratio of the original data and make the level ratio fall within the allowable interval to achieve the purpose of improving the modeling accuracy; 2) According to the characteristics of the original data, we can further improve the gray prediction algorithm, optimize the background value, optimize the initial conditions, etc.

In literature [1117], some scholars studied the function transformation from the perspective of the monotonicity of the function and the compression transformation, in order to further improve the accuracy of the model, and some scholars used the buffering operator to reduce the fluctuation. However, due to the need to restore the sequence of the new sequence generated by the function transformation after modeling, the accuracy of the final restoration is reduced and the effect is not ideal In literature [1827], scholars not only believe that the average value of background value has errors, but also believe that it is unreasonable that the initial condition must pass through a certain point in the original data. Therefore, they propose some methods to solve this problem, such as improving the background value and initial condition, so as to improve the accuracy of the model However, in the process of improving the background value, the convergence of iterations and in the process of constructing the optimal background value, we should consider how the convergence of the iterative formula. If the iterative formula doesn’t converge, then we can’t get the optimal background value.

However, for the stochastic volatility series, from the perspective of improving the smoothness, the background value and initial value of the sequence by means of function transformation, the final effect of improving GM(1,1) model is not good. Literature [2830] studied the stochastic volatility series. In literature [20], accelerated translation transformation and weighted mean transformation are proposed to process the original data to make the original data smoothly change. The grey model(GM(1,1)) is established for the transformed smooth data to first predict, and then the corresponding inverse transformation is carried out for the predicted data, so as to improve the prediction accuracy of the grey model. Literature [29, 30] uses Fourier series to fit the residual and actual value of the mean model, and establishes the Fourier residual corrected grey prediction model (FGM) to predict practical problems, and the final prediction accuracy and effect was achieved good results.

In view of the stochastic volatility sequence prediction accuracy problem, this study put forward a kind of optimization from the perspective of residual method of grey GM (1, 1) model. Data fitting method is often used by people to obtain the approximate function relation, so as to provide quantitative relationship for further research. In many cases, the fitting function can be used to explain the data, in order to obtain better results than the interpolation and approximation function. The common method of data fitting is the least square method, and the basis functions mostly use n-degree polynomials, Chebyshev polynomials, Bernstein polynomials, trigonometric function [29, 30], etc., The different basis functions will produce different fitting effects, so we make different choices. However, the stability of the calculation process and the accuracy of fitting are the main criteria to evaluate the merits and demerits of the basic functions. In this study, the combination of wavelet function basis and least square method is used to fit the residual data of the grey model. Since the residual data presents the stochastic volatility state and the wavelet function has good local characteristics and fluctuation, the wavelet function is selected as the basis function, which has a good fitting effect for the stochastic volatility residual. The constructed residual prediction function can accurately reflect the variation of residual, and then the prediction function of average gray GM (1,1) model can be modified by the residual prediction function, so as to improve the fitting accuracy of stochastic volatility sequence. The WGM model in this study and the FGM model in the literature [29] used to determine the PetroChina stock price closing price on May 9, 2018 solstice on May 23 [31] and the number of tourists in Taiwan on August 1, 2006 solstice on July31, 2007 show that the fitting accuracy and fitting effect of the grey prediction model with wavelet residual correction are better than GM (1,1) and FGM. The precision of the grey model series is improved, and the application range of the grey model is broadened.

2. Methodology

2.1 Mean GM(1,1) model

The initial data is listed as X(0) = {x(0)(1), x(0)(2), ⋯, x(0)(n)}, the generated 1-AGO sequence is X(1) = {x(1)(1), x(1)(2), ⋯, x(1)(n)} and . The first-order differential equation of the GM(1,1) model is (1) Where t denotes the indepent variables in the system, a represents the developed coeffficient, b is the grey controlled variable, and a and b denote the model parameters requiring determination. The values of a and b become by the ordinal least-square method as (2)

Furthermore, accumulated matrix B is

Meanwhile, the constant vector Y is

According to Eq (2), we have (3) (4)

The grey parameters can be substituted into Eq (1) to obtain the solution of the differential equation: (5) When , the sequence one-order inverse-accumulated generating operation of reduction is obtained as: (6)

2.2 The wavelet residual modified grey forecasting model (WGM)

The accuracy of predictions made using GM(1,1), this study applied the WGM(1,1) approach to increase its prediction capabilities. Fig 1 shows the process of WGM(1,1), while the following illustration details the method used to establish the steps of WGM for the residual correction, which are detailed as follows.

  1. (1)Definition of error: (7)
    We have
  2. (2)The wavelet basis is obtained by selecting the wavelet generating function
    Then, we get the residual (8)
  3. (3)Define the expression at a given two-dimensional data point (j, ϵ(0)(j)), (9)
  4. (4)Use the least square method to determine the coefficient a2, a3, ⋯, an, then the following equations is solved (10)
    The matrix of the Eq (10) is expressed as (11) where
    Then, we have (12)
    We have a2, a3, ⋯, an, So as to find the residual fitting function(13)
  5. (5)Substituting the residual fitting function(13) into the error formula(7), we (14) where
    The original value prediction function is: (15)

2.3 Evalute accuracy of prediction

The accuray of the grey prediction model is usually checked by the posterior difference method. The model accuracy is evaluated by the mean square error ratio and the small error probability. The smaller the mean square error ratio and the smaller the probability of small errors, the higher the accuracy of the prediction model, The basic method is as follows: assuming X(0) for the original sequence, for the GM(1,1) model simulation sequence, ϵ(0) for the residual series, then

Respectively, the mean of X(0), variance; Where is the mean of resdual ϵ(0)(k), is the residual variance, and K is the mean square deviation. The mean square error ratio K and the small error probability P are calculated from and . The accuracy of the model is shown in Table 1.

In addition to the evaluation of the posterior error index, there are the following evaluation methods:

  1. (1)Average residual
  2. (2)Average relative errore
  3. (3)Mean absolute error
  4. (4)Mean square error

3. Application experiment analysis

The data of Example 1 and Example 2 analysis WGM model prediction accuracy. The experiments were done using Matlab2015b software.

3.1 Simulation value analysis

Example 1: The 10-day stock price of PetroChina in May 2018 was used as the original data for the experiment. PetroChina stock price data comes from literature [31].

The experimental data calculates that a = 0.00122, b = 17.60864 in the mean model, then the calculation formula of the mean model simulation value is:

Coefficients of Wavelet Base Residual Fitting [a1, a2, ⋯, an], ai = [0, −1556.125479137,1813.934889951, −323.70855 7033, −299.425973673, −363.424104224, 1615.482710942, −2666.599778900, 2939.837180356, −1677.799794262], the simulation value of Wavelet Residual Grey Forecasting Model is:

It can be seen from the above Table 2 that the mean residual error and the mean relative error of the residual correction model of the new method are 2.5602 × 10−9 and 5.235025317962417 × 10−14, respectively, while the FGM(1, 1) models are 0.130 and 0.849031398741481, respectively. It can be seen from this order of magnitude that the residual correction model of the new method has higher simulation accuracy than the FGM(1,1) model and the GM(1,1), which indicates that the residual correction model of the new method has the best simulation effect.

thumbnail
Table 2. Traditional GM(1,1) simulation of PetroChina stock price.

https://doi.org/10.1371/journal.pone.0254154.t002

3.2 Simulation value analysis

Example 2: The experiment was conducted with the original data of the number of tourists visiting Taiwan during August 1, 2006–July 31, 2007. The data of the number of tourists visiting Taiwan comes from literature [29].

The experimental data calculates that a = 0.00491, b = 179544.95413 in the mean model is calculated from the experimental data, then the calculation formula for the simulation value of the mean model is:

Coefficients of Wavelet Base Residual Fitting [a1, a2,⋯, an], ai = [0, −93.9267590491499, −177.300688508506,51 2.222285037394, −689.422488712347, 726.337872801881, −242.072495924380, −267.280726217092,298.150674304123, −243.004450579142, 328.272731679794, −238.449423788114], the simulation value of Wavelet Residual Grey Forecasting Model is:

As can be seen from the above Table 3, the mean residual error and mean relative error of the new residual correction model method are 1.1008 × 10−7 and 2.451254681202029 × 10−12, respectively, while the FGM(1,1) model is 0.0296 and 0.886095333,respectively. From this order of magnitude, it can be seen that the residual correction model of the new method has higher simulation accuracy than the FGM(1,1) model and the GM(1,1), which indicates that the residual correction model of the new method has better simulation effect.

3.3 WGM model simulation diagram analysis

The statistics of the Tables 2 and 3 show the actual number,forecast number,residual error,average residual,average relative error,mean absolute error, mean square error and posterior error by GM(1,1) and FGM(1,1) and WGM(1,1). The evaluation indicators displayed from the two different sets of data show that the evaluation indicators of the WGM method constructed in this study are far superior to the evaluation indicators corresponding to the GM method and the FGM method. It shows that the simulation accuracy of the WGM method is higher than that of the GM method and the FGM method, and the fit of the WGM method to the random fluctuation data is better, which increases the application range of the grey system.

The statistics of the Tables 2 and 3 indicate the short-term efficiency of the WGM. Figs 2 and 3 compare actual value, GM forecasting value and FGM forecasting value and WGM forecasting value. The results show that the cures of GM appear flat and FGM and WGM follows undulating appearance, but WGM is more effective than FGM in predicting stochastic volatility data. From the results, this study develops an accuracy forecasting model for improving the effectiveness of PteroChina stock price and taiwan’s tourism demand in making short-term and stochastic volatility predictions.

thumbnail
Fig 2. Line graphs of simulated values after processing of the three models.

https://doi.org/10.1371/journal.pone.0254154.g002

thumbnail
Fig 3. Line graphs of simulated values after processing of the three models.

https://doi.org/10.1371/journal.pone.0254154.g003

4. Summary

From the experimental analysis, the WGM has better simulation effect and higher prediction accuracy than the GM and FGM. The prediction effect of the WGM established in this paper is better than the FGM established in literature [29], and the simulation accuracy of the WGM is higher.

According to the residual analysis and research of the grey model (GM(1,1)), a new method residual correction prediction model(WGM) is established in this paper. This study of WGM makes the following contributions: 1)combing the grey forecasting and wavelet series model to refine the forecasting effectiveness for the stochastic volatility data; 2)proving an effective method for the application; 3)improving the accuracy of short-term forecasting in case involving sample data with significant fluctuations.

Acknowledgments

Thanks are due to Chenzhou Deng for assistance with the experiments and to Tian Ding for valuable discussion.

References

  1. 1. Julong Deng. Grey prediction and grey decision-making[M]. Wuhan: Huazhong University of Science and Technology Press, 2002.
  2. 2. Dang Yaoguo, Liu Sifeng. Research on Grey Forecast and Decision Model[M]. Beijing:Science Press, 2009.12.
  3. 3. Škuflić L. and Štoković I. Demand Function for Croatian Tourist Product: A Panel Data Approach. Modern Economy, Vol. 2, 2011, pp. 49–53.
  4. 4. Hua Z.S., Zhang B., Yang J. and Tan D.S. A New Approach of Forecasting Intermittent Demand for Spare Parts Inventories in the Process Industries[M]. Journal of the Operational Research Society, Vol. 58, No. 1, 2007, pp. 52–61.
  5. 5. Pedregal D.J. and Young P.C. Development of Improved Adaptive Approaches to Electricity Demand Forecasting. Journal of the Operational Research Society, Vol. 59, No. 8, 2008, pp. 1066–1076.
  6. 6. Taylor J.W. Short-Term Electricity Demand Forecasting Using Double Seasonal Exponential Smoothing. Journal of the Operational Research Society, Vol. 54, No. 1, 2003, pp.799–805.
  7. 7. Wong K.K.F., Song H., Witt S.F. and Wu D.C. Tourism Forecasting: To Combine or Not to Combine?. Tourism Management, Vol. 28, No. 4, 2007, pp. 1068–1078.
  8. 8. Song H., Wong K.K.F. and Chon K.K.S. Modelling and Forecasting the Demand for Hong Kong Tourism. Hospitality Management, Vol. 22, No. 4, 2003, pp. 435–451
  9. 9. Kulendran N. and Maxwell L.K. FForecasting International Quarterly Tourist Flows Using Error-Correction and Time-Series Models. International Journal of Forecasting, Vol. 13, No. 3, 1997, pp. 319–327.
  10. 10. Xuejun Shen, Limin Ou, Xiaojun Chen, etc. The Application of the Grey Disaster Model to Forecast Epidemic Peaks of Typhoid and Paratyphoid Fever in China[J]. Plosone Published: April 2, 2013. https://doi.org/10.1371/journal.pone.0060601
  11. 11. Guo Jinhai, Xiao Xinping, Yang Jinwei. The effect of function transformation on the smoothness and accuracy of grey model[J]. Control and Decision, 2015, 30(7): 1251–1256.
  12. 12. Wenzhan Dai, Wei Xiong, Aiping Yang. Grey modeling based on function cota transformation and background value optimization[J]. Journal of Zhejiang University: Engineering Edition, 2010, 44(7): 1368–1372.
  13. 13. Feng Zheng, Yong Wei. A new method to improve the smoothness of grey modeling data series[J]. Statistics and Decision, 2007, 19(18): 37–38.
  14. 14. Li Cuifeng, Dai Wenzhan. Grey modeling method based on function cota transformation [J]. Systems Engineering, 2005, 23(3): 110–114.
  15. 15. Cui Lizhi, Liu Sifeng. Grey prediction model based on data transformation technology [J]. Systems Engineering, 2010, 28(3): 104–109.
  16. 16. Li Fuqin, Liu Jianguo. Research on Data Transformation to Improve the Accuracy of Grey Forecasting Model[J]. Statistics and Decision, 2008, 20(6): 15–17.
  17. 17. Wang Yaxin, Dang Yaoguo, Pei Lingling. Smoothness of buffer operators[J]. System Engineering Theory and Practice, 2010, 30(9): 1643–1649.
  18. 18. Luo Dang, Liu Sifeng, Dang Yaoguo. Grey model GM(1, 1) optimization [J]. Chinese Engineering Science, 2003(08): 50–53.
  19. 19. Liao Fei. A new GM(1, 1) model for background value optimization[J]. Mathematics in Practice and Knowledge, 2009, (22):107–113.
  20. 20. Yaoguo Dang, Sifeng Liu, Bin Liu. The GM model with initial conditions [J]. Chinese Management Science, 2005, 13(1): 132–134.
  21. 21. Yi Zhang, Yong Wei, Changwei Xiong. A new optimization method for the grey model GM(1, 1)[J]. System Engineering Theory and Practice, 2007, 27(4): 141–146.
  22. 22. Fangping Yin. Improved GM model with initial conditions [J]. Statistics and Decision, 2001, 3:164–165.
  23. 23. Shijian Zhou, Zhikun Lai, Deyan Zang. Weighted grey prediction model and its calculation implementation. Journal of Wuhan University (Information Science Edition), 2002, 5: 451–455.
  24. 24. Bin Zhang, Guiquan Xi. GM(1, 1) model optimization based on background value and boundary value correction[J]. System Engineering Theory and Practice. 2013, 33(3): 682–688.
  25. 25. Wang Zhaoyang. Application of Renewal Gray GM(1, 1) Model to Prediction of Landslide Deformation [J]. Journal of Geoscience and Environment Protection, 2017.5: 148–154.
  26. 26. Qiang Wu. Revision of the grey prediction model GM(1, 1) [J]. Journal of Heilongjiang University of Business (Journal of Natural Science), 1995, 11(3): 61–64.
  27. 27. Lifang Xiao, Hao Wang, Mei Duan. The Optimization of Grey Model GM(1, 1) Based on Posterior Error[C]. 2020 the 5th International Conference on Control, Robotics and Cybernetics, 2020.10:87–91.
  28. 28. QIAN Wu-yong, DANG Yao-guo. GM(1, 1)model based on oscillation sequences[J]. Systems Engineering-Theory and Practice, 2009, 29(3):149–154.
  29. 29. Huang Ya-Ling, Lee Yen-Hsien. Accurately Forecasting Model for the Stochastic Volatility Data in Tourism Demand[J]. Modern Economy, 2011.2:823–829.
  30. 30. Niu Dongxiao, Wang Peng, Wang Qing, etc. Research on Mid-long Term Load Forecasting based on Gray Fourier Series Residual Correction Model[J]. Applied Mechanics and Materials Vols.631-632(2014):345–349. https://doi.org/10.4028/www.scientific.net
  31. 31. Jiacong Xu. Naked K-line trading method [M]. Shanghai University of Finance and Economics Press, 2019.8.