NUMERICAL COMPUTATION 207
the practical application of the algo rithm, difficulties often arise in cal-
culating the formulas of the filter and smoother.
For a linear Gau ssian state-space model, all the conditional dis-
tributions p(x
n
|Y
n−1
), p(x
n
|Y
n
) and p(x
n
|Y
N
) become normal distribu-
tions. Therefore, in that case, only the mean vectors and the variance-
covariance matrices need to be evaluated, and correspondingly (14.4),
(14.5) and (14.7) become equivalent to the ordinary Kalman filter and
the smooth ing algorithms. However, since the conditional distribution
p(x
n
|Y
j
) of the state generally beco mes a non-Gau ssian distribution,
it cannot be specified using only the mean vector and the variance-
covariance matrix. Various algorithms have been presented, for instance,
the extended Kalman filter (Anderson and Moore (1979)) and the sec-
ond order filter, to appr oximate the non -Gaussian distribution by a sin-
gle Gaussian distribution with properly determin ed me an vector and
variance-covariance matrix. In general, however, they do not perform
well.
This section deals with the method of realizing the non-Gaussian fil-
ter an d the non-Gaussian smoothin g algorithm by numerically approx-
imating the non-Gaussian distributions (Kitagawa (1987)). In this ap-
proach , a non-Gaussian state density function is a pproximated numer-
ically using functions such as a step function , a piecewise linear f unc-
tion or a spline. Then, the formulas (14.4)–(14.7) can be evaluated by
numerical computa tion. Since this approach requires a huge am ount of
computation, it used to be considere d an impractical method. Nowadays,
with the development of high-speed com puters, those numerical meth-
ods have beco me practical, at least f or the low-dimensional systems.
In this section, we approximate the density functions that appeared in
(14.4), (14.5) and (14.7) by simple step functions (Kitagawa and Gersch
(1996)).
To be specific, the de nsity function f (t) to be approximated is de-
fined on a line: −∞ < t < ∞. To approximate th is density functio n by
a step function, the domain o f the density function is firstly restricted
to a finite interval [t
0
,t
d
], which is then divided into d sub-intervals
t
0
< t
1
< ··· < t
d
. Here, t
0
and t
d
are assumed to be sufficiently small
and large nu mbers, respe ctively, and for simplicity, the width of the
sub-intervals is assumed to be identical. Then the i-th point is given by
t
i
= t
0
+ i∆t with ∆t = (t
d
−t
0
)/d. In the actual programming of the ends
of the sub-intervals, however, t
0
and t
i
change, adapting to changes in
the location of the density fun ction. For simplicity, however, ends of th e
sub-intervals are assumed to be fixed in the following.
In a step-function appro ximation, the f unction f (t) is approximated