Docsity

Solved Assignment 5 | Introduction to Stochastic Processes | MATH 597, Assignments of Mathematics

Toggle sidebar
bg1
Math 597/697: Solution 5
1. The transition between the the different states is governed by the tran-
sition matrix
P=
0.1.6.3
.6 0 .2.2
.4.1 0 .5
.5.1.4 0
,(1)
and v0= 1/4, v1= 5, v2= 1/3, v3= 1/5. Hence the generator is
given by
A=
−1
4
1
40
3
20
3
40
3−5 1 1
2
15
1
30 −1
3
1
6
1
10
1
50
2
25 −1
5
.(2)
2. The state space consists of all pairs (m, n) of nonnegative integers.
The time until a given pair of male and female produces an offspring
is an exponential R.V. with parameter λ. If the population at time
consists of mmales and nfemales there are nm possible pairs and
hence we obtain
v(m,n)=λmn , (3)
q(m,n)(m+1,n)=pλmn , q(m,n)(m,n+1) = (1 −p)λmn (4)
P(m,n)(m+1,n)=p , P(m,n)(m,n+1) = (1 −p) (5)
3. (a) The number of computers Xtin operating condition at time tis
either 0,1,2 and the number of computers operating is either 0 if
Xt= 0 or 1 if Xt= 1 or 2 . The rate of failure of the operating
computer is µand the rate of repair is λ. There is only one repair
facility so that at most one computer can be repaired at a time.
We find
v0=λ , v1=λ+µ , v2=µ . (6)
and
P01 = 1 , P10 =µ
λ+µ, P12 =λ
λ+µ, P21 = 1 .(7)
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Solved Assignment 5 | Introduction to Stochastic Processes | MATH 597 and more Assignments Mathematics in PDF only on Docsity!

Math 597/697: Solution 5

  1. The transition between the the different states is governed by the tran-

sition matrix

P =

   

   

and v 0 = 1/4, v 1 = 5, v 2 = 1/3, v 3 = 1/5. Hence the generator is

given by

A =

   

1

4

1

40

3

20

3

40

2

15

1

30

1

3

1

6 1

10

1

50

2

25

1

5

   

  1. The state space consists of all pairs (m, n) of nonnegative integers.

The time until a given pair of male and female produces an offspring

is an exponential R.V. with parameter λ. If the population at time

consists of m males and n females there are nm possible pairs and

hence we obtain

v (m,n)

= λmn , (3)

q (m,n)(m+1,n) = pλmn , q (m,n)(m,n+1) = (1 − p)λmn (4)

P

(m,n)(m+1,n)

= p , P (m,n)(m,n+1)

= (1 − p) (5)

  1. (a) The number of computers X t in operating condition at time t is

either 0, 1 , 2 and the number of computers operating is either 0 if

X

t = 0 or 1 if X t = 1 or 2. The rate of failure of the operating

computer is μ and the rate of repair is λ. There is only one repair

facility so that at most one computer can be repaired at a time.

We find

v 0 = λ , v 1 = λ + μ , v 2 = μ. (6)

and

P

01

= 1 , P

10

μ

λ + μ

, P

12

λ

λ + μ

, P

21

Hence the generator is

A =

−λ λ 0

μ −λ − μ λ

0 μ −μ

.^ (8)

The backward equations are, for j = 0, 1 , 2,

d

dt

P

0 j = −λ(P 0 j

− P

1 j

d

dt

P 1 j = μ(P 0 j − P 1 j ) − λ(P 1 j − P 2 j ) , (10)

d

dt

P

2 j = μ(P 1 j

− P

2 j

and the forward equations are

d

dt

P

j 0 = −λP j 0

  • μP j 1

d

dt

Pj 1 = λPj 0 − (λ + μ)Pj 1 + μPj 2 , (13)

d

dt

P

j 2 = λP j 1 − μP j 2

The stationary distribution is

π j

(λ/μ)

j

1 + (λ/μ) + (λ/μ)

2

It is also a limiting distribution since the state space is finite and

the chain is irreducible. In the long run, the proportion of time

when the system is operating (i.e. in state 1 or 2) is

(λ/μ) + (λ/μ)

2

1 + (λ/μ) + (λ/μ)

2

(b) The difference with (a) is that the two computers can be in op-

eration at the same time and so the rate of failures when X t

is twice the rate of (a).

v 0 = λ , v 1 = λ + μ , v 2 = 2μ. (17)

Then

A =

 

−λ λ 0

μ −λ − μ λ

0 2 μ − 2 μ

  , (18)

For each component the stationary and limiting distribution is for

i = A, B,

π

(i)

0

μ i

λ i

  • μ i

, π

(i)

1

λ i

λ i

  • μ i

By independence the stationary distribution of the two component-

system is π

(A)

i

π

(B)

j

(a) If the components are working in parallel the is operating if at

least of the components is in state 0, hence the desired probability

is

1 − π

(A)

1

π

(B)

1

λ A λ B

(λ A

  • μ A )(λ B
  • μ B

(b) If the components are working in series, both must work for the

system to be operating, hence the desired probability is

π

(A)

0

π

(B)

0

μAμB

(λA + μA)(λB + μB )

  1. Consider a continuous time branching process defined as follows. A

organism lifetime is exponential with parameter λ and upon death,

it leaves k offspring with probability p k , k ≥ 0. The organisms act

independently of each other. We assume that p 1 = 0 so that, at death,

there are no transition from a state into itself. Let X t be the population

at time t. A transition occurs when an organism dies and if there are

n organisms the average time until a death is 1/nλ and so v n = nλ.

When an organism dies it is replaced by 0, 2 , 3 , 4 ,... organisms and

therefore we have

Pnn− 1 = p 0 Pnn+1 = p 2 ,... P nn+k = p k+

Therefore the generator is given by

A =

     

λp 0 −λ λp 2 λp 3

0 2 λp 0 − 2 λ 2 λp 2

     

The backward equations are

d

dt

P 0 j = 0 , (31)

d

dt

P 1 j = λ (p 0 P 0 j + p 2 P 2 j + p 3 P 3 j +... − P 1 j ) , (32)

d

dt

P

nj = nλ (p 0

P

n− 1 j

  • p 2

P

n+1j

  • p 3

P

n+2j

+... − P

nj

and the forward equations are

d

dt

P

j 0 = λp 0

P

j 1

d

dt

Pj 1 = −λPj 1 + 2λp 0 Pj 2 , (36)

d

dt

P

j 2 = λp 2

P

j 1

  • − 2 λP j 2
  • 3λp 0

P

j 3

d

dt

P

j 3 = λp 3

P

j 1

  • 2λp 2

P

j 2 − 3 λP j 3

  • 4λp 0 λP j 3

In case of binary splitting we have if the probability of death without

offspring is p

A =

   

λp −λ λ(1 − p) 0...

0 2 λp − 2 λ 2 λ(1 − p)...

   

As ones sees from the matrix A the Markov chain is not irreducible, 0 is

an absorbing state and all other states are transient. The distribution

π = (1, 0 , 0 , 0 ,.. .) is a stationary state, which describe the situation

where nobody lives. Note that the transition matrix Pij is given by

a random walk, so one might expect that if p < 1 /2 every initial

distribution will converge to π while if p ≥ 1 /2 there will be a positive

probability to escape to infinity.

  1. Consider the M/M/∞ queue with arrival rate λ and service rate μ.

(a) The M/M/∞ queue is a Birth and Death process with λ n = λ

  1. Consider a queuing system with one single server, arrival rate λ and

serving rate μ.

(a) When N customers are in the system, the arriving customers give

up and do no enter the system. So the state space is { 0 , 1 ,... , N },

the generator is

A =

       

−λ λ 0...... 0

μ −λ − μ λ 0... 0

0... 0 μ −λ − μ λ

0...... 0 μ −μ

       

The limiting distribution can be found using the general formula

for the birth and death process with λn = 0 for n ≥ N. One finds

for 0 ≤ j ≤ N

πj =

(λ/μ)

j

∑ N

k=

(λ/μ)

k

(λ/μ)

j (1−(λ/μ))

1 −(λ/μ)

N + λ 6 = μ

1

N +

λ = μ

(b) When n customers are in the system, an arriving customer will

join the system with probability 1/(n + 1). We have μn = μ for

n ≥ 1 and λ n = λ/(n + 1) for 0n ≥ 0. Then

∞ ∑

n=

λn− 1... λ 0

μn... μ 1

∞ ∑

n=

λ

n

n!μ

n

= e

(λ/μ) (55)

and the stationary distribution is Poisson with parameter λ/μ.

  1. Consider a Yule process (pure birth with linear growth) and let Ti be

the time it takes for a population of size i to reach i + 1.

(a) Since it is a pure birth process Ti is exponential with rate iλ.

(b) Let us suppose we have n components with i.i.d exponential life-

time X i

. The R.V. max(X 1

,... , X

n ) is the time it takes for the

n components to fail. Starting with n components, the time until

the first failure is the minimum of n exponential R.V. with pa-

rameter λ which is an exponential R.V. Tn with parameter nλ.

By the memoryless property of the exponential, the time between

the first failure and the second failure is, again, the minimum of

n − 1 exponential R.V. with parameter λ which is is an exponen-

tial R.V. T n− 1 with parameter (n − 1)λ. Hence

max(X 1

,... , X

n

) = T

n

+ T

n− 1

+... + T

1

(c) We have, by (b), and independence

P {T

1

+ T

2

+... T

n < t} = P {max(X 1

,... , X

n ) < t}

= P {X

1 < t}... P {X n < t}

= (1 − e

−λt )

n (57)

(d) Since X t is a pure birth process the Markov chain X t only makes

transition from j to j + 1. So T 1

+... + T

n− 1 is the time necessary

to reach n starting from 1 and P {T 1 +... + Tn− 1 < t} is the

probability that X t ≥ n

P

1 n (t) = P {X t = n |X 0

= P {Xt ≥ n |X 0 = 1} − P {Xt ≥ n + 1 |X 0 = 1}

= P {T

1

+... + T

n− 1 < t} − P {T 1

+... + T

n < t}

= (1 − e

−λt )

n− 1 − (1 − e

−λt )

n

= e

−λt (1 − e

−λt )

n− 1 (58)

Hence P {Xt = n | X 0 = 1} has a geometric distribution with

parameter e

−λt .

(e) By (d) X t conditioned on {X 0 = 1} is a geometric random vari-

able. By definition of a Birth process, the individuals reproduce

independently of each other, and therefore X t conditioned on

{X 0 = m} is the sum of m geometric random variables.

The sum of m geometric R.V. with parameters p is called a neg-

ative binomial R.V with parameters (m, p). A geometric R.V. is

the number of independent trials necessary to obtain one success,

so that a negative binomial R.V is the number of trials necessary

to obtain exactly m successes. The probability distribution of

the negative binomial R.V. is, for k ≥ m, (at least m trials are

necessary)

p(k) =

(

k − 1

m − 1

)

p

m (1 − p)

k−m

. (59)