中文说明: 用matlab进行灰色预测,先进行检验,通过后预测,然后再进行残差修正,一般一阶残差修正精度会比较好,也就够了。 有较详细的注释 %灰色预测:ForecastData=grey_forecast(A,m,translation) %灰色预测检验:[E,Q]=grey_check(A,ForecastData) %一阶残差修正Markov Chain:eMC=grey_MarkovChain(E,m) %一阶残差修正残差预测:EData=grey_forecast(abs(E),m,translation) %一阶残差修正模型最终预测:EForecast = ForecastData + eMC.*EData; %一阶残差修正模型检验:[EE,EQ]=grey_check(A,EForecast) %二阶残差修正Markov Chain:eeMC=grey_MarkovChain(EE,m) %二阶残差修正残差预测:EEData=grey_forecast(abs(EE),m,tran
English Description:
Using MATLAB for grey prediction, first test, after prediction, and then residual correction, generally the first order residual correction accuracy will be better, it is enough.