Professional Documents
Culture Documents
• Introduction
• LFS Rolling Quarterly Data
• State Space Model
• The General State Space Model
• The Specific Model Proposed for UK LFS
• Results
• Further Work
Introduction
yt Z t t
Comparing SSM and GLRM
t Lt St (4a)
(4b)
Lt Lt 1 Rt 1 L ,t
(4c)
Rt Rt 1 R ,t
(4d) if using dummy seasonality
11
S St j S ,t
where: t j 1
• Lt is the level
• Rt is the slope
• St is the seasonal
L,t, R,t, S,t are white noise terms
Noise et - the Extended SSM model
p
et j et j e ,t (5)
j 1
where:
is the coefficient of AR process
• et-j is the sampling error
• e,t is white noise
for seasonal
St*1 , St* and St*1
for samplee* error
, e* and e*
t 1 t t 1
State vector (Lt, Rt, St, et) - cont
• Matrices are used as the basic method for building the SSM
• The main SSM matrices/vectors for UK LFS are:
• observation matrices (Z)
• transition matrices (T)
• covariance matrices (Q)
• state vectors (t)
• disturbance vectors
(t )
Observation matrices (Z)
• Observation matrices:
• ZBSM (signal) is a 5x15 matrix for SSM with dummy
seasonality
• Ze (noise) is a 5x15 matrix
1 1 1 0 1 1 1 0 0 0 0 0 0 0 0
1 1 1 0 1 1 1 0 0 0 0 0 0 0 0
ZBSM 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0
3
1 1 1 0 1 1 1 0 0 0 0 0 0 0 0
1 1 1 0 1 1 1 0 0 0 0 0 0 0 0
Ze 1 ( I5 x5 I5 x5 I5 x5 )
3
State vectors (tt-1) and transition matrix (T): BSM
with 0 0 0 0 *
05 x 5 I5 x5 05 x 5
0 0 0 0
Te 05 x 5 05 x 5 I5 x5 AR5 x 5 0 0 0 0
AR 05 x 5 05 x 5
5 x5 0 0 0 0
0 0 0 0
Covariance matrices (Q)
Q ,t ( L , R 4 x 4) 04 x11
QBSM ,t (15 x15)
with 0 11x 4 2
s ,t (11 x11)
and with
02 x 2 02 x 2 2L 0
QLR
Q ,t ( L , R )(4 x 4) 0 2
02 x 2 QLR R
Covariance matrices (Q) – cont.
and
05 x 5 05 x 5 05 x 5
Qe ,t (1515) 05 x 5 05 x 5 05 x 5
0 05 x 5 VC5 x 5
5 x5
with
VC(55) ( 2 I (5 x 5) )
The Model Estimate Setting
• As long as all SSM matrices are set
appropriately and all parameters in the model
are known, the state vector can be predicted,
filtered and smoothed using the Kalman Filter
• In fact, all these parameters are unknown,
thus we need initialisation of all parameters:
• (t-1) in the state vector
• ( L, R , S , e ) in the disturbance matrix
2 2 2 2
1. Trend prediction:
Seasonality prediction
Sample error prediction
Further work
PING.ZONG@ONS.GSI.GOV.UK
Appendix
j .t j .t 1 cos j *j ,t 1 sin j j ,t
*j ,t j .t 1 sin j *j ,t 1co n j *j ,t
1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0
1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0
ZBSM 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0
3
1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0
1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0
t ( Lt 1, Lt , Lt 1, Rt 1, St 1, St , 1,t 1, .... 6,t 1, 1,*t 1, .... 6,* t 1,
et 1, w1...et 1, w5, et , w1...et , w5, et 1, w1 ..et 1, w5 ) '
The transition matrix (TBSM) (5 x17 matrix)
Lt 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Lt 1 0
Lt 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Lt 0
Lt 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Lt 1 tL
Rt 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 Rt tR
St 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 St 2 0
St 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 St 1 0
0 0 0 0 0 0 cos(1 ) 0 0 0 0 0 sin(1) 0 0 0 0 1,t 1,t
1,t 1
2,t 1 0 0 0 0 0 0 0 cos(2 ) 0 0 0 0 0 sin(2 ) 0 0 0 2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