Salta al contenuto
Note per Studenti Stochastic Processes - Worked Problems Report

Stochastic Processes - Worked Problems

In questa pagina 8

Background: 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 →, Weakly Stationary Processesa second order process is weakly stationary when its mean is constant and its autocorrelation depends only on the time difference; this note gives the equivalent conditions, consequences, symmetry of the autocorrelation, an example and the Toeplitz structure of covariance matrices.Weakly Stationary Processes →, Basic Discrete-Time Processesfour standard discrete time second order processes built from white Gaussian noise (white noise itself, the Gaussian random walk, the moving average MA(1) and the autoregressive AR(1)) with their mean, autocorrelation and stationarity, followed by the effect of LTI filtering.Basic Discrete-Time Processes →, 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 →. Φ\Phi is the DF of N(0,1)N(0,1) and Z∼N(0,1)Z\sim N(0,1).

Exercise 1: weakly stationary Gaussian process

Let (Xt)t∈R(X_t)_{t\in\mathbb R} be a weakly stationary Gaussian SP with zero mean and autocovariance function KX(τ)=4e−∣τ∣.K_X(\tau)=4e^{-|\tau|}. (a) Compute the density of X3X_3. (b) Compute the joint CF of (X−1,X3,X4)(X_{-1},X_3,X_4). (c) Compute var⁡(X1+X3)\operatorname{var}(X_1+X_3).

(a) Since the SP is Gaussian, X3X_3 is a Gaussian random variable with parameters E(X3)=mX=0,var⁡(X3)=σX2(3)=σX2(0)=KX(0)=4,E(X_3)=m_X=0,\qquad\operatorname{var}(X_3)=\sigma_X^2(3)=\sigma_X^2(0)=K_X(0)=4, where the second equality is because the SP is weakly stationary. Therefore X3∼N(0,4)X_3\sim N(0,4) and the density is fX3(x)=18πexp⁡ ⁣(−12x24).f_{X_3}(x)=\frac1{\sqrt{8\pi}}\exp\!\left(-\frac12\frac{x^2}{4}\right).

(b) For the vector W‾=(X−1,X3,X4)\underline W=(X_{-1},X_3,X_4) the parameters are μ‾W‾=(0,0,0)T\underline\mu_{\underline W}=(0,0,0)^T and (mean zero, so covariance equals correlation) ΣW‾=RW‾=E(W‾W‾T)=(E(X−12)E(X−1X3)E(X−1X4)E(X3X−1)E(X32)E(X3X4)E(X4X−1)E(X4X3)E(X42))=(rX(0)rX(4)rX(5)rX(4)rX(0)rX(1)rX(5)rX(−1)rX(0))=4(1e−4e−5e−41e−1e−5e−11).\Sigma_{\underline W}=R_{\underline W}=E(\underline W\underline W^T)=\begin{pmatrix}E(X_{-1}^2)&E(X_{-1}X_3)&E(X_{-1}X_4)\\E(X_3X_{-1})&E(X_3^2)&E(X_3X_4)\\E(X_4X_{-1})&E(X_4X_3)&E(X_4^2)\end{pmatrix}=\begin{pmatrix}r_X(0)&r_X(4)&r_X(5)\\r_X(4)&r_X(0)&r_X(1)\\r_X(5)&r_X(-1)&r_X(0)\end{pmatrix}=4\begin{pmatrix}1&e^{-4}&e^{-5}\\e^{-4}&1&e^{-1}\\e^{-5}&e^{-1}&1\end{pmatrix}. Warning on the page: this is not Toeplitz, "why?". (The time instants −1,3,4-1,3,4 are not equally spaced, so the entries along a diagonal are not forced to coincide: the Toeplitz structure holds for equally spaced consecutive samples as in Weakly Stationary Processesa second order process is weakly stationary when its mean is constant and its autocorrelation depends only on the time difference; this note gives the equivalent conditions, consequences, symmetry of the autocorrelation, an example and the Toeplitz structure of covariance matrices.Weakly Stationary Processes →.)

In terms of μ‾W‾\underline\mu_{\underline W} and ΣW‾\Sigma_{\underline W} the joint CF is φW‾(ω1,ω2,ω3)=e−12ω‾TΣW‾ω‾=exp⁡ ⁣[−2(ω1,ω2,ω3)(1e−4e−5e−41e−1e−5e−11)(ω1ω2ω3)]\varphi_{\underline W}(\omega_1,\omega_2,\omega_3)=e^{-\frac12\underline\omega^T\Sigma_{\underline W}\underline\omega}=\exp\!\left[-2(\omega_1,\omega_2,\omega_3)\begin{pmatrix}1&e^{-4}&e^{-5}\\e^{-4}&1&e^{-1}\\e^{-5}&e^{-1}&1\end{pmatrix}\begin{pmatrix}\omega_1\\\omega_2\\\omega_3\end{pmatrix}\right] =exp⁡ ⁣[−2(ω12+ω22+ω32)−4e−4ω1ω2−4e−5ω1ω3−4e−1ω2ω3].=\exp\!\left[-2(\omega_1^2+\omega_2^2+\omega_3^2)-4e^{-4}\omega_1\omega_2-4e^{-5}\omega_1\omega_3-4e^{-1}\omega_2\omega_3\right].

(c) Since E(X1)=E(X3)=0E(X_1)=E(X_3)=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).\operatorname{var}(X_1+X_3)=E\big((X_1+X_3)^2\big)=\operatorname{var}(X_1)+\operatorname{var}(X_3)+2E(X_1X_3)=2r_X(0)+2r_X(2)=2\cdot4+2\cdot4e^{-|2|}=8(1+e^{-2}).

Problem 1: sum of uncorrelated stationary processes

Let (Xn)(X_n) and (Yn)(Y_n) be two weakly stationary SPs with mX=mY=0m_X=m_Y=0 and rX(k)=2δ(k)−δ(k−1)−δ(k+1),rY(k)=2δ(k)+δ(k−2)+δ(k+2).r_X(k)=2\delta(k)-\delta(k-1)-\delta(k+1),\qquad r_Y(k)=2\delta(k)+\delta(k-2)+\delta(k+2). It is also known that E(XnYm)=0E(X_nY_m)=0 for all m,nm,n. Define Vn=Xn−YnV_n=X_n-Y_n and check if (Vn)(V_n) is weakly stationary.

Solution. E(Vn)=E(Xn−Yn)=0E(V_n)=E(X_n-Y_n)=0 for all nn, and rV(n+k,n)=E((Xn+k−Yn+k)(Xn−Yn))=E(Xn+kXn)+E(Yn+kYn)=rX(k)+rY(k)r_V(n+k,n)=E\big((X_{n+k}-Y_{n+k})(X_n-Y_n)\big)=E(X_{n+k}X_n)+E(Y_{n+k}Y_n)=r_X(k)+r_Y(k) (the cross terms vanish by E(XnYm)=0E(X_nY_m)=0) =4δ(k)−δ(k−1)+δ(k−2)−δ(k+1)+δ(k+2)≜rV(k).=4\delta(k)-\delta(k-1)+\delta(k-2)-\delta(k+1)+\delta(k+2)\triangleq r_V(k). Yes, (Vn)(V_n) is weakly stationary. (Sketch of rV(k)r_V(k): height 44 at k=0k=0, −1-1 at k=±1k=\pm1, +1+1 at k=±2k=\pm2.)

Extra questions. (i) Find RV(f)R_V(f). (ii) Find c∈Rc\in\mathbb R such that V5−cV4V_5-cV_4 is uncorrelated with V4V_4. (iii) Find the covariance matrix of W‾=(V1,V3,V4)T\underline W=(V_1,V_3,V_4)^T.

(i) RV(f)=∑krV(k)e−j2πfk=4−e−j2πf+e−j2π2f−ej2πf+ej2π2f=4−2cos⁡(2πf)+2cos⁡(4πf).R_V(f)=\sum_kr_V(k)e^{-j2\pi fk}=4-e^{-j2\pi f}+e^{-j2\pi2f}-e^{j2\pi f}+e^{j2\pi2f}=4-2\cos(2\pi f)+2\cos(4\pi f).

(ii) Impose uncorrelation: E((V5−cV4)V4)=E(V5V4)−cE(V42)=rV(1)−c rV(0)=−1−4c=0,E\big((V_5-cV_4)V_4\big)=E(V_5V_4)-cE(V_4^2)=r_V(1)-c\,r_V(0)=-1-4c=0, therefore c=−14c=-\frac14.

(iii) ΣW‾=(EV12EV1V3EV1V4EV3V1EV32EV3V4EV4V1EV4V3EV42)=(rV(0)rV(2)rV(3)rV(2)rV(0)rV(1)rV(3)rV(1)rV(0))=(41014−10−14).\Sigma_{\underline W}=\begin{pmatrix}EV_1^2&EV_1V_3&EV_1V_4\\EV_3V_1&EV_3^2&EV_3V_4\\EV_4V_1&EV_4V_3&EV_4^2\end{pmatrix}=\begin{pmatrix}r_V(0)&r_V(2)&r_V(3)\\r_V(2)&r_V(0)&r_V(1)\\r_V(3)&r_V(1)&r_V(0)\end{pmatrix}=\begin{pmatrix}4&1&0\\1&4&-1\\0&-1&4\end{pmatrix}.

Problem 2: Bernoulli process

Let (Bn)n∈Z(B_n)_{n\in\mathbb Z} be the SP with iid Bernoulli random variables Bn∼b(p)B_n\sim b(p), for some p∈(0,1)p\in(0,1). Compute the parameters of (Bn)(B_n).

Solution. mB(n)=E(Bn)=pfor all n∈Z,m_B(n)=E(B_n)=p\quad\text{for all }n\in\mathbb Z, rB(n+k,n)=E(Bn+kBn)={E(Bn2)=02(1−p)+12p=p(k=0)E(Bn+k)E(Bn)=p2(k≠0)=(p−p2)δ(k)+p2=rB(k),r_B(n+k,n)=E(B_{n+k}B_n)=\begin{cases}E(B_n^2)=0^2(1-p)+1^2p=p&(k=0)\\E(B_{n+k})E(B_n)=p^2&(k\ne0)\end{cases}=(p-p^2)\delta(k)+p^2=r_B(k), since it does not depend on nn. The process (Bn)(B_n) is therefore weakly stationary (constant mean pp). Its PSD is RB(f)=∑krB(k)e−j2πfk=(p−p2)+p2δ(f).R_B(f)=\sum_kr_B(k)e^{-j2\pi fk}=(p-p^2)+p^2\delta(f). (The constant p2p^2 in rBr_B transforms to a Dirac delta at f=0f=0.)

Problem 3: difference of Bernoulli variables

Let Yn=Bn−Bn−1Y_n=B_n-B_{n-1}; compute rY(n+k,n)r_Y(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))r_Y(n+k,n)=E(Y_{n+k}Y_n)=E\big((B_{n+k}-B_{n+k-1})(B_n-B_{n-1})\big)=r_B(k)-r_B(k+1)-r_B(k-1)+r_B(k)=(p-p^2)\big(2\delta(k)-\delta(k-1)-\delta(k+1)\big) (the constant parts p2p^2 cancel).

Extra question. var⁡(Y1+Y2)=var⁡(B1−B0+B2−B1)=var⁡(B2−B0)=2p(1−p)\operatorname{var}(Y_1+Y_2)=\operatorname{var}(B_1-B_0+B_2-B_1)=\operatorname{var}(B_2-B_0)=2p(1-p).

Problem 4: MA(1) with b=−2b=-2

Consider the MA(1) process Yn=Wn−2Wn−1Y_n=W_n-2W_{n-1}, where Wn∼WGN(σ2)W_n\sim\mathrm{WGN}(\sigma^2) (so rW(k)=σ2δ(k)r_W(k)=\sigma^2\delta(k)). Compute the covariance function rY(n+k,n)r_Y(n+k,n) and P(Y1≥Y3+1)P(Y_1\ge Y_3+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)r_Y(n+k,n)=E\big((W_{n+k}-2W_{n+k-1})(W_n-2W_{n-1})\big)=r_W(k)-2r_W(k+1)-2r_W(k-1)+4r_W(k) =5rW(k)−2rW(k+1)−2rW(k−1)=σ2(5δ(k)−2δ(k+1)−2δ(k−1)),=5r_W(k)-2r_W(k+1)-2r_W(k-1)=\sigma^2\big(5\delta(k)-2\delta(k+1)-2\delta(k-1)\big), which does not depend on nn (sketch: height 55 at k=0k=0, −2-2 at k=±1k=\pm1, in units of σ2\sigma^2).

For the probability: P(Y1≥Y3+1)=P(Y1−Y3≥1)P(Y_1\ge Y_3+1)=P(Y_1-Y_3\ge1). Now Y1−Y3Y_1-Y_3 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σ2E(Y_1-Y_3)=0,\qquad\operatorname{var}(Y_1-Y_3)=\operatorname{var}(Y_1)+\operatorname{var}(Y_3)=2r_Y(0)=2\cdot5\sigma^2=10\sigma^2 (Y1Y_1 and Y3Y_3 are uncorrelated since rY(2)=0r_Y(2)=0). Therefore P(Y1−Y3≥1)=P ⁣(Y1−Y310 σ≥110 σ)=1−Φ ⁣(110 σ).P(Y_1-Y_3\ge1)=P\!\left(\frac{Y_1-Y_3}{\sqrt{10}\,\sigma}\ge\frac1{\sqrt{10}\,\sigma}\right)=1-\Phi\!\left(\frac1{\sqrt{10}\,\sigma}\right).

Problem 5: a non-stationary continuous process

Let (Xt)t∈R(X_t)_{t\in\mathbb R} be a continuous SP with Xt=t2+At+B,X_t=t^2+At+B, where A,BA,B are iid Gaussians A,B∼N(0,σ2)A,B\sim N(0,\sigma^2). Compute the mean function, the correlation function, the covariance function, the density of X2X_2, and mean and variance of Y≜∫01Xt dtY\triangleq\int_0^1X_t\,dt.

Solution. mX(t)=E(t2+At+B)=t2(depends on t!),m_X(t)=E(t^2+At+B)=t^2\qquad\text{(depends on }t\text{!)}, 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,r_X(t+\tau,t)=E\Big(\big((t+\tau)^2+A(t+\tau)+B\big)\big(t^2+At+B\big)\Big)=E\big((t+\tau)^2t^2+A^2(t+\tau)t+B^2\big)=(t+\tau)^2t^2+\sigma^2(t+\tau)t+\sigma^2, which depends on tt: not weakly stationary (the cross terms vanish since A,BA,B are independent with zero mean). KX(t+τ,t)=rX(t+τ,t)−mX(t+τ)mX(t)=σ2(t+τ)t+σ2.K_X(t+\tau,t)=r_X(t+\tau,t)-m_X(t+\tau)m_X(t)=\sigma^2(t+\tau)t+\sigma^2 . X2X_2 is Gaussian (a linear combination of Gaussians plus a constant), X2∼N(mX(2),KX(2,2))=N(4,5σ2)X_2\sim N\big(m_X(2),K_X(2,2)\big)=N(4,5\sigma^2).

For YY: E(Y)=E(∫01Xtdt)=∫01t2dt=13E(Y)=E\Big(\int_0^1X_tdt\Big)=\int_0^1t^2dt=\frac13.

Flag (page content as written, with an apparent error). The page continues with "E(Y2)=∫01KX(t,t) dtE(Y^2)=\int_0^1K_X(t,t)\,dt" and a boxed side computation ∫01(t2+1)σ2 dt=43σ2\int_0^1(t^2+1)\sigma^2\,dt=\frac43\sigma^2, and stops there. Using KX(t,t)=σ2(t2+1)K_X(t,t)=\sigma^2(t^2+1) this integral is indeed 43σ2\frac43\sigma^2, but ∫01KX(t,t)dt\int_0^1K_X(t,t)dt is not the variance of YY: for Y=∫01XtdtY=\int_0^1X_tdt the correct formula is the double integral var⁡(Y)=∫01 ⁣ ⁣∫01KX(t,s) dt ds\operatorname{var}(Y)=\int_0^1\!\!\int_0^1K_X(t,s)\,dt\,ds. Checking directly from Xt=t2+At+BX_t=t^2+At+B: Y=13+A2+BY=\frac13+\frac A2+B, so var⁡(Y)=σ24+σ2=54σ2\operatorname{var}(Y)=\frac{\sigma^2}4+\sigma^2=\frac54\sigma^2, which agrees with ∫01 ⁣ ⁣∫01(σ2ts+σ2) dt ds=σ24+σ2\int_0^1\!\!\int_0^1(\sigma^2ts+\sigma^2)\,dt\,ds=\frac{\sigma^2}4+\sigma^2. The value 43σ2\frac43\sigma^2 on the page should therefore not be used as var⁡(Y)\operatorname{var}(Y).

Problem 6: PSD and filtering in discrete time

(Xn)n∈Z(X_n)_{n\in\mathbb Z} is a discrete time weakly stationary SP with PSD RX(f)=2+2cos⁡2πf,f∈[−12,12].R_X(f)=2+2\cos2\pi f,\qquad f\in[-\tfrac12,\tfrac12]. Let (Xn)(X_n) be the input of an LTI system with frequency response H(f)=22ej2πf−1 ej2πf.H(f)=\frac{2}{2e^{j2\pi f}-1}\,e^{j2\pi f}. Find E(Xn2)E(X_n^2), rX(k)r_X(k) and the PSD of the output (Yn)(Y_n).

Solutions.

  • E(Xn2)=rX(0)=∫−1/21/2(2+2cos⁡2πf) dfE(X_n^2)=r_X(0)=\int_{-1/2}^{1/2}(2+2\cos2\pi 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)=2r_X(0)=2).
  • rX(k)=∫−1/21/2RX(f)ej2πfkdfr_X(k)=\int_{-1/2}^{1/2}R_X(f)e^{j2\pi fk}df is correct but "foolish" (page's word): better to match terms. Since RX(f)=∑krX(k)e−j2πfk=2+2cos⁡2πf=2+ej2πf+e−j2πf,R_X(f)=\sum_kr_X(k)e^{-j2\pi fk}=2+2\cos2\pi f=2+e^{j2\pi f}+e^{-j2\pi f}, one reads rX(0)=2r_X(0)=2, rX(1)=rX(−1)=1r_X(1)=r_X(-1)=1, i.e. rX(k)=2δ(k)+δ(k−1)+δ(k+1)r_X(k)=2\delta(k)+\delta(k-1)+\delta(k+1).
  • PSD of the output: RY(f)=∣H(f)∣2RX(f)R_Y(f)=|H(f)|^2R_X(f). The factor ej2πfe^{j2\pi f} in HH has modulus 11, so ∣H(f)∣2=∣22ej2πf−1∣2=4(2ej2πf−1)(2e−j2πf−1)=44−2e−j2πf−2ej2πf+1=45−4cos⁡(2πf).|H(f)|^2=\left|\frac{2}{2e^{j2\pi f}-1}\right|^2=\frac{4}{(2e^{j2\pi f}-1)(2e^{-j2\pi f}-1)}=\frac4{4-2e^{-j2\pi f}-2e^{j2\pi f}+1}=\frac{4}{5-4\cos(2\pi f)} . Hence RY(f)=45−4cos⁡(2πf) (2+2cos⁡2πf)=8 (1+cos⁡2πf)5−4cos⁡2πf.R_Y(f)=\frac4{5-4\cos(2\pi f)}\,(2+2\cos2\pi f)=\frac{8\,(1+\cos2\pi f)}{5-4\cos2\pi f}.

Flag. The page's last lines read RY(f)=4 1+cos⁡(2πf)5−4cos⁡(2πf)R_Y(f)=4\,\frac{1+\cos(2\pi f)}{5-4\cos(2\pi f)}: when 2+2cos⁡2πf2+2\cos2\pi f is rewritten as 2(1+cos⁡2πf)2(1+\cos2\pi f) the factor 22 appears to be lost (a faint "2" is visible on the page next to the numerator). The expression above, 81+cos⁡2πf5−4cos⁡2πf8\frac{1+\cos2\pi f}{5-4\cos2\pi f}, follows from the preceding line of the page; use it.

Problem 7: affine transformation of a Gaussian vector

X‾=(X1X2)∼N ⁣((00),(2111)).\underline X=\begin{pmatrix}X_1\\X_2\end{pmatrix}\sim N\!\left(\begin{pmatrix}0\\0\end{pmatrix},\begin{pmatrix}2&1\\1&1\end{pmatrix}\right). Let Y‾=(Y1,Y2,Y3)T\underline Y=(Y_1,Y_2,Y_3)^T be defined by Y1=X1−X2+1,Y2=X1+1,Y3=X1+X2+1.Y_1=X_1-X_2+1,\qquad Y_2=X_1+1,\qquad Y_3=X_1+X_2+1. (a) Compute μ‾Y‾\underline\mu_{\underline Y}, ΣY‾\Sigma_{\underline Y}. (b) Is Y‾\underline Y a Gaussian vector? Are the components independent? (c) Does Y‾\underline Y admit a CF? A density? (d) Compute P(Y1+Y2≥Y3)P(Y_1+Y_2\ge Y_3).

(a) Y‾=AX‾+b‾\underline Y=A\underline X+\underline b with A=(1−11011),b‾=(111).A=\begin{pmatrix}1&-1\\1&0\\1&1\end{pmatrix},\qquad\underline b=\begin{pmatrix}1\\1\\1\end{pmatrix}. Therefore μ‾Y‾=AE(X‾)+b‾=b‾=(111)(since μ‾X‾=0‾),\underline\mu_{\underline Y}=AE(\underline X)+\underline b=\underline b=\begin{pmatrix}1\\1\\1\end{pmatrix}\quad(\text{since }\underline\mu_{\underline X}=\underline 0), ΣY‾=AΣX‾AT=(1−11011)(2111)(111−101)=(111123135).\Sigma_{\underline Y}=A\Sigma_{\underline X}A^T=\begin{pmatrix}1&-1\\1&0\\1&1\end{pmatrix}\begin{pmatrix}2&1\\1&1\end{pmatrix}\begin{pmatrix}1&1&1\\-1&0&1\end{pmatrix}=\begin{pmatrix}1&1&1\\1&2&3\\1&3&5\end{pmatrix}.

(b) Y‾\underline Y is an affine transformation of a Gaussian vector, therefore it is Gaussian. The components are not independent since ΣY‾\Sigma_{\underline Y} is not diagonal.

(c) Y‾\underline Y admits a CF, like all Gaussian vectors: φY‾(ω‾)=ejμ‾Y‾Tω‾−12ω‾TΣY‾ω‾.\varphi_{\underline Y}(\underline\omega)=e^{j\underline\mu_{\underline Y}^T\underline\omega-\frac12\underline\omega^T\Sigma_{\underline Y}\underline\omega}. Y‾\underline Y does not admit a density since ΣY‾\Sigma_{\underline Y} is singular. (This can be deduced automatically from ΣY‾=AΣX‾AT\Sigma_{\underline Y}=A\Sigma_{\underline X}A^T where the size of ΣX‾\Sigma_{\underline X} is 2×22\times2: a 3×33\times3 matrix built from a 2×22\times2 one has rank at most 22.)

(d) P(Y1+Y2≥Y3)=P(X1−X2+1+X1+1≥X1+X2+1)=P(X1−2X2≥−1).P(Y_1+Y_2\ge Y_3)=P(X_1-X_2+1+X_1+1\ge X_1+X_2+1)=P(X_1-2X_2\ge-1). Let X≜X1−2X2∼N(0,σX2)X\triangleq X_1-2X_2\sim N(0,\sigma_X^2) with σX2=var⁡(X1−2X2)=E(X12)+4E(X22)−4E(X1X2)=2+4−4=2.\sigma_X^2=\operatorname{var}(X_1-2X_2)=E(X_1^2)+4E(X_2^2)-4E(X_1X_2)=2+4-4=2 . So X∼N(0,2)X\sim N(0,2) and P(X≥−1)=P ⁣(X2≥−12)=P ⁣(Z≥−12)=Φ ⁣(22).P(X\ge-1)=P\!\left(\frac X{\sqrt2}\ge-\frac1{\sqrt2}\right)=P\!\left(Z\ge-\frac1{\sqrt2}\right)=\Phi\!\left(\frac{\sqrt2}2\right). Alternatively one can work directly with the components of Y‾\underline Y and show that Y≜Y1+Y2−Y3∼N(1,2)Y\triangleq Y_1+Y_2-Y_3\sim N(1,2).

Flag. The page writes the last value as 1−Φ ⁣(22)1-\Phi\!\left(\frac{\sqrt2}2\right). Since P(Z≥−a)=1−Φ(−a)=Φ(a)P(Z\ge-a)=1-\Phi(-a)=\Phi(a), the correct value is Φ ⁣(22)\Phi\!\left(\frac{\sqrt2}2\right) (about 0.760.76), consistent with Y∼N(1,2)Y\sim N(1,2) and P(Y≥0)P(Y\ge0) being larger than 12\frac12.

Versione ripasso

Gaussian weakly stationary, KX(τ)=4e−∣τ∣K_X(\tau)=4e^{-|\tau|}, zero mean. X3∼N(0,KX(0))=N(0,4)X_3\sim N(0,K_X(0))=N(0,4), f(x)=18πe−x2/8f(x)=\frac1{\sqrt{8\pi}}e^{-x^2/8}. For (X−1,X3,X4)(X_{-1},X_3,X_4): Σ=[rX(ti−tj)]=4(1e−4e−5e−41e−1e−5e−11)\Sigma=[r_X(t_i-t_j)]=4\begin{pmatrix}1&e^{-4}&e^{-5}\\e^{-4}&1&e^{-1}\\e^{-5}&e^{-1}&1\end{pmatrix} (not Toeplitz: times not equally spaced), CF =exp⁡(−12ω‾TΣω‾)=\exp(-\frac12\underline\omega^T\Sigma\underline\omega). var⁡(X1+X3)=2rX(0)+2rX(2)=8(1+e−2)\operatorname{var}(X_1+X_3)=2r_X(0)+2r_X(2)=8(1+e^{-2}).

Method for V=X−YV=X-Y uncorrelated: rV=rX+rYr_V=r_X+r_Y. Example: rV(k)=4δ(k)−δ(k∓1)+δ(k∓2)r_V(k)=4\delta(k)-\delta(k\mp1)+\delta(k\mp2), RV(f)=4−2cos⁡2πf+2cos⁡4πfR_V(f)=4-2\cos2\pi f+2\cos4\pi f; c=rV(1)/rV(0)=−14c=r_V(1)/r_V(0)=-\frac14 makes V5−cV4V_5-cV_4 uncorrelated with V4V_4; Σ(V1,V3,V4)=(41014−10−14)\Sigma_{(V_1,V_3,V_4)}=\begin{pmatrix}4&1&0\\1&4&-1\\0&-1&4\end{pmatrix}.

Bernoulli process. mB=pm_B=p, rB(k)=(p−p2)δ(k)+p2r_B(k)=(p-p^2)\delta(k)+p^2, RB(f)=(p−p2)+p2δ(f)R_B(f)=(p-p^2)+p^2\delta(f). Yn=Bn−Bn−1Y_n=B_n-B_{n-1}: rY(k)=(p−p2)(2δ(k)−δ(k−1)−δ(k+1))r_Y(k)=(p-p^2)(2\delta(k)-\delta(k-1)-\delta(k+1)), var⁡(Y1+Y2)=2p(1−p)\operatorname{var}(Y_1+Y_2)=2p(1-p).

MA(1), Yn=Wn−2Wn−1Y_n=W_n-2W_{n-1}. rY(k)=σ2(5δ(k)−2δ(k+1)−2δ(k−1))r_Y(k)=\sigma^2(5\delta(k)-2\delta(k+1)-2\delta(k-1)). Y1−Y3∼N(0,10σ2)Y_1-Y_3\sim N(0,10\sigma^2), P(Y1≥Y3+1)=1−Φ(110σ)P(Y_1\ge Y_3+1)=1-\Phi\big(\frac1{\sqrt{10}\sigma}\big).

Xt=t2+At+BX_t=t^2+At+B, A,BA,B iid N(0,σ2)N(0,\sigma^2). mX(t)=t2m_X(t)=t^2; rX(t+τ,t)=(t+τ)2t2+σ2(t+τ)t+σ2r_X(t+\tau,t)=(t+\tau)^2t^2+\sigma^2(t+\tau)t+\sigma^2; KX(t+τ,t)=σ2(t+τ)t+σ2K_X(t+\tau,t)=\sigma^2(t+\tau)t+\sigma^2; X2∼N(4,5σ2)X_2\sim N(4,5\sigma^2); not weakly stationary. Y=∫01XtdtY=\int_0^1X_tdt: E(Y)=13E(Y)=\frac13, var⁡(Y)=∬KX(t,s)dtds=54σ2\operatorname{var}(Y)=\iint K_X(t,s)dtds=\frac54\sigma^2 (the page's 43σ2\frac43\sigma^2 uses the single integral of KX(t,t)K_X(t,t): flagged).

Discrete filtering. RX=2+2cos⁡2πfR_X=2+2\cos2\pi f gives rX=2δ(k)+δ(k−1)+δ(k+1)r_X=2\delta(k)+\delta(k-1)+\delta(k+1) (read the coefficients, do not integrate). ∣H∣2=45−4cos⁡2πf|H|^2=\frac4{5-4\cos2\pi f} and RY=∣H∣2RX=8(1+cos⁡2πf)5−4cos⁡2πfR_Y=|H|^2R_X=\frac{8(1+\cos2\pi f)}{5-4\cos2\pi f} (page shows 44 instead of 88: flagged).

Gaussian vector. Y‾=AX‾+b‾\underline Y=A\underline X+\underline b: μ‾Y=Aμ‾X+b‾\underline\mu_Y=A\underline\mu_X+\underline b, ΣY=AΣXAT\Sigma_Y=A\Sigma_XA^T. Example: μ‾Y=(1,1,1)T\underline\mu_Y=(1,1,1)^T, ΣY=(111123135)\Sigma_Y=\begin{pmatrix}1&1&1\\1&2&3\\1&3&5\end{pmatrix}; Gaussian, dependent (non-diagonal Σ\Sigma), CF exists, no density (ΣY\Sigma_Y singular, rank ≤2\le2). P(Y1+Y2≥Y3)=P(X1−2X2≥−1)P(Y_1+Y_2\ge Y_3)=P(X_1-2X_2\ge-1) with X1−2X2∼N(0,2)X_1-2X_2\sim N(0,2), equals Φ(22)\Phi(\frac{\sqrt2}2) (page shows 1−Φ1-\Phi: flagged).

Typical mistakes. Using ∫K(t,t)dt\int K(t,t)dt for the variance of an integral of a process; dropping constant factors when rewriting 2+2cos⁡2+2\cos; sign errors in P(Z≥−a)=Φ(a)P(Z\ge-a)=\Phi(a); assuming a Gaussian vector always has a density; expecting independence from uncorrelated components when Σ\Sigma is not diagonal.

Teoria collegata