02.12.2012 Views

Applications of state space models in finance

Applications of state space models in finance

Applications of state space models in finance

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.7 Illustration: How to specify the MMR model for estimation us<strong>in</strong>g SsfPack 41<br />

becomes a constant. For values <strong>of</strong> σ 2 ς close to zero, the model resembles a mean revert<strong>in</strong>g<br />

model with a constant mean.<br />

In SsfPack, the <strong>in</strong>itial <strong>state</strong> values are collected <strong>in</strong> the matrix Σ. In case <strong>of</strong> the<br />

mov<strong>in</strong>g mean model, it is def<strong>in</strong>ed as<br />

Σ =<br />

⎡<br />

⎢<br />

⎣<br />

−1 0 0<br />

0 −1 0<br />

0 0 −1<br />

0 0 0<br />

⎤<br />

⎥<br />

⎦ , (3.105)<br />

where the value −1 <strong>in</strong>dicates that the correspond<strong>in</strong>g elements <strong>of</strong> the <strong>in</strong>itial <strong>state</strong> vector<br />

are diffuse. If OLS estimates were used as <strong>in</strong>itial values, the diagonal elements <strong>of</strong> the first<br />

three rows would be replaced by the correspond<strong>in</strong>g elements <strong>of</strong> the estimated covariance<br />

matrix; the last row would conta<strong>in</strong> the estimated OLS regression coefficients as <strong>in</strong>itial<br />

values for the correspond<strong>in</strong>g means <strong>of</strong> the <strong>state</strong> vector.<br />

The lower part <strong>of</strong> the parameter matrix Φt = [T zt] ′ conta<strong>in</strong>s the time-vary<strong>in</strong>g<br />

system element zt with the explanatory variables. In SsfPack, an <strong>in</strong>dex matrix J Φ,<br />

whose <strong>in</strong>dex refers to the explanatory data <strong>in</strong> zt, is required to specify the time-vary<strong>in</strong>g<br />

elements <strong>in</strong> Φt. The two matrices Φt and J Φ must be <strong>of</strong> same dimension. With the<br />

exception <strong>of</strong> those elements for which time-variation <strong>in</strong> the correspond<strong>in</strong>g elements <strong>of</strong><br />

Φt should be <strong>in</strong>dicated, the elements <strong>of</strong> the <strong>in</strong>dex matrix take the value −1. An <strong>in</strong>dex<br />

value greater than −1 refers to the column <strong>of</strong> zt with the time-vary<strong>in</strong>g values. For the<br />

mov<strong>in</strong>g mean model, the <strong>in</strong>dex matrix is given by<br />

J Φ =<br />

⎡<br />

⎢<br />

⎣<br />

−1 −1 −1<br />

−1 −1 −1<br />

−1 −1 −1<br />

0 1 2<br />

⎤<br />

⎥<br />

⎦ . (3.106)<br />

Notice that <strong>in</strong>dex<strong>in</strong>g <strong>in</strong> Ox generally starts at zero. Therefore, the (4,1) element <strong>of</strong> J Φ<br />

refers to the first column <strong>of</strong> zt.<br />

As the correspond<strong>in</strong>g elements <strong>in</strong> the last row <strong>of</strong> J Φ already <strong>in</strong>dicate where the data<br />

for the respective columns <strong>of</strong> zt come from, the values associated with zt <strong>in</strong> the last<br />

row <strong>of</strong> Φt are set to zero when deal<strong>in</strong>g with time-variation. In the current example Φt<br />

becomes<br />

Φt =<br />

⎡<br />

⎢<br />

⎣<br />

T11 0 0<br />

0 T22 0<br />

0 0 1<br />

0 0 0<br />

⎤<br />

⎥<br />

⎦ . (3.107)<br />

Generally, SsfPack allows to assign time-vary<strong>in</strong>g elements to any system matrix by us<strong>in</strong>g<br />

the <strong>in</strong>dex matrices J δ, J Ω and J Φ to <strong>in</strong>dicate the time-vary<strong>in</strong>g elements <strong>of</strong> δt, Ωt and<br />

Φt, respectively (cf. Zivot et al. 2002).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!