Main Content

Residual Analysis

Analyze residuals using whiteness and independence tests


residCompute and test residuals
pePrediction error for identified model
fpeAkaike’s Final Prediction Error for estimated model
aicAkaike’s Information Criterion for estimated model
residOptionsOption set for resid
peOptionsOption set for pe

Examples and How To

How to Plot Residuals in the App

Create a residual analysis plot for linear and nonlinear models in the System Identification app.

How to Plot Residuals at the Command Line

Create a residual-analysis plot for linear and nonlinear models at the command line.

Examine Model Residuals

This example shows how you can use residual analysis to evaluate model quality.


What Is Residual Analysis?

Residuals are differences between the one-step-predicted output from the model and the measured output from the validation data set.