Skip to content

ENH: ARMA order select convenience function - #1334

Merged
jseabold merged 9 commits into
statsmodels:masterfrom
jseabold:arma-order-select
Jan 28, 2014
Merged

jseabold merged 9 commits into
statsmodels:masterfrom
jseabold:arma-order-select

Conversation

@jseabold

Copy link
Copy Markdown
Member

Just a way to quickly aggregate results for consideration. Doesn't do any automatic selection. The start parameters check is kind of a hack and should be fixed with #1301.

@jseabold

Copy link
Copy Markdown
Member Author

This is a little different than Hannan and Rissannen's (1982) originally proposed method (lated looked at by Box, Jenkins, and Reinsel and Choi). It sounds like their approach is mainly used for computational reasons. Maybe we should consider it? Their approach

  1. Estimate an AR(p_e) series using Yule-Walker with p_e determined by the minimum AIC (BIC) according to RR (BJR/Choi).
  2. Obtain the residuals, e, from this series
  3. Estimate by OLS y ~ L(p)y + L(q)e for all p and q

Thoughts? Ours isn't terribly slow, and will be much faster when we merge the ARIMA speed-up changes.

https://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_arima_sect030.htm

Hyndman and Khandakar are way fancier (auto.arima in the forecast package). I've also written wrappers for AUTOMDL in what is now X-13-arima. To be included when I get the API right and figure out how to handle the configuration for the dependence.

@josef-pkt

Copy link
Copy Markdown
Member

The advantage is that this can be made very fast, especially if we use QR for the max_p * max_q regressions.

Because it needs a large initial AR(p), my guess is that it only works well if the time series is long enough or persistence is not very high. Maybe more of a complement to the full info MLE which should be more accurate in the smaller sample case.

Do AIC or BIC "unselect" near common roots?
From what I saw recently, I think Hyndman is checking and dropping nearly common roots.

@jseabold

Copy link
Copy Markdown
Member Author

I'm not sure about the common roots issue or the performance of AIC/BIC more generally in applications and in the literature. I doubt that it unselects these models or people would just use it alone and be done with it rather than the extensive model selection algorithms that are used. This is just a quick way to aggregate IC for a time-series, as far as I'm concerned.

I know AUTOMDL in x-13-arima checks for common roots, allows users to prefer balanced models where p + d == q, etc. I assume auto.arima does too. I'd save all of this that for any kind of duplicate auto.arima function (which this isn't pretending to be). I'm skeptical about re-implementing these algorithms just to have them in Python though. I think wrapping AUTOMDL (or auto.arima) should be enough for almost any use case.

@jseabold

Copy link
Copy Markdown
Member Author

The SAS documentation notes that a large negative BIC value can be used to diagnose a near perfect fit from using short series.

@jseabold

Copy link
Copy Markdown
Member Author

Thinking about just merging this as is now that there's an implementation note in the docs. If people want to talk about bells and whistles or approximation implementations, we can fix it up later.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling ca28977 on jseabold:arma-order-select into 96c410f on statsmodels:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with Kevin's merge this would by OLS

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix when that's merged.

@josef-pkt

Copy link
Copy Markdown
Member

Thinking about just merging this as is now that there's an implementation note in the docs. If people want to talk about bells and whistles or approximation implementations, we can fix it up later.

I agree,
except I prefer a regression test with numbers, so we know what it did when it was written.

jseabold added a commit that referenced this pull request Jan 28, 2014
ENH: ARMA order select convenience function
@jseabold
jseabold merged commit 034f232 into statsmodels:master Jan 28, 2014
@jseabold
jseabold deleted the arma-order-select branch January 28, 2014 16:56
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
ENH: ARMA order select convenience function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants