Documente Academic
Documente Profesional
Documente Cultură
Homework #4 solutions
(a) The sample path will decrease geometrically by X0 = 1, X1 = s, X2 = x2 , and so on, as shown in Fig. 1.
(b) The PDF of Xn at a specific n is
1
where RX (t, s) is the autocorrelation function.
Let In be a Bernoulli process where a 1 occurs with probability p and a 0 occurs with probability 1 − p.
Whenever a 1 occurs, it is not erased with probability (1 − α) in the derived process Yn . The probability of a
1 in Yn is therefore (1 − α)p. The counting process Sn0 gives the number of ones in the first n Bernoulli trials
where each trial has probability (1 − α)p of success. Therefore Sn0 is binomial with parameters (n, (1 − α)p)
and has PMF
0 n
P (Sn = x) = ((1 − α)p)x (1 − (1 − α)p)n−x
x
Yn has independent and stationary increments because it is a Bernoulii process (sequence of independent
Bernoulli random variables).
Wn = 2Wn−1 + Xn , W0 = 0
1
Zn = Zn−1 + Xn , Z0 = 0
2
(a) Flip a coin 10 times to obtain a realization of the Bernoulli process. Find the resulting realizations for Wn
and Zn . What trends do the processes exhibit? Is the sample mean meaningful for either of these proceses?
(b) Express Wn and Zn in terms of Xn , Xn−1 , . . . , X1 and then find E(Wn ) and E(Zn ). Do these results
agree with the trends observed in part (a)? (c) Does Wn or Zn have independent increments? Stationary
increments?
2
Next, Zn is figured out similarly.
1
Zn = Zn−1 + Xn
2
1 1
= Zn−2 + Xn−1 + Xn
2 2
1 1 1
= Zn−3 + Xn−2 + Xn−1 + Xn
4 2 2
1 1 1 1
= Zn−4 + Xn−3 + Xn−2 + Xn−1 + Xn
8 2 4 2
n−1
1 1 1
= X1 + · · · + Xn−2 + Xn−1 + Xn
2 4 2
n−1 !
1 1 1
E(Zn ) = + · · · + + + 1 E(X)
2 4 2
1 n
1− 2
= E(X)
1 − 21
X1 + X2 + · · · + Xn
Mn =
n
(a) Find the mean, variance, and covariance of Mn . (b) Does Mn have independent increments? Stationary
increments?
The covariance is
cov(n, k) = E[(Mn − E(X))(Mk − E(X))]
1 1
=E (Sn − nE(X)) (Sk − kE(X))
n k
1
= E [(Sn − E(Sn ))(Sk − E(Sk ))]
nk
1
= CS (n, k)
nk
1
= min(n, k)var(X)
nk
where Sn = X1 + X2 + · · · + Xn is the sum process and CS (n, k) is the autocovariance of Sn .
1 1
(b) An increment of Mn is Mn+1 − Mn = n+1 Xn − n+1 Mn . The increment depends on the value of Mn .
Therefore, increments are not independent or stationary.
3
Let Xn consist of an iid sequence of Poisson random variables with mean α. (a) Find the PMF of the sum
process Sn . (Hint: use the probability generating function.) (b) Find the joint PMF of Sn and Sn+k .
(a) For a sum of random variables, the PGF of the sum is the product of individual PGFs. In this case,
This PGF may be recognized as corresponding to a Poisson distribution with mean nα, i.e.,
(nα)k −nα
P (Sn = k) = e
k!
(b) We know that Sn is Poisson with mean nα. Also, the increment (Sn+k − Sn ) consists of the sum of k iid
Poisson random variables, which has the same distribution as Sk .
(a) Let us find the PDF using the characteristic function because the characteristic function of a sum of
independent random variables is the product of individual characteristic functions.
This characteristic function implies that Mn is Gaussian with zero mean and variance 1/n, ie, the pdf is
r
n −nx2 /2
fMn (x) = e
2π
1 1
Mn = Sn , Mn+k = Sn+k
n n+k
4
The joint pdf is found by differentiating with respect to x and y:
We note that Sn has independent increments and the increment (Sn+k − Sn ) is the sum of k iid N (0, 1)
random variables, so it is N (0, k). Hence the joint pdf can be rewritten as
1
Yn = (Xn + Xn−1 ) , X0 = 0
2
(a) Is Yn a stationary random process if Xn is an iid process? (b) Is Yn a stationary random process if Xn
is a stationary process?
(a) Let us look at the joint PDF of three arbitrary points of Yn at n1 < n2 < n3 :
P (Yn1 = y1 , Yn2 = y2 , Yn3 = y3 )
1 1 1
=P (Xn1 + Xn1 −1 ) = y1 , (Xn2 + Xn2 −1 ) = y2 , (Xn3 + Xn3 −1 ) = y3
2 2 2
1 1 1
=P (X2 + X1 ) = y1 , (Xn2 −n1 +2 + Xn2 −n1 +1 ) = y2 , (Xn3 −n2 +2 + Xn3 −n1 +1 ) = y3
2 2 2
The last step is true if Xn is stationary. Next, let us look at the joint PDF at the three points shifted by an
arbitrary T :
P (Yn1 +T = y1 , Yn2 +T = y2 , Yn3 +T = y3 )
1 1 1
=P (Xn1 +T + Xn1 +T −1 ) = y1 , (Xn2 +T + Xn2 +T −1 ) = y2 , (Xn3 +T + Xn3 +T −1 ) = y3
2 2 2
1 1 1
=P (X2 + X1 ) = y1 , (Xn2 −n1 +2 + Xn2 −n1 +1 ) = y2 , (Xn3 −n2 +2 + Xn3 −n1 +1 ) = y3
2 2 2
Again, the last step is true if Xn is stationary, which includes the case if Xn is an iid process. Since the time
shift T does not effect the joint PDF, Yn is stationary.
(b) The steps in part (a) are all true if Xn is stationary, so Yn is stationary if Xn is stationary.
5
(a) Suppose B0 is the first binary symbol. If n is even,
1
P (Bn = 0, Bn+1 = 0) =
3
1
P (Bn = 0, Bn+1 = 1) =
3
1
P (Bn = 1, Bn+1 = 0) =
3
P (Bn = 1, Bn+1 = 1) = 0
If n is odd, consider that 2 of the 3 codewords end with a 0, and 2 of the 3 codewords start with a 0. Hence
an odd symbol is 0 with probability 2/3, and the following even symbol is 0 with probability 2/3.
22 4
P (Bn = 0, Bn+1 = 0) = =
33 9
21 2
P (Bn = 0, Bn+1 = 1) = =
33 9
12 2
P (Bn = 1, Bn+1 = 0) = =
33 9
11 1
P (Bn = 1, Bn+1 = 1) = =
33 9
To be WSS, Bn must have constant mean and the autocovariance function must be a function only of the
lag (i.e., R(n, n + j) is a function only of j). Apparently, the autocovariance function is not a function only
of the lag, so Bn is not WSS. The process is wide-sense cyclostationary if the mean is constant and the
autocovariance function is constant at integer multiples of some period. In this case, the mean is constant
and the autocovariance function has a period of 2, so Bn is wide-sense cyclostationary.
(c) Bn is cyclostationary with period 2, so the random phase shift is uniform between 0 and 2, intended to
change Bn to a stationary process Bns that is
2 1
P (Bns = 0) = , P (Bns = 1) =
3 3
6
Now the joint PMF for the randomly shifted process is
1 1
P (Bns = 0, Bn+1
s
= 0) = P (Bns = 0, Bn+1
s
= 0|n even) + P (Bns = 0, Bn+1
s
= 0|n odd)
2 2
1 1 1 4 7
= · + · =
2 3 2 9 18
Similarly,
1 1 1 2 5
P (Bns = 0, Bn+1
s
= 1) = · + · =
2 3 2 9 18
5
P (Bns = 1, Bn+1
s
= 0) =
18
1 1 1
P (Bns = 1, Bn+1
s
= 1) = · =
2 9 18
The mean is
2 1 1
E(Bns ) = 0 · +1· =
3 3 3
The autocorrelation function is
P (Bns = 1) = 31 if j = 0
1
R(n, n + j) = P (Bns = 1, Bn+1
s
= 1) = 18 if j = 1
1 1 1
·
3 3 = 9 if j > 1
7
Fig. 1 for Problem 1