フィルターのクリア

Get residuals from real data and estimated arima model

13 ビュー (過去 30 日間)
Vardan Petrosyan
Vardan Petrosyan 2016 年 5 月 21 日
回答済み: ABDULAZIZ ALTUN 2020 年 4 月 20 日
Hi all, I need to estimate ARIMA model parameters and get residuals from the real data and the ARIMA model. Is the infer right function to do that? Currently I am doing this:
initial_arima_model = arima(4,0,2);
arima_model = estimate(initial_arima_model,LEARN_DATA);
[E,V] = infer(arima_model,LEARN_DATA);
plot(LEARN_DATA);
hold on;
plot(LEARN_DATA + E);
hold off;
But I am not sure that this is correct.

回答 (2 件)

Gautam
Gautam 2016 年 5 月 25 日
編集済み: Gautam 2016 年 5 月 25 日
Hi Vardan,
You can use the 'resid' function to get residuals from the data and the model.Refer the following documentation for more information about this function:
Regards,
Gautam
  1 件のコメント
ABDULAZIZ ALTUN
ABDULAZIZ ALTUN 2020 年 4 月 20 日
It does not work!
Mdl = regARIMA(1,0,1);
resid(Equity_US,Mdl)
It does not give the residuals!

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


ABDULAZIZ ALTUN
ABDULAZIZ ALTUN 2020 年 4 月 20 日
I first fitted the data using
% Fit an ARMA(1,1) model
Mdl = regARIMA(1,0,1);
% EstMdl = estimate(Mdl,Equity_US);
EstMdl =estimate(Mdl,Equity_US);
Once you fit the data, you will need to read the summary of this
summarize(EstMdl)
Once you read the summary you will have to write the model yourself
Mdl = regARIMA('Intercept', 0.08245, 'AR', {0.69916}, 'MA',-0.82486, 'Variance',0.038536);
Now that you have written the model, you can infer the residuals
E = infer(Mdl,Equity_US)

カテゴリ

Help Center および File ExchangeAutocorrelated and Heteroscedastic Disturbances についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by