Presentation is loading. Please wait.

Presentation is loading. Please wait.

USING DEMETRA+ IN DAILY WORK SAUG – Luxembourg, 16 October 2012 Enrico INFANTE, Eurostat Unit B1: Quality, Methodology and Research.

Similar presentations


Presentation on theme: "USING DEMETRA+ IN DAILY WORK SAUG – Luxembourg, 16 October 2012 Enrico INFANTE, Eurostat Unit B1: Quality, Methodology and Research."— Presentation transcript:

1 USING DEMETRA+ IN DAILY WORK SAUG – Luxembourg, 16 October 2012 Enrico INFANTE, Eurostat Unit B1: Quality, Methodology and Research

2 2 Summary Introduction Volatility price analysis Seasonal Adjustment Forecast Current vs. Concurrent Adjustment Direct vs. Indirect approach –IB test In the future… SAUG – Luxembourg, 16 October 2012 Enrico Infante

3 3 Introduction The study is conducted on Italian food and agricultural data SAUG – Luxembourg, 16 October 2012 Enrico Infante Volatility price analysis Seasonal Adjustment Forecast Direct/Indirect approach Current/Concurrent Adjustment DATA

4 4 Introduction How many series? SectorSA and Forecast Volatility price analysis Milk5 Butchering21 Agro-food59 Ichthyic112 Economic sentiment indicator20 Import/Export Agro-food99 Import/Export Ichthyic20 Total16571 SAUG – Luxembourg, 16 October 2012 Enrico Infante

5 5 Volatility Price Analysis The basic idea is to check if the price of a determined product in a determined period is too high or too low if compared with the market trend. The procedure follows three main steps: 1.Model the whole series with an ARIMA(p,d,q)(P,D,Q) 2.Delete the last three observations 3.Using the model determined during step 1, the three observations deleted in step 2 will be forecasted and forecast intervals will be obtained If the price observed is in the range of the interval, then there is no risk. If it is higher than the interval, there is a risk to rise. If it is lower than the interval, there is a risk to decline SAUG – Luxembourg, 16 October 2012 Enrico Infante

6 6 Schematically the procedure is the follow SAUG – Luxembourg, 16 October 2012 Enrico Infante Price series ARIMA model Delete 3 observations Forecast intervals Detect the risk Volatility Price Analysis

7 7 Example: Parmigiano Reggiano and Grana Padano There is no risk for the "Grana Padano", as the observed price is in the forecasted interval There is risk to decline for the "Parmigiano Reggiano", as the observed price is not in the forecasted interval SAUG – Luxembourg, 16 October 2012 Enrico Infante Volatility Price Analysis

8 8 Special cases (fruits) In some cases (typically for the fruit series) there are data just for a certain period of the year. In this cases the available data are considered consecutive, and no seasonal and/or calendar effects are considered SAUG – Luxembourg, 16 October 2012 Enrico Infante Volatility Price Analysis

9 9 Seasonal Adjustment The series are seasonally adjusted following the ESS guidelines A knowledge of the sectors is a key part for modelling outliers, calendar effects, etc. The series are modelled using the TRAMO/SEATS modules of Demetra+ The models detected from the automatic procedure (RSA4) are modified, when necessary, in order to get better results If necessary, the earliest years are removed from the model SAUG – Luxembourg, 16 October 2012 Enrico Infante

10 10 Forecast The study focuses on the forecasts of the series The first step is to identify the ARIMA model  Demetra+ forecasts The forecasts are sometimes "adjusted" basing on qualitative information Example: Milk The total milk produced in Italy is more or less the same amount for every campaign (from April to March). So the values obtained from Demetra+ are adjusted in order to get the same total (10883,073) SAUG – Luxembourg, 16 October 2012 Enrico Infante

11 11 Current vs. Concurrent Adjustment The way in which Seasonal Adjustment is carried out has implications for the revisions of seasonally adjusted data There are monthly series that are updated every quarter, so every quarter there are 3 new observations Usually there are no revisions on the series, and even if there are some, they are very small SAUG – Luxembourg, 16 October 2012 Enrico Infante

12 12 Current vs. Concurrent Adjustment A partial Concurrent Adjustment strategy is chosen, with an updating of the parameters coefficient and outliers in the last year SAUG – Luxembourg, 16 October 2012 Enrico Infante The main issue arises when the chosen model does not produce good forecasts, even if the model seems to be good. In that case the model is re-estimated in order to get better results in terms of forecasts

13 13 Direct vs. Indirect approach Some series are aggregated at different levels In order to decide which approach to follow, an a priori test has been used The main advantage of using an a priori test is that the choice is made on statistical bases without running any seasonal adjustment procedure The test used is the so-called IB test, that is in line with the ESS guidelines on Seasonal Adjustment: when the series composing the aggregate have common similar seasonal patterns, a Direct approach would be used The test is performed using R scripts SAUG – Luxembourg, 16 October 2012 Enrico Infante

14 14 Direct vs. Indirect approach – IB test The classic test for moving seasonality is based on a 2-way ANOVA test, where the two factors are the time frequency (usually months or quarters) and the years. This test is based on a 3-way ANOVA model, where the three factors are the time frequency, the years and the series The variables tested are the de-trended series, where the trend is determined by applying a Hodrick-Prescott filter for each series The notation SI is kept for remarking the fact that it is a de- trended series SAUG – Luxembourg, 16 October 2012 Enrico Infante

15 15 Direct vs. Indirect approach – IB test The model is: Where: a i, i=1,…,M, represents the numerical contribution due to the effect of the i-th time frequency (usually M=12 or M=4) b j, j=1,…,N, represents the numerical contribution due to the effect of the j-th year c k, k=1,…,S, represents the numerical contribution due to the effect of the k-th series of the aggregate The residual component term e ijk (assumed to be normally distributed with zero mean, constant variance and zero covariance) represents the effect on the values of the SI of the whole set of factors not explicitly taken into account in the model SAUG – Luxembourg, 16 October 2012 Enrico Infante

16 16 Direct vs. Indirect approach – IB test The test is based on the decomposition of the variance of the observations: Between time frequencies variance Between years variance Between series variance Residual variance SAUG – Luxembourg, 16 October 2012 Enrico Infante

17 17 Direct vs. Indirect approach – IB test The table for the ANOVA test VARMeandfSum of Squares SAUG – Luxembourg, 16 October 2012 Enrico Infante

18 18 Direct vs. Indirect approach – IB test The null hypothesis is made taking into consideration that there is no change in seasonality over the series The test statistic is the ratio of the between series variance and the residual variance, and it follows a Fisher-Snedecor distribution with (S-1) and (MNS-1)-(M-1)-(N-1)-(S-1) degrees of freedom Rejecting the null hypothesis is to say that the pure Direct Approach should be avoided, and an Indirect Approach should be considered SAUG – Luxembourg, 16 October 2012 Enrico Infante

19 19 Direct vs. Indirect approach – IB test An example: butchering pork SAUG – Luxembourg, 16 October 2012 Enrico Infante

20 20 Direct vs. Indirect approach – IB test An example: butchering pork SAUG – Luxembourg, 16 October 2012 Enrico Infante VARMean Squaredf Months4.818.439.36611 Years1.135.483.53310 Series141.362.592.2582 Residual1.054.706.450384 There is no evidence of common seasonal patterns between the series at 5 per cent level An Indirect approach is recommended

21 21 In the future… From Demetra+ to Jdemetra+!!! SAUG – Luxembourg, 16 October 2012 Enrico Infante

22 22 In the future… SAUG – Luxembourg, 16 October 2012 Enrico Infante Assessment for residual seasonality Additive aggregate What if the aggregation function is different? Test a priori Java code (older version) R code

23 23 Questions Your questions and comments are very welcome SAUG – Luxembourg, 16 October 2012 Enrico Infante


Download ppt "USING DEMETRA+ IN DAILY WORK SAUG – Luxembourg, 16 October 2012 Enrico INFANTE, Eurostat Unit B1: Quality, Methodology and Research."

Similar presentations


Ads by Google