We are given a recursive constant-coefficient linear difference equationn=0∑Nany(k−n)=m=0∑Mbmu(k−m)k∈Z,a0=0,aN=0,N≥1,bM=0.
The left-hand side is the AutoRegressive part and the right-hand side the Moving Average part, so the model is called ARMA.
Note that the order of an ARMA model is determined by N, i.e. the maximum delay between y(k−N) and y(k), instead of the differentiation order. That is why we also need to assume a0=0 here.
The delay operator
Instead of derivatives we deal with the delay operatorz, defined as
z−k0f(k)=f(k−k0),∀k0∈Z.z is a linear operator:
z−k0(α1f1(k)+α2f2(k))=α1f1(k−k0)+α2f2(k−k0).
Indeed, the ARMA model can be rewritten as
n=0∑Nanz−ny(k)=m=0∑Mbmz−mu(k).
Homogeneous equation and modes
Solve the homogeneous equation by considering just the AR part:
n=0∑Nanz−ny(k)=0(HE).
As usual, the solution can be written as a linear combination of modes: yH(k)=∑ℓ=1Ncℓψℓ(k). Which modes do we need in discrete time?
Case N=1:a1y(k)+a0y(k−1)=0. Let λ:=−a1a0=0, so y(k)−λy(k−1)=0. Ansatz yH(k)=λk; check: λk−λ⋅λk−1=λk−λk=0 for all k.
Case N>1: choose ψ(k):=λk, λ∈C∖{0}. Then z−nψ(k)=λk−n=λ−nψ(k), and the (HE) can be rewritten as
n=0∑Nanz−nλk=n=0∑Nanλk−n=(n=0∑Nanλ−n)λk=!0.
This gives a characteristic equation to solve for every k∈Z:
n=0∑Nanλ−n=0⟺n=0∑Nanpn=0,p:=λ1.
Can we solve it for λ directly instead of passing through p? Yes, because λ=0 by assumption (multiply by λN):
n=0∑Nanλ−n=0⟺λNn=0∑Nanλ−n=0⟺n=0∑NanλN−n=0⟺a~(λ)=a0λN+a1λN−1+⋯+aN−1λ+aN=0Careful with the order here: in a~(λ) the coefficient a0 multiplies the highest power (the opposite of the continuous-time polynomial a(p)).
Modes
If the roots of the characteristic polynomial λ1,λ2,…,λN are all distinct then the modes are
λ1k,λ2k,…,λNk.
With coincident roots, it can be shown that the modes ψℓ(k) have this expression:
λ1k,kλ1k,k2λ1k,…,kN1−1λ1kλ2k,kλ2k,k2λ2k,…,kN2−1λ2k⋮λrk,kλrk,k2λrk,…,kNr−1λrk
where λi, i=1,…,r, are the distinct roots (each with algebraic multiplicity Ni) of the characteristic polynomial.
How do modes look like?
Write λ=ρejφ, ρ>0, φ∈]−π,π]. NOSC = non-oscillatory, OSC = oscillatory. The scan draws stem plots in a 4×3 grid; columns are 0<ρ<1, ρ=1, ρ>1.
mode
0<ρ<1
ρ=1
ρ>1
NOSC, ρk
geometric decay to 0
constant 1
geometric growth
OSC, ρkcos(φk)
decaying oscillation
cos(φk), constant amplitude
growing oscillation
NOSC, kρk
rises, then decays
the ramp k
grows faster than geometric
OSC, kρkcos(φk)
oscillation, rises then decays
kcos(φk), linearly growing amplitude
growing oscillation, amplitude kρk
Compare with the continuous-time table: the role of σ<0,σ=0,σ>0 is played by ρ<1,ρ=1,ρ>1.
Natural response
The natural response follows from yH(k):
yN(k)=ℓ=1∑Nc^ℓψℓ(k)=i=1∑rm=0∑Ni−1c^i,mkmλik∀k∈Z
where the coefficients c^ℓ(=c^i,m) are determined from the BCs at k=k0−1,k0−2,…,k0−N:
y(k0−1)y(k0−2)⋮y(k0−N)=y0,−1y0,−2⋮y0,−N=:y0.
To find c^ℓ solve the system of equations for c1,…,cN:
=:Wdiscrete-time version of the Wronskian matrixψ1(k0−1)ψ1(k0−2)⋮ψ1(k0−N)ψ2(k0−1)ψ2(k0−2)ψ2(k0−N)⋯⋯⋯ψN(k0−1)ψN(k0−2)⋮ψN(k0−N)c1c2⋮cN=y0,−1y0,−2⋮y0,−N,c^1⋮c^N=W−1y0,−1⋮y0,−N.
(On the scan one entry of the second row, ψN, is written with argument k0−1; it is read here as k0−2 following the pattern of the rows.)
Switch-on signals, causality and forced response
The space of switch-on signals can be defined in the same way for the discrete-time case:
Sk0={{u(k)}∃k0:u(k)=0∀k<k0}.
LTI convolutional system ΣN⟺CAUSALITY ARMA describing ΣN.
The forced response is computed as
yF(k)=n=k0∑kh+(k−n)u(n),∀k∈Z,u∈Sk0
Note that 1(k−k0) is not needed in front, because ∑n=k0k(⋅)=0 if k<k0 by default.
Homogeneous equation∑anz−ny=0; N=1: y(k)=λy(k−1), λ=−a0/a1, mode λk. General: ansatz λk gives ∑anλ−n=0, equivalent to a~(λ)=a0λN+a1λN−1+⋯+aN=0 (watch the order of the coefficients: reversed with respect to continuous time).
Modes:kmλik, m=0,…,Ni−1, λi distinct roots with multiplicity Ni. With λ=ρejφ: ρ<1 decays, ρ=1 constant amplitude, ρ>1 grows; φ gives oscillation; km for repeated roots.
Natural response:yN(k)=∑i∑mc^i,mkmλik; BCs at k0−1,…,k0−N; discrete Wronskian W with rows ψℓ(k0−1),…,ψℓ(k0−N), c^=W−1y0.
Switch-on signalsSk0; causal LTI convolutional system ⇔ ARMA. Forced responseyF(k)=∑n=k0kh+(k−n)u(n) (no 1(k−k0) needed).
h+ is found by recursive construction (no impulse matching in discrete time).
Typical mistakes: solving ∑anpn=0 and using p as the mode base instead of λ=1/p; writing a~(λ) with the coefficients in the wrong order; forgetting a0=0.