Algorithm Search⌘K

Modelcore

ARMAX model

Also called autoregressive moving average model with exogenous input.

A linear model A(q)y = B(q)u + C(q)e that adds a moving average of the white noise to the ARX model.

The ARMAX model is a linear discrete-time model of a system with input uu and output yy, written A(q) y(k)=B(q) u(k)+C(q) e(k)A(q)\, y(k) = B(q)\, u(k) + C(q)\, e(k), where AA, BB and CC are polynomials in the backward shift q−1q^{-1} and ee is white noise. It extends the ARX model by letting the equation error be a moving average C(q) e(k)C(q)\, e(k) of the white noise instead of the white noise itself, so the disturbance can have its own zeros. The name means autoregressive moving average with exogenous input. It is the ARMA model of time-series analysis with a measured input added, and it is read as a one-step predictor of yy from past data. The predictor is no longer linear in the coefficients, so the model is fitted by the prediction error method or by maximum likelihood, with an iterative search on a criterion that is not convex.

The machine

Notation. Time is discrete, k∈Zk \in \mathbb{Z}, with sampling period hh; q−1u(k)=u(k−1)q^{-1} u(k) = u(k-1). ee is white noise with mean 0 and variance σ2\sigma^2.

Definition. With orders na≥0n_a \ge 0, nb≥1n_b \ge 1, nc≥0n_c \ge 0 and a delay nk≥0n_k \ge 0,

A(q)=1+∑i=1naaiq−i,B(q)=q−nk∑j=1nbbjq−j+1,C(q)=1+∑i=1ncciq−i,A(q) = 1 + \sum_{i=1}^{n_a} a_i q^{-i}, \qquad B(q) = q^{-n_k} \sum_{j=1}^{n_b} b_j q^{-j+1}, \qquad C(q) = 1 + \sum_{i=1}^{n_c} c_i q^{-i},

the ARMAX model is A(q) y(k)=B(q) u(k)+C(q) e(k)A(q)\, y(k) = B(q)\, u(k) + C(q)\, e(k). In the form y=Gu+Hey = G u + H e it has G=B/AG = B/A and H=C/AH = C/A, with the same denominator for both.

Parameter space. θ=(a,b,c)∈Rd\theta = (a, b, c) \in \mathbb{R}^d with d=na+nb+ncd = n_a + n_b + n_c, restricted to the open set where CC is Schur, that is, all roots of zncC(z)z^{n_c} C(z) lie inside the unit circle. Any CC with no roots on the unit circle can be replaced by a Schur CC with the same noise spectrum, by reflecting each root zz to 1/zˉ1/\bar z and changing σ2\sigma^2 by a constant factor, so the restriction loses no spectra.

The predictor. From H−1=A/CH^{-1} = A/C, the one-step-ahead predictor and the prediction error are

C(q) y^(k∣θ)=B(q) u(k)+(C(q)−A(q)) y(k),ε(k,θ)=A(q) y(k)−B(q) u(k)C(q).C(q)\, \hat y(k \mid \theta) = B(q)\, u(k) + \big(C(q) - A(q)\big)\, y(k), \qquad \varepsilon(k, \theta) = \frac{A(q)\, y(k) - B(q)\, u(k)}{C(q)}.

Only CC appears as a denominator, so the predictor is BIBO stable for every θ\theta in the parameter set, even if AA is not Schur. In the time domain, with φ(k,θ)=(−y(k−1),…,−y(k−na), u(k−nk),…,u(k−nk−nb+1), ε(k−1,θ),…,ε(k−nc,θ))T\varphi(k, \theta) = \big(-y(k-1), \ldots, -y(k-n_a),\ u(k-n_k), \ldots, u(k-n_k-n_b+1),\ \varepsilon(k-1, \theta), \ldots, \varepsilon(k-n_c, \theta)\big)^T,

y^(k∣θ)=φ(k,θ)Tθ.\hat y(k \mid \theta) = \varphi(k, \theta)^T \theta.

This looks like a linear regression, but φ\varphi depends on θ\theta through the past prediction errors. It is called a pseudo-linear regression.

The gradient. Differentiating Cε=Ay−BuC \varepsilon = A y - B u gives ψ(k,θ)=−∂ε(k,θ)/∂θ=φ(k,θ)/C(q)\psi(k, \theta) = -\partial \varepsilon(k, \theta)/\partial \theta = \varphi(k, \theta)/C(q): the gradient is the pseudo-regressor filtered through 1/C1/C.

A worked case. Take A=1−1.5q−1+0.7q−2A = 1 - 1.5 q^{-1} + 0.7 q^{-2}, B=q−1+0.5q−2B = q^{-1} + 0.5 q^{-2} and C=1−q−1+0.2q−2C = 1 - q^{-1} + 0.2 q^{-2}. The roots of z2−z+0.2z^2 - z + 0.2 are 0.72360.7236 and 0.27640.2764, so CC is Schur. The prediction error obeys

ε(k)=y(k)−1.5 y(k−1)+0.7 y(k−2)−u(k−1)−0.5 u(k−2)+ε(k−1)−0.2 ε(k−2).\varepsilon(k) = y(k) - 1.5\, y(k-1) + 0.7\, y(k-2) - u(k-1) - 0.5\, u(k-2) + \varepsilon(k-1) - 0.2\, \varepsilon(k-2).

The disturbance spectrum σ2∣C∣2/∣A∣2\sigma^2 \lvert C \rvert^2 / \lvert A \rvert^2 is σ2(0.2/0.2)2=σ2\sigma^2 (0.2/0.2)^2 = \sigma^2 at ω=0\omega = 0 and σ2(2.2/3.2)2=0.4727 σ2\sigma^2 (2.2/3.2)^2 = 0.4727\, \sigma^2 at ω=π\omega = \pi. An ARX model of this system cannot reproduce that shape, because its disturbance spectrum σ2/∣A∣2\sigma^2/\lvert A \rvert^2 is 25 σ225\, \sigma^2 at ω=0\omega = 0.

What it counts

The model has d+1d + 1 parameters (θ,σ2)(\theta, \sigma^2). NN is the number of samples.

quantity formula cost
prediction errors the recursion Cε=Ay−BuC \varepsilon = A y - B u from zero initial values O(Nd)O(N d)
criterion VN(θ)=1N∑kε(k,θ)2V_N(\theta) = \frac{1}{N} \sum_k \varepsilon(k, \theta)^2 O(Nd)O(N d)
gradient of VNV_N −2N∑kψ(k,θ) ε(k,θ)-\frac{2}{N} \sum_k \psi(k, \theta)\, \varepsilon(k, \theta), with ψ=φ/C\psi = \varphi/C O(Nd)O(N d)
Gauss-Newton matrix 1N∑kψψT\frac{1}{N} \sum_k \psi \psi^T O(Nd2)O(N d^2)
frequency response B(eiω)/A(eiω)B(e^{i\omega})/A(e^{i\omega}) O(na+nb)O(n_a + n_b) per frequency
disturbance spectrum σ2∣C(eiω)∣2/∣A(eiω)∣2\sigma^2 \lvert C(e^{i\omega}) \rvert^2 / \lvert A(e^{i\omega}) \rvert^2 O(na+nc)O(n_a + n_c) per frequency
asymptotic covariance σ2N(E ψψT)−1\frac{\sigma^2}{N} \big(\mathbb{E}\, \psi \psi^T\big)^{-1} at the true θ\theta O(Nd2+d3)O(N d^2 + d^3) from data

Relation to other models

  • ARMA model. With nb=0n_b = 0 the ARMAX model is an ARMA(nan_a, ncn_c) model of yy, with the sign convention A=1+a1q−1+⋯A = 1 + a_1 q^{-1} + \cdots. Time-series analysis asks for a causal and invertible stationary solution, so both AA and CC must be Schur. The identification view needs only CC Schur, because the predictor never divides by AA; this allows unstable plants.
  • ARX model. ARMAX with nc=0n_c = 0, that is C=1C = 1. The predictor becomes linear in θ\theta and least squares applies.
  • Output error model. Has H=1H = 1 and a separate denominator FF for GG. ARMAX and OE are not nested: ARMAX forces GG and HH to share their poles, and OE forces HH to be 1.
  • Box-Jenkins model. y=(B/F) u+(C/D) ey = (B/F)\, u + (C/D)\, e. ARMAX is the case F=D=AF = D = A.
  • State-space model. A single-output innovations model x(k+1)=Φx(k)+Γu(k)+Ke(k)x(k+1) = \Phi x(k) + \Gamma u(k) + K e(k), y(k)=cTx(k)+e(k)y(k) = c^T x(k) + e(k) of order nn has GG and HH with the common denominator det⁡(zI−Φ)\det(zI - \Phi), so it is an ARMAX model with na=nc=nn_a = n_c = n. The ARMAX predictor is the steady-state Kalman filter predictor of that model.

Known results in the model

  • The criterion is not convex (computation). For data from the AR(1) system y(k)−0.7 y(k−1)=e(k)y(k) - 0.7\, y(k-1) = e(k) with σ2=1\sigma^2 = 1, fitted with the model (1+aq−1) y=(1+cq−1) e(1 + a q^{-1})\, y = (1 + c q^{-1})\, e, the limit criterion Vˉ(a,c)=E ε2\bar V(a, c) = \mathbb{E}\, \varepsilon^2 takes the values Vˉ(−0.2,−0.4)=2.8893\bar V(-0.2, -0.4) = 2.8893 and Vˉ(0.5,0)=3.8235\bar V(0.5, 0) = 3.8235, but Vˉ(0.15,−0.2)=3.4096\bar V(0.15, -0.2) = 3.4096 at the midpoint, above the average 3.35643.3564. A local search therefore needs a good start, usually an ARX fit, a high-order ARX fit or an instrumental variable estimate.
  • No false minima for ARMA in the limit (theorem). For ARMA data with the right orders and a Gaussian likelihood, the limit criterion has a unique local minimum in the region where both polynomials are Schur, so for large NN a local search converges to the true parameters (Åström and Söderström 1974). The paper treats ARMA models without an input; with an input, the result is not automatic.
  • Consistency and efficiency (theorem). If the data come from an ARMAX system of the same orders, AA, BB and CC have no common factor, and the open-loop input is persistently exciting of a high enough order, then the global minimizer of VNV_N converges to the true θ\theta, and its asymptotic covariance is σ2N(E ψψT)−1\frac{\sigma^2}{N}(\mathbb{E}\, \psi \psi^T)^{-1} (Ljung 1999, Chapters 8 and 9). For Gaussian ee this is the Cramér-Rao bound.
  • Least squares is biased (theorem and measurement). An ARX fit to ARMAX data is not consistent when C≠1C \ne 1, because the regressor is correlated with CeC e. For the worked case with a white ±1\pm 1 input and N=2000N = 2000, least squares gave (a^,b^)=(−1.2639,0.4873,1.0498,0.7262)(\hat a, \hat b) = (-1.2639, 0.4873, 1.0498, 0.7262); the prediction error method gave (−1.5129,0.7130,1.0326,0.4604)(-1.5129, 0.7130, 1.0326, 0.4604) and c^=(−0.9801,0.1883)\hat c = (-0.9801, 0.1883), with the criterion value 1.040791.04079, against the true (−1.5,0.7,1,0.5)(-1.5, 0.7, 1, 0.5) and (−1,0.2)(-1, 0.2).
  • Pseudo-linear regression. Treating φ(k,θ)\varphi(k, \theta) as known and running recursive least squares on it gives the extended least squares method. It is cheap but needs a strict positive real condition on 1/C1/C to converge, while a Gauss-Newton search on VNV_N does not.

References

  1. Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, Chapter 4 (the ARMAX structure in the family of transfer-function models), Chapter 7 (prediction error methods and pseudo-linear regressions) and Chapter 10 (computing the estimate)
  2. Torsten Söderström and Petre Stoica, System Identification, Prentice Hall, 1989, the chapters on model parametrizations and on prediction error methods
  3. Karl Johan Åström and Torsten Bohlin, Numerical identification of linear dynamic systems from normal operating records, IFAC Symposium on Self-Adaptive Systems, Teddington, 1965; in P. H. Hammond (editor), Theory of Self-Adaptive Control Systems, Plenum Press, 1966, pp. 96-111, the maximum likelihood fit of the ARMAX structure
  4. Karl Johan Åström and Torsten Söderström, Uniqueness of the maximum likelihood estimates of the parameters of an ARMA model, IEEE Transactions on Automatic Control 19(6), 769-773, 1974, the limit of the criterion for ARMA models and the conditions for a unique local and global minimum

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/AGFQ2A/text.yaml