This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Residual Analysis

Analyze residuals using whiteness and independent 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.