Tutorials › Stochastic Processes › Stable Autoregressive Filters and Resonance

Weak Stationarity and Spectral Representation · Tutorial 909 of 994

Stable Autoregressive Filters and Resonance

Learn to derive an AR filter’s transfer function and spectrum, check stability, and locate resonant peaks from its poles.

Advanced 12 min read

What You'll Learn

  • Define stability for a causal autoregressive filter using the roots of its delay polynomial.
  • Derive the impulse response and transfer function from the autoregressive equation.
  • Obtain the output spectral density from the input white-noise variance and transfer function.
  • Relate pole angles and radii to resonance and peak sharpness.
  • Locate the exact spectral peaks of a stable second-order AR filter.
  • Recognize why a boundary or unstable pole invalidates the stable-filter calculation.

From an autoregressive equation to a filter

A moving-average filter forms its output from a weighted sum of present and past inputs. An autoregressive equation instead includes past outputs. When that equation is stable, it can also be represented as a causal linear filter: the present output is a weighted sum of current and past noise. This representation makes the frequency response and spectrum calculable. Its denominator also reveals how poles can create resonant peaks.

Work on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Let \((\varepsilon_n)_{n\in\mathbb{Z}}\) be a real, zero-mean white-noise sequence: \(\mathbb{E}[\varepsilon_n]=0\) and \(\operatorname{Cov}(\varepsilon_n,\varepsilon_m)=\sigma^2\mathbf{1}_{\{n=m\}}\), where \(0<\sigma^2<\infty\). The time index is \(n\in\mathbb{Z}\), and both input and output take values in \(S=\mathbb{R}\). White noise here means uncorrelated observations with a common finite variance; independence is not required.

Definition: An order-\(p\) autoregressive filter has equation \(X_n-\phi_1X_{n-1}-\cdots-\phi_pX_{n-p}=\varepsilon_n\), where \(p\ge1\). Its delay polynomial is \(A(z)=1-\phi_1z-\cdots-\phi_pz^p\). The filter is stable and causal if \(1/A(z)\) has a power series \(\sum_{j\ge0}h_jz^j\) whose coefficients are absolutely summable. Equivalently for this polynomial, every root \(r\) of \(A\) satisfies \(|r|>1\). The transfer function is \(H(e^{-i\omega})=1/A(e^{-i\omega})\).

The variable \(z\) records a delay: \(z^j\) corresponds to \(j\) time steps into the past. The root condition places every pole of \(H(z)=1/A(z)\) outside the unit circle. In the Fourier convention used here, the spectral density \(f\) and covariance sequence \(\gamma(k)=\operatorname{Cov}(X_{n+k},X_n)\) satisfy \(f(\omega)=(1/(2\pi))\sum_{k\in\mathbb{Z}}\gamma(k)e^{-ik\omega}\) and \(\gamma(k)=\int_{-\pi}^{\pi}e^{ik\omega}f(\omega)\,d\omega\).

Theorem (Stable AR filter and spectrum): Suppose \(A(0)=1\), \(A\) has finite degree, and all its roots have modulus greater than \(1\). For the white noise defined above, the series \(X_n=\sum_{j\ge0}h_j\varepsilon_{n-j}\), where \(1/A(z)=\sum_{j\ge0}h_jz^j\), converges in mean square and defines a weakly stationary solution of the autoregressive equation. Its transfer function is \(H(e^{-i\omega})=1/A(e^{-i\omega})\), and its spectral density is \(f(\omega)=\frac{\sigma^2}{2\pi}|H(e^{-i\omega})|^2=\frac{\sigma^2}{2\pi|A(e^{-i\omega})|^2}\).

Proof. If \(A\) has degree zero, then \(A=1\), \(h_0=1\), and \(h_j=0\) for \(j>0\); the claims reduce to \(X_n=\varepsilon_n\). Otherwise, factor \(A(z)=\prod_{\ell=1}^{p}(1-z/r_\ell)\), listing roots with their multiplicities. Partial fractions express \(1/A(z)\) as a finite sum of terms \(C(1-z/r)^{-m}\), with constants \(C\), roots \(r\), and positive integers \(m\). The power-series coefficient of \(z^j\) in such a term is \(C\binom{j+m-1}{m-1}r^{-j}\). Because \(|r|>1\), its absolute values are bounded by a polynomial in \(j\) times a geometrically decreasing sequence, and hence are summable. Thus \(\sum_j|h_j|<\infty\), in particular \(\sum_jh_j^2<\infty\). The variance of a finite tail \(\sum_{j=u}^{v}h_j\varepsilon_{n-j}\) is \(\sigma^2\sum_{j=u}^{v}h_j^2\), which tends to zero as \(u\) tends to infinity. This proves mean-square convergence.

Multiplying the power series by \(A(z)\) gives \(A(z)\sum_{j\ge0}h_jz^j=1\). Equating coefficients shows that applying the autoregressive left-hand side to \(X_n\) leaves \(\varepsilon_n\): the coefficient of the current input is \(1\), and every coefficient of an older input is \(0\). The mean is zero. For any integer \(k\), mean-square convergence and white-noise covariance give \(\gamma(k)=\sigma^2\sum_{j\ge0}h_{j+k}h_j\) when \(k\ge0\), with \(\gamma(-k)=\gamma(k)\). These covariances depend only on the lag, so the output is weakly stationary.

Finally, absolute summability permits multiplication and rearrangement of the two absolutely convergent series in the Fourier calculation. The Fourier series of \(\gamma\) is \(\sigma^2(\sum_{j\ge0}h_je^{-ij\omega})(\sum_{j\ge0}h_je^{ij\omega})\): matching terms with index difference \(k\) gives the covariance at lag \(k\). The factors are complex conjugates because the coefficients are real. Dividing by \(2\pi\) gives \(f(\omega)=\sigma^2|H(e^{-i\omega})|^2/(2\pi)\). \(\square\)

First examples: stability and pole location

Worked Example: A Stable AR(1) Filter

Let \(X_n-\tfrac12X_{n-1}=\varepsilon_n\), with white-noise variance \(\sigma^2=4\). The delay polynomial is \(A(z)=1-\tfrac12z\), whose root is \(r=2\); since \(|2|>1\), the filter is stable. Its geometric expansion gives \(h_j=(\tfrac12)^j\) for \(j\ge0\), so \(H(e^{-i\omega})=1/(1-\tfrac12e^{-i\omega})\).

The denominator’s squared modulus is \(|1-\tfrac12e^{-i\omega}|^2=1+\tfrac14-\cos\omega=\tfrac54-\cos\omega\). Therefore \(f(\omega)=\frac{2}{\pi(\tfrac54-\cos\omega)}\). Since \(-1\le\cos\omega\le1\), the denominator is smallest at \(\omega=0\), where it is \(\tfrac54-1=\tfrac14\). The peak is \(f(0)=8/\pi\).

Check: The series gives \(\operatorname{Var}(X_n)=4\sum_{j\ge0}(1/4)^j=4/(1-1/4)=16/3\). The lag-zero covariance is also the integral of the displayed spectral density under the stated Fourier convention; the variance obtained from the filter coefficients is finite, as stability requires.

For a real second-order filter, a conjugate pair of poles produces a frequency-selective response. Pole angle indicates where the response tends to be large; pole radius controls how close the poles are to the unit circle. The exact peak need not occur at the pole angle, so it is useful to minimize the denominator rather than infer the peak from a sketch.

Proposition (Exact peak location for a second-order pair): Let \(0<a<1\) and \(0<\theta<\pi\), and take \(A(z)=1-2a\cos(\theta)z+a^2z^2\). Its roots are \(a^{-1}e^{i\theta}\) and \(a^{-1}e^{-i\theta}\), so it is stable. Set \(x=\cos\omega\). The squared response denominator is \(D(x)=|A(e^{-i\omega})|^2=(1+a^2)^2-4a(1+a^2)\cos(\theta)x+4a^2(x^2+\cos^2(\theta)-1)\). On \(-1\le x\le1\), its minimum is at \(x_*=(1+a^2)\cos(\theta)/(2a)\) if \(|x_*|\le1\); otherwise it is at the nearer endpoint of that interval. Thus an interior resonant frequency is \(\omega_*=\arccos(x_*)\), together with its negative-frequency counterpart.

Proof. Factoring the polynomial gives \(A(z)=(1-ae^{i\theta}z)(1-ae^{-i\theta}z)\), which yields the two stated roots. At \(z=e^{-i\omega}\), the squared modulus is \([1+a^2-2a\cos(\theta-\omega)][1+a^2-2a\cos(\theta+\omega)]\). Using \(\cos(\theta-\omega)+\cos(\theta+\omega)=2\cos(\theta)\cos(\omega)\) and \(\cos(\theta-\omega)\cos(\theta+\omega)=\cos^2(\theta)+\cos^2(\omega)-1\) gives the displayed \(D(x)\). Its coefficient of \(x^2\) is \(4a^2>0\). Differentiating gives \(D'(x)=8a^2x-4a(1+a^2)\cos(\theta)\), which vanishes at \(x_*\). A convex quadratic reaches its minimum on \([-1,1]\) at its vertex when the vertex is in the interval; if it lies outside, the minimum is at the nearer endpoint. Since \(x=\cos\omega\), an interior minimizer gives the stated frequency, and the evenness of the denominator gives the negative-frequency peak as well. \(\square\)

Worked Example: The Peak Can Shift from the Pole Angle

Use \(a=\tfrac34\), \(\theta=\tfrac{\pi}{3}\), and noise variance \(\sigma^2=2\). The poles are \(\tfrac43e^{i\pi/3}\) and \(\tfrac43e^{-i\pi/3}\), both outside the unit circle. Here \(1+a^2=\tfrac{25}{16}\) and \(\cos(\theta)=\tfrac12\), so \(x_*=(\tfrac{25}{16}\cdot\tfrac12)/(\tfrac32)=\tfrac{25}{48}\), which lies strictly between \(-1\) and \(1\). Thus \(\omega_*=\arccos(\tfrac{25}{48})\), not exactly \(\theta=\pi/3\).

Substituting these parameters into the denominator formula gives \(D(x)=\tfrac{9}{4}x^2-\tfrac{75}{32}x+\tfrac{193}{256}\). Completing the square, \(D(x)=\tfrac94(x-\tfrac{25}{48})^2+\tfrac{147}{1024}\). The minimum is therefore \(\tfrac{147}{1024}\), and the spectral peak is \(f(\omega_*)=\frac{2}{2\pi}\frac{1024}{147}=\frac{1024}{147\pi}\).

Check: The square term vanishes at \(x=\tfrac{25}{48}\), leaving \(147/1024\). The pole angle corresponds to \(x=\cos(\pi/3)=1/2\), not \(25/48\); the peak shift is real, not a rounding effect.

How pole radius shapes resonance

For a conjugate pair, moving the poles closer to the unit circle generally makes the response sharper and taller near its resonant frequencies. This is a qualitative statement about a stable family: each member must still have \(a<1\). At the boundary \(a=1\), the stability condition fails. The pole angle identifies the central frequency in the limit as \(a\) approaches \(1\), while the exact finite-\(a\) peak is determined by the denominator calculation above.

Worked Example: A Quarter-Cycle Resonance

Take \(A(z)=1+\tfrac{9}{16}z^2\), corresponding to \(a=\tfrac34\) and \(\theta=\tfrac{\pi}{2}\), and let \(\sigma^2=1\). The roots solve \(z^2=-16/9\), so they are \(4i/3\) and \(-4i/3\); both have modulus \(4/3>1\). On the unit circle, \(|A(e^{-i\omega})|^2=|1+\tfrac{9}{16}e^{-2i\omega}|^2=\tfrac{337}{256}+\tfrac98\cos(2\omega)\).

The smallest possible value occurs when \(\cos(2\omega)=-1\), giving \(\tfrac{337}{256}-\tfrac{288}{256}=\tfrac{49}{256}\). This occurs at \(\omega=\pm\pi/2\) within \([-\pi,\pi]\). Hence the peak density is \(f(\pi/2)=\frac{1}{2\pi}\frac{256}{49}=\frac{128}{49\pi}\).

Check: The exact peak-location formula gives \(x_*=(1+\tfrac{9}{16})\cos(\pi/2)/(\tfrac32)=0\). Thus \(\omega_*=\arccos(0)=\pi/2\), in agreement with the direct minimization.

A stability pitfall

A common mistake is to use the autoregressive polynomial as the transfer function rather than its reciprocal. For the AR(1) equation in the first example, that mistake gives \(H(e^{-i\omega})=1-\tfrac12e^{-i\omega}\), and at \(\omega=0\) it gives \(H(1)=\tfrac12\). The correct equation is \(A(L)X_n=\varepsilon_n\); solving for the output applies the inverse filter, so \(H(1)=1/A(1)=1/(1-\tfrac12)=2\). The spectral density uses the squared modulus of this reciprocal, not the squared modulus of \(A\).

Stability is also essential, not a technical decoration. If the AR(1) coefficient is \(1\), the formal causal coefficients would all equal \(1\). Their squared sum diverges, so \(\sum_{j\ge0}\varepsilon_{n-j}\) does not converge in mean square when \(\sigma^2>0\). The stable-filter spectral formula cannot be applied to that causal series. More generally, a root on or inside the unit circle violates the root condition used to obtain an absolutely summable causal response.

For a stable AR filter, the calculation has a reliable order: check the roots of \(A\), invert \(A\) to identify the transfer function, and only then evaluate \(\sigma^2|H(e^{-i\omega})|^2/(2\pi)\). For resonance, minimize \(|A(e^{-i\omega})|^2\) over frequency. This separates stability, which determines whether the causal filter exists, from resonance, which describes how its spectrum is shaped.

Check Your Understanding

Use the definitions and results above to answer these questions.

  1. For \(X_n-\tfrac13X_{n-1}=\varepsilon_n\), find the pole and determine whether the causal filter is stable.
  2. For the AR(1) filter in the first worked example, what is the transfer function at frequency \(\omega=\pi\), and what is the corresponding spectral density?
  3. For \(A(z)=1-2a\cos(\theta)z+a^2z^2\), state the pole locations and the condition on \(a\) that makes the filter stable.
  4. In the second worked example, explain why the exact peak is not at \(\pi/3\), even though the pole angle is \(\pi/3\).
  5. Why does the formal coefficient sequence for the AR(1) filter with coefficient \(1\) fail to define a mean-square convergent causal output?