Tutorials › Stochastic Processes › Spectral Lines and Periodic Components

Weak Stationarity and Spectral Representation · Tutorial 902 of 994

Spectral Lines and Periodic Components

Learn to read spectral atoms as persistent covariance oscillations and calculate their contributions, including the effects of conjugate frequencies and endpoint lines.

Advanced 12 min read

What You'll Learn

  • Define a spectral line as an atom of a discrete-time spectral measure.
  • Derive the covariance contribution of one atom directly from the spectral integral.
  • Combine conjugate atoms into real cosine terms with the correct mass.
  • Calculate covariances from one or several spectral lines and verify the results.
  • Distinguish persistent oscillation from decay and identify when a line contribution is periodic.
  • Recognize why a spectral atom does not by itself assert a particular sample-path decomposition.

From a Spectral Atom to a Covariance Oscillation

A spectral measure describes how the variance of a weakly stationary sequence is distributed across frequencies. When the measure has an atom, it places positive variance at one exact frequency rather than spreading that variance continuously over a range. The resulting covariance contribution does not fade as the lag grows: it oscillates with a fixed amplitude. This is why an atom is also called a spectral line.

Let \((X_n)_{n\in\mathbb Z}\) be a real-valued weakly stationary sequence on a probability space \((\Omega,\mathcal F,\mathbb P)\). Write its mean as \(\mu\) and its autocovariance as \(\gamma(h)=\operatorname{Cov}(X_{n+h},X_n)\), which does not depend on \(n\). Use the discrete-time frequency circle, represented by \([-\pi,\pi)\), with frequencies understood modulo \(2\pi\). In the Fourier convention used here, its finite positive spectral measure \(F\) satisfies

$$ \gamma(h)=\int_{[-\pi,\pi)} e^{ih\lambda}\,F(d\lambda), \qquad h\in\mathbb Z, \qquad F([-\pi,\pi))=\gamma(0). $$

A point \(\lambda\) is an atom if \(F(\{\lambda\})>0\); its mass is the variance assigned to that line. The integral formula alone gives its covariance contribution: a mass \(a\) at \(\lambda\) contributes \(a e^{ih\lambda}\) at lag \(h\). For a real-valued sequence, the full covariance is real and even. Accordingly, its spectral measure is symmetric on the frequency circle: a line at \(\omega\), for \(0<\omega<\pi\), is accompanied by one at \(-\omega\) with the same mass. If each has mass \(a\), their combined contribution is \(2a\cos(h\omega)\). The frequencies \(0\) and \(\pi\) are their own negatives modulo \(2\pi\), so they need not occur in pairs.

The symmetry statement follows from the standard uniqueness of the spectral measure: the reflected measure has Fourier coefficients \(\gamma(-h)\), which equal \(\gamma(h)\) for a real stationary sequence, so it is the same measure. The uniqueness of the spectral measure is a standard result from the spectral representation of stationary sequences.

Definition: A spectral line at frequency \(\lambda\) is an atom of the spectral measure \(F\), with mass \(F(\{\lambda\})\). Its covariance contribution at lag \(h\) is \(F(\{\lambda\})e^{ih\lambda}\). For a real sequence, a pair of lines of mass \(a\) at \(\omega\) and \(-\omega\), where \(0<\omega<\pi\), contributes \(2a\cos(h\omega)\).

This conclusion uses the covariance formula for the spectral measure; it does not require asserting that a random-measure representation exists on the original probability space. In particular, for a sequence indexed only by \(n\geq0\), one must not assume without further conditions that such a representation is available on that same space. The covariance conclusions below are stated directly in terms of \(F\).

The Atomic Part and Its Covariance

Theorem (Covariance contribution of the atomic part): Let \(F\) be the spectral measure of a real-valued weakly stationary sequence indexed by \(\mathbb Z\). Let \(D=\{\lambda:F(\{\lambda\})>0\}\), and put \(a_\lambda=F(\{\lambda\})\). Then \(D\) is at most countable, and the measure consisting of all its atoms is \(F_{\mathrm{at}}=\sum_{\lambda\in D}a_\lambda\delta_\lambda\). Its covariance contribution is $$ \gamma_{\mathrm{at}}(h)=\int e^{ih\lambda}\,F_{\mathrm{at}}(d\lambda) =\sum_{\lambda\in D}a_\lambda e^{ih\lambda}. $$ The series converges absolutely for every integer \(h\). For real sequences, grouping conjugate frequency pairs gives real cosine terms, while atoms at \(0\) and \(\pi\) contribute \(a_0\) and \(a_\pi(-1)^h\), respectively.

Proof. Since \(F\) is finite, for each positive integer \(m\) there can be only finitely many atoms with mass at least \(1/m\): otherwise, arbitrarily large finite collections of such distinct atoms would have total mass at least their size divided by \(m\), contradicting \(F([-\pi,\pi))<\infty\). Every positive mass is at least \(1/m\) for some \(m\), so \(D\) is a countable union of finite sets and is at most countable. For any finite subset \(D_0\) of \(D\), \(\sum_{\lambda\in D_0}a_\lambda\leq F([-\pi,\pi))\). Taking increasing finite subsets shows \(\sum_{\lambda\in D}a_\lambda\leq F([-\pi,\pi))\). Thus the series defining the atomic measure has finite total mass. Since \(|e^{ih\lambda}|=1\), its covariance series is absolutely convergent, with \(\sum_{\lambda\in D}|a_\lambda e^{ih\lambda}|=\sum_{\lambda\in D}a_\lambda<\infty\). Integrating against the sum of point masses gives the displayed series. For a real sequence the measure is symmetric, so the terms at \(\omega\) and \(-\omega\) have equal mass and sum to \(a e^{ih\omega}+a e^{-ih\omega}=2a\cos(h\omega)\). At \(0\), the exponential is \(1\); at \(\pi\), it is \(e^{ih\pi}=(-1)^h\). \(\square\)

The theorem concerns the covariance contributed by the atomic part of the measure. It does not say that the remainder of the covariance vanishes, nor that the sequence itself is just a sum of sinusoidal sample paths. A measure may have both atomic and non-atomic parts. The atomic contribution can be calculated separately because integration is additive over measures.

Result (A line contribution does not decay): A nonzero atomic contribution at a single frequency has fixed magnitude if viewed as \(a e^{ih\lambda}\). A real conjugate pair contributes \(2a\cos(h\omega)\), which does not converge to zero as \(|h|\) grows.

Proof. For a single atom, \(|a e^{ih\lambda}|=a>0\) for every integer \(h\). For a real pair with \(0<\omega<\pi\), put \(c_h=2a\cos(h\omega)\). For positive integer \(N\), the average of its squared values is $$ \frac1N\sum_{h=0}^{N-1}c_h^2 =\frac{4a^2}{N}\sum_{h=0}^{N-1}\cos^2(h\omega) =2a^2+\frac{2a^2}{N}\sum_{h=0}^{N-1}\cos(2h\omega). $$ Because \(e^{i2\omega}\ne1\), the finite geometric-sum formula gives \(\left|\sum_{h=0}^{N-1}e^{i2h\omega}\right|=\left|(1-e^{i2N\omega})/(1-e^{i2\omega})\right|\leq2/|1-e^{i2\omega}|\). The absolute value of the cosine sum is no larger than this bound, so its contribution divided by \(N\) tends to zero. The average of \(c_h^2\) therefore tends to \(2a^2>0\). If \(c_h\) converged to zero, then its squared values would converge to zero, and their averages would also converge to zero; this contradicts the positive limit. The endpoint lines give the constant sequence \(a\) or the alternating sequence \(a(-1)^h\), neither of which tends to zero. \(\square\)

A line contribution is periodic whenever its frequency is a rational multiple of \(2\pi\): if \(q\omega\) is an integer multiple of \(2\pi\), then \(e^{i(h+q)\omega}=e^{ih\omega}\), so the contribution repeats after \(q\) lags. An irrational frequency ratio need not give an exactly repeating sequence, but the contribution still does not decay. “Persistent” therefore refers to non-decay, not necessarily to exact periodicity.

Worked Covariance Calculations

Worked Example: One Conjugate Pair of Lines

Let a real-valued weakly stationary sequence indexed by \(n\in\mathbb Z\), on a probability space \((\Omega,\mathcal F,\mathbb P)\), have spectral measure with mass \(\tfrac14\) at each of \(\omega=\tfrac{\pi}{3}\) and \(-\omega=-\tfrac{\pi}{3}\), and no other mass. Find its covariance contribution and evaluate it at lags \(0,1,2,3\).

The measure has total mass \(\tfrac14+\tfrac14=\tfrac12\), so the variance is \(\gamma(0)=\tfrac12\). The two masses are equal, as required for a real sequence, and the covariance is

$$ \gamma(h)=\tfrac14e^{ih\pi/3}+\tfrac14e^{-ih\pi/3} =\tfrac12\cos(h\pi/3). $$

At \(h=0\), \(\gamma(0)=\tfrac12\cos(0)=\tfrac12\). At \(h=1\), \(\gamma(1)=\tfrac12\cos(\pi/3)=\tfrac12\cdot\tfrac12=\tfrac14\). At \(h=2\), \(\gamma(2)=\tfrac12\cos(2\pi/3)=\tfrac12\cdot(-\tfrac12)=-\tfrac14\). At \(h=3\), \(\gamma(3)=\tfrac12\cos(\pi)=-\tfrac12\).

Check: Direct substitution in the two-atom formula at \(h=2\) gives \(\tfrac14e^{i2\pi/3}+\tfrac14e^{-i2\pi/3}=\tfrac14(-\tfrac12+\tfrac{\sqrt3}{2}i)+\tfrac14(-\tfrac12-\tfrac{\sqrt3}{2}i)=-\tfrac14\), agreeing with the cosine calculation. The frequency \(\pi/3\) repeats after \(6\) lags because \(6(\pi/3)=2\pi\).

Worked Example: A Zero-Frequency Line, a Nyquist Line, and a Pair

On a probability space \((\Omega,\mathcal F,\mathbb P)\), consider a real weakly stationary sequence indexed by \(n\in\mathbb Z\) whose spectral measure has mass \(\tfrac15\) at \(0\), mass \(\tfrac1{10}\) at \(\pi\), and mass \(\tfrac1{10}\) at each of \(\tfrac{\pi}{2}\) and \(-\tfrac{\pi}{2}\). Find the covariance at lags \(0\) through \(4\).

The total mass is \(\tfrac15+\tfrac1{10}+\tfrac1{10}+\tfrac1{10}=\tfrac12\), so \(\gamma(0)=\tfrac12\). The covariance formula gives

$$ \gamma(h)=\tfrac15+\tfrac1{10}(-1)^h+\tfrac15\cos(h\pi/2). $$

At \(h=0\), the value is \(\tfrac15+\tfrac1{10}+\tfrac15=\tfrac12\). At \(h=1\), it is \(\tfrac15-\tfrac1{10}+\tfrac15\cos(\pi/2)=\tfrac1{10}\). At \(h=2\), it is \(\tfrac15+\tfrac1{10}+\tfrac15\cos(\pi)=\tfrac15+\tfrac1{10}-\tfrac15=\tfrac1{10}\). At \(h=3\), it is \(\tfrac15-\tfrac1{10}+\tfrac15\cos(3\pi/2)=\tfrac1{10}\). At \(h=4\), it is \(\tfrac15+\tfrac1{10}+\tfrac15\cos(2\pi)=\tfrac12\).

Check: Each term has period \(4\): the constant term is unchanged, \((-1)^{h+4}=(-1)^h\), and \(\cos((h+4)\pi/2)=\cos(h\pi/2+2\pi)=\cos(h\pi/2)\). Thus the values repeat, and the value at lag \(0\) agrees with the total spectral mass.

Worked Example: A Random Sinusoid with the Same Spectral Lines

Let \((\Omega,\mathcal F,\mathbb P)\) support independent random variables \(A\) and \(B\), each taking values \(-1\) and \(1\) with probability \(\tfrac12\). Define the real sequence indexed by \(n\in\mathbb Z\) by \(X_n=A\cos(n\pi/3)+B\sin(n\pi/3)\). Find its mean and covariance, and identify its spectral masses.

Since \(\mathbb E[A]=\mathbb E[B]=0\), \(\mathbb E[X_n]=0\). Independence gives \(\mathbb E[AB]=\mathbb E[A]\mathbb E[B]=0\), while \(\mathbb E[A^2]=\mathbb E[B^2]=1\). Hence for any integers \(n,h\),

$$ \begin{aligned} \gamma(h) &=\mathbb E[X_{n+h}X_n]\\ &=\cos((n+h)\pi/3)\cos(n\pi/3) +\sin((n+h)\pi/3)\sin(n\pi/3)\\ &=\cos(h\pi/3). \end{aligned} $$

The last equality is the cosine difference identity. The result does not depend on \(n\), so the sequence is weakly stationary. Its variance is \(\gamma(0)=\cos(0)=1\). To represent this covariance by a spectral measure, place mass \(\tfrac12\) at each of \(\pi/3\) and \(-\pi/3\); the integral is \(\tfrac12e^{ih\pi/3}+\tfrac12e^{-ih\pi/3}=\cos(h\pi/3)\).

Check: At lag \(1\), direct substitution in the covariance gives \(\cos(\pi/3)=\tfrac12\), while the spectral calculation gives \(\tfrac12(\tfrac12+\tfrac{\sqrt3}{2}i)+\tfrac12(\tfrac12-\tfrac{\sqrt3}{2}i)=\tfrac12\). At lag \(0\), the two spectral masses sum to \(1\), matching the variance.

Interpreting the Lines Carefully

Two distinctions prevent common errors. First, the mass of a single line is not always the amplitude of a real cosine. At an interior frequency, the matching line at the negative frequency must also be included. Second, an atomic covariance contribution is only one part of the total covariance if the spectral measure also has non-atomic mass. The atomic and non-atomic parts add; neither should be mistaken for the whole sequence without checking the measure.

Common mistake. In the first example, one might keep only the \(+\pi/3\) line and claim that the real covariance is \(\tfrac14\cos(h\pi/3)\). That calculation both discards the negative-frequency line and gives the wrong variance: at \(h=0\) it returns \(\tfrac14\), although the total mass, and therefore the variance, is \(\tfrac14+\tfrac14=\tfrac12\). The correction is to add both terms:

$$ \tfrac14e^{ih\pi/3}+\tfrac14e^{-ih\pi/3} =\tfrac12\cos(h\pi/3), \qquad \gamma(0)=\tfrac12. $$

Finally, a spectral line identifies a persistent covariance pattern. It does not, by itself, prove that the observed sequence has a particular sinusoidal sample path or that a sinusoidal component is independent of the rest. Such stronger decomposition claims require additional representation and probability-space conditions. For covariance calculations, the safe procedure is direct: identify each atomic mass, multiply it by \(e^{ih\lambda}\), sum the contributions, and for a real sequence combine conjugate lines into cosines.

Check Your Understanding

Use the spectral integral convention in this tutorial. In each question, distinguish the mass of an individual line from the combined covariance contribution.

  1. A real spectral measure has mass \(\tfrac13\) at each of \(\omega\) and \(-\omega\), where \(0<\omega<\pi\). Write the covariance contribution and its value at lag \(0\).
  2. A line of mass \(a\) lies at frequency \(\pi\). What is its covariance contribution at an even lag and at an odd lag?
  3. For masses \(\tfrac14\) at each of \(\pi/2\) and \(-\pi/2\), calculate the covariance contributions at lags \(0,1,2\), and check that the lag-zero value equals the total mass.
  4. Why does an atom at an interior frequency have to be paired with an equal-mass atom at the negative frequency for a real-valued stationary sequence?
  5. Does a persistent covariance contribution imply that the entire covariance sequence is periodic? Explain the role of other spectral mass and of the frequency.