System Identification Toolbox    

Residual Analysis

The residuals associated with the data and a given model, as in (3-38), are ideally white and independent of the input for the model to correctly describe the system. The function

computes the residuals (prediction errors) e from the model when applied to Data, and performs whiteness and independence analyses. The auto correlation function of e and the cross-correlation function between e and u are computed and displayed for up to lag 25. Also displayed are 99% confidence intervals for these variables, assuming that e is indeed white and independent of u.

The rule is that if the correlation functions go significantly outside these confidence intervals, do not accept the corresponding model as a good description of the system. Some qualifications of this statement are necessary:

The residuals e together with the input u are returned by

as an iddata object. As part of the validation process, you can graph the residuals using

for a simple visual inspection of irregularities and outliers. (See also Outliers and Bad Data; Multi-Experiment Data.)


  Checking Pole-Zero Cancellations Model Error Models