Salta al contenuto
Note per Studenti Recursive Construction Method Report

Recursive Construction Method

In questa pagina 4

The Cauchy problem for ARMA models

Solution to the Cauchy problem with ARMA models (see Difference EquationsRecursive constant-coefficient linear difference equations (ARMA models) are the discrete-time counterpart of ODEs: the delay operator replaces the derivative, the modes are k^m lambda^k with lambda a root of the characteristic polynomial, and the solution splits into a natural and a forced response.Difference Equations →): {∑n=0Nany(k−n)=∑m=0Mbmu(k−m),u∈Sk0y(k0−1)=y0,−1, y(k0−2)=y0,−2, …, y(k0−N)=y0,−N\begin{cases}\displaystyle\sum_{n=0}^Na_ny(k-n)=\sum_{m=0}^Mb_mu(k-m),\qquad u\in\mathcal{S}_{k_0}\\[6pt]y(k_0-1)=y_{0,-1},\ y(k_0-2)=y_{0,-2},\ \dots,\ y(k_0-N)=y_{0,-N}\end{cases} with k∈Zk\in\mathbb{Z}, a0≠0a_0\neq0, aN≠0a_N\ne0, bM≠0b_M\neq0, N≥1N\ge1. We almost found the solution y(k)=yN(k)+yF(k)y(k)=y_N(k)+y_F(k); however yF(k)=∑n=k0kh+(k−n) u(n)y_F(k)=\sum_{n=k_0}^kh_+(k-n)\,u(n) requires us to seek a causal impulse response h+(k)h_+(k) such that

  1. h+(k)=0h_+(k)=0 for all k<0k<0;
  2. ∑n=0Nanz−nh+(k)=0\displaystyle\sum_{n=0}^Na_nz^{-n}h_+(k)=0 for all k≥M+1k\ge M+1 (where z−nf(k)=f(k−n)z^{-n}f(k)=f(k-n)).

"Why not k>0k>0?" We will see right below. These two constraints lead to the recursive determination of a causal h+(k)h_+(k).

The recursion

Apply the Kronecker impulse u(k):={1,k=00,k≠0u(k):=\begin{cases}1,&k=0\\0,&k\neq0\end{cases}. Then {∑n=0Nanh+(k−n)=∑m=0Mbmδ(k−m),∀k≥0h+(−1)=h+(−2)=⋯=h+(−N)=0\begin{cases}\displaystyle\sum_{n=0}^Na_nh_+(k-n)=\sum_{m=0}^Mb_m\delta(k-m),&\forall k\ge0\\[6pt]h_+(-1)=h_+(-2)=\dots=h_+(-N)=0\end{cases} Solving for h+(k)h_+(k) (the term n=0n=0 is a0h+(k)a_0h_+(k), which is why a0≠0a_0\ne0 is needed):   h+(k)=−∑n=1Nana0 h+(k−n)+{bka0,if 0≤k≤M0,otherwise  (REC)\boxed{\;h_+(k)=-\sum_{n=1}^N\frac{a_n}{a_0}\,h_+(k-n)+\begin{cases}\dfrac{b_k}{a_0},&\text{if }0\le k\le M\\[6pt]0,&\text{otherwise}\end{cases}\;}\qquad\text{(REC)} This also explains constraint 2: the RHS ∑mbmδ(k−m)\sum_m b_m\delta(k-m) vanishes exactly for k≥M+1k\ge M+1 (and not for k>0k>0).

Note. Conversely to continuous time, h+(k)h_+(k) has no causality issues for M>NM>N (there are no derivatives of impulses, only delayed samples).

The ansatz

  h+(k)=∑ℓ=1Nqℓ ψℓ(k) 1(k−(M−N+1))+∑ℓ=0M−NqN+ℓ+1 δ(k−ℓ)  \boxed{\;h_+(k)=\sum_{\ell=1}^Nq_\ell\,\psi_\ell(k)\,\mathbb{1}\big(k-(M-N+1)\big)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\,\delta(k-\ell)\;} As in the continuous-time case (Impulse Matching MethodThe impulse matching method finds the causal impulse response h_+(t) of a continuous-time ODE system by writing h_+ as modes times a step plus impulses, then matching the impulse terms of the equation at t = 0 through a linear system for the coefficients q.Impulse Matching Method →), we will not prove that this is the correct ansatz, but we provide a procedure to determine the coefficients qℓq_\ell. For the discrete-time case it is even easier because we do not have to cope with the Dirac impulse.

Procedure

Step 1. Compute the modes ψℓ(k)\psi_\ell(k), ℓ=1,…,N\ell=1,\dots,N. Recall ∑n=0Nanz−n(∑ℓ=1Nqℓψℓ(k))=0\sum_{n=0}^Na_nz^{-n}\left(\sum_{\ell=1}^Nq_\ell\psi_\ell(k)\right)=0 because this is the solution to the (HE). Fact: h+(k)=∑ℓ=1Nqℓψℓ(k)if k≥M−N+1.h_+(k)=\sum_{\ell=1}^Nq_\ell\psi_\ell(k)\qquad\text{if }k\ge M-N+1 . (Indeed for k≥M+1k\ge M+1 the recursion (REC) is homogeneous and involves h+(k−1),…,h+(k−N)h_+(k-1),\dots,h_+(k-N), whose arguments start at M+1−NM+1-N.)

Step 2. Compute recursively h+(k)h_+(k) for k=0,…,Mk=0,\dots,M using (REC). If M≥NM\ge N, set qN+ℓ+1=h+(ℓ),ℓ=0,1,…,M−N.q_{N+\ell+1}=h_+(\ell),\qquad\ell=0,1,\dots,M-N . Note: the execution of Step 1 and Step 2 can be swapped.

Step 3. Compute the coefficients q1,…,qNq_1,\dots,q_N by solving the system of NN equations in the unknowns qℓq_\ell obtained by writing

  • LHS: h+(k)=∑ℓ=1Nqℓψℓ(k)h_+(k)=\sum_{\ell=1}^Nq_\ell\psi_\ell(k) (from Step 1),

at k=M−N+1,…,Mk=M-N+1,\dots,M, and taking as a constant vector

  • RHS: [h+(M−N+1),…,h+(M)]T\big[h_+(M-N+1),\dots,h_+(M)\big]^T, computed by using (REC), similarly to Step 2.

That is, solve for q1,…,qNq_1,\dots,q_N [ψ1(M−N+1)ψ2(M−N+1)⋯ψN(M−N+1)ψ1(M−N+2)ψ2(M−N+2)⋯ψN(M−N+2)⋮⋮⋮ψ1(M)ψ2(M)⋯ψN(M)][q1q2⋮qN]=[h+(M−N+1)h+(M−N+2)⋮h+(M)].\begin{bmatrix}\psi_1(M-N+1)&\psi_2(M-N+1)&\cdots&\psi_N(M-N+1)\\ \psi_1(M-N+2)&\psi_2(M-N+2)&\cdots&\psi_N(M-N+2)\\ \vdots&\vdots&&\vdots\\ \psi_1(M)&\psi_2(M)&\cdots&\psi_N(M)\end{bmatrix}\begin{bmatrix}q_1\\q_2\\ \vdots\\q_N\end{bmatrix}=\begin{bmatrix}h_+(M-N+1)\\h_+(M-N+2)\\ \vdots\\h_+(M)\end{bmatrix}. (If M<NM<N some of these instants are ≤0\le0; there h+h_+ is given by the initial values h+(k)=0h_+(k)=0 for k<0k<0 and by (REC) for k≥0k\ge0.)

The forced response is then yF(k)=∑n=k0kh+(k−n)u(n)y_F(k)=\sum_{n=k_0}^kh_+(k-n)u(n) and the total solution is y=yN+yFy=y_N+y_F.

The scan ends here (the lecture stops at part 1 of the method), with no worked example.

Versione ripasso

Goal: causal h+(k)h_+(k) for the ARMA model ∑n=0Nany(k−n)=∑m=0Mbmu(k−m)\sum_{n=0}^Na_ny(k-n)=\sum_{m=0}^Mb_mu(k-m) (a0≠0a_0\ne0, aN≠0a_N\neq0, bM≠0b_M\ne0), so that yF(k)=∑n=k0kh+(k−n)u(n)y_F(k)=\sum_{n=k_0}^kh_+(k-n)u(n) and y=yN+yFy=y_N+y_F.

  • Constraints: h+(k)=0h_+(k)=0 for k<0k<0; ∑anz−nh+(k)=0\sum a_nz^{-n}h_+(k)=0 for k≥M+1k\ge M+1 (not k>0k>0, because the Kronecker impulse input gives bkb_k terms for 0≤k≤M0\le k\le M).
  • (REC): h+(k)=−∑n=1Nana0h+(k−n)+{bk/a0,0≤k≤M0,otherwiseh_+(k)=-\sum_{n=1}^N\frac{a_n}{a_0}h_+(k-n)+\begin{cases}b_k/a_0,&0\le k\le M\\0,&\text{otherwise}\end{cases}, with h+(−1)=⋯=h+(−N)=0h_+(-1)=\dots=h_+(-N)=0.
  • No causality issue when M>NM>N (unlike continuous time).
  • Ansatz: h+(k)=∑ℓ=1Nqℓψℓ(k)1(k−(M−N+1))+∑ℓ=0M−NqN+ℓ+1δ(k−ℓ)h_+(k)=\sum_{\ell=1}^Nq_\ell\psi_\ell(k)\mathbb{1}(k-(M-N+1))+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta(k-\ell); fact: h+(k)=∑ℓqℓψℓ(k)h_+(k)=\sum_\ell q_\ell\psi_\ell(k) for k≥M−N+1k\ge M-N+1.
  • Procedure: (1) find modes ψℓ(k)\psi_\ell(k); (2) compute h+(k)h_+(k) for k=0..Mk=0..M by (REC), and if M≥NM\ge N set qN+ℓ+1=h+(ℓ)q_{N+\ell+1}=h_+(\ell), ℓ=0..M−N\ell=0..M-N; (3) solve the N×NN\times N system ∑ℓqℓψℓ(k)=h+(k)\sum_\ell q_\ell\psi_\ell(k)=h_+(k) at k=M−N+1..Mk=M-N+1..M for q1..qNq_1..q_N. Steps 1 and 2 can be swapped.
  • Typical mistakes: dropping the 1/a01/a_0 factors in (REC); building the matrix at the wrong instants (they are M−N+1,…,MM-N+1,\dots,M); forgetting the delta terms when M≥NM\ge N.

Teoria collegata