Algorithm Search⌘K

Modelcore

Output error model

Also called OE model.

A linear model y = (B(q)/F(q))u + e in which white noise adds only to the output and not to the dynamics.

The output error (OE) model is a linear discrete-time model of a system with input uu and output yy, written y(k)=(B(q)/F(q)) u(k)+e(k)y(k) = \big(B(q)/F(q)\big)\, u(k) + e(k), where BB and FF are polynomials in the backward shift q−1q^{-1}. It says that the system is a noise-free rational transfer function, and that the measured output is its response plus an error ee that does not feed back into the dynamics. The predictor of the model is a pure simulation of uu through B/FB/F, so fitting it means matching the simulated output to the measured one. When the data come from an open-loop experiment and the system is in the model set, the fitted transfer function converges to the true one whatever the color of the real disturbance. The price is a criterion that is not linear in the coefficients, so the fit needs an iterative search such as the prediction error method.

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 nb≥1n_b \ge 1, nf≥0n_f \ge 0 and a delay nk≥0n_k \ge 0,

B(q)=q−nk∑j=1nbbjq−j+1,F(q)=1+∑i=1nffiq−i,B(q) = q^{-n_k} \sum_{j=1}^{n_b} b_j q^{-j+1}, \qquad F(q) = 1 + \sum_{i=1}^{n_f} f_i q^{-i},

the OE model is y(k)=w(k)+e(k)y(k) = w(k) + e(k) with the undisturbed output ww defined by F(q) w(k)=B(q) u(k)F(q)\, w(k) = B(q)\, u(k). In the form y=Gu+Hey = G u + H e it has G=B/FG = B/F and H=1H = 1.

Parameter space. θ=(b,f)∈Rd\theta = (b, f) \in \mathbb{R}^d with d=nb+nfd = n_b + n_f, restricted to the open set where FF is Schur, that is, all roots of znfF(z)z^{n_f} F(z) lie inside the unit circle.

The predictor. Since H=1H = 1, the predictor ignores past outputs:

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

The predictor is BIBO stable only when FF is Schur, which is why the parameter set is restricted. An unstable plant cannot be fitted with this structure.

The gradient. Differentiating Fw=BuF w = B u gives

∂w(k)∂bj=u(k−nk−j+1)F(q),∂w(k)∂fi=−w(k−i)F(q),\frac{\partial w(k)}{\partial b_j} = \frac{u(k - n_k - j + 1)}{F(q)}, \qquad \frac{\partial w(k)}{\partial f_i} = -\frac{w(k - i)}{F(q)},

so ψ=∂w/∂θ\psi = \partial w/\partial \theta is the vector of past inputs and past simulated outputs, both filtered through 1/F1/F.

A worked case. Take B=q−1+0.5q−2B = q^{-1} + 0.5 q^{-2} and F=1−1.5q−1+0.7q−2F = 1 - 1.5 q^{-1} + 0.7 q^{-2}, the same GG as the worked case of the ARX model. For u=(1,1,−1,…)u = (1, 1, -1, \ldots) from rest, the simulation w(k)=1.5 w(k−1)−0.7 w(k−2)+u(k−1)+0.5 u(k−2)w(k) = 1.5\, w(k-1) - 0.7\, w(k-2) + u(k-1) + 0.5\, u(k-2) gives w(0)=0w(0) = 0, w(1)=1w(1) = 1, w(2)=3w(2) = 3 and w(3)=3.3w(3) = 3.3. The output error model adds white noise to this sequence; the ARX model with the same GG adds the noise e/Ae/A instead, which here has the spectrum 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
simulated output the recursion Fw=BuF w = B u from zero initial values O(Nd)O(N d)
criterion VN(θ)=1N∑k(y(k)−w(k,θ))2V_N(\theta) = \frac{1}{N} \sum_k \big(y(k) - w(k, \theta)\big)^2 O(Nd)O(N d)
gradient the filtered regressors ψ\psi above 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ω)/F(eiω)B(e^{i\omega}) / F(e^{i\omega}) O(d)O(d) per frequency
limit criterion, open loop Vˉ(θ)=12π∫−ππ∣G0(eiω)−G(eiω,θ)∣2 Φu(ω) dω+E v2\bar V(\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} \lvert G_0(e^{i\omega}) - G(e^{i\omega}, \theta) \rvert^2\, \Phi_u(\omega)\, d\omega + \mathbb{E}\, v^2 a weighted squared distance of transfer functions

In the last row the data come from y=G0u+vy = G_0 u + v with uu independent of the disturbance vv, and Φu\Phi_u is the input spectrum. The row follows by expanding E ((G0−G)u+v)2\mathbb{E}\,\big((G_0 - G) u + v\big)^2: the cross term vanishes because uu and vv are independent.

Relation to other models

  • ARX model. ARX has H=1/AH = 1/A, OE has H=1H = 1. For the same GG, the ARX predictor is linear in θ\theta and the OE predictor is not. An ARX fit to OE data is biased, because the equation error FeF e is colored.
  • ARMAX model. ARMAX ties the noise poles to the system poles. OE and ARMAX are not nested.
  • Box-Jenkins model. y=(B/F) u+(C/D) ey = (B/F)\, u + (C/D)\, e. OE is the case C=D=1C = D = 1. If the true disturbance is colored, Box-Jenkins can fit it and gain efficiency, while OE still gets GG right in open loop.
  • FIR model. OE with nf=0n_f = 0 is the FIR model y=Bu+ey = B u + e, which is also ARX with na=0n_a = 0, so it is linear in θ\theta.
  • Simulation error. OE fitting is the same as minimizing the simulation error of a model, which is how many engineers judge a model. ARX fitting minimizes the one-step prediction error, which can be small even for a model that simulates badly.

Known results in the model

  • Consistent GG under colored noise (theorem). If the data come from y=G0u+vy = G_0 u + v with G0G_0 in the model set, uu quasi-stationary, independent of vv, and persistently exciting of order nb+nfn_b + n_f, then Vˉ(θ)−E v2\bar V(\theta) - \mathbb{E}\, v^2 is a weighted squared distance between G0G_0 and G(θ)G(\theta). It vanishes only at the true parameters, so the minimizer of VNV_N gives a consistent GG whatever the spectrum of vv (Ljung 1999, Chapters 8 and 13). This holds for any fixed noise model, and H=1H = 1 is the simplest one.
  • Bias distribution (theorem). When G0G_0 is not in the model set, the limit model minimizes ∫∣G0−G∣2Φu dω\int \lvert G_0 - G \rvert^2 \Phi_u\, d\omega, so the fit is best where the input has the most power (Ljung 1999, Chapter 8). Shaping Φu\Phi_u, or prefiltering uu and yy by the same filter, moves the frequency range where the model is accurate.
  • The criterion is not convex (computation). For G0=q−1/(1−0.7q−1)G_0 = q^{-1}/(1 - 0.7 q^{-1}), a white input of unit variance and the model bq−1/(1+fq−1)b q^{-1}/(1 + f q^{-1}), the excess Vˉ−E v2\bar V - \mathbb{E}\, v^2 is 1.96081.9608 at (b,f)=(0,0)(b, f) = (0, 0) and 0.86950.8695 at (0.5,−0.4)(0.5, -0.4), but 1.44451.4445 at the midpoint (0.25,−0.2)(0.25, -0.2), above the average 1.41511.4151. A local search needs a good start; an instrumental variable estimate is the common choice.
  • Measurements on the worked case. With a white ±1\pm 1 input, white ee of unit variance and N=2000N = 2000 samples, the prediction error method gave b^=(1.0308,0.4617)\hat b = (1.0308, 0.4617) and f^=(−1.5076,0.7066)\hat f = (-1.5076, 0.7066), while an ARX least squares fit of the same data gave (a^,b^)=(−1.0644,0.2957,1.0666,0.9306)(\hat a, \hat b) = (-1.0644, 0.2957, 1.0666, 0.9306), far from the truth.
  • Closed loop breaks the consistency. In closed loop the input depends on past disturbances, the cross term in Vˉ\bar V does not vanish, and an OE fit of GG is biased unless the noise model is also correct. See closed-loop identification.
  • Efficiency. With white ee the OE estimate is asymptotically efficient. With colored vv it is consistent but not efficient: a model with a correct noise model gives a smaller variance.

References

  1. Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, Chapter 4 (the output error structure), Chapter 7 (prediction error methods) and Chapter 8 (the limit of the criterion in the frequency domain and the consistency of G with a fixed noise model)
  2. Torsten Söderström and Petre Stoica, System Identification, Prentice Hall, 1989, the chapters on model parametrizations and on prediction error methods

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/SR2Y5Z/text.yaml