This is the SP (Wn)n∈Z where the random variables Wn are iid Gaussians Wn∼N(0,σ2). The variance σ2 is called the intensity of the WGN. The parameters are:
mW(n)=E(Wn)=0 for all n,MW(n)=E(Wn2)=var(Wn)=σ2(since E(Wn)=0),σW2(n)=var(Wn)=σ2,rW(n+k,n)=E(Wn+kWn)={E(Wn+k)E(Wn)=0E(Wn2)=σ2k=0k=0KW(n+k,n)=rW(n+k,n)since E(Wn)=0.
Note that (1) mW(n)=mW=0 for all n and (2) rW(n+k,n)=σ2δ(k) does not depend on n. Therefore WGN(σ2) is weakly stationary with
mW=0,rW(k)=σ2δ(k).
2. Gaussian random walk
(Xn)n∈N is defined as
Xn+1=Xn+Wn,X0≡0,(Wn)∼WGN(σ2).Xn can be interpreted as the output of an LTI system with impulse response the unit step u(n−1) and input Wn: Xn=u(n−1)∗Wn.
Note that X1=X0+W0, X2=X1+W1=X0+W0+W1=W0+W1, and in general
Xn=k=0∑n−1Wk.
Parameters.mX(n)=E(Xn)=E(k=0∑n−1Wk)=0 for all n,MX(n)=E(Xn2)=var(Xn)=nσ2.
Since MX(n) is not constant, the random walk cannot be weakly stationary.
For the autocorrelation (taking k≥0, so that n+k−1≥n−1):
rX(n+k,n)=E(Xn+kXn)=E(i=0∑n+k−1Wij=0∑n−1Wj)=E(j=0∑n−1Wj2)=nσ2.
Only the products E(Wj2)=σ2 survive (the page shows the grid of index pairs (i,j) with the diagonal terms i=j for 0≤j≤n−1); all others E(WiWj)=0. The result depends on n: not weakly stationary.
3. Moving average MA(1)
(Xn) is defined as
Xn=Wn+bWn−1,Wn∼WGN(σ2).
It can be interpreted as the output of an LTI system with input Wn and impulse response h(n)=δ(n)+bδ(n−1): Xn=h(n)∗Wn.
The process (Xn) satisfying
Xn+1=aXn+Wn,X0⊥⊥(Wn),E(X0)=0,var(X0)=σ02,
with (Wn)∼WGN(σ2) independent of the initial value X0.
A general expression for Xn is easy to find, either using the theory of difference equations or directly by iteration:
X1=aX0+W0,X2=aX1+W1=a2X0+aW0+W1,X3=aX2+W2=a3X0+a2W0+aW1+W2,…Xn=anX0+ℓ=0∑n−1an−1−ℓWℓ.
Parameters.mX(n)=0 for all n (trivially). The autocorrelation rX(n+k,n) is more complicated and is computed iteratively.
Step 1: rX(n+1,n).rX(n+1,n)=E(Xn+1Xn)=E((aXn+Wn)Xn)=E(aXn2+XnWn)=aσX2(n),
where E(XnWn)=0 since Xn only depends on {X0,W0,W1,…,Wn−1}, all random variables independent of Wn, so E(XnWn)=E(Xn)E(Wn)=0.
Step 2: the variance. It remains to compute σX2(n)=MX(n):
σX2(n+1)=E(Xn+12)=E((aXn+Wn)2)=a2E(Xn2)+2a=0E(XnWn)+E(Wn2)=a2σX2(n)+σ2,
where σ2 is the intensity of the WGN Wn. The following difference equation with initial condition has to be solved:
{σX2(n+1)=a2σX2(n)+σ2σX2(0)=σ02.
Note that in general σX2(n) depends on n, therefore (Xn) is not weakly stationary, but there are special cases.
Imposing σX2(n)=constant. We get from the difference equation the condition σX2(n+1)=σX2(n), therefore
σX2(n)=a2σX2(n)+σ2must hold for all n.
This gives
σX2(n)=1−a2σ2=σ02(the last equality is for n=0).
If the parameters a,σ2,σ02 satisfy the constraint
1−a2σ2=σ02(∗)
then σX2(n) is constant (and equals σ02). (Since a variance is positive, (∗) requires 1−a2>0, i.e. ∣a∣<1; this is the observation that follows from the formula, not an extra assumption stated on the page.)
Lemma. Under condition (∗),
rX(n+k,n)=1−a2σ2a∣k∣=σ02a∣k∣,
which does not depend on n, therefore the AR(1) process is weakly stationary with
mX=0,rX(k)=σ02a∣k∣.
(The sketch shows a two-sided stem plot, symmetric in k, with maximum σ02 at k=0 and geometrically decaying stems.)
Proof.rX(n+1,n)=E(Xn+1Xn)=E((aXn+Wn)Xn)=aE(Xn2)+E(WnXn)=σ02a,rX(n+2,n)=E(Xn+2Xn)=E((aXn+1+Wn+1)Xn)=aE(Xn+1Xn)+E(Wn+1Xn)=σ02a2,
(the last term vanishes since Wn+1 is independent of Xn) and proceeding iteratively
rX(n+k,n)=σ02ak.
Similarly it can be proved that rX(n−k,n)=σ02ak. The result rX(n+k,n)=σ02a∣k∣ follows. □
Gaussian random walk.Xn+1=Xn+Wn, X0=0, i.e. Xn=∑k=0n−1Wk=u(n−1)∗Wn. mX(n)=0, MX(n)=nσ2, rX(n+k,n)=nσ2 (k≥0). Not weakly stationary (power grows with n).
Constant variance iff (∗): 1−a2σ2=σ02. Then weakly stationary with mX=0, rX(k)=σ02a∣k∣.
Filtering.Yn=∑kh(n−k)Xk keeps second order and Gaussian properties (under stability).
Typical mistakes. Calling the random walk stationary; forgetting E(XnWn)=0 needs independence of Wn from the past; dropping the σ2 in the MA(1) side terms; applying rX(k)=σ02a∣k∣ without condition (∗); using ak instead of a∣k∣ for negative lags.