Serving the Quantitative Finance Community

 
User avatar
drcurious
Topic Author
Posts: 1
Joined: February 9th, 2009, 2:57 am

state variables, Kalman filter

April 22nd, 2009, 10:30 am

Hello,I have some question about using built-in Kalman filter function in some software..The transition equation is given by x_t = G * x_t-1 + e_t, where x_t is a vector n by 1, G matrix n by n and e_t is noiseBut my transition equation of interest has additional constant term c..x_t = c + G * x_t-1 + e_t ?How can I introduce the constant term c into the function?Thank you!
 
User avatar
quantmeh
Posts: 0
Joined: April 6th, 2007, 1:39 pm

state variables, Kalman filter

April 22nd, 2009, 12:29 pm

isnt it in initialization? x(0) i mean
 
User avatar
spinan
Posts: 2
Joined: April 6th, 2003, 6:16 pm

state variables, Kalman filter

April 23rd, 2009, 12:07 am

that's right
Last edited by spinan on April 22nd, 2009, 10:00 pm, edited 1 time in total.
 
User avatar
drcurious
Topic Author
Posts: 1
Joined: February 9th, 2009, 2:57 am

state variables, Kalman filter

April 23rd, 2009, 5:47 am

..I think we also have to add it in the prediction equations..
 
User avatar
vixen
Posts: 0
Joined: April 5th, 2006, 1:43 pm

state variables, Kalman filter

April 23rd, 2009, 8:21 am

Treat the constant c as an extra state variable. The state variable now becomes [x c], and G becomes [G 0;0 1] and the corresponding error term is zero.
 
User avatar
cryptic26
Posts: 0
Joined: February 18th, 2002, 9:39 am

state variables, Kalman filter

April 23rd, 2009, 12:02 pm

Why can't we de-mean x_t, before feeding into the software, in which case c =0. Edit: But that would be true only if c is constant through out. If ct changes or assumed to change with "t", then as someone pointed out, it shall be another state variable.
Last edited by cryptic26 on April 22nd, 2009, 10:00 pm, edited 1 time in total.