# Rank Considerations for the Observer-Kalman System Identification Procedure

Last time, we looked in detail at the derivation of the OKID procedure for finding the impulse response of a system from arbitrary input-output data. However, there are some specificities to consider when collecting data, and we can derive these by looking at the rank of the matrices involved.

In this article, we’ll reconsider how the quality and uniqueness of the solution for an ordinary least-squares problem is affected by the ranks of the matrices involved. Based on that, we’ll derive a formula for determining the number of measurements we need to find a good estimate of the Markov parameter matrix.

## The Result

Let’s jump to the result real quick here and then look at how it is derived. Assume that we want to determine the Markov parameters

(1) of order for a system with inputs and outputs.

The number of measurement points required is given by

(2) Here, is the oversampling factor, which gives the number of data points we have per entry in the Markov parameter matrix. We need this oversampling to average out measurement error due to noise, and thus the larger the oversampling factor, the higher the quality of our estimate for the Markov parameter matrix.

On the other hand, a higher oversampling factor also means that we can either

• increase the number of measurements while keeping the order of our Markov parameter matrix constant, or
• decrease the order of our Markov parameter matrix while keeping the number of measurements.

A lower order of the Markov parameter matrix may decrease the quality of the estimate we get from the Eigensystem Realisation Algorithm. A higher number of measurements possibly increases the measurement effort and time.

## Rank Considerations for OKID

Let’s review the central equation of the OKID with observer:

(3) Now have a look at the dimensions of these matrices:

• • • Thus, we have unknowns and equations. Looking back at basic linear algebra, thus we know that we need

(4) to hold for the solution to be uniquely determined. We might even need more than that, as this assumes that the measurement data is rich enough so that Equation 3 does not contain linearly dependent rows. However, in any case, the number of our measurements must be at least as large as given by Equation 4.

What happens if we have less measurements than this? Well, in this case the equation is not sufficiently determined, and there are arbitrarily many solutions to the equation. The ordinary least-squares approach will deliver a solution, but it is not clear whether that solution accurately describes the system we want to identify — although it will describe a system that will provide the same output given the inputs.

## Eliminating Noise by Oversampling

However, if we follow Equation 4 exactly, i.e. if we have exactly as many measurements as specified by this equation, we will also have an exact solution. This means that we will exactly incorporate all the measurement noise into our Markov parameters. Usually, we do not want that. Instead, we want to average out that measurement noise by having multiple samples.

That means that we will need more than the number of measurements given by Equation 4 — a lot more. To quantify this number, we’ll consider an oversampling factor . This factor gives us the number of samples per parameter we want to have. It also gives the factor by which we can diminish the influence of the measurement noise onto our estimate.

Now, if we want to oversample each parameter by factor , we need equations for each parameter. Thus, the following equation must hold

(5) Solving that equation for , we get our final result, given in Equation 1.

## Impact of Using an Observer

Clearly, this is the result when we use an observer for identifying the Markov parameters. If we have a system which already is sufficiently stable, we do not need the observer approach. In that case, we have a much simpler equation:

(6) Here we have rows in , so that the following relationship must hold for an oversampling factor :

(7) This is smaller than the number required for the observer approach, as we do not have to determine many less entries of the Markov parameters. Thus, we may safe some measurement effort if we have a stable system.

## Conclusions

It is quite important that we have a sufficient number of measurements

• to get a uniquely determined set of Markov parameters, and
• to properly average out our measurement noise.

We can get the number of measurements we need by rank considerations of our basic equations and a simple oversampling approach. If we have a sufficiently stable system, we can avoid using the observer approach and thus reduce the number of measurements required while keeping the order of the Markov parameter set constant.