AR(p) parameters estimation
6 ビュー (過去 30 日間)
古いコメントを表示
I have to fit the AR(p) model as:
X_t = c + sum_{i=1}^p phi_i X_{t-i} + epsilon_t
where p:order, phi:parameters to be estimated, c:constant, epsilon:white noise.
How can i estimate parameters' model?
I tried with ar function but i had only parameters phi. How can i estimate the constant term, c?
Any idea?
NB: I'm using ar function with Matlab2010
Thanks
0 件のコメント
採用された回答
Shashank Prasanna
2014 年 2 月 20 日
If you have access to the Econometric Toolbox, you can estimate the model as shown in the first example:
mdl = arima(2,0,0); % 2 the lag order
EstMdl = estimate(mdl,y); % y is your data
2 件のコメント
Shashank Prasanna
2014 年 2 月 28 日
編集済み: Shashank Prasanna
2014 年 2 月 28 日
I've answered a question similar to this before:
In short, set up your lagged matrix and solve linear system X\y
その他の回答 (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!