Salta al contenuto
Note per Studenti Weakly Stationary Processes Report

Weakly Stationary Processes

In questa pagina 5

Setting: second order processes as defined in Stochastic Processesa stochastic process is a family of random variables indexed by time; it is described by its finite dimensional distributions or, for second order processes, by the mean function and the autocorrelation function; Gaussian processes are fully determined by these two.Stochastic Processes →.

Definition

A second order process (Xs)(X_s) is said weakly stationary if

  1. mX(s+σ)=mX(s)m_X(s+\sigma)=m_X(s) for all s,σs,\sigma, that is, the mean function is invariant by translation;
  2. rX(s1+σ,s2+σ)=rX(s1,s2)r_X(s_1+\sigma,s_2+\sigma)=r_X(s_1,s_2) for all s1,s2,σs_1,s_2,\sigma, that is, the autocorrelation function is invariant by translation.

Equivalent conditions

Condition 1 is equivalent to 1': mX(s)=constantm_X(s)=\text{constant} for all ss.

Proof of 1⇔1′1\Leftrightarrow1'.

  • (⇒\Rightarrow) If 1 holds, letting σ=−s\sigma=-s one gets mX(s)=mX(0)m_X(s)=m_X(0) for all ss, which is 1'.
  • (⇐\Leftarrow) If mX(s)=constantm_X(s)=\text{constant} for all ss, then trivially mX(s+σ)=mX(s)m_X(s+\sigma)=m_X(s) for all s,σs,\sigma, which is 1. □\square

Condition 2 is equivalent to 2' and 2'', where

  • 2: rX(s1,s2)=rX(s1+σ,s2+σ)r_X(s_1,s_2)=r_X(s_1+\sigma,s_2+\sigma) for all s1,s2,σs_1,s_2,\sigma;
  • 2': rX(s1,s2)=rX(s1−s2,0)r_X(s_1,s_2)=r_X(s_1-s_2,0) for all s1,s2s_1,s_2;
  • 2'': rX(s+σ,s)=rX(σ,0)r_X(s+\sigma,s)=r_X(\sigma,0) for all s,σs,\sigma.

Proof.

  • 2⇒2′2\Rightarrow2': rX(s1,s2)=rX(s1−s2,s2−s2)=rX(s1−s2,0)r_X(s_1,s_2)=r_X(s_1-s_2,s_2-s_2)=r_X(s_1-s_2,0), where we have chosen σ=−s2\sigma=-s_2 in 2.
  • 2′⇒2′′2'\Rightarrow2'': rX(s+σ,s)=rX(s+σ−s,0)=rX(σ,0)r_X(s+\sigma,s)=r_X(s+\sigma-s,0)=r_X(\sigma,0), by direct application of 2'.
  • 2′′⇒22''\Rightarrow2: apply 2'' to both members of 2. For the left member, rX(s1,s2)=rX(s1−s2,0)r_X(s_1,s_2)=r_X(s_1-s_2,0) (take s=s2s=s_2, σ=s1−s2\sigma=s_1-s_2). For the right member, rX(s1+σ,s2+σ)=rX(s1+σ−s2−σ,0)=rX(s1−s2,0)r_X(s_1+\sigma,s_2+\sigma)=r_X(s_1+\sigma-s_2-\sigma,0)=r_X(s_1-s_2,0). Therefore rX(s1,s2)=rX(s1+σ,s2+σ)r_X(s_1,s_2)=r_X(s_1+\sigma,s_2+\sigma). □\square

Remark. To check if a second order SP is weakly stationary, usually one checks that

  • (i) mX(s)=constantm_X(s)=\text{constant},
  • (ii) rX(s+σ,s)=rX(σ,0)r_X(s+\sigma,s)=r_X(\sigma,0).

Consequences of weak stationarity

All the parameters of a second order SP are affected by weak stationarity. Let (Xs)(X_s) be weakly stationary. Then:

  • MX(s)=constantM_X(s)=\text{constant} and σX2(s)=constant\sigma_X^2(s)=\text{constant}, as it follows from the fact that, for all s∈Ss\in S, MX(s)=rX(s,s)=rX(s−s,0)=rX(0,0),M_X(s)=r_X(s,s)=r_X(s-s,0)=r_X(0,0), and σX2(s)=MX(s)−mX2(s)=rX(0,0)−mX2(0).\sigma_X^2(s)=M_X(s)-m_X^2(s)=r_X(0,0)-m_X^2(0).
  • For the autocovariance: KX(s+σ,s)=rX(s+σ,s)−mX(s+σ)mX(s)=rX(σ,0)−mX2(0)=KX(σ,0).K_X(s+\sigma,s)=r_X(s+\sigma,s)-m_X(s+\sigma)m_X(s)=r_X(\sigma,0)-m_X^2(0)=K_X(\sigma,0).

Terminology. For a second order SP that satisfies the conditions for weak stationarity, mX(s)=E(Xs)=constantm_X(s)=E(X_s)=\text{constant} and rX(s+σ,s)=E(Xs+σXs)=function only of σr_X(s+\sigma,s)=E(X_{s+\sigma}X_s)=\text{function only of }\sigma. We will write mX(s)=mXandrX(s+σ,s)=rX(σ),  and similarly KX(σ).m_X(s)=m_X\qquad\text{and}\qquad r_X(s+\sigma,s)=r_X(\sigma),\ \text{ and similarly } K_X(\sigma).

Lemma (symmetry). For a weakly stationary process (Xs)(X_s), letting rX(σ)=E(Xs+σXs)=E(XσX0)r_X(\sigma)=E(X_{s+\sigma}X_s)=E(X_\sigma X_0), it holds rX(−σ)=rX(σ).r_X(-\sigma)=r_X(\sigma).

Proof. Choosing s=σs=\sigma: rX(−σ)=E(Xs−σXs)=E(X0Xσ)=rX(σ). □r_X(-\sigma)=E(X_{s-\sigma}X_s)=E(X_0X_\sigma)=r_X(\sigma).\ \square

Remark. The same holds for KX(σ)=rX(σ)−mX2K_X(\sigma)=r_X(\sigma)-m_X^2.

Example: random-amplitude sinusoid

Xt=Acos⁡2πft+Bsin⁡2πft,t∈R,X_t=A\cos2\pi ft+B\sin2\pi ft,\qquad t\in\mathbb R, where A,BA,B are random variables with E(A)=E(B)=0E(A)=E(B)=0, E(AB)=0E(AB)=0, var⁡(A)=var⁡(B)=σ2\operatorname{var}(A)=\operatorname{var}(B)=\sigma^2 (and ff is a fixed frequency). Then E(Xt)=0E(X_t)=0 for all tt, and rX(t+τ,t)=E(Xt+τXt)=E((Acos⁡2πf(t+τ)+Bsin⁡2πf(t+τ))(Acos⁡2πft+Bsin⁡2πft))r_X(t+\tau,t)=E(X_{t+\tau}X_t)=E\Big(\big(A\cos2\pi f(t+\tau)+B\sin2\pi f(t+\tau)\big)\big(A\cos2\pi ft+B\sin2\pi ft\big)\Big) =E(A2)cos⁡2πf(t+τ)cos⁡2πft+E(B2)sin⁡2πf(t+τ)sin⁡2πft=σ2cos⁡(2πfτ).=E(A^2)\cos2\pi f(t+\tau)\cos2\pi ft+E(B^2)\sin2\pi f(t+\tau)\sin2\pi ft=\sigma^2\cos(2\pi f\tau). (The mixed terms vanish because E(AB)=0E(AB)=0; E(A2)=E(B2)=σ2E(A^2)=E(B^2)=\sigma^2 since the means are zero; the last step is the formula for the cosine of a difference.) The mean is constant and rX(t+τ,t)r_X(t+\tau,t) depends only on τ\tau: the process is weakly stationary.

Covariance matrices of discrete time weakly stationary processes

Let (Xn)n∈Z(X_n)_{n\in\mathbb Z} be a weakly stationary SP and let W‾4=(X1,X2,X3,X4)T\underline W_4=(X_1,X_2,X_3,X_4)^T. Then RW‾=E(W‾4W‾4T)=(E(X12)E(X1X2)E(X1X3)E(X1X4)E(X2X1)E(X22)E(X2X3)E(X2X4)E(X3X1)E(X3X2)E(X32)E(X3X4)E(X4X1)E(X4X2)E(X4X3)E(X42))=(rX(0)rX(1)rX(2)rX(3)rX(1)rX(0)rX(1)rX(2)rX(2)rX(1)rX(0)rX(1)rX(3)rX(2)rX(1)rX(0)),R_{\underline W}=E(\underline W_4\underline W_4^T)=\begin{pmatrix}E(X_1^2)&E(X_1X_2)&E(X_1X_3)&E(X_1X_4)\\E(X_2X_1)&E(X_2^2)&E(X_2X_3)&E(X_2X_4)\\E(X_3X_1)&E(X_3X_2)&E(X_3^2)&E(X_3X_4)\\E(X_4X_1)&E(X_4X_2)&E(X_4X_3)&E(X_4^2)\end{pmatrix}=\begin{pmatrix}r_X(0)&r_X(1)&r_X(2)&r_X(3)\\r_X(1)&r_X(0)&r_X(1)&r_X(2)\\r_X(2)&r_X(1)&r_X(0)&r_X(1)\\r_X(3)&r_X(2)&r_X(1)&r_X(0)\end{pmatrix}, where we used the fact that rX(−k)=rX(k)r_X(-k)=r_X(k).

Note that the matrix RW‾R_{\underline W} is not only symmetric, like all correlation matrices, but it also has all the diagonals with identical elements. A matrix with this structure is called Toeplitz. All vectors W‾n=(X1,X2,…,Xn)T\underline W_n=(X_1,X_2,\dots,X_n)^T of a weakly stationary SP have covariance matrices that have the Toeplitz structure. This is a very important property which the lectures do not have time to investigate. (A worked problem with non-equally-spaced times, whose matrix is not Toeplitz, is in Stochastic Processes - Worked Problemsworked problems on Gaussian processes, weakly stationary processes, autocorrelation and power spectral density, filtering through an LTI system, and affine transformations of Gaussian vectors.Stochastic Processes - Worked Problems →.)

For the power spectral density of a weakly stationary process see Power Spectral Density and LTI Filteringthe power spectral density of a weakly stationary process is the Fourier transform of its autocorrelation; it is non-negative, measures how the average power is distributed over frequency, and is multiplied by the squared modulus of the frequency response when the process goes through an LTI system.Power Spectral Density and LTI Filtering →.

Versione ripasso

Definition. Second order SP with (1) mX(s+σ)=mX(s)m_X(s+\sigma)=m_X(s) and (2) rX(s1+σ,s2+σ)=rX(s1,s2)r_X(s_1+\sigma,s_2+\sigma)=r_X(s_1,s_2).

Equivalent forms.

  • 1   ⟺  \iff 1': mX(s)=mXm_X(s)=m_X constant (take σ=−s\sigma=-s).
  • 2   ⟺  \iff 2' rX(s1,s2)=rX(s1−s2,0)r_X(s_1,s_2)=r_X(s_1-s_2,0)   ⟺  \iff 2'' rX(s+σ,s)=rX(σ,0)r_X(s+\sigma,s)=r_X(\sigma,0) (take σ=−s2\sigma=-s_2 for 2⇒2′2\Rightarrow2').
  • Practical test: (i) constant mean, (ii) rX(s+σ,s)r_X(s+\sigma,s) depends only on σ\sigma. Write rX(σ)r_X(\sigma).

Consequences. MX=rX(0)M_X=r_X(0) constant; σX2=rX(0)−mX2\sigma_X^2=r_X(0)-m_X^2 constant; KX(σ)=rX(σ)−mX2K_X(\sigma)=r_X(\sigma)-m_X^2.

Symmetry. rX(−σ)=rX(σ)r_X(-\sigma)=r_X(\sigma) (and same for KXK_X): rX(−σ)=E(Xs−σXs)r_X(-\sigma)=E(X_{s-\sigma}X_s), take s=σs=\sigma.

Example. Xt=Acos⁡2πft+Bsin⁡2πftX_t=A\cos2\pi ft+B\sin2\pi ft, E(A)=E(B)=E(AB)=0E(A)=E(B)=E(AB)=0, var⁡(A)=var⁡(B)=σ2\operatorname{var}(A)=\operatorname{var}(B)=\sigma^2: mX=0m_X=0, rX(τ)=σ2cos⁡(2πfτ)r_X(\tau)=\sigma^2\cos(2\pi f\tau), weakly stationary.

Toeplitz. For equally spaced consecutive times (X1,…,Xn)(X_1,\dots,X_n) the matrix [rX(i−j)][r_X(i-j)] is symmetric with constant diagonals, e.g. first row rX(0),rX(1),rX(2),rX(3)r_X(0),r_X(1),r_X(2),r_X(3).

Typical mistakes. Checking only the mean; testing rXr_X at fixed ss instead of for all ss and σ\sigma; expecting a Toeplitz matrix for non-equally-spaced times; forgetting that a non-constant MX(s)M_X(s) immediately rules out weak stationarity.

Teoria collegata