我觉得daly555说得很对,误差只能是计算值跟实际值的比较。楼主的意思可能是想要知道模型的精确度,不妨参考灰色预测模型的c检验值和p检验值法,如果p>0.95 & c<0.35,那么此模型还是不错的。具体分析如下:* d# W0 s& n. T1 E) R/ }
if p>0.95 & c<0.35 ; d% F$ h1 `1 z( v9 b# h disp('The model is good,and the forecast is:'),) c5 M6 o8 M) u5 Q H. O2 F
disp(Hatx0(length(x0)+T)) + ?+ K# O/ t r! N( Xelseif p>0.85 & c<0.5 , f- ` a* e) g# M) K0 V% d disp('The model is eligibility,and the forecast is:'), - a* K. G7 W; B, a! a9 d2 o% m disp(Hatx0(length(x0)+T)) 9 ~$ O* w: \4 O* N, O! H7 i2 melseif p>0.70 & c<0.65+ N# N, z) O. Y: W5 y
disp('The model is not good,and the forecast is:'),6 B- Z9 i! w: c3 ]
disp(Hatx0(length(x0)+T)). ~) n3 s1 P3 o& s. m; C& Q
else p<=0.70 & c>0.65# X1 v4 O4 Q& U; u2 X6 B
disp('The model is bad,and try again') 1 f. f- ^0 \& O2 Y5 d我有一篇关于灰色模型和指数预测模型matlab程序的帖子,楼主可以参考,共同学习~~