10-12 May 2006
Benchmarking in X-12-ARIMA and at Statistics Canada
Benoit Quenneville Susie Fortier Zhao-Guo Chen Edith Latendresse
Conference on Seasonality, Seasonal Adjustment and their implications for Short-Term Analysis and Forecasting
Conference on Seasonality, Seasonal Adjustment and their - - PowerPoint PPT Presentation
Conference on Seasonality, Seasonal Adjustment and their implications for Short-Term Analysis and Forecasting 10-12 May 2006 Benchmarking in X-12-ARIMA and at Statistics Canada Benoit Quenneville Susie Fortier Zhao-Guo Chen Edith
10-12 May 2006
Benchmarking in X-12-ARIMA and at Statistics Canada
Benoit Quenneville Susie Fortier Zhao-Guo Chen Edith Latendresse
Conference on Seasonality, Seasonal Adjustment and their implications for Short-Term Analysis and Forecasting
Benoit Quenneville, Susie Fortier, Zhao-Guo Chen and Edith Latendresse Statistics Canada
Eurostat Symposium on Seasonal Adjustment 10-12 May 2006
Parameters and illustration Estimation
Proc Benchmarking
Illustration
Target and start arguments Illustration
auxiliary annual benchmarks.
possible
) 1 ( ≤ ≤ ρ ρ
) 1 2 1 , (
usually but = ∈ λ λ λ R I
1,5 2,0 2,5 3,0 3,5 4,0 4,5
1998 1999 2000 2001 2002 2003 Billions Indicator Series Benchmarked Series
2 1
1,5 2,0 2,5 3,0 3,5 4,0 4,5
1998 1999 2000 2001 2002 2003 Billions Indicator Series Benchmarked Series
3
Benchmarked Benchmarked 1998.Q2 31.1% 31.1% 32.3% 1998.Q3 29.0% 29.0% 28.4% 1998.Q4
1999.Q1
1999.Q2 30.9% 30.9% 27.1% 1999.Q3 32.2% 32.2% 29.6% 1999.Q4
2000.Q1
1 1 − −
−
t t t
y y y ,
2 1
= = ρ λ 729 . , 1 = = ρ λ
3
9 . 729 . , 1 = = = ρ λ
Benchmarked to Indicator series ratios
0.85 0.90 0.95 1.00 1.05 1.10
1998 1999 2000 2001 2002 2003
B/I (λ=0.5, ρ=0) B/I (λ=1, ρ=0.729)
1.5 2.0 2.5 3.0 3.5 4.0 4.5 1998 1999 2000 2001 2002 2003 2004 2005 B illions Indicator Series Benchmarked Series(no bias) Benchmarked Series(bias)
3
0,85 0,90 0,95 1,00 1,05 1,10 1998 1999 2000 2001 2002 2003 2004 2005
BI ratio(λ=1; ρ=0.729; no bias correction) BI ratio (λ=1; ρ=0.729; with bias correction)
BI-ratios with and without bias correction
0.964
Illustration of the Effect of the Rho Parameter
0.80 0.85 0.90 0.95 1 .00 1 .05 1 .1 1 .1 5 1 998 1 999 2000 2001 2002 2003 2004 2005 Rho=0 Rho=0.2^3 Rho=0.4^3 Rho=0.6^3 Rho=0.8^3 Rho=0.9^3 Rho=0.99^3 Rho=1 Bias=0.964
With correction for bias , the benchmarked series is the solution to: Minimize Subject to:
y b y y a b a a y y
m m t t m m m t
⋅ = = = =
∗ ∈
and with series annual the ) ( series quarterly the ) (
= − − −
⎪ ⎭ ⎪ ⎬ ⎫ ⎪ ⎩ ⎪ ⎨ ⎧ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎝ ⎛ − − ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎝ ⎛ − + ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎝ ⎛ − −
T t t t t t t t
y y y y y y
2 2 * 1 1 * 1 * * 2 * 1 1 * 1 2)
1 (
λ λ λ
θ ρ θ θ ρ
m m t t
∈
−
* * * 1 *
d e
J JV V C C V y C m t j j J
e d e e T j i j i e t t m t m
′ = Ω = = Ω ∝ ⎩ ⎨ ⎧ ∈ = =
= − ,..., 1 , * , ,
) ( diag else if 1 ρ
λ
Implied linear regression model for 0 ≤ ρ <1 Assumed model: Solution :
∈
m t t m t t t t t
*
* 1
ˆ Jy a V J V y
d e
− ′ + =
− *
θ
How is it implemented?
benchmarking)
the seasonally adjusted series according to this
bias estimation parameter is replaced by the target argument)
PROC BENCHMARKING Statement
PROC BENCHMARKING <option(s)>; To do this Use this option Specify the input benchmarks data set BENCHMARKS= Specifies the input series data set SERIES= Specifies the output benchmarks data set OUTBENCHMARKS= Specifies the output series data set OUTSERIES= Specify Rho RHO= Specify Lambda LAMBDA= Specify the Bias Estimation option BIASOPTION=
BENCHMARKS=SAS-data-set specifies the input SAS data set that contains the benchmarks. It is
STARTYEAR, STARTPERIOD, ENDYEAR, ENDPERIOD and VALUE. SERIES=SAS-data-set specifies the input SAS data set that contains the series to benchmark. It is
PERIOD and VALUE.
OUTBENCHMARKS=SAS-data-set names the output data set that contains the benchmarks used by the
data set: STARTYEAR, STARTPERIOD, ENDYEAR, ENDPERIOD and VALUE. OUTSERIES=SAS-data-set names the output data set that contains the benchmarked series. It is
PERIOD and VALUE.
RHO=real number between 0 and 1 specifies Rho. It is mandatory. LAMBDA=real number specifies Lambda. It is mandatory. BIASOPTION= Bias Estimation Option specifies the Bias Estimation Option. It is mandatory. Valid values are 1, 2 and 3.
Example DATA myBenchmarks; INPUT @01 startYear 4. @06 startPeriod 1. @08 endYear 4. @13 endPeriod 1. @15 value; CARDS; 1998 1 1998 4 10.3 1999 1 1999 4 10.2 ; RUN;
DATA mySeries; INPUT @01 year 4. @06 period 1. @08 value; CARDS; 1998 1 1.9 1998 2 2.4 1998 3 3.1 1998 4 2.2 1999 1 2.0 1999 2 2.6 1999 3 3.4 1999 4 2.4 2000 1 2.3 ; RUN;
Example PROC BENCHMARKING BENCHMARKS=myBenchmarks SERIES=mySeries OUTBENCHMARKS=outBenchmarks OUTSERIES=outSeries RHO=0.729 LAMBDA=1 BIASOPTION=3; RUN;
Example
NOTE: --- FORILLON System developed by Statistics Canada --- NOTE: PROCEDURE BENCHMARKING Version v1.01.001 NOTE: Created on Dec 5 2005 at 12:13:39 NOTE: Email: banff@statcan.ca NOTE: This procedure is for use at Statistics Canada only. NOTE: BENCHMARKS = WORK.MYBENCHMARKS NOTE: SERIES = WORK.MYSERIES NOTE: OUTBENCHMARKS = WORK.OUTBENCHMARKS NOTE: OUTSERIES = WORK.OUTSERIES NOTE: RHO = 0.729000000 NOTE: LAMBDA = 1.000000000 NOTE: BIASOPTION = 3 NOTE: BIAS (calculated) = 1.03
Example
Obs YEAR PERIOD VALUE 1 1998 1 2.04933 2 1998 2 2.60134 3 1998 3 3.33764 4 1998 4 2.31169 5 1999 1 2.02109 6 1999 2 2.55480 7 1999 3 3.29219 8 1999 4 2.33191 9 2000 1 2.26802
Bias parameter option is replaced with argument
(Original series adjusted for permanent prior adjustment factors)
permanent prior adjustment factors)
series{… save = A18} transform{function=log} regression{ variables=(TD easter[8])}
arima{…} forecast{…} x11{… save = D11} force{ lambda=1 rho=0.9 target=calendaradj type=regress save=SAA }
0.8 1.0 1.2 1.4 1.6 1.8 2.0 Jan-91 Jan-92 Jan-93 Jan-94 Jan-95 Jan-96 Jan-97 Jan-98 Jan-99 Jan-00 Jan-01 Jan-02 Jan-03 Jan-04 Millions D11 D11A (λ=1,ρ=0.9)
Differences between D11 and D11A
5,000 10,000
Jan-91 Jan-92 Jan-93 Jan-94 Jan-95 Jan-96 Jan-97 Jan-98 Jan-99 Jan-00 Jan-01 Jan-02 Jan-03 Jan-04
D11-D11A (λ=1,ρ=0.9)
Growth rates
0.0% 1.0% 2.0% 3.0% 4.0% Jan- 95 Apr- 95 Jul- 95 Oct- 95 Jan- 96 Apr- 96 Jul- 96 Oct- 96
Growth rate in D11 Growth rate in D11A
Differences between the sum of 12 consecutive months computed on D11A and on A18
20 40 60 80 100 120 140 160 Jan-91 Jan-92 Jan-93 Jan-94 Jan-95 Jan-96 Jan-97 Jan-98 Jan-99 Jan-00 Jan-01 Jan-02 Thousands
SumD11A-SumA18
and lambda = 1 for a multiplicative decomposition model.
rho=1. In general, benchmarked values in incomplete years are less accurate, and the program involves the inversion of a much larger matrix. Consequently, users are to expect a significant increase in computing time when using rho=1.
0.98.
Future developments (in Forillon)
( related to matrix , i.e, C and ).
subject to errors. ( Assume even if )
ˆ
V
e
) , ( ;
2 ε
σ ε θ ~
m m m t t m
ε a + = ∑
∈
2 = ε
σ
2 > ε
e
Benchmarking in X-12-ARIMA and at Statistics Canada Benoit.Quenneville@statcan.ca Susie.Fortier@statcan.ca (Proc Benchmarking) X12@census.gov (X-12-ARIMA)