16
$\begingroup$

How do you estimate the appropriate forecast model for a time series by visual inspection of the ACF and PACF plots? Which one (i.e., ACF or PACF) tells the AR or the MA (or do they both)? Which part of the graphs tell you the seasonal and non-seasonal part for a seasonal ARIMA?

Consider the ACF and PCF functions displayed below. They are from a log transformed series that's been differenced twice, one simple difference and one seasonal (original data, log transformed data). How would you characterize the series? What model best fits it?

enter image description here

$\endgroup$

2 Answers 2

13
$\begingroup$

My answer is really an abridgement of javlacelle's but is is too long for a simple comment but not too short to be useless.

While jvlacelle's response is technically correct at one level it "overly simplifies" as it premises certain "things" which are normally never true . It assumes that there is no deterministic structure required such as one or more time trends OR one or more level shifts or one or more seasonal pulses or one or more one-time pulses. Furthermore it assumes that the parameters of the identified model are invariant over time and the error process underlying the tentatively identified model is also invariant over time. Ignoring any of the above is often (always in my opinion !) a recipe for disaster or more precisely a "poorly identified model". A classic case of this is the unnecessary logarithmic transformation proposed for the airline series and for the series that the OP presents in his revised question. There is no need for any logarithmic transformation for his data as there are just a few "unusual" values at periods 198,207,218,219 and 256 which left untreated create the false impression that there is higher error variance with higher levels. Note that "unusual values" are identified taking into account any needed ARIMA structure which often escapes the human eye.Transformations are needed when the error variance is non-constant over time NOT when the variance of the the observed Y is non-constant over time. Primitive procedures still make the tactical error of selecting a transformation prematurely prior to any of the aforementioned remedies. One has to remember that the simple-minded ARIMA model identification strategy was developed in the early 60's BUT a lot of development/improvements have gone on since then.

Edited after data was posted :

A reasonable model was identified using http://www.autobox.com/cms/ which is a piece of software that incorporates some of my aforementioned ideas as I helped develop it. enter image description here The Chow Test for parameter constancy suggested that the data be segmented and that the last 94 observations be used as model parameters had changed over time.enter image description here .These last 94 values yielded an equationenter image description here with all coefficients being significant.enter image description here . The plot of the residuals suggests a reasonable scatter enter image description here with the following ACF suggesting randomness enter image description here . THe Actual and Cleansed graph is illuminating as it shows the subtle BUT significant outliers.enter image description here . Finally a plot of actual,fit and forecast summarizes our work ALL WITHOUT TAKING LOGARITHMS enter image description here. It is well known but often forgotten that power transforms are like drugs .... unwarranted usage can harm you. Finally notice that the model has an AR(2) BUT not an AR(1) structure.

$\endgroup$
3
  • $\begingroup$ why can we not take the log transform? Please see the AirPassengers dataset in R, which has multiplicative seasonality.Taking the log, transforms it to additive seasonality. Also if we do not take logs the dataset will have increasing variance ie, it will not be stationary. How can I deal with such a dataset without taking log transform? Can you please explain? $\endgroup$ Commented Nov 25, 2019 at 9:31
  • $\begingroup$ "There is no need for any logarithmic transformation for his data as there are just a few "unusual" values at periods which left untreated create the false impression that there is higher error variance with higher levels" . the stationarity assumption of constancy of variance is about the error variance not about the variance of the original series The R software doesn't allow one to identify and incorporate anomalies automatically. see autobox.com/cms/index.php/blog discussion on the series . AND autobox.com/pdfs/vegas_ibf_09a.pdf $\endgroup$
    – IrishStat
    Commented Nov 25, 2019 at 9:58
  • $\begingroup$ The Box-Cox test for a power transform ASSUMES no outliers thus it can falsely/inadvertently link the changing variance with the expected value thus incorrectly suggesting the need for a transform. See Tsay's article docplayer.net/… from one of Box's students as an intro to dealing with untreated latent deterministic structure , Bye the way if you don't/can't deal with a violation of the first moment you then can incorrectly adjust for variance change either through a power transform or GLS as Tsay points out. $\endgroup$
    – IrishStat
    Commented Nov 25, 2019 at 10:43
14
$\begingroup$

Just to clear up concepts, by visual inspection of the ACF or PACF you can choose (not estimate) a tentative ARMA model. Once a model is selected you can estimate the model by maximizing the likelihood function, minimizing the sum of squares or, in the case of the AR model, by means of the method of moments.

An ARMA model can be chosen upon inspection of the ACF and PACF. This approach relies on the following facts: 1) the ACF of a stationary AR process of order p goes to zero at an exponential rate, while the PACF becomes zero after lag p. 2) For an MA process of order q the theoretical ACF and PACF exhibit the reverse behaviour (the ACF truncates after lag q and the PACF goes to zero relatively quickly).

It is usually clear to detect the order of an AR or MA model. However, with processes that include both an AR and MA part the lag at which they are truncated may be blurred because both the ACF and PACF will decay to zero.

One way to proceed is to fit first an AR or MA model (the one that seems more clear in the ACF and PACF) of low order. Then, if there is some further structure it will show up in the residuals, so the ACF and PACF of the residuals is checked to determine if additional AR or MA terms are necessary.

Usually you will have to try and diagnose more than one model. You can also compare them by looking at the AIC.

The ACF and PACF that you posted first suggested an ARMA(2,0,0)(0,0,1), that is, a regular AR(2) and a seasonal MA(1). The seasonal part of the model is determined similarly as the regular part but looking at the lags of seasonal order (e.g. 12, 24, 36,... in monthly data). If you are using R it is recommended to increase the default number of lags that are displayed, acf(x, lag.max = 60).

The plot that you show now reveals suspicious negative correlation. If this plot is based on the same that as the previous plot you may have taken too many differences. See also this post.

You can get further details, among other sources, here: Chapter 3 in Time Series: Theory and Methods by Peter J. Brockwell and Richard A. Davis and here.

$\endgroup$
7
  • $\begingroup$ You're right. I may have taken one difference too many. I have one doubt though. I did a simple difference (i.imgur.com/1MjLzlX.png) and a seasonal (12) one (i.imgur.com/E64Sd7p.png) both on the log data. Which one do should i look at, the seasonal one right? $\endgroup$ Commented Jul 7, 2014 at 11:45
  • 1
    $\begingroup$ @4everlearning Right, after taking seasonal differences the ACF and PACF looks closer to what we could expect for a stationary process. You can start by fitting an ARIMA(2,0,0)(0,1,1), in R arima(x, order = c(2,0,0), seasonal = list(order = c(0,1,1))), and displaying the ACF and PACF of the residuals. Be also aware of further issues raised by IrishStat that you should be concerned with in the analysis. $\endgroup$
    – javlacalle
    Commented Jul 7, 2014 at 11:59
  • $\begingroup$ Thanks. How would i go about finding those AR and MA orders? Plus, the Akaike Information Criterion yields a negative value for my model. I understand that this is not important although i'm not really sure how to compare it to other models, say AIC=-797.74 and AIC=-800.00. Which is preferable? $\endgroup$ Commented Jul 7, 2014 at 12:49
  • $\begingroup$ You can determine the orders following the idea given in the answer above. If you see that the ACF goes to zero relatively quickly and the PACF truncates after lag 2 then it is probably that an AR(2) structure is present in the data. The reverse idea applies to detect an MA. As a general recommendation, start with a model of low order and inspect the residuals looking for AR or MA structures to be added to the initial model. $\endgroup$
    – javlacalle
    Commented Jul 7, 2014 at 13:02
  • $\begingroup$ As a general rule, the lower the AIC the better the model is (assuming that you are using the data in the same scale in both models, that is, the series should be either in levels or logs in all the models that you are comparing). $\endgroup$
    – javlacalle
    Commented Jul 7, 2014 at 13:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.