_{1}

^{*}

Based on the X-13-ARIMA-SEATS model, aiming at the problem of mobile holidays in China’s economic data, this paper introduces a new method of seasonal adjustment based on the AICC criterion to objectively select the parameters of dummy variables of mobile holidays. Taking the current total value of China’s import and export as an example, we expound a new method for seasonal adjustment of mobile holidays such as Spring Festival, Dragon Boat Festival and Mid-Autumn Festival. Finally, the model is used to predict the total value of China’s import and export in and out of the sample. The prediction results show that the relative error of the out of sample data is less than 5%. The new method has advantages in the processing of macroeconomic data.

In order to better monitor the operation of the national economy, it is necessary to scientifically process the economic data, especially the monthly and quarterly high-frequency data. Developed countries generally use the seasonally adjusted data as the basis for economic analysis and forecasting. Most monthly and quarterly macroeconomic data are influenced by seasonal factors. Taking the total value of import and export in the current period ($10 billion) as an example, the “advance of export and delay of import” could theoretically lead to a higher export growth rate and a lower import growth rate in the month during the Spring Festival. The purpose of seasonal adjustment of monthly data and quarterly data is to eliminate the data fluctuation caused by seasonal factors and make the data in each period at an “equal” level. The sequential growth rate calculated by this method can more timely reflect the potential trend of economic indicators. In addition, seasonal adjustment is also conducive to the observation of the current short-term indicators of the annual trade situation, and timely identifies the root cause of the problem, to do a good job in foreign trade response strategy.

Generally speaking, conventional seasonal factors include trend-period factors and seasonal components. However, the calendar effect of traditional Chinese festivals also has an important impact on the original data, especially the Spring Festival in China. The time of the lunar New Year on the Gregorian calendar occurs between January 21 and February 20 each year, which will cause some distortion in the data of monthly year-on-year growth rate. If the Spring Festival of the adjacent two years does not happen in January or February at the same time, the volatility of year-on-year data may be very large. At present, the latest outcome is the X-13-ARIMA-Seats, which is supported by the bank of Spain and developed by the census bureau. Based on the latest version of X-12-ARIMA (proposed by US Census Bureau’s X-12-ARIMA for seasonal adjustment), this program adds the TRAMO/SEATS seasonal adjustment procedure, which has been widely used in the economic analysis process of central Banks and research institutions of various countries. Despite that the X-12-ARIMA regARIMA in program used in the pretreatment of the raw data of the adjustment module can be achieved, which eliminate the calendar effect (such as trading day effect, mobile holiday effect, etc.), but most of the built-in program X-12-ARIMA designed aiming at the condition of the western countries, such as Easter, Thanksgiving, for China the Spring Festival, the Dragon Boat Festival, Mid-Autumn Festival and so on did not provide a direct calculation program. In addition, in the existing seasonal adjustment studies considering the effect of mobile holidays in China, the pre-holiday, mid-holiday and post-holiday influence periods are selected in a subjective way, and the same influence periods are adopted for different time series. Therefore, there is a lack of relevant studies on the possible effects of different mobile holidays on different time series data. In view of this, this paper takes the current total value of China’s import and export (RMB 10 billion) data as an example, and based on the X-13-ARIMA-SEATS program package, designs a direct calculation program for the Spring Festival, Dragon Boat Festival and Mid-Autumn Festival, and makes seasonal adjustment to the monthly data of China. At the same time, in view of the Spring Festival effect, this paper selected the parameters before, during and after the Spring Festival according to the AICC criterion, obtained the seasonally adjusted data excluding the Spring Festival effect by using the R, and used the adjusted data for prediction.

The idea of seasonal adjustment of time series can be traced back to 100 years ago. In 1919, Persons explicitly proposed to divide the time series into four parts: trend, cycle, season and irregular components. Seasonal adjustments to time series data remove natural or socio-historical factors from the original data (monthly or quarterly), making the data comparable and correctly reflecting underlying trends and turning points in the economic cycle in macroeconomic forecasts. In 1954, Shiskin of the US census bureau first developed a program called X-1 that USES computers to adjust the seasons. In 1955 an improved seasonal adjustment procedure was announced, known as X-2; By 1965 the X-11 method had been developed. The X-11 method was the international seasonal adjustment method at that time, and was also the core of X-11-ARIMA and X-12-ARIMA.

Currently, the X-12-ARIMA model is one of the most popular models for seasonal adjustment. The most important feature of this method is that regARIMA can enhance the ARIMA modeling ability and model selection ability of time series through the pre-adjustment module, and can estimate the user customized regression effects, such as mobile holiday effect, day effect, etc. Seasonal adjustment procedures such as X-12-ARIMA have been used in a number of recent studies involving Chinese data. 3 In their factor-augmented VAR study, Fernald, Spiegel and Swanson [

At present, one of the latest research results in the field of seasonal adjustment is to combine the latest version of the X-12-ARIMA model and the latest version of the TRAMO/SEATS model into a program package, namely the X-13-ARIMS-SEATs program package. X-13-ARIMA-SEATS based on TRAMO selects the model automatically. This method combines the advantages of the two methods based on experience and model. Since the program also provides a Genhol program to generate the mobile holiday regression factor, it effectively solves the problem of mobile holiday in seasonal adjustment. However, Genhol mainly aims at the mobile holidays in western countries, such as Easter and Thanksgiving, etc., but it does not provide a direct calculation program for the mobile holidays in China, such as Dragon Boat Festival and Mid-Autumn Festival. Although the date files of Chinese Spring Festival in previous years can be called up in the seasonal package of R program, only a fixed period can be selected for the influence period before, during and after the Spring Festival on the time series, which is the main reason why most studies have fixed the influence period of the Spring Festival. For the seasonal adjustment of the effect of Chinese New Year, representative domestic studies include: in the analysis of the seasonal adjustment of Chinese CPI data, He and Liu gave three solutions to the effect of Chinese New Year. In scheme 1, the influence period before, during and after the festival was 7 days. In scheme 2, the pre-festival, mid-festival and post-festival influence periods were 14 days, 7 days and 14 days respectively. In scheme 3, the pre-festival, mid-festival and post-festival influence periods are 20 days, 7 days and 20 days respectively. According to the comprehensive indicator Q value, in scheme 2 and scheme 3 were selected. LuanHuiDe and Zhang Xiao portal the analysis of Chinese social total retail sales of consumer goods, to set the effect of the Spring Festival for the affected period for 20 days before and during the festival the impact period for 7 days, post-holiday effect period for 20 days.

Although the paper also mentioned the need according to some indicators to choose the length of the subinterval, but it gave no definite index selection criteria. Similarly, Qun-Yong Wang and Wu Na, in the study of seasonally adjustment for China’s social consumer goods retail sales monthly data, considered many mobile holiday (the Spring Festival, the Mid-Autumn Festival, Dragon Boat Festival, etc.) effect and holiday effect, etc., but in the analysis of the Spring Festival effect, the number of days before, during and after the festival are set to 20 days, 5 days, and 10 days, which is still subjective. Since different time series may be affected by the mobile holiday effect differently, it is necessary to use reasonable indicators to judge the influence period of the mobile holiday effect objectively. In view of this, Roberts and White (2015) [

Based on the principle of seasonal adjustment, we will discuss how to introduce the regression variables of outliers, stock trading days and China mobile holiday effect into X-13ARIMA-SEATS program.

Essentially, seasonal adjustment is the estimation and elimination of seasonal variation factors from the original sequence. Its purpose is to better reveal the potential characteristics of the monthly (or quarterly) sequence, so as to truly reflect the time series’ variation rules. The monthly (or quarterly) data sequence is usually broken down into seasonal components, trend cyclical components and irregular components. Multiplication model is most widely applied in the macroeconomic indicators, decomposition equation can be expressed as Y t = S t × T C t × I t ; Y t , S t , T C t and I t are seasonal ingredients in original sequence, trend cycle component, and no rules into points respectively. The seasonally adjusted sequence S A t = T C t × I t was obtained by removing the seasonal component from the original sequence, and the sequential growth rate was calculated accordingly, with the formula as follows:

g t = S A t − S A t − 1 S A t − 1 × 100 % . (1)

In this paper, the seasonal adjustment of the money supply is based on the us census bureau procedure X-13ARIMA-SEATS. The basic principle of the X- 13ARIMA-SEATS program can be in three stages: RegARIMA model is first established to carry out of sample prediction of the sequence for one year in front and back direction to supplement the data; Then, a series of filters of different lengths were repeatedly used for moving average operation, and various components (seasonal components, trend recycling components and irregular components, etc.) were extracted. Finally, the results of seasonal adjustment were examined.

RegARIMA model can be expressed as:

φ ( L ) ϕ ( L s ) ( 1 − d ) d ( 1 − L S ) D ( y t − ∑ β i x i t ) = θ ( L ) Θ ( L s ) ε t . (2)

Among them is the lag operator L, s is the seasonal cycle, φ ( L ) and ϕ ( L s ) is a season and season since back to operator respectively, θ ( L ) and Θ ( L s ) is a season and moving average operator respectively, d and D respectively the number of seasonal difference and the seasonal difference. 𝑠𝜀 is white noise process. y t as the original sequence or on the original sequence after the exponential sequence, x including constant term, outliers, trading effect and mobile holiday effect, etc. the introduction methods of outliers, trading day effect and mobile holiday effect in the model are introduced in the following sections.

The X-13-Arima-Seats program can automatically detect four types of outliers, namely, point outliers (AO), horizontal drift (LS), temporary change (TC), and seasonal outliers (SO). AO represents the outlier point at a certain time; LS means that a variable changes instantaneously from a certain point to a new level and stays there; TC means that the variable changes to a new level instantly at a certain time and then returns to the original water level through exponential decay. It means that seasonal patterns change after a certain point. The program calculates the t statistics corresponding to each outlier type for all the time points in the detection interval of outliers. Determine whether to add the outlier variable to the model based on its significance. It should be noted that the program must recognize the outliers automatically, and only those that can be given a reasonable explanation (e.g. social unrest, changes in government policy, economic crisis, etc.) can be incorporated into the RegARIMA model as a regression factor. When outliers are too concentrated in some fixed month, it usually means that there is a mobile holiday effect in that month and must be overcome. In addition, the fewer outliers there are, the more concise the model tends to be.

Economic variables change regularly over seven days a week. For example, businesses usually conduct accounting transactions on working days (Monday to Friday), and residents are accustomed to withdrawing cash from Banks at weekends for purchases. Thus, as an indicator of stock, the money supply is measured in relation to the corresponding week. Considering this special effect, the following six dummy variables are set as regression variables to overcome the trading day effect:

D 1 , t = { 1 The ϖ th day of month t is Monday − 1 The ϖ th day of month t is Sunday 0 others (3)

where ϖ is the smaller values between the observation registration date (correspond to Gregorian calendar date) and the length of the month.

Mobile holidays are holidays that occur regularly but do not necessarily correspond to a fixed Gregorian calendar time each year. For example, Chinese Spring Festival, Mid-Autumn Festival and Dragon Boat Festival correspond to fixed lunar dates, but their corresponding Gregorian calendar dates are variable. The stock data are closely related to the observation registration date, which corresponds to the Gregorian calendar date. Because of the mobility of holidays, this difference cannot be eliminated by the moving average method of the seasonally adjusted process.

The Spring Festival is the most solemn traditional festival of the Chinese nation. During the Spring Festival, Chinese people leave their jobs to reunite with their families, which is accompanied by mass migration. For the export sector, the Spring Festival effect is also obvious. Due to the large number of employees returning home, many export enterprises will “jump the gun” before the festival to expand exports, until the seven-day Spring Festival holiday or even after the 15-day Lantern Festival to return to normal. Therefore, how to eliminate the “Spring Festival effect” in the monthly data has become a special research field.

To eliminate the Spring Festival effect, dummy variables should be constructed as follows:

H i ( τ i , t ) = τ i t τ t , i = 1 , 2 , 3 . (4)

i = 1 , 2 , 3 respectively first, section, mart, τ i t is the number of days affected by part i in month t in February. For better understanding above formula, let’s give an example, if the τ 1 = τ 2 = τ 3 = 5 , namely, the number of days that affect the time series data before, during and after the Spring Festival are all 5 days, and assumes that year to January 31, the day before the Spring Festival, the first effect into the number of days to five days in January, therefore,

H 1 ( τ 1 , 1 ) = 1 , H 1 ( τ 1 , 2 ) = 0 , ⋯ , H 12 ( τ 1 , 12 ) = 0 H 2 ( τ 2 , 1 ) = 0.2 , H 2 ( τ 2 , 2 ) = 0.8 , ⋯ , H 2 ( τ 1 , 12 ) = 0 H 3 ( τ 2 , 1 ) = 0 , H 3 ( τ 3 , 2 ) = 1 , ⋯ , H 3 ( τ 3 , 12 ) = 0 (5)

Three dummy variables were constructed to eliminate the influencing factors of the Spring Festival. Ever for the Spring Festival holiday, the study usually affects the number of days to constant processing. Of all time series variable without area, choose the same subinterval is obviously undesirable influence length, without considering the different characteristics of different. With reference to the method of Roberts and White (2015) [

AICC = − 2 L N + 2 p 1 1 − ( p + 1 ) / ( T − 12 D − d ) . (6)

Among them, L N is the value of the log-likelihood function of the estimated parameter, p is the number of estimated parameters, and D is the seasonal difference, and d is the order of conventional difference.

The Dragon Boat Festival and the Mid-Autumn Festival are also traditional Chinese festivals. According to statistics, these two traditional festivals do not fall in the same month every year, and they cannot be eliminated through regular seasonal adjustment. Therefore, it is necessary to regard ima modeling stage to eliminate the original sequence by constructing regression variables before the regular seasonal adjustment of the current import and export volume. In order to determine whether there is the Dragon Boat Festival and mid autumn festival—to the time sequence effect, we firstly determined the three parameters of the Spring Festival effect t based on the package of R language, and then we designed a direct the application of the Dragon Boat Festival and Mid-Autumn Festival, to determine if no significant effect on a virtual variable, then move to should be a holiday.

This paper selected 2008 m1-2017 m12 (the Chinese Mid-Autumn Festival and Dragon Boat Festival started in 2008) as the seasonally adjusted sample range of the total import and export amount in the current period (tens of billions of dollars), and the data of 2018 m1-2018 m12 was reserved for comparison with the predicted value of the model.

According to the AICC criterion, the model finally chooses the pre-festival influence period of 6 days, the mid-festival influence period of 6 days, and the post-holiday impact period is 12 days, which maximize the value of AICC. The ARIMA model selected by the ndiffs function in R is (0, 1, 0) (0, 1, 1).

The results above show that the effects of pre-festival (xreg1), mid-festival (xreg2) and post-festival (xreg3) are significant. At the same time, it can be seen from the symbols of the parameters that pre-festival has a positive impact on the export, while the overall export value is negatively affected by the mid-festival and post-festival. It is consistent with the phenomenon that enterprises “jump the gun” to expand the export before the pre-festival. In addition, the trading day effect is significant, but the Dragon Boat Festival effect (xreg4) and the Mid-Autumn Festival effect (xreg5) are not significant. In addition, the model identified February 2012 as AO outliers. Therefore, the last seasonal adjustment model excludes the Mid-Autumn Festival effect and the Dragon Boat Festival effect.

variable | Estimate | Std. Error | Z Value | Pr (>|Z|) |
---|---|---|---|---|

Weekday | 0.00372 | 0.00915 | 4.062 | 4.87e−05*** |

Xreg1 | 0.147 | 0.0199 | 7.364 | 1.78e−13*** |

Xreg2 | −0.104 | 0.0228 | −4.563 | 5.04e−06*** |

Xreg3 | −0.2673 | 0.0269 | −9.953 | <2e−16*** |

Xreg4 | −0.0226 | 0.0144 | −1.570 | 0.117 |

Xreg5 | 0.0028 | 0.0156 | 0.182 | 0.856 |

AO2012. Feb | −0.154 | 0.0376 | −4.082 | 4.47e−05*** |

MA-Seasonal-12 | 0.754 | 0.0671 | 11.232 | 2e−16* |

AICC | BIC | QS | The Box-Ljung | Shapiro |
---|---|---|---|---|

270 | 296.6 | 0 | 0 | 0.992 |

and seasonal adjustment. The results show that there is a seasonal and significant seasonal effect in the original chronological sequence of the total output value of the current period, the residual of RegARIMA model has no seasonal effect, and the final sequence after seasonal adjustment has no seasonal effect. Finally, by plotting the seasonally adjusted data with the original total amount of import and export in the current period in

According to the selected final model, the total export value in the current period is predicted, and the forecast time range is from January 2018 to December 2018.

copy | statistic | P-value |
---|---|---|

The Original Series | 68.70 | 0 |

The Original Series adj (EV) | 162.84 | 0 |

Residuals | 0.00 | 1 |

Seasonally Adjusted Series | 0.00 | 1 |

The Seasonally Adjusted Series (EV adj) | 0.00 | 1 |

Irregular Series | 0.00 | 1 |

Irregular Series adj (EV) | 0.00 | 1 |

According to the AICC criterion, the model finally chooses the pre-festival influence period of 3 days and the mid-festival influence period of 9 days, and the post-festival effect is not significant. The ARIMA model selected by the ndiffs function in R is (0, 1, 0) (0, 1, 1)

The results show that the effect of xreg1 and xreg2 before the Spring Festival is significant. At the same time, it can be seen from the parameter symbols that the total value of import in the current period is the same as that of export, and the positive effect is brought to export before the festival, while the negative effect is brought to the total value of import during the festival and xreg2. In addition,

Time | Predictive value | The relative error | The relative error |
---|---|---|---|

Jan 18 | 20.30 | 20.05 | 0.013 |

Feb 18 | 16.47 | 17.16 | 0.040 |

Mar 18 | 17.23 | 17.41 | 0.010 |

Apr 18 | 20.14 | 20.00 | 0.0060 |

May 18 | 21.38 | 21.29 | 0.0042 |

Jun 18 | 21.06 | 21.66 | 0.028 |

Jul 18 | 21.96 | 21.26 | 0.019 |

Aug 18 | 22.47 | 21.74 | 0.034 |

Sep 18 | 21.93 | 22.67 | 0.033 |

Oct 18 | 21.27 | 21.72 | 0.026 |

Nov 18 | 23.20 | 22.74 | 0.020 |

Dec 18 | 23.40 | 22.12 | 0.057 |

Mean relative error | 0.022 |

Variable | Std. Error | Z value | Pr (>|Z|) |
---|---|---|---|

Weekday | 0.12 | 9.34 | <2−16***e |

Xreg1 | 0.62 | 1.98 | 0.0473* |

Xreg2 | −2.88 | −6.28 | 3.37e−10*** |

Xreg4 | −0.22 | −1.00 | 0.31718 |

Xreg5 | −0.49 | −2.038 | 0.04155* |

LS2008. Dec | −2.68 | −3.98 | 8.25e−05*** |

AO2011. Jan | 2.08 | 4.09 | 4.29e−05*** |

AO2013. Mar | 2.48 | 5.18 | 2.21e−07*** |

MA-Nonseasonal | 0.23 | 0.093 | 0.00335* |

MA-Seasonal | 0.47 | 0.081 | 6.12e−09* |

day effect and Mid-Autumn Festival effect (xreg5) significant. In addition, the model identified January 2011 and March 2013 as AO outliers. Therefore, according to the above results, the last seasonal adjustment model was added before the Spring Festival, after the Spring Festival and the effect of the Dragon Boat Festival.

The results show that the original time series of export current value has seasonal and significant seasonal effect, the residual of regAERIMA model has no seasonal effect, and the final sequence after seasonal adjustment has no seasonal effect. Finally, the seasonally adjusted data and the original total data of the inlet and outlet in the current period are plotted in

AICC | BIC | QS | The Box-Ljung | Shapiro |
---|---|---|---|---|

252.9 | 296.6 | 0 | 0 | 0.988 |

copy | statistic | P-value |
---|---|---|

The Original Series | 68.89 | 0 |

The Original Series adj (EV) | 161.14 | 0 |

Residuals | 0.000 | 1 |

Seasonally Adjusted Series | 0.000 | 1 |

The Seasonally Adjusted Series (EV adj) | 0.000 | 1 |

Irregular Series | 0.000 | 1 |

Irregular Series adj (EV) | 0.000 | 1 |

time | Predictive value a | The relative error | The relative error |
---|---|---|---|

Jan 18 | 17.048 | 18.01 | 0.044 |

Feb 18 | 13.082 | 13.79 | 0.041 |

Mar 18 | 17.23 | 17.91 | 0.038 |

Apr 18 | 15.88 | 15.17 | 0.047 |

May 18 | 18.15 | 18.79 | 0.034 |

Jun 18 | 17.87 | 17.51 | 0.020 |

Jul 18 | 18.49 | 18.75 | 0.015 |

Aug 18 | 19.26 | 19.95 | 0.015 |

Sep 18 | 19.86 | 19.50 | 0.019 |

Oct 18 | 19.99 | 18.33 | 0.091 |

Nov 18 | 18.15 | 18.27 | 0.0064 |

Dec 18 | 16.69 | 16.42 | 0.15 |

Mean relative error | 0.034 |

In order to better monitor the operation of the national economy, it is necessary to scientifically process the economic data, especially the monthly and quarterly high-frequency data. Developed countries generally use the seasonally adjusted data as the basis for economic analysis and forecasting. China has developed a version of X-12-ARIMA software and NBS-SA software for seasonal adjustment of economic data, but because the software is not made public, it is not known whether the different economic indicators use reasonable standards to distinguish. The existing studies on seasonal adjustment of China’s economic data all adopt a fixed influence period when dealing with the effect of mobile holidays, and do not differentiate different economic indicators, which ignores the fact that there may be different characteristics among indicators, and there will inevitably be deviations in the prediction.

According to Roberts and White (2015) [

The author declares no conflicts of interest regarding the publication of this paper.

Song, Y.F. (2020) Seasonal Adjustment of China’s Monthly Data to Take into Account the Effect of Mobile Holidays. Open Journal of Statistics, 10, 706-718. https://doi.org/10.4236/ojs.2020.104044