On Sat, 23 Feb 2019, Raul Gimeno wrote:
Hello
I simulated the following AR(1) process xt = 5 + 0.4xt-1 + e with e =
N(0,1) 200 observations
Estimation with OLS: xt = 5.047xt + 0.414xt-1
Estimation with gretl ARIMA: xt = 8.57 + 0.43xt-1
I simulated this AR(2) process: xt = 5 + 0.4xt-1 -0.1xt-2 + e
OLS estimation: xt = 4.64 + 0.377x t-1 -0.0075 x t-2
ARIMA estimation: xt = 7.36 + 0.369xt-1 -0.0076xt-2
Why is gretl giving such a bad estimation compared to OLS-estimation?
The answer is in the manual, section 28.2, but in short: the constant term
is a special case of a deterministic exogenous part that is treated
differently in full ML estimation (that is what you get with the arima
command) and conditional ML (that is what you get by OLS).
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------