Академический Документы
Профессиональный Документы
Культура Документы
Acknowledgements
Many thanks to
David Findley, Brian Monsell, Kathy
McDonald-Johnson, Roxanne Feldpausch
Agustn Maravall
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
Outline
Basic concepts
Software packages for seasonal
adjustment production
Time Series
A time series is a set of observations
ordered in time
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
In
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
Classical Decomposition
One method of describing a time series
Decompose the series into various components
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
10
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
11
Other Effects
Trading Day: The number of working
or trading days in a period
Moving Holidays: Events which occur
at regular intervals but not at exactly
the same time each year
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
12
May 2007
S
M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
13
June 2007
S
3 4 5 6 7
10 11 12 13 14
17 18 19 20 21
24 25 26 27 28
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
F S
1 2
8 9
15 16
22 23
29 30
14
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
15
Combined Effects
Trading day and moving holiday
effects are both persistent, predictable,
calendar-related effects, so trading day
and holiday effects often included with
the seasonal effects
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
16
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
22
Change in Variations
What if the magnitude of seasonal
fluctuations is proportional to level of
series?
take logarithms
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
23
Log Transformations
Appropriate when the variability in a series
increases as its level increases, and when all
values of the series are positive
Change multiplicative relationships into
additive relationships
Increases/decreases can be thought of in
terms of percentages
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
26
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
27
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
31
Models
Multiplicative model:
Yt = St Tt It
Additive model:
Yt = St + Tt + It
= St N t
= St + Nt
where
where
St = St + TDt + Ht
St = St TDt Ht
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
32
Objectives
Estimate Nt (remove effects of St ) for
seasonal adjustment
Estimate Tt (remove effects of St and It)
for trend estimation
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
33
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
34
RegARIMA Models
(Forecasts, Backcasts, and Preadjustments)
Seasonal Adjustment
Seasonal Adjustment
Diagnostics and Graphs
RegARIMA Model
Yt
log
Dt
( ) = X + Z
transformations
ARIMA process
37
Autocorrelation
The major statistical tool for ARIMA
models is the sample autocorrelation
coefficient
__
( Y Y ) ( Y
t
rk =
t-k
__
Y)
t=k+1
t=1
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
__
( Yt Y )2
38
Autocorrelations
r1 indicates how successive values of Y
relate to each other,
r2 indicates how Y values two periods
apart relate to each other,
and so on.
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
39
ACF
Together, the autocorrelations at lags 1, 2, 3,
etc. make up the autocorrelation function or
ACF and then we plot the autocorrelations
by the lags
The ACF values reflect how strongly the
series is related to its past values over time
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
40
Autoregressive Processes
The autoregressive process of order p is
denoted AR(p),p and defined by
Zt = r Zt-r + wt
r=1
41
Zt = wt r wt-r
r=1
42
Random Walk
Constrained AR Model
Zt = Zt-1 + wt with 1 = 1
First differenced model
Zt = Zt-1 + wt
Zt Zt-1 = wt
(1 B) Zt = wt
Seasonal difference model
Zt Zt-12 = wt
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
43
ARMA processes
The autoregressive moving average
process, ARMA(p,q) is defined by
p
r=1
r=0
Zt r Ztr = r wtr
where again wt is white noise
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
44
Seasonal Processes
A seasonal AR process
Zt = r Zt-Sr + wt
p
A seasonal MA process
Zt = wt r wt-r
where 1 , . . . , P and 1 , , Q are fixed
constants, {wt} is white noise, and S is the
frequency of the series (12 for monthly or 4 for
quarterly)
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
45
RegARIMA Model
Yt
log
Dt
( ) = X + Z
transformations
ARIMA process
47
Automatic Procedures
Both X-12-ARIMA and SEATS have
procedures for the automatic
identification of
ARIMA model
Outliers
Trading Day effects
Easter effects
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
48
RegARIMA Models
(Forecasts, Backcasts, and Preadjustments)
Seasonal Adjustment
Seasonal Adjustment
Diagnostics and Graphs
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
50
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
51
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
52
53
AMB Approach
Fit RegARIMA model yt = xt + Zt
Given an ARIMA model for series Zt,
54
Where . . .
St independent of Tt independent of It
( St independent of Nt )
St , Tt , It follow ARIMA models
consistent with the model for Zt
(hence so does Nt)
It is white noise (or low order MA)
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
55
Canonical Decomposition
Problem: There is more than one
admissible decomposition
Solution: Use the canonical
decomposition, the decomposition that
corresponds to minimizing the white
noise in the seasonal component
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
56
57
58
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
59
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
60
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
61
62
X-12 vs SEATS
Eurostat recommends use of either program
US Census Bureau recommends use of X12-ARIMA
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
63
Setting Options
To reduce revisions, best to set certain
options for production
64
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
65
Outlier Settings
At the Australia Bureau of Statistics, they have a
very rigorous procedure of outlier identification,
including meta data on certain unusual events
Most other agencies use the automatic outlier
selection procedure
At the U.S. Census Bureau
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
66
Direct/Indirect Definitions
If a time series is a sum (or other
composite) of component series
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
67
68
An additive decomposition
A seasonal pattern that is fixed from one year to
the next
No trading adjustments
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
69
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
70
71
Newest X-12
Version 0.3 includes a new automatic
ARIMA-modeling procedure based on
the program TRAMO from the Bank of
Spain
The next release (X-13) will include
ARIMA-model-based seasonal
adjustment options
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
72
Model-based Adjustment
SEATS, developed by Agustn
Maravall at the Bank of Spain
REGCMPT, developed by Bill Bell at
the Census Bureau
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
73
SEATS
Disadvantages
No diagnostics for the adjustment
No methods for series with different
variability in different months
No user-defined regressors
Not very flexible ARIMA models
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
74
REGCMPT
Advantages
Methods for different variability in
different months
Can build very flexible regARIMA
models
75
X-13-SEATS
Advantages
Disadvantage
????
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
76
Running in Windows
TRAMO/SEATS for Windows
Windows Interface to X-12-ARIMA
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
77
Supplemental Software
X-12-Graph in SAS and in R
X-12-Data and X-12-Rvw
Programs to help write user-defined
variables for custom trading day and moving
holidays
Excel interfaces to run SEATS and X-12
from Excel
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
78
Training
Advanced Diagnostics
RegARIMA Modeling
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
79
Resources
X-12-ARIMA website
www.census.gov/srd/www/x12a
Seasonal adjustment papers pages
TRAMO/SEATS website
www.bde.es/english/
Papers and course information
www.catherinechhood.net
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
80
Contact Information
Catherine Hood
Catherine Hood Consulting
1090 Kennedy Creek Road
Auburntown, TN 37016-9614
Telephone: (615) 408-5021
Email: cath@catherinechhood.net
Web: www.catherinechhood.net
Catherine Hood
2007 Catherine C.H.
Hood
Methods,
Diagnostics, and
81