Abstract
A recursive formula for computing the exact value of score vectors is proposed for a general form of the linear Gaussian state space model, which is more desirable than approximate values in some statistical analyses. Unlike most extant methods, our formula calculates all components of the score vector simultaneously. This approach significantly simplifies its programing, in particular, with some matrix-oriented programing languages, such as MATLAB. We also consider a way of handling initial conditions that depend on unknown parameters. This issue has not yet been explicitly addressed in the existing literature in the context of exact score computing for a general case, such as the one that we consider in this paper. It is also shown that our formula is especially useful for calculating score tests with an outer product of gradient asymptotic covariance matrix estimator.
Notes
1 See also Nagakura (Citation2013), which derived a vector version of the formula of Koopman and Shephard (Citation1992) by using the results in matrix calculus derived in this paper.
2 Segal and Weinstein (Citation1989) discuss how to reconstruct an observationally equivalent state space model when or is singular for applying their formula.
3 For example, this holds when cij and cji are the same function of , which implies that C is symmetric at any value of
4 Our notation of the commutation matrix follows the notation presented by Magnus and Neudecker (Citation1999), which differs slightly from the one proposed by Neudecker and Wansbeek (Citation1983). The matrix here corresponds to the matrix in Neudecker and Wansbeek (Citation1983). Note, in particular, that the order of the subscripts is opposite.
5 The element- and component-wise versions of equations in (6) and (7), that calculate and respectively, are known as the filter sensitivity equations and Riccati-type sensitivity equations, respectively in the engineering literature. In addition, calculating the exact score with those formulas is referred to as the forward filter evaluation of the score (see Astrom (Citation1981) and Sandell and Yared (Citation1978)).
6 This is not an issue for nonstationary components in the state vector because the diffuse initial setting does not rely on the parameter vector.