Professional Documents
Culture Documents
Q1: [4+4]
0 1 2 3
0 1 0 0 0
1 0.1 0.4 0.1 0.4
P=
2 0.2 0.1 0.6 0.1
3 0 0 0 1
(i) Starting in state 2, determine the probability that the Markov chain ends in state 0.
b) Let X n denote the quality of the nth item that produced in a certain factory with Xn 0
meaning “good” and X n 1 meaning “defective”. Suppose that Xn be a Markov chain whose
transition matrix is
0 1
0 0.99 0.01
P
1 0.12 0.88
i) What is the probability that the fourth item is defective given that the first item is defective?
ii) In the long run, what is the probability that an item produced by this system is good?
Q2: [4+4]
(a) The following experiment is performed: An observation is made of a Poisson random variable
N with parameter . Then N independent Bernoulli trials are performed, each with probability
p of success. Let Z be the total number of successes observed in the N trials.
i) Formulate Z as a random sum and thereby determine its mean and variance.
1
(b) Consider a sequence of items from a production process, with each item being graded as good
or defective. Suppose that a good item is followed by another good item with probability and
is followed by a defective item with probability 1 . Similarly, a defective item is followed by
another defective item with probability and is followed by a good item with probability 1 .
Answer each of the following:
i) If the first item is good, what is the probability that the first defective item to appear is the
fifth item?
ii) If the first item is bad, what is the probability that the first good item to appear is the fifth
item?
Q3: [5+4]
(a) Suppose that the weather on any day depends on the weather conditions for the previous 2
days. Suppose also that if it was sunny today but cloudy yesterday, then it will be sunny
tomorrow with probability 0.4; if it was cloudy today but sunny yesterday, then it will be sunny
tomorrow with probability 0.6; if it was sunny today and yesterday, then it will be sunny
tomorrow with probability 0.2; if it was cloudy for the last 2 days, then it will be sunny
tomorrow with probability 0.9. Transform this model into a Markov chain, and then find the
transition probability matrix. Find also the long run fraction of days in which it is sunny.
(b) Suppose that customers arrive at a facility according to a Poisson process having rate 2 .
Let X (t ) be the number of customers that have arrived up to time t . Determine the following:
Q4: [5+4]
(a) If X (t ) represents a size of a population where X (0) 1, using the following differential
equations
dp 0 (t )
0 p 0 (t ) (1)
dt
dp n (t )
n 1p n 1 (t ) n p n (t ), n =1,2,3, ... (2)
dt
Prove that: X (t ) geom (p ), p e t when 0 0 and n n , and then find the mean and
variance of this process.
2
(b) Let X (t ) be a Yule process that is observed at a random time U , where U is uniformly
distributed over [0,1). Show that pr X (U ) k pk / ( k ) for k 1, 2,... , with p 1 e .
Q5: [6]
A pure birth process starting from X (0) 0 has birth parameters 0 1, 1 3, 2 2 and 3 5.
Determine Pn (t ) for n 0, 1, 2.
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
3
Model Answer
Q1: [4+4]
(a)
0 1 2 3
0 1 0 0 0
1 0.1 0.4 0.1 0.4
P=
2 0.2 0.1 0.6 0.1
3 0 0 0 1
(i)
6u1 u 2 1 (1)
u1 4u 2 2 (2)
u1 6
23 and u 2 13
23
Starting in state 2, the probability that the Markov chain ends in state 0 is
u 2 u 20 13
23
v1 1 p11v1 p12v 2
v 2 1 p21v1 p22v 2
4
v1 1 0.4v1 0.1v 2
v 2 1 0.1v1 0.6v 2
6v1 v 2 10 (1)
v1 4v 2 10 (2)
(b)
i)
0.9737 0.0263
P3
0.3152 0.6848
pr X 3 1 X 0 1 p113 0.6848
ii)
In the long run, the probability that an item produced by this system is good is given by:
0.12
b / (a b )
0.01 0.12
12
92.13 % ,
13
a bb a
a b
where lim P bn
a
n
a b a b
5
Q2: [4+4]
(a)
i) Z 1 2 ... +N , N 0
ii) Z Poisson( p )
(b)
i)
Pr X 2 G , X 3 G , X 4 G , X 5 D X1 G
Pr X 5 D , X 4 G , X 3 G , X 2 G X1 G
Pr X 5 D X 4 G Pr X 4 G X 3 G Pr X 3 G X 2 G Pr X 2 G X1 G
pGD pGG
3
(1 ) 3
3 (1 )
ii)
Similarly,
6
Pr X 2 D , X 3 D , X 4 D , X 5 G X1 D
Pr X 5 G , X 4 D , X 3 D , X 2 D X1 D
Pr X 5 G X 4 D Pr X 4 D X 3 D Pr X 3 D X 2 D Pr X 2 D X1 D
pDG p 3
DD
(1 ) 3
3 (1 )
Q3: [5+4]
(a)
(S , S ) (S ,C ) (C , S ) (C ,C )
(S , S ) 0.2 0.8 0 0
(S ,C ) 0 0 0.6 0.4
(C , S ) 0.4 0.6 0 0
(C ,C ) 0 0 0.9 0.1
And 0 1 2 3 1 (4)
9
0 0.1698
53
9 18 18 8
, , ,
53 53 53 53
7
9 18
0 1
53 53
27
= 0.5094
53
(b)
i)
ii)
pr X (3) 6 X (1) 2
pr X (3) X (1) 4 X (1) X (0) 2
indpendent r.vs
pr X (3) X (1) 4
44e 4
4!
64
e 4 0.1953668
6
Q4: [5+4]
(a) dp 0 (t )
0 p 0 (t ) (1)
dt
dp n (t )
n 1p n 1 (t ) n p n (t ), n =1,2,3, ... (2)
dt
1 , n=1
pn (0)
0 , otherwise
8
dp 0 (t )
0 0 (1) 0
dt
p 0 (t ) 0 (3)
dp n (t )
(2) n 1p n 1 (t ) n p n (t )
dt
dp n (t )
n p n (t ) n 1p n 1 (t ), n 1, 2, ...
dt
n n , n 1 (n 1)
dp n (t )
n p n (t ) (n 1) p n 1 (t ), n=1,2, ...
dt
dp (t )
e n t n n p n (t ) (n 1) p n 1 (t )e n t
dt
d
p n (t )e n t (n 1) p n 1 (t )e n t
dt
t t
d p n (x )e n x (n 1) p n 1 (x )e n xdx
0 0
t t
p n (x )e n x (n 1) p n 1 (x )e n xdx
0 0
0
at n 1
p 1 (t ) e t p 1 (0) 0 e t (5)
at n 2
0
9
(5) p 1 (x ) e x
p 2 (t ) e 2 t e xe 2 xdx
t
0
t
p 2 (t ) e 2 t e xdx
0
t
=e (1 e t )1 (6)
Similarly as (5) and (6), we deduce that
p n (t ) e t (1 e t )n 1
p (1- p )n 1 , p e t , n 1, 2, ...
X (t ) geom ( p ), p e t
Mean X (t ) 1/ p e t ,
1 p 1 e t
Variance X (t ) 2 t
p2 e
p n (t ) e t (1 e t )n 1 , n 1
1
pr X (U ) k e u (1 e u )k 1du
0
1
1
u k 1
= (1 e ) . e udu
0
1
1 (1 e u )k
=
k 0
1
= (1 e )k
k
pk
pr X (U ) k = , k 1, 2, ... where p 1 e
k
Q5: [6]
10
p0 (t ) e 0t , (1)
1 1
p1 (t ) 0 e 0t e 1t , (2)
1 0 0 1
and pn (t ) pr X (t ) n X (0) 0
=0 1...n 1 B0,ne 0t ... Bk ,ne k t ... Bn ,ne nt , n 1, (3)
where
n
1
Bk ,n i k , 0 k n,
i 0 i k
n
1
B0,n
i 1 i 0
and
n 1
1
Bn ,n
i 0 i n
at n 0 (1) p0 (t ) e 0t , 0 1
p0 (t ) e t
1
where, B0,2
(1 0 )(2 0 )
= 12 ,
1
B1,2
(0 1 )(2 1 )
= 12
and
1
B2,2
(0 2 )(1 2 )
-1
p2 (t ) 3 12 e t 12 e 3t e 2t
ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
11