AR(p) parameters estimation

조회 수: 6 (최근 30일)
Mario
Mario 2014년 2월 20일
편집: Shashank Prasanna 2014년 2월 28일
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

채택된 답변

Shashank Prasanna
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
Mario
Mario 2014년 2월 28일
if I'm not wrong, the "estimate" method estimates parameters with loglikelihood optimization, I would need to use the OLS method.
Anyway, now I have to fit this model: Y_t=θ_0+θ_1*R_(t-1)+θ_2*R_(t-2)+θ_3*X_(t-1)+e_t
and I have to estimate parameters.
How can I do this?
Thanks in advance
Shashank Prasanna
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 CenterFile Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by