How to determine the order of ARMA and AR coefficient ?

2 ビュー (過去 30 日間)
Husni
Husni 2012 年 11 月 19 日
コメント済み: Magdy Ismail 2021 年 2 月 14 日
Perhaps this is very simple question. I have been trying to find it. How can we determine the order of ARMA and AR coefficient in Matlab? What I mean here is not merely trial and error.
Any suggestion is appreciated
Sincerely yours
Ali
  1 件のコメント
Magdy Ismail
Magdy Ismail 2021 年 2 月 14 日
Did you find an answer for your problem because i am searching for the same thing how to determine the order of AR model?

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

採用された回答

Rajiv Singh
Rajiv Singh 2012 年 11 月 20 日
One way would be to state-space estimation which lets you inspect the Hankel singular values for model order:
% pick optimal order in the 1:10 range: model = n4sid(data, 1:10);
  3 件のコメント
Rajiv Singh
Rajiv Singh 2012 年 11 月 21 日
Once you the order, you can proceed with your favorite estimation routine carrying over the knowledge of the order to configure the structure. Also, you can convert an estimated state space model (using n4sid above) into the more conventional polynomial form of ARMA model using the IDPOLY command:
m = n4sid(data, 1:10);
m2 = idpoly(m)
HF
HF 2020 年 10 月 21 日
Hello, I was trying to apply your code into my Matlab file. Unfortunately, it is not working. Any suggestions in how to fix. I would really appreciate that.
This is my code:
Fs = 1000;
max_freq = 20;
value = 500;
signal = e(1:value);
m = n4sid(signal, 1:10);
order = idpoly(m)
[X, Y] = pyulear(e_test,order,length(e_test),Fs);

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

その他の回答 (1 件)

Gurudatha Pai
Gurudatha Pai 2012 年 12 月 12 日
Model order selection is often a tricky business. Inspecting the Hankel singular values is one many methods. There are many such methods, arguably one as good or worse as the other.
Specifically in the case AR/ARMA models, you may look into the model residues. Specifically, if you have used a "sufficient" model orders, the residuals should look white. Note that the residuals may look white for many model order selections. There are statistical hypothesis testing procedures (e.g. Chi-2 test, etc.) for both sample auto-correlation of residuals and cross-correlation of residuals and input; Ljung's book has a lot of details on all of this.
Hope that helps.

カテゴリ

Help Center および File ExchangeCorrelation Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by