0 and -inf in the residuals inferred from a ARIMA model

2 ビュー (過去 30 日間)
Taylor Xie
Taylor Xie 2014 年 7 月 3 日
コメント済み: Taylor Xie 2014 年 7 月 4 日
Hello, everyone.
when I was inferring residuals and variance from a estimated ARIMA model, I found some -inf and 0 in the residuals and variance and I don't know what's wrong. This error doesn't happen regular and it only happened in certain dataset. For example, when I infer the data Rtn in the attachment.
My codes are
options = optimset('fmincon');
options = optimset(options, 'Display' , 'off', 'Diagnostics', 'off', ...
'Algorithm', 'sqp', 'TolCon' , 1e-7);
model= arima('AR', NaN,'ARLags',1, 'Distribution', 't', 'Variance', egarch(1,1));
fitmodel = estimate(model, Rtn, 'print', false, 'options', options);
[residuals, variances] = infer(fitmodel, Rtn);
% Calculate the Standardized Residuals
residuals = residuals ./ sqrt(variances);
When I look at the residuals and variances vector, I find some -inf and 0. I don't know why this happened. But, when I change another data, the infer function works well. Does anyone can help me to figure out this problem.
Thanks, very much.

採用された回答

Roger Wohlwend
Roger Wohlwend 2014 年 7 月 4 日
For an EGARCH(1,1) model the ARCH and GARCH coefficients are expected to be positive. In your case they are not. That is why you have problems with the residuals and the variances. It seems that an EGARCH model is not appropriate for your data. I don't know the reason for that, I guess nobody can tell you. So the only way to fix this is to use a different model for the variance: GARCH(1,1) for example.
  1 件のコメント
Taylor Xie
Taylor Xie 2014 年 7 月 4 日
Thanks very much for helping me find the problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGARCH Model についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by