5.4 General Kalman Filter
The more general formulation of the state space model described in the previous section as an observation equation yt=Atxt+Vt and a state equation xt=Θxt−1+Wt where yt is a p×1 vector, xt is a k×1 vector, At is a p×k matrix and Θ is k×k matrix. We can think of Vt∼N(0,S) and Wt∼N(0,R).
Given an initial state x00 and P00, the prediction equations are (analogous to above) x01=Θx00P01=ΘP00Θ′+R and the updating equations are, given a new observation y1, x11=x01+K1(y1−A1x01)P11=(I−K1A1)P01 where K1=P01A′1(A1P01A′1+S)−1. In general, given the current state xt−1t−1 and Pt−1t−1 and a new observation yt, we have xt−1t=Θxt−1t−1Pt−1t=ΘPt−1t−1Θ′+R and the updating equations are, given a new observation yt, xtt=xt−1t+Kt(yt−Atxt−1t)Ptt=(I−KtAt)Pt−1t where Kt=Pt−1tA′t(AtPt−1tA′t+S)−1.