Attached is acbjICRS.src.
The procedure:
Calculates roots and inverse roots of the characteristic polynomial for non-seasonal and
seasonal ARIMA models.
Produces plots of the inverse roots relative to the complex unit circle.
Further, includes a table of the inverted roots of the lag polynomial,
showing the modulus and (for complex roots) the period, as in lagpolyroots.src.
I think it's correct. I have included footnotes for explanation. Please check, and for any improvements.
I have tested on the following:
Code: Select all
boxjenk(const,diffs=0,sdiffs=0,ar=0,sar=0,maxl,define=deq) writing
@acbjICRS(fPlot=1) deq writing
boxjenk(const,diffs=0,sdiffs=0,ar=1,sar=0,maxl,define=deq) writing
@acbjICRS(TITLE="") deq writing
boxjenk(noconst,diffs=0,sdiffs=0,ma=5,sma=0,maxl,define=deq) writing
@acbjICRS deq writing
boxjenk(noconst,ar=5,diffs=1,ma=1,sar=1,sdiffs=1,sma=1,maxl,define=deq) writing
@acbjICRS deq writing
boxjenk(noconst,ar=2,diffs=1,ma=1,sar=1,sdiffs=1,sma=1,maxl,define=deq) writing
@acbjICRS deq writing
boxjenk(noconst,ar=0,diffs=1,ma=2,sar=0,sdiffs=1,sma=2,maxl,define=deq) writing
@acbjICRS(fplot=1) deq writing
boxjenk(const,diffs=1,sdiffs=0,ma=4,sma=1,NOMAXL,define=deq) writing
@acbjICRS deq writing
boxjenk(noconst,diffs=1,sdiffs=0,ar=14,sar=0,NOMAXL,define=deq) writing
@acbjICRS deq writing
A couple of questions:
(a) Is 5 decimal places sufficient, all scenarios, for
any data series?
(b) The reason I wanted to plot the inverse roots in the first place was:
ac_1 wrote:
Also. am I right in thinking the coefficients of ARIMA models are not necessarily restricted to be between -1 and +1, implying a non-explosive model; it's the inverse roots which should be inside the complex unit circle: i.e. if AR roots lie inside the complex unit circle ARIMA model is stationary, and if MA roots lie inside the complex unit circle ARIMA model is invertible?
TomDoan wrote:
I'm baffled about what you're trying to do. You *know* how many differences/seasonal differences you've done so you will know exactly how many unit roots you have. The AR parts are forced to be stationary by maximum likelihood. (There is no unconditional likelihood for a non-stationary model).
The MA's are also going to be forced inside or on the unit circle. An MA with a bad root has an equivalent model with the root flipped inside. (That has nothing to do with maximum likelihood). An MA with a unit root is permitted, but in practice would never be estimated since it's a boundary value, and is usually a sign of an overdifferenced model: for instance, if x is white noise, then x=u, so (1-L)x=(1-L)u so first differencing x induces a unit root MA process.
Thus, it does not matter whether the MA inverse roots are inside or outside for an invertible ARIMA model; but inside, on or outside AR inverse root's do for stationarity? What about AR and MA inverse roots which are very close to the complex unit circle? Also in laymans terms "overall stability" and "properties" of the ARIMA model from the relationship between estimated numerical ARMA coefficients and inverse roots?