State Space Models and The Kalman Filter
State Space Models and The Kalman Filter
State Space Models and The Kalman Filter
Kalman Filter
References:
Xt = FtSt + vt,
St = GtSt1 + wt,
vt N [0, Vt],
wt N [0, Wt],
where
2
Why consider such models?
3
Solution by Kalman Filter
Note on terminology:
4
Bayesian derivation of the Kalman Filter
If
! " ! !#
Y1 1 11 12
MV N
Y2 2 21 22
then
1 1
h i
Y1 | Y2 = y2 M V N 1 + 1222 (y2 2), 11 1222 21 .
5
Let X t denote all information available up to time t (the -algebra
generated by Xs, s t). Suppose
St | Xt, X t1
M V N [GtSt1 + RtFtT (FtRtFtT + Vt)1(Xt FtGtSt1),
Rt RtFtT (FtRtFtT + Vt)1FtRt].
6
Thus we have the recursive equations
St = GtSt1 + RtFtT (FtRtFtT + Vt)1(Xt FtGtSt1),
Pt = Rt RtFtT (FtRtFtT + Vt)1FtRt.
Issues:
Initiation of S0, P0
T
f (Xt | X t1).
Y
f (X1, ..., XT | ) =
t=1
In fact, the modern derivation of exact MLE for ARMA pro-
cesses is based on this approach.
7
Application to Financial Time Series
8
Long-Range Dependence
References:
9
The covariance function of any causal invertible ARMA process
satisfies
P 2
|k | = though k <
P
Note that
d = 0 or H = 1
2 correspond to standard short-range (including
ARMA processes)
10
History
Yct cH Yt, t (, )
for any fixed c > 0. Differences of FBM are called Fractional
Gaussian Noise.
11
Fractional Differencing
12
Estimation
1. Maximum Likelihood
2. Spectral Methods
3. Wavelet Methods
13
Maximum Likelihood Approach (see Brockwell and Davis)
Wont go into details but this may be the best approach overall.
16
Hurricanes and Global Warming
17
18
19
20
Some Basic Facts About Hurricanes
Pre-existing disturbance
Also:
22
Hurricanes play a key role in climate, but are not in models
and are not parameterized
23
This analysis compares two reconstructions of the TC series
(Vecchi and Knutson)
24
Tropical Cyclones by Year
(Data by Vecchi and Knutson)
Oneencounter *
25
Twoencounter
Tropical Cyclones
** *
20
* *
* **
15
* * ** *
*
* * * * *
* * ** * * ***** ** * * * * * * ** *** *
** * ** * * * * ** * ** * * * * *
10
*** * * * * *
* * * * * * *
* * ** *
* * *
*** ** * ** ** ** *
*** **** * * ** ** * * ** ** * **** *
* * * * **
********* *
5
*
*
** * **
Year
25
Three Reconstructions of SST
Reynolds
Kaplan *
Hadley **
1.0
* ***
* *
SST Anomaly
** ** * * * * * * ***
*
** ** **** ******* ** * * *** ********
0.5
* * * * *
***** ** **** *** * ** *** ************ ******* ** * ** * * * * ******** * *** ****
** * * * *
* * ** * ************************ * *** **
* * * * *
* *** *** * *** **
0.5
* *
* ** * **
Year
26
Trends of TC Counts and SSTs
TC (1enc)
4
TC (2enc)
SST (Reynolds)
Normalized Trend
SST (Kaplan)
SST (Hadley)
AMO
2
1
0
2
Year
27
Trends in hurricane counts are similar to those in TCs but the
data are much sparser
28
Linear and Nonlinear Trends in Three Series
29
One analysis is a simple bivariate time series analysis of TCs
and SSTs
30
Series 1 Series 1 x Series 2
1.0
1.0
0.5
0.5
0.0
0.0
0.5
0.5
1.0
1.0
0 5 10 15 20 0 5 10 15 20
1.0
0.5
0.5
0.0
0.0
0.5
0.5
1.0
1.0
0 5 10 15 20 0 5 10 15 20
31
Series 1 Series 1 x Series 2
1.0
1.0
0.5
0.5
0.0
0.0
0.5
0.5
1.0
1.0
0 5 10 15 20 0 5 10 15 20
1.0
0.5
0.5
0.0
0.0
0.5
0.5
1.0
1.0
0 5 10 15 20 0 5 10 15 20
32
Why Linear Trends?
The gold standard for this kind of analysis is detection and attri-
bution analysis (D&A), which is a statistical technique devised
by climatologists that is used to apportion an observed climate
signal as a combination of different forcing factors.
33
Outline of D&A Method
34
This method has been applied many times to temperature se-
ries, and more recently to rainfall. However there are difficulties
applying it to hurricane data, because hurricanes are not well
reproduced by climate models.
35
Trends Fitted to Tropical Cyclones
36
Tropical Cyclones with Trends
OLS and ARMA Regression
*
25
* *
20
TC Count
* *
* **
15
* * * *
*
* * * * * *
** * * * * **** ** * * * * * * * * * *
** * ** * * * ** * ** * * * * *
10
* ** * * ** *
* * * * * * *
* * *
** **
** * * ** ** * * * * ** * ** ** * **** *
*
* ** ** * * ** * **
5
* **** * *
* * *
Year
37
Bivariate Time Series Model
Model:
! ! ! !
xt 0,0 0,1 wt
= + t+ ,
yt 1,0 1,1 zt
! p ! ! !
wt X a0,0,j a0,1,j wtj t,0
= + ,
zt a1,0,j a1,1,j ztj t,1
j=1
! " ! !#
t,0 0 0,0 0,1
N , .
t,1 0 1,0 1,1
p AIC
0 219.7
1 240.8
2 236.8
3 230.2
4 222.5
5 228.5
6 223.8
7 219.8
8 217.2
9 211.9
10 218.4
39
Trend Coefficient 1,1 and p-value
40
Questions About This Approach
There are clear signs of unit root behavior. I tried fitting mul-
tivariate ARMA models (in SAS - PROC VARMAX) but these
generally dont converge, because of unit root difficulties.
For the hurricane series on its own, ARMA models fit much
better than AR, but still difficulties with AIC and similar measures
(indicative of non-stationarity?)
41
Current Approach Conditional ARMA
Recall
xt: SST in year t
yt: square root TC in year t
Also let Tt denote some modeled trend (initially linear, but later
we consider alternatives)
Model:
42
First attempt: Tt linear
The results are not a big advance on fitting linear trends without
involving SST (cp. Vecchi-Knutson 2008)
44
Second attempt: Tt based on a GCM
We use 20th Century runs from seven climate models (N.B. one
run from each, though in several cases there are multiple model
runs available)
45
SST 20th Century Model Projections
CCC MPI
295 CSIRO CCSM3
GFDL HADCM3
294 GISS Mean
293
Temp (K)
292
291
290
289
288
1880 1900 1920 1940 1960 1980 2000
Year
46
We fit same model using smoothed mean of seven GCMs as Tt
This analysis assumes TCs and SSTs are normal after taking
square route transformations of SSTs ignores the fact that
TCs are counts
48
Conclusions
49