Problem Set 5: N 2 N N 2 N
Problem Set 5: N 2 N N 2 N
Problem Set 5: N 2 N N 2 N
Spring 2016
Problem Set 5
Due Date: 4/6
1. Problem 1
(a)
Var(Yn ) = E[Yn2 ] (E[Yn ])2 = 2n 1
(b) Note that
Yn =
n
Y
Xk = Yn1 Xn ,
n2
k=1
Then,
E[Yn |Y1 , . . . , Yn1 ] = E[Yn1 Xn |Y1 , . . . , Yn1 ]
= Yn1 E[Xn ] (Xn is independent of Y1 , . . . , Yn1 )
n2
= Yn1 ,
When n = 1, E[Y1 ] = E[X1 ] = 1.
(c) From part (b),
n |Y1 , . . . , Yn1 ] =
E[Y
Yn1 ,
n2
1,
n=1
= Y1 E[Y1 ] = Y1 1
n2
E[Z|Y
1 , . . . , Ym ] = E[Z|Y1 , . . . , Ym ]
Pm
= E[Z] + i=1 E[Z E[Z]|Yi ]
P
1
= m+ m
i=1 Cov(Z, Yi )Cov(Yi ) Yi
It can be checked that
Cov(Z, Yi ) = 1, Cov(Yi ) = 2i1
Hence,
Pm (i1)
E[Z|Y
Yi
1 , . . . , Ym ] = m +
i=1 2
Pm (i1)
= m + Y1 1 + i=2 2
(Yi Yi1 )
2. Problem 2
(a) No. Let fS (s) be the density of S. Denote by fX2 |X1 (x2 |x1 ) and fX2 |X1 ,X0 (x2 |x1 , x0 ) the
conditional densities. We choose x0 = 5, x1 = 4, x2 = 1. Then,
fX2 |X1 (x2 |x1 ) = fS (3) > 0
However,
fX2 |X1 ,X0 (x2 |x1 , x0 ) = (x2 3) = 0 6= fX2 |X1 (x2 |x1 )
Hence, X is not a Markov process.
(b) Yes. At each time t, there is a one-to-one mapping between Xt and Nt . Therefore, Xt
and Nt have equivalent information. Since N is Markov, so is X. Furthermore,
pij (s, t) = P (Xt = j|Xs = i)
=
0,
not defined,
When
j, i N
if i N, j 6 N
if
otherwise
j, i N,
j|Ns = i)
= P (Nt Ns = j i)
k (t s)k e(ts)
,
k!
k=
and this does not change after a time shift. (ii) if they do have overlap, the distribution corresponding to the overlap does not change after the time shift. Thus the joint
distribution is invariant to time shift. You can follow the same logic for higher-order
distributions.
(c) No, X is not Markov. For example, think of t = 1 as the present time. Given X1 = 1,
we know there is one customer in the system at time 1. But if we also knew the past
of X, we would know when that customer arrived, so that we would know exactly when
that customer will depart. Therefore, the past tells us more about the future than the
present alone.
(d) The system is empty during [0, 1] if and only if there are no arrivals during [1, 1]. So
P {Xt = 0 for t [0, 1]} = P {N [1, 1] = 0} = exp(2).
(e) The event is equivalent to there being at least customer in the queue at time zero, and a
new customer arriving after time zero before the departure of the last customer arriving
before time zero. Let T be the time of the first arrival after time zero, and let S be the
time of the last arrival before time zero. Then S and T are independent, exponentially
distributed
random variables. Then P {Xt > 0 for t [0, 1]} = P {S + T 1} =
R 1 R 1t 2 (s+t)
e
dsdt = 1 (1 + )e .
0 0
4. Problem 4
(a)
E[B ] = E[B |X2 = 1]P (X2 = 1|X0 = 1) + E[B |X2 = 3]P (X2 = 3|X0 = 1)
+ E[B |X2 = 5]P (X2 = 5|X0 = 1)
= (E[B ] + 2) 0.5 + 2 0.25 + 2 0.25
which implies that E[B ] = 4.
(b)
E[3 ] = E[3 |X2 = 1]P (X2 = 1|X0 = 1) + E[3 |X2 = 3]P (X2 = 3|X0 = 1)
+ E[3 |X2 = 5]P (X2 = 5|X0 = 1)
= (E[3 ] + 2) 0.5 + 2 0.25 + E[3 |X2 = 5] 0.25
E[3 |X2 = 5] = E[3 |X4 = 1, X2 = 5]P (X4 = 1|X2 = 5, X0 = 1)
+ E[3 |X4 = 3, X2 = 5]P (X4 = 3|X2 = 5, X0 = 1)
+ E[3 |X4 = 5, X2 = 5]P (X4 = 5|X2 = 5, X0 = 1)
= (E[3 ] + 4) 0.25 + 4 0.25 + (E[3 |X2 = 5] + 2) 0.5
Hence, it can be solved that E[3 ] = 8.
(c) Let ij be the minimum steps needed from state i to state j, where i, j {1, 3, 5}, i 6= j.
By symmetry of the states arrangement and the transition probability, ij has the same
So Z is a martingale. The process Z does not have independent increments. One way
to prove it is to compute the covariance between two increments. Here is a less tedius
way. Let A = Z1 Z0 and B = Z2 Z1 . Note that B = (1 + A)R, where R =
2
exp((W2 W1 ) 2 ) 1, and that A is independent of R. So E[B 2 |A] = E[R2 ](1 + A)2 ,
so that E[B 2 |A] depends on A. Thus A and B are not independent, so Z does not have
independent increments.
(b) R has independent increments because N has independent increments and the Ds are
i.i.d.. In addition, R0 = 0, so R is a Markov process. Note that for t 0
ER =
=
X
n=0
X
n=o
0.6 0.4 0
P = 0.8 0 0.2
0 0.4 0.6
(b) The equilibrium distribution can be solved from = P , which is = ( 74 , 27 , 17 ).
(c)
a1 = E[ |x0 = 1]
= E[ |x1 = 1]P (x1 = 1|x0 = 1) + E[ |x1 = 2]P (x1 = 2|x0 = 1)
= (1 + a1 ) 0.6 + (1 + a2 ) 0.4
Similarly,
a2 = (1 + a1 ) 0.8 + (1 + a3 ) 0.2
Since a3 = 0, it can be solved that
a1 = 17.5,
a2 = 15
8. Problem 8
(a) The state space is {00, 01, 10, 11}.
(b) During time interval [t, t + h), if there is no packet in stage 1 at time t, a package arrives
with probability 1 eh = h + o(h).
Packet is transferred from stage 1 to stage 2 with probability h1 + o(h).
Packet leaves stage 2 with probability h2 + o(h).
Hence, the transition rate diagram can be described as follows: 00 10, 11 10,
2
1
(c)
0
2 2
Q=
1
1
0
0
0
0
2 2
(d) The equilibrium distribution can be solved from Q = 0. Given that = 1 = 2 =
1, = ( 15 , 51 , 25 , 51 ). Hence, the throughput is
= (00
+ 01
)=
2
5