正在学习
A.2.1 Derivation of the Kalman Filter
A.2.1 Derivation of the Kalman Filter
Having described how the Kalman filter works, we briefly derive the prediction equations. Using (A.1) and (A.2), we have
which is (A.15) and (A.13), respectively. The MSE values follow from this. Notice that
and so, using (A.3), we get (A.16):
where the covariance is 0 because is white noise.
Turning to
which yields (A.14).
For the updating equations, we need to work out the optimal way to update our forecast of the state given the observed . The forecast errors for the state and the actual values are expected to be correlated, so
has a nondiagonal variance–covariance matrix. This is where the linear projections matter. Once we know the variance–covariance matrix, we can use the observed forecast error in to update . The covariance is
Hence, we have
and the linear predictor is
This gives the updating equation for in (A.17).
By analogy with (A.11), the variance
which is equation (A.18) and so completes the derivation of the prediction and updating equations.
To initialize the system, we need to choose a set of priors, i.e., starting values before we get to observe any data. We can choose from the unconditional distribution if the model is stationary. Provided that the roots of F fall outside the unit circle, this distribution is centered on 0 and hence we could just set and use
or, equivalently,
so that
We could alternatively draw from a distribution with moments . For nonstationary models the choice of initial values is not obvious. One approach is to leave the initial values as parameters to be estimated.
A.2.2 Examples
Any time we can write a model in state-space form, we are on our way to use the above methods. The only additional problems will be whether the model is identified and whether convergence can be achieved independent of the initialization.
A.2.2.1 Constructing Coincident Indicators
Common economic activity measures such as GDP are measured after the event, and so are really lagging indicators of the state of the economy. Stock and Watson (2002a) use the Kalman filter to construct an estimate of an unobserved component tracking the state of the economy, denoted . Suppose we observe a set of macroeconomic variables, which have a common component, and idiosyncratic errors, both of which follow AR(1) processes:
Assuming that both and are unobserved, the state equation can be written
while the measurement equation for the observed becomes
练习题
Which equation represents the prediction of the state variable in the Kalman filter derivation?
What is the expression for the MSE of the state variable prediction ?
Which equation correctly represents the MSE of the observation variable prediction ?
The updating equation for the state variable in the Kalman filter is given by .
The variance updating equation in the Kalman filter is given by .
The initialization of the Kalman filter system can be done using the unconditional distribution if the model is stationary and the roots of fall outside the ___.
The equation is used to solve for the ___.
Explain the significance of the state-space form requirement for applying the Kalman filter.
Describe how the Kalman filter is used to construct coincident indicators of economic activity.
Given the state equation and measurement equation , where and are white noise with covariance matrix , what is the correct expression for the prediction of the state variable ?
Which of the following are correct steps in deriving the MSE calculation for the state variable prediction ?
The covariance calculation for state and observation errors, , assumes that is white noise and uncorrelated with .
The updating equation for the state variable is given by . The term is known as the ___.
登录后解锁笔记、知识点解析、AI 问答
立即登录