Modelcore
ARX model
Also called autoregressive model with exogenous input, equation error model.
A linear model A(q)y = B(q)u + e in which the output is a linear regression on past outputs, past inputs and white noise.
The ARX model is a linear discrete-time model of a system with an input and an output , written with polynomials and in the backward shift and white noise . It says that the present output is a fixed linear combination of a few past outputs and past inputs, plus a fresh random error. The name means autoregressive with exogenous input: it is the autoregressive model of time-series analysis with a known, measured input added on the right, and it is read as a predictor of the next output rather than as a description of a stationary process. Because the predictor is linear in the coefficients, the coefficients are fitted by ordinary least squares, which makes ARX the first model tried in system identification. Its weak point is the noise model: the disturbance is forced to share the poles of the system, and when the real disturbance does not, the least squares fit is biased.
The machine
Notation. Time is discrete, , with sampling period . The operator is the backward shift, . is white noise: mean 0, variance , uncorrelated at different times.
Definition. With orders , and an input delay ,
the ARX model is
In the general form of system identification it has and .
Parameter space. with , and . No constraint is needed for the predictor below, but is BIBO stable only if is Schur, that is, all roots of lie inside the unit circle (assuming and have no common factor).
The predictor. Put the past data in the regressor
Then the model reads . Since is independent of everything in , the best one-step-ahead predictor is
and the prediction error is . Both are finite filters of the data, so the predictor is BIBO stable for every , even when is not Schur. This is the equation error view: is the error in the difference equation, not in the output.
A worked case. Take , , so and . The predictor is . The roots of are , with modulus , so is Schur. The static gain is . The impulse response of starts , , , , , , each from after the input terms.
What it counts
The model has parameters . The quantities below follow from them; is the number of samples and is a frequency in radians per sample.
| quantity | formula | cost |
|---|---|---|
| one-step prediction | per sample | |
| prediction error criterion | , a quadratic in | |
| simulated output | , by the difference equation without | per sample |
| frequency response | per frequency | |
| disturbance spectrum | per frequency | |
| static gain | , when | |
| impulse response | from the recursion | per coefficient |
| poles and zeros | roots of and of the polynomial of | eigenvalues of companion matrices, |
The disturbance spectrum row shows the limitation of the structure: the noise is shaped by the same that shapes the response to . A plant with a lightly damped pole and white measurement noise does not fit this pattern.
Relation to other models
- Autoregressive model. With the ARX model is an AR() model of . The time-series view asks for a stationary solution and its autocorrelation. The identification view asks for the predictor of from the past of and , which exists and is BIBO stable for every .
- FIR model. With , : a finite impulse response with white output noise. FIR models need many coefficients for slow systems, but they never have a bias from the noise model in open loop.
- ARMAX model. Adds a moving average of the noise, so . ARX is ARMAX with .
- Output error model. Puts white noise on the output instead: , so . The model can be the same as an ARX model, but the predictor is no longer linear in .
- Box-Jenkins model. , with separate dynamics for and . ARX, ARMAX and OE are all special cases.
- State-space model. Every ARX model has an innovations state-space form of order , and the Kalman predictor of that form is exactly .
- Linear regression. For fixed data the ARX criterion is a linear regression of on . The regressors are random and correlated with past noise, so the finite-sample results of regression with fixed regressors do not apply as they stand.
Known results in the model
- Least squares is the exact minimizer (theorem). is a convex quadratic in , so its minimizers are the solutions of the normal equations . They are unique when the matrix is nonsingular. See least-squares identification of ARX models, which also works the six-sample example .
- Consistency (theorem). If the data come from an ARX system of the same orders with white , Schur, and coprime, and an open-loop input that is quasi-stationary, independent of and persistently exciting of order , then the least squares estimate converges to the true with probability 1 (Ljung 1999, Chapters 8 and 13).
- Bias under colored noise (theorem and measurement). If the true equation error is not white, then is correlated with it through the past outputs, and the least squares limit differs from the true . For the worked case with the noise , a white input and , least squares gave against the true . Instrumental variable identification removes this bias without changing the model.
- Covariance (theorem). Under the conditions of the consistency result, is asymptotically normal with covariance (Ljung 1999, Chapter 9). For Gaussian this is the Cramér-Rao bound, so least squares is asymptotically efficient for ARX data.
- High orders approximate any linear system (theorem). If the true system is with BIBO stable , and , an ARX model of order estimated by least squares gives consistent estimates of and of the noise spectrum when slowly enough with (Ljung and Wahlberg 1992). This is why a long ARX fit is a common first step before a low-order model.
- Recursive form. Because the predictor is linear in , the RLS algorithm updates the least squares estimate at each sample in operations, the basis of the self-tuning regulator.
References
- Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, Chapter 4 (the family of transfer-function models, with ARX as the equation error structure), Chapter 7 (least squares for linear regressions) and Chapter 13 (informative experiments)
- Torsten Söderström and Petre Stoica, System Identification, Prentice Hall, 1989, the chapters on linear regression and on model parametrizations
- Karl Johan Åström and Pieter Eykhoff, System identification: a survey, Automatica 7(2), 123-162, 1971, the least squares method for difference equation models and its bias under correlated residuals
- Lennart Ljung and Bo Wahlberg, Asymptotic properties of the least-squares method for estimating transfer functions and disturbance spectra, Advances in Applied Probability 24(2), 412-440, 1992, the consistency of high-order ARX estimates of the transfer function and the disturbance spectrum when the order grows with the number of data
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 2SM5P8 Edit this page History Report an error Markdown