Let (Xt)t∈R be a weakly stationary Gaussian SP with zero mean and autocovariance function
KX(τ)=4e−∣τ∣.
(a) Compute the density of X3. (b) Compute the joint CF of (X−1,X3,X4). (c) Compute var(X1+X3).
(a) Since the SP is Gaussian, X3 is a Gaussian random variable with parameters
E(X3)=mX=0,var(X3)=σX2(3)=σX2(0)=KX(0)=4,
where the second equality is because the SP is weakly stationary. Therefore X3∼N(0,4) and the density is
fX3(x)=8π1exp(−214x2).
In terms of μW and ΣW the joint CF is
φW(ω1,ω2,ω3)=e−21ωTΣWω=exp−2(ω1,ω2,ω3)1e−4e−5e−41e−1e−5e−11ω1ω2ω3=exp[−2(ω12+ω22+ω32)−4e−4ω1ω2−4e−5ω1ω3−4e−1ω2ω3].
(c) Since E(X1)=E(X3)=0,
var(X1+X3)=E((X1+X3)2)=var(X1)+var(X3)+2E(X1X3)=2rX(0)+2rX(2)=2⋅4+2⋅4e−∣2∣=8(1+e−2).
Problem 1: sum of uncorrelated stationary processes
Let (Xn) and (Yn) be two weakly stationary SPs with mX=mY=0 and
rX(k)=2δ(k)−δ(k−1)−δ(k+1),rY(k)=2δ(k)+δ(k−2)+δ(k+2).
It is also known that E(XnYm)=0 for all m,n. Define Vn=Xn−Yn and check if (Vn) is weakly stationary.
Solution.E(Vn)=E(Xn−Yn)=0 for all n, and
rV(n+k,n)=E((Xn+k−Yn+k)(Xn−Yn))=E(Xn+kXn)+E(Yn+kYn)=rX(k)+rY(k)
(the cross terms vanish by E(XnYm)=0)
=4δ(k)−δ(k−1)+δ(k−2)−δ(k+1)+δ(k+2)≜rV(k).
Yes, (Vn) is weakly stationary. (Sketch of rV(k): height 4 at k=0, −1 at k=±1, +1 at k=±2.)
Extra questions. (i) Find RV(f). (ii) Find c∈R such that V5−cV4 is uncorrelated with V4. (iii) Find the covariance matrix of W=(V1,V3,V4)T.
Let (Bn)n∈Z be the SP with iid Bernoulli random variables Bn∼b(p), for some p∈(0,1). Compute the parameters of (Bn).
Solution.mB(n)=E(Bn)=pfor all n∈Z,rB(n+k,n)=E(Bn+kBn)={E(Bn2)=02(1−p)+12p=pE(Bn+k)E(Bn)=p2(k=0)(k=0)=(p−p2)δ(k)+p2=rB(k),
since it does not depend on n. The process (Bn) is therefore weakly stationary (constant mean p). Its PSD is
RB(f)=k∑rB(k)e−j2πfk=(p−p2)+p2δ(f).
(The constant p2 in rB transforms to a Dirac delta at f=0.)
Problem 3: difference of Bernoulli variables
Let Yn=Bn−Bn−1; compute rY(n+k,n).
Solution.rY(n+k,n)=E(Yn+kYn)=E((Bn+k−Bn+k−1)(Bn−Bn−1))=rB(k)−rB(k+1)−rB(k−1)+rB(k)=(p−p2)(2δ(k)−δ(k−1)−δ(k+1))
(the constant parts p2 cancel).
Extra question.var(Y1+Y2)=var(B1−B0+B2−B1)=var(B2−B0)=2p(1−p).
Problem 4: MA(1) with b=−2
Consider the MA(1) process Yn=Wn−2Wn−1, where Wn∼WGN(σ2) (so rW(k)=σ2δ(k)). Compute the covariance function rY(n+k,n) and P(Y1≥Y3+1).
Solution.rY(n+k,n)=E((Wn+k−2Wn+k−1)(Wn−2Wn−1))=rW(k)−2rW(k+1)−2rW(k−1)+4rW(k)=5rW(k)−2rW(k+1)−2rW(k−1)=σ2(5δ(k)−2δ(k+1)−2δ(k−1)),
which does not depend on n (sketch: height 5 at k=0, −2 at k=±1, in units of σ2).
For the probability: P(Y1≥Y3+1)=P(Y1−Y3≥1). Now Y1−Y3 is Gaussian, being a linear combination of independent Gaussians, with parameters
E(Y1−Y3)=0,var(Y1−Y3)=var(Y1)+var(Y3)=2rY(0)=2⋅5σ2=10σ2
(Y1 and Y3 are uncorrelated since rY(2)=0). Therefore
P(Y1−Y3≥1)=P(10σY1−Y3≥10σ1)=1−Φ(10σ1).
Problem 5: a non-stationary continuous process
Let (Xt)t∈R be a continuous SP with
Xt=t2+At+B,
where A,B are iid Gaussians A,B∼N(0,σ2). Compute the mean function, the correlation function, the covariance function, the density of X2, and mean and variance of Y≜∫01Xtdt.
Solution.mX(t)=E(t2+At+B)=t2(depends on t!),rX(t+τ,t)=E(((t+τ)2+A(t+τ)+B)(t2+At+B))=E((t+τ)2t2+A2(t+τ)t+B2)=(t+τ)2t2+σ2(t+τ)t+σ2,
which depends on t: not weakly stationary (the cross terms vanish since A,B are independent with zero mean).
KX(t+τ,t)=rX(t+τ,t)−mX(t+τ)mX(t)=σ2(t+τ)t+σ2.X2 is Gaussian (a linear combination of Gaussians plus a constant), X2∼N(mX(2),KX(2,2))=N(4,5σ2).
For Y: E(Y)=E(∫01Xtdt)=∫01t2dt=31.
Flag (page content as written, with an apparent error). The page continues with "E(Y2)=∫01KX(t,t)dt" and a boxed side computation ∫01(t2+1)σ2dt=34σ2, and stops there. Using KX(t,t)=σ2(t2+1) this integral is indeed 34σ2, but ∫01KX(t,t)dt is not the variance of Y: for Y=∫01Xtdt the correct formula is the double integral var(Y)=∫01∫01KX(t,s)dtds. Checking directly from Xt=t2+At+B: Y=31+2A+B, so var(Y)=4σ2+σ2=45σ2, which agrees with ∫01∫01(σ2ts+σ2)dtds=4σ2+σ2. The value 34σ2 on the page should therefore not be used as var(Y).
Problem 6: PSD and filtering in discrete time
(Xn)n∈Z is a discrete time weakly stationary SP with PSD
RX(f)=2+2cos2πf,f∈[−21,21].
Let (Xn) be the input of an LTI system with frequency response
H(f)=2ej2πf−12ej2πf.
Find E(Xn2), rX(k) and the PSD of the output (Yn).
Solutions.
E(Xn2)=rX(0)=∫−1/21/2(2+2cos2πf)df. This is correct but, as the page says, "do not do this, it is too long": read the coefficient directly from the series below (rX(0)=2).
rX(k)=∫−1/21/2RX(f)ej2πfkdf is correct but "foolish" (page's word): better to match terms. Since
RX(f)=k∑rX(k)e−j2πfk=2+2cos2πf=2+ej2πf+e−j2πf,
one reads rX(0)=2, rX(1)=rX(−1)=1, i.e. rX(k)=2δ(k)+δ(k−1)+δ(k+1).
PSD of the output: RY(f)=∣H(f)∣2RX(f). The factor ej2πf in H has modulus 1, so
∣H(f)∣2=2ej2πf−122=(2ej2πf−1)(2e−j2πf−1)4=4−2e−j2πf−2ej2πf+14=5−4cos(2πf)4.
Hence
RY(f)=5−4cos(2πf)4(2+2cos2πf)=5−4cos2πf8(1+cos2πf).
Flag. The page's last lines read RY(f)=45−4cos(2πf)1+cos(2πf): when 2+2cos2πf is rewritten as 2(1+cos2πf) the factor 2 appears to be lost (a faint "2" is visible on the page next to the numerator). The expression above, 85−4cos2πf1+cos2πf, follows from the preceding line of the page; use it.
Problem 7: affine transformation of a Gaussian vector
X=(X1X2)∼N((00),(2111)).
Let Y=(Y1,Y2,Y3)T be defined by
Y1=X1−X2+1,Y2=X1+1,Y3=X1+X2+1.
(a) Compute μY, ΣY. (b) Is Y a Gaussian vector? Are the components independent? (c) Does Y admit a CF? A density? (d) Compute P(Y1+Y2≥Y3).
(a)Y=AX+b with
A=111−101,b=111.
Therefore
μY=AE(X)+b=b=111(since μX=0),ΣY=AΣXAT=111−101(2111)(1−11011)=111123135.
(b)Y is an affine transformation of a Gaussian vector, therefore it is Gaussian. The components are not independent since ΣY is not diagonal.
(c)Y admits a CF, like all Gaussian vectors:
φY(ω)=ejμYTω−21ωTΣYω.Y does not admit a density since ΣY is singular. (This can be deduced automatically from ΣY=AΣXAT where the size of ΣX is 2×2: a 3×3 matrix built from a 2×2 one has rank at most 2.)
(d)P(Y1+Y2≥Y3)=P(X1−X2+1+X1+1≥X1+X2+1)=P(X1−2X2≥−1).
Let X≜X1−2X2∼N(0,σX2) with
σX2=var(X1−2X2)=E(X12)+4E(X22)−4E(X1X2)=2+4−4=2.
So X∼N(0,2) and
P(X≥−1)=P(2X≥−21)=P(Z≥−21)=Φ(22).
Alternatively one can work directly with the components of Y and show that Y≜Y1+Y2−Y3∼N(1,2).
Flag. The page writes the last value as 1−Φ(22). Since P(Z≥−a)=1−Φ(−a)=Φ(a), the correct value is Φ(22) (about 0.76), consistent with Y∼N(1,2) and P(Y≥0) being larger than 21.
Versione ripasso
Gaussian weakly stationary, KX(τ)=4e−∣τ∣, zero mean.X3∼N(0,KX(0))=N(0,4), f(x)=8π1e−x2/8. For (X−1,X3,X4): Σ=[rX(ti−tj)]=41e−4e−5e−41e−1e−5e−11 (not Toeplitz: times not equally spaced), CF =exp(−21ωTΣω). var(X1+X3)=2rX(0)+2rX(2)=8(1+e−2).
Method for V=X−Y uncorrelated:rV=rX+rY. Example: rV(k)=4δ(k)−δ(k∓1)+δ(k∓2), RV(f)=4−2cos2πf+2cos4πf; c=rV(1)/rV(0)=−41 makes V5−cV4 uncorrelated with V4; Σ(V1,V3,V4)=41014−10−14.
Xt=t2+At+B, A,B iid N(0,σ2).mX(t)=t2; rX(t+τ,t)=(t+τ)2t2+σ2(t+τ)t+σ2; KX(t+τ,t)=σ2(t+τ)t+σ2; X2∼N(4,5σ2); not weakly stationary. Y=∫01Xtdt: E(Y)=31, var(Y)=∬KX(t,s)dtds=45σ2 (the page's 34σ2 uses the single integral of KX(t,t): flagged).
Discrete filtering.RX=2+2cos2πf gives rX=2δ(k)+δ(k−1)+δ(k+1) (read the coefficients, do not integrate). ∣H∣2=5−4cos2πf4 and RY=∣H∣2RX=5−4cos2πf8(1+cos2πf) (page shows 4 instead of 8: flagged).
Gaussian vector.Y=AX+b: μY=AμX+b, ΣY=AΣXAT. Example: μY=(1,1,1)T, ΣY=111123135; Gaussian, dependent (non-diagonal Σ), CF exists, no density (ΣY singular, rank ≤2). P(Y1+Y2≥Y3)=P(X1−2X2≥−1) with X1−2X2∼N(0,2), equals Φ(22) (page shows 1−Φ: flagged).
Typical mistakes. Using ∫K(t,t)dt for the variance of an integral of a process; dropping constant factors when rewriting 2+2cos; sign errors in P(Z≥−a)=Φ(a); assuming a Gaussian vector always has a density; expecting independence from uncorrelated components when Σ is not diagonal.