The introduction to the Kalman filter theory will be limited to the linear theory. The stress is on the applications. Thus relations will be justified by plausible arguments based on physics of the problem. The stress is not on rigorous mathematical proofs. The dynamical system is described by a set of linear Itô differential equation
(10.1) |
where is the column matrix of random functions, and are respectively and deterministic, continuous matrix functions and , is a column matrix of independent Brownian motion processes with variance parameters equal to ones. The initial conditions correspond to Gaussian processes. In the second row the dimensions of the matrices are given for a twice differentiable process with a dominant frequency.
Discrete, linear observations are taken at times
(10.2) |
where is the column matrix of random observations, is a deterministic matrix and is the column matrix of Gaussian white noise sequences with zero mean values and prescribed variances. It is assumed that the initial conditions, the Brownian motion processes and the white noise observations sequences are independent.
The basic theorems are true for all linear systems. For constant coefficients the solutions are obtained by standard methods that are very easy to apply. In practical applications the computations are often restricted to discrete set of times with constant spacing . The most important case in applications is a dynamical system described by a set of difference equations with equal time intervals
(10.3) |
where the column matrix with rows contains the values of the mathematical model, the matrix corresponds to a transformation in one step, is an matrix and is an Gaussian white noise sequence with mean values equal to zeros and variances equal to one (the variance may be included in the values of the elements of ). The observation model is the same as in the case of the continuous discrete model
(10.4) |
In the example of a twice differentiable process with a dominant frequency the matrix and are
(10.5) | |
For two events and the conditional probability function of event given the event is
(10.6) |
Let us now introduce an outline of the procedure in the Kalman filter formulations. The discussion will be based on the example of a twice differentiable discrete random process and the corresponding observation model.
Let us assume that at the time we have a good estimate of the investigated realization of the random vector denoted by based on all observations up to . Now we want to compute the expected value at the time on the data from the observation model for the time intervals . This value may be calculated from the mathematical model as the expectation of the conditional probability as defined in relation (10.6). Thus
(10.7) |
Let us now compute the prediction of the variance of the error
The finale result is
(10.8) |
Up till now we discussed the predictions for the time based on the mathematical model and the observation up till .
To compute the estimate the observation at the time has to be taken into account. It was proved by Kalman that the influence of this observation leads to the following relation
(10.9) |
where is the Kalman gain given by the following relation
(10.10) |
where is a diagonal matrix of variances of the matrix white noise sequece in the relation (10.4).
From the physics of the problem it is clear that the prediction has to be supplemented by the expected value of the observation error. In our example there is only one observation and it corresponds to the measurement of . In general the matrix is a set of numbers that has to be related to the variances of the measured random processes. For example the standard deviation is 5% of the standard deviation of .
The procedure must be completed by the estimation of the variance of the prediction error when the observation at the time is taken into account
(10.11) |
This procedure leads to the computation of all the necessary initial values for the next step: , . Now it is possible to follow the outlined procedure to calculate the values in the next step: , , , . Taking consecutive steps the computation of the realization may be completed. It is only necessary to have the initial values at the initial time . If there is no information available it is reasonable to assume and . It means the initial values are equal to the expected values and the variance of the initial error is equal to the asymptotic variance of the process.
Example 1
The script file pwsemh04 computes examples of twice differentiable
realizations with a dominant frequency computes matrices for Kalman
filters and applies them.
Download
Scilab: pwsemh04.sci
Octave/Matlab: pwsemh04.m
Example 2
The script file pwsemi04 is a program to discuss a random function
and the estimated corresponding random sequence.
Download
Scilab: pwsemi04.sci
Octave/Matlab: pwsemi04.m
Example 3
The script file pwsemj04 is a program to discuss a random function
and the corresponding estimated random sequence and derivatives.
Download
Scilab: pwsemj04.sci
Octave/Matlab: pwsemj04.m