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!