Chapter 2

Stationary processes

[20/5%]
Show
LaTeX
Problem 2:1

Let XX, YY, and ZZ be independent random variables with expectation 1 and variance 1. Compute

?
(a)

E[3X−2Y]\mathbb {E}\left[3X-2Y\right],

(b)

E[aX+bY]\mathbb {E}\left[aX+bY\right],

(c)

Var⁡[3X−2Y]\operatorname {Var}\left[3X-2Y\right],

(d)

Var⁡[aX+bY]\operatorname {Var}\left[aX+bY\right],

(e)

Var⁡[aX−bY]\operatorname {Var}\left[aX-bY\right],

(f)

Cov⁡[3X−2Y,X+Y−2Z]\operatorname {Cov}\left[ 3X-2Y, X+Y-2Z \right].

Problem 2:2

What is the correlation coefficient, Corr⁡[X1,X2]\operatorname {Corr}\left[ X_1, X_2 \right], between the random variables X1X_1 and X2X_2 if Var⁡[X1]=5\operatorname {Var}\left[X_1\right]=5, Var⁡[X2]=10\operatorname {Var}\left[X_2\right]=10, and Cov⁡[X1,X2]=−4.5\operatorname {Cov}\left[ X_1, X_2 \right]=-4.5?

?
Problem 2:3

Let e0,e1,…e_0,e_1,\ldots be a sequence of independent, identically distributed random variables with mean mm and variance σ2\sigma^2. Let {Xt,t=1,…}\left\{ X_t, t=1,\ldots \right\} be the stochastic process defined by Xt=1.2et+0.9et−1X_t=1.2e_t+0.9e_{t-1}. Compute the mean mX(t)=E[X(t)]m_X(t)=\mathbb {E}\left[X(t)\right], and the covariance function rX(s,t)=Cov⁡[Xs,Xt]r_X(s,t)=\operatorname {Cov}\left[ X_s, X_t \right]. Show that {Xt}\left\{ X_t\right\} is weakly stationary.

?
Problem 2:4

Let X1,X2,…X_1,X_2,\ldots be a sequence of zero-mean, independent, identically distributed random variables with variance σ2\sigma^2. Define

Y1=X1,Yk=0.5Yk−1+Xk,k≥2. Y_1 = X_1, \qquad Y_k = 0.5Y_{k-1}+X_k, \quad k \geq 2.

Prove that {Yk}\left\{ Y_k\right\} is non-stationary by computing rY(1,2)r_Y(1,2) and rY(2,3)r_Y(2,3). The non-stationarity can be corrected by letting Y1=cX1Y_1=cX_1 for an appropriate choice of the constant cc. Find such a cc.

?
Problem 2:5

Find a physically realistic explanation to the dependence structure at lag τ=9\tau =9 in the figure below, which shows the correlation function of monthly mean temperature in Stockholm (left) and a scatter plot of mean temperatures taken nine months apart (right). The correlation is almost 0 for τ=9\tau =9 despite a strong non-linear dependence.

#| echo: false
#| fig-cap: "Left: Correlation function of monthly mean temperature in Stockholm. Right: Scatter plot of mean temperatures taken nine months apart."
exec(open("figs/figs_recreated/2/004.tex.py").read())
?
Problem 2:6

Let YY and ZZ be two independent random variables with expected values 00 for both and variances σy2\sigma_y^2 and σz2\sigma_z^2. A stochastic process is created from

X(t)=Ysin⁡(t)+Z+5. X(t) = Y\sin (t) + Z + 5.

Is the process weakly stationary?

?
Problem 2:7

Let f1,…,fnf_1,\ldots ,f_n be different (non-random) frequencies, and let A1,…,AnA_1,\ldots ,A_n and ϕ1,…,ϕn\phi_1,\ldots ,\phi_n be mutually independent random variables, with all ϕk\phi_k uniform on [0,2π][0,2\pi ]. Let A0A_0 be a random constant, independent of all other AkA_k and ϕk\phi_k. Consider the process

X(t)=A0+∑k=1nAkcos⁡(2πfkt+ϕk), X(t) = A_0 + \sum _{k=1}^{n} A_k\cos (2\pi f_k t+\phi _k),

and the time-averaged power ET=1T∫0TX(t)2 dtE_T=\frac{1}{T}\int_0^T X(t)^2\, \mathrm{d}t over the interval [0,T][0,T]. Expanding X(t)2X(t)^2 by trigonometric identities gives

ET=1T∫0TX(t)2 dt=1T(TA02+2∑k=1nA0Ak∫0Tcos⁡(2πfkt+ϕk) dt+∑k=1nAk2∫0Tcos⁡2(2πfkt+ϕk) dt+2∑l=1n−1∑k=l+1nAkAl∫0Tcos⁡(2πflt+ϕl)cos⁡(2πfkt+ϕk) dt). E_T = \frac{1}{T}\int _0^T X(t)^2\, \mathrm{d}t = \frac{1}{T}\left(TA_0^2+2\sum _{k=1}^{n}A_0A_k\int _0^T\cos (2\pi f_k t+\phi _k)\, \mathrm{d}t+\sum _{k=1}^{n}A_k^2\int _0^T\cos ^2(2\pi f_k t+\phi _k)\, \mathrm{d}t+2\sum _{l=1}^{n-1}\sum _{k=l+1}^{n}A_kA_l\int _0^T\cos (2\pi f_l t+\phi _l)\cos (2\pi f_k t+\phi _k)\, \mathrm{d}t\right).

It is stated to be "easy to see" that T−1∫0Tcos⁡(2πfkt+ϕk) dt→0T^{-1}\int_0^T\cos (2\pi f_k t+\phi_k)\, \mathrm{d}t \to 0 as T→∞T\to \infty, and also, for fk≠flf_k \neq f_l,

T−1∫0Tcos⁡(2πflt+ϕl)cos⁡(2πfkt+ϕk) dt→0,T−1∫0Tcos⁡2(2πfkt+ϕk) dt→1/2, T^{-1}\int _0^T\cos (2\pi f_l t+\phi _l)\cos (2\pi f_k t+\phi _k)\, \mathrm{d}t \to 0, \qquad T^{-1}\int _0^T\cos ^2(2\pi f_k t+\phi _k)\, \mathrm{d}t \to 1/2,

so that, as T→∞T\to \infty,

ET→A02+∑k=1nAk2/2. E_T \to A_0^2 + \sum _{k=1}^{n}A_k^2/2.

Complete the "easy to see" part of this convergence, i.e., prove the three limit statements above.

?
Problem 2:8

A physicist studies the amount of carbon dioxide, W(t)W(t), at time tt, near a highly trafficked road and models the amount by a stationary process. During one day she gets the measurements w(1),w(2),…,w(50)w(1),w(2),\ldots ,w(50), which she regards as a realization of the stationary stochastic process W(t)W(t). In order to study the dependence between W(t)W(t), W(t+1)W(t+1), and W(t+2)W(t+2) she makes two scatter plots at time lags 1 and 2 of the observed data, that is, she plots the points (w(t),w(t+1))(w(t),w(t+1)) and (w(t),w(t+2))(w(t),w(t+2)); see the figure below.

#| echo: false
#| fig-cap: "Scatter plots of pairs of measurements in Exercise 2:8."
exec(open("figs/figs_recreated/2/001.tex.py").read())

What can you tell from them? She has to choose amongst the following two different stochastic processes:

Option 1:W(t)=e(t)+e(t−1)+13e(t−2)−13e(t−3), \text{Option 1:} \quad W(t) = e(t)+e(t-1)+\frac{1}{3}e(t-2)-\frac{1}{3}e(t-3), Option 2:W(t)=e(t)−e(t−1)+13e(t−2)+13e(t−3), \text{Option 2:} \quad W(t) = e(t)-e(t-1)+\frac{1}{3}e(t-2)+\frac{1}{3}e(t-3),

where e(t)e(t) are zero-mean, independent, identically distributed random variables with variance 1. Which one should she choose?

?
Problem 2:9

Which of the following functions can be the covariance functions to a stationary process and which can not?

?
(a)

r(τ)=sin⁡ττr(\tau ) = \dfrac {\sin \tau }{\tau },

(b)

r(τ)=sin⁡ττ2r(\tau ) = \dfrac {\sin \tau }{\tau^2},

(c)

r(τ)={1,τ=0,2,τ=1,0.5,τ=2,0,otherwise,r(\tau ) = \begin{cases} 1, & \tau =0, \\ 2, & \tau =1, \\ 0.5, & \tau =2, \\ 0, & \text{otherwise}, \end{cases}

(d)

r(τ)=cos⁡τr(\tau ) = \cos \tau,

(e)

r(τ)=e∣τ∣r(\tau ) = e^{\left|\tau \right|}.

Problem 2:10

A digital image consists of pixels, M(x,y)M(x,y), arranged in a large matrix. Each pixel takes a real value, which determines its color. The image captured by a digital camera is often affected by noise if the light is dim. In order to reduce the effect of the noise we replace each pixel value of the image with the average of the original pixel value and the four closest pixel values:

M^(x,y)=M(x,y)+M(x−1,y)+M(x+1,y)+M(x,y−1)+M(x,y+1)5. \widehat{M}(x,y) = \frac{M(x,y)+M(x-1,y)+M(x+1,y)+M(x,y-1)+M(x,y+1)}{5}.

Using statistical terminology, we might say that we estimate the ``true'' pixel value with the average of the outcomes of five (possibly correlated) random variables. Your task is to compute the variance of this estimate. We consider the image as a stochastic process:

M(x,y)=S(x,y)+N(x,y), M(x,y) = S(x,y) + N(x,y),

where S(x,y)S(x,y) is a constant (the ``true'' image) and N(x,y)N(x,y) is correlated noise with covariance Cov⁡[N(x1,y1),N(x2,y2)]=ρδσ2\operatorname {Cov}\left[ N(x_1,y_1), N(x_2,y_2) \right] = \rho^{\delta }\sigma^2, where ρ=0.5\rho =0.5, σ=1\sigma =1, and δ\delta is the ordinary euclidian distance between the pixel (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2). Using this model, compute the variance Var⁡[M^(x,y)]\operatorname {Var}\left[\widehat{M}(x,y)\right].

?
Problem 2:11

Let YY be a random variable such that P(Y=−1)=P(Y=1)=0.5\mathbb {P}\left(Y=-1\right)=\mathbb {P}\left(Y=1\right)=0.5. Let ZZ be a random variable uniformly distributed in the interval [0,2π)[0,2\pi ).

?
(a)

Is X(t)=Ysin⁡(t)X(t)=Y\sin (t), t∈Rt \in \mathbb {R}, a weakly stationary process?

(b)

Is W(t)=sin⁡(t+Z)W(t)=\sin (t+Z), t∈Rt \in \mathbb {R}, a weakly stationary process?

Problem 2:12

A weakly stationary process has expected value mm and covariance function r(0)=3r(0)=3, r(±1)=−1r(\pm 1)=-1 and zero for all other values.

?
(a)

Compute, for N=15N=15, the standard deviation of the estimate X‾=1N∑k=1NXk\overline{X} = \dfrac {1}{N}\sum_{k=1}^{N}X_k.

(b)

If we have the possibility to choose the time between the measure points in a), i.e., X‾=1N∑k=1NXαk\overline{X} = \dfrac {1}{N}\sum_{k=1}^{N}X_{\alpha k}, how should the integer α\alpha be chosen for lowest possible standard deviation?

Problem 2:13

We are interested in a low frequency signal, but unfortunately our bias-free measurements of the signal {X(n)}\left\{ X(n)\right\} are disturbed by noise. We model our recorded signal as a deterministic low frequency component (the one we are interested in) plus a stationary stochastic process (the noise). We have reasons to believe that the covariance function, r(τ)r(\tau ), of the noise can be approximated with

r(τ)={1.2,τ=0,0.5,τ=±1,0,otherwise. r(\tau ) = \begin{cases} 1.2, & \tau =0, \\ 0.5, & \tau =\pm 1, \\ 0, & \text{otherwise}. \end{cases}

In order to suppress the noise, we consider the following two options:

YN(n)=1N(X(n)+X(n−1)+⋯+X(n−N+1))⏟N terms, Y_N(n) = \frac{1}{N}\underbrace{\left(X(n)+X(n-1)+\cdots +X(n-N+1)\right)}_{N \text{ terms}}, ZM(n)=1M(X(n)+X(n−2)+⋯+X(n−2(M−1)))⏟M terms, Z_M(n) = \frac{1}{M}\underbrace{\left(X(n)+X(n-2)+\cdots +X(n-2(M-1))\right)}_{M \text{ terms}},

where {YN(n)}\left\{ Y_N(n)\right\} and {ZM(n)}\left\{ Z_M(n)\right\} are two different approximations of the low frequency signal of our interest.

?
(a)

Why are {YN(n)}\left\{ Y_N(n)\right\} and {ZM(n)}\left\{ Z_M(n)\right\} less affected by noise than our original measurements, {X(n)}\left\{ X(n)\right\}?

(b)

There is a trade-off in selecting NN (or MM). Explain!

(c)

How large must we choose NN in order for the variance of YN(n)Y_N(n) to be less than 0.10.1? How large must we choose MM in order for the variance of ZM(n)Z_M(n) to be less than 0.10.1?

(d)

Compare the values of NN and MM in the previous question. Give an explanation of the difference.

Problem 2:14

A division of the national Swedish Institute for Building Research wants to estimate the average noise level in a specific area. The dependence between measurements, {Yj}\left\{ Y_j\right\}, at different locations is described by Cov⁡[Yi,Yj]=rY(d)=e−d\operatorname {Cov}\left[ Y_i, Y_j \right] = r_Y(d) = e^{-d}, where dd is the distance between the ii:th and the jj:th measurement point. They are restricted to estimate the noise level with the average of the sound level recorded by three microphones. They discuss two different placements, shown in the figure below. Do some computations, and argue in favor of one of the alternatives.

#| echo: false
#| fig-cap: "Two different microphone placements."
exec(open("figs/figs_recreated/2/002.tex.py").read())
?
Problem 2:15

A zero-mean sequence, {Xk}\left\{ X_k\right\}, has covariance function

r(τ)=2−∣τ∣/10τ=0,1,…. r(\tau ) = 2^{-\left|\tau \right|/10} \qquad \tau =0,1,\ldots .

We would like to estimate mm by observing TT consecutive samples of the process. How large must TT be, in order for the standard deviation of the estimate to be less than 0.10.1? You can make appropriate approximations.

?
Problem 2:16

Suppose that {Xk}\left\{ X_k\right\} is a stationary process with unknown mean mm, known variance σ2\sigma^2, and correlation function r(τ)=0.5∣τ∣r(\tau ) = 0.5^{\left|\tau \right|}. The mean mm is estimated with 1N∑1NXk\frac{1}{N}\sum_1^N X_k. Suppose that NN is large and approximate the variance of the estimator. Also, find the number of elements that would have been necessary in order to achieve the same variance, if the elements of {Xk}\left\{ X_k\right\} had been uncorrelated.

?
Problem 2:17

In Example 2.12 of the source text, the mean mm of a stationary sequence {Xt}\left\{ X_t\right\} is estimated by the average m^n=x‾=1n∑1nxk\widehat{m}_n = \overline{x} = \frac{1}{n}\sum_1^n x_k of observations of X1,…,XnX_1,\ldots ,X_n, where the covariance function is r(τ)=σ2θ∣τ∣r(\tau ) = \sigma^2\theta^{\left|\tau \right|} for some 0<θ<10 < \theta < 1 (writing θ=e−α\theta =e^{-\alpha }). For large nn, the asymptotic standard deviation of m^n\widehat{m}_n is found to be

Var⁡[m^n]1/2≈σn(1+θ1−θ)1/2. \operatorname {Var}\left[\widehat{m}_n\right]^{1/2} \approx \frac{\sigma }{\sqrt{n}}\left(\frac{1+\theta }{1-\theta }\right)^{1/2}.

The example states the following general rule of thumb: if one wants to get the same variance of the mean in a sample from a stochastic process with this covariance function as in a sample of independent random variables with the same variance, then one has to increase the number of observations by a factor (K1/τK+1)/(K1/τK−1)(K^{1/\tau_K}+1)/(K^{1/\tau_K}-1), where τK\tau_K is the time lag where the correlation has decreased from one to 1/K1/K. Motivate the rule and show that it is exact if the correlation function is of the form ρ(τ)=θ∣τ∣\rho (\tau ) = \theta^{\left|\tau \right|}.

?
Problem 2:18

The Swedish Meteorological and Hydrological Institute (SMHI) reports daily ozone levels for a number of Swedish cities. We are particularly interested in the measurements during July, which seems like an ``ordinary'' month, with mean 335 and standard deviation 16. We assume that the observations, x1,…,x31x_1,\ldots ,x_{31}, come from a stationary Gaussian process, {Xt}\left\{ X_t\right\}. The covariance function is stated below for a few time lags,

τ:0121530r(τ):256163159−75−9 \begin{array}{c|ccccc} \tau : & 0 & 1 & 2 & 15 & 30 \\ \hline r(\tau ): & 256 & 163 & 159 & -75 & -9 \end{array}

Suppose that we want to estimate the mean value, using only three measurements during July. Which measurements should we choose? Answer the question by computing the variance of

m1=X1+X16+X313andm2=X15+X16+X173. m_1 = \frac{X_1+X_{16}+X_{31}}{3} \qquad \text{and} \qquad m_2 = \frac{X_{15}+X_{16}+X_{17}}{3}.

[Figure omitted -- see figs/figs_original/2/003.png]

?
Problem 2:19

Example 2.11 of the source text considers 40 samples of 25 dependent AR(1)-observations, Xt+1=0.9Xt+etX_{t+1} = 0.9X_t+e_t, where the ete_t are independent normal variables, compared against 40 samples of 25 independent normal observations YtY_t with Var⁡[Yt]=Var⁡[Xt]=1\operatorname {Var}\left[Y_t\right]=\operatorname {Var}\left[X_t\right]=1 and E[Yt]=E[Xt]=0\mathbb {E}\left[Y_t\right]=\mathbb {E}\left[X_t\right]=0. Although the observations within each dependent AR(1) sample are less spread out than those in the independent samples, the observed sample averages are more variable for the AR(1)-process: the calculated standard deviation of the sample average is about 0.680.68 for the dependent samples, versus about 0.990.99 for the independent samples -- i.e., the more spread-out sample actually gives better precision for estimating the mean.

Repeat the experiment with the model Xt+1=−0.9Xt+etX_{t+1} = -0.9X_t+e_t to see how negative correlation affects the estimate.

?
Problem 2:20

Let YY and {Xn,n=1,2,…}\left\{ X_n, n=1,2,\ldots \right\} be independent normal variables and define Zn=Xn+YZ_n = X_n+Y. Is {Zn,n=1,2,…}\left\{ Z_n, n=1,2,\ldots \right\} a linearly ergodic sequence? Compare with the covariance criterion for ergodicity.

?