Why are all coefficients of my seasonal ARIMA = 0 or NaN?
4 次查看(过去 30 天)
显示 更早的评论
Hello everyone!
I created a seasonal ARIMA model with the following code:
% model = arima('Constant',0,'D',1,'Seasonality',24,'ARLags',3,'SARLags',3,'MALags',2,'SMALags',2);
[fit,VarCov,LogL,info] = estimate(model,Y);
Now matlab gives me the following output:
Parameter Value Error Statistic
----------- ----------- ------------ -----------
Constant 0 Fixed Fixed
AR{3} -0.0321142 0.00310401 -10.346
SAR{3} -0.0321142 0.00310401 -10.346
MA{2} -0.138189 0.00201315 -68.643
SMA{2} -0.138189 0.00201315 -68.643
Variance 0.921722 0.00357711 257.672
When I try to retrieve the coefficients of my polynomials with for example
% model.SAR
I only get zeros and NaN as coefficients. Does anyone know what the problem could be?
Thanks a lot!! I am very new to matlab, so help is greatly appreciated!!
0 个评论
采纳的回答
Roger Wohlwend
2014-9-26
The variable model specifies the model but it does not contain any values for the coefficients (except the constant). That is why you only get zeros and NaNs. The estimated model is the variable fit . You have to retrieve the coeffiencts from that variable.
SAR = fit.SAR
2 个评论
Roger Wohlwend
2014-9-29
You have to include all lags in the specification, not just the highest one. With the following line of code Matlab will estimate the model you want:
model = arima('Constant', 0, 'D', 1, 'Seasonality', 24, 'ARLags', 1:3, 'SARLags', 1:3, 'MALags', 1:2, 'SMALags', 1:2);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Conditional Mean Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!