Identification of seasonal peaks in autoregressive spectrum
AR Spectrum definition
The estimator of the spectral density at frequency will be given by the assumption that the series will follow an AR(p) process with large . The spectral density of such model, with an innovation variance , is expressed as follows:
where denotes the AR(k) coefficient, and .
Soukup and Findely (1999) suggest the use of p=30, which in practice much larger than the order that would result from the AIC criterion. The minimum number of observations needed to compute the spectrum is set to n=80 for monthly data (or n=60) for quarterly series. In turn, the maximum number of observations considered for the estimation is n=121. This choice offers enough resolution, being able to identify a maximum of 30 peaks in a plot of 61 frequencies: by choosing ,for , we are able to calculate our density estimates at exact seasonal frequencies (1, 2, 3, 4, 5 and 6 cycles per year). Note that cycles per year can be converted into cycles per month by simply dividing by twelve, , and to radians by applying the transformation .
The traditional trading day frequency corresponding to 0.348 cycles per month is used in place of the closest frequency . Thus, we replace by . The frequencies neighbouring are set to and . The periodogram below illustrates the proximity of this trading day frequency (red shade) and the frequency corresponding to 4 cycles per year . This proximity is precisely what poses the identification problems: the AR spectrum boils down to a smoothed version of the periodogram and the contribution of the of the trading day frequency may be obscured by the leakage resulting from the potential seasonal peak at , and vice-versa.
Periodogram with seasonal (grey) and calendar (red) frequencies highlighted
JDemetra+ allows the user to modify the number of lags of this estimator and to change the number of observations used to determine the AR parameters. These two options can improve the resolution of this estimator.
Graphical Test
The statistical significance of the peaks associated to a given frequency can be informally tested using a visual criterion, which has proved to perform well in simulation experiments. Visually significant peaks for a frequency satisfy both conditions:
- , where can be set equal to for all
- , which guarantees it is not a local peak.
The first condition implies that if we divide the range in 52 parts (traditionally represented by stars) the height of each pick should be at least 6 stars.
Use
The test can be applied directly to any series by selecting the option Statistical Methods » Seasonal Adjustment » Tools » Seasonality Tests. This is an example of how results are displayed for the case of a monthly series:
JDemetra+ considers critical values for (code “A”) and (code “a”) at each one of the seasonal frequencies represented in the table below, e.g. frequencies $\frac{\pi}{6},\ \frac{\pi}{3},\ \frac{\pi}{2},\ \frac{2\pi}{3}\text{ and } \frac{5\pi}{6}\ $ corresponding to 1, 2, 3, 4, 5 and 6 cycles per year in this example, since we are dealing with monthly data. The codes “t” and “T” correpond to the so-called Tukey spectrum, so ignore them for the moment.
The seasonal and trading day frequencies by time series frequency
Number of months per full period | Seasonal frequency | Trading day frequency (radians) |
---|---|---|
12 | $\frac{\pi}{6},\frac{\pi}{3},\ \frac{\pi}{2},\frac{2\pi}{3},\ \frac{5\pi}{6},\ \pi$ | $d$, 2.714 |
6 | $\frac{\pi}{3},\frac{2\pi}{3}$, $\pi$ | |
4 | $\frac{\pi}{2}$, $\pi$ | $d$, 1.292, 1.850, 2.128 |
3 | ||
2 |
Currently, only seasonal frequencies are tested, but the program allows you to manually plot the AR spectrum and focus your attention on both seasonal and trading day frequencies. Agustin Maravall has conducted a simulation experiment to calculate (trading day frequency) and proposes to set for all equal to the critical value associated to the trading frequency, but this is currently not part of the current automatic testing procedure of JDemetra+.
References
- Soukup, R.J., and D.F. Findley (1999) On the Spectrum Diagnosis used by X12-ARIMA to Indicate the Presence of Trading Day Effects After Modeling or Adjustment. In Proceedengs of the American Statistical Association. Business and Economic Statistics Section, 144-149, Alexandria, VA.