Birth-Death Processes Birth-Death Processes: Transient Solution Poisson Process: State Distribution Poisson Process: Inter-arrival Times Dr Conor McArdle EE414 - Birth-Death Processes 1/17
Birth-Death Processes Birth-Death Processes are Markov chains where transitions are allowed only between neighbouring states of the process. They may be discrete- or continuous-time. Our primary interest is in the continuous-time case. Birth-Death processes are used to simplify the analysis of systems that see random arrivals and departures of customers (packets, requests, or calls etc.) over time. We will develop results that are useful for performance evaluation of servers (or transmission lines) with associated input queues. The results also apply to circuit switches with limited numbers of outgoing channels. We start in this section by seeking the transient solution to the Birth-Death system. Recall that the general transient solution π ( t ) of a continuous-time Markov chain is given implicitly by π ( t ) = π ( t ) Q ˙ where Q is the matrix of state transition-rates between each pair of states in the process. The Birth-Death assumption imposes a certain structure on Q which gives the solution π ( t ) a simplified form. Dr Conor McArdle EE414 - Birth-Death Processes 2/17
Birth-Death Processes: Transition-rates Consider the state transition-rate diagram of the general Birth-Death process below. ë 0 ë 1 ë k-1 ë k k+1 0 1 2 k-1 k ì 1 ì 2 ì k ì k+1 The states of the process are represented by numbered circles, the number indicating the state. For a birth-death process this number represents the number of individuals in the population, which for our purposes we interpret as the number of packets (or requests or calls) in the system. Arrows represent the possible transitions between states and the labels on the arrows are the state transition-rates between states. Transitions which relate to births (an increase in the population by one) are labeled with the “birth rate” ( λ k = birth rate when process is in state k ). Transitions which relate to deaths (a decrease in the population by one) are labeled with the “death rate” ( µ k = death rate when process is in state k ). Dr Conor McArdle EE414 - Birth-Death Processes 3/17
Birth-Death Processes: Transient Solution Let us construct the matrix of transition rates Q from the Birth-Death state transition-rate diagram. The component q ij of Q is the transition rate from state i to state j ( i � = j ). For j = i + 1 the rate is given by the birth-rate λ i and for j = i − 1 the rate is given by the death-rate µ i . Given the stipulation that transitions are only allowed between neighbouring states, all rates for larger transition steps in the process (e.g. q ij where j = i + 2 ) are zero. The rates at each state i must balance, that is � ∀ j q ij = 0 , so q ii = − � ∀ j,i � = j q ij . − q ii may be interpreted as the total rate at which state i is exited to other states. Forming the matrix Q from the above rates gives: − λ 0 λ 0 0 0 . . . µ 1 − ( λ 1 + µ 1 ) λ 1 0 . . . 0 µ 2 − ( λ 2 + µ 2 ) λ 2 . . . Q = 0 0 µ 3 − ( λ 3 + µ 3 ) . . . . . . . ... . . . . . . . . Dr Conor McArdle EE414 - Birth-Death Processes 4/17
Birth-Death Processes: Transient Solution With this Q matrix, the transient solution equation ˙ π ( t ) = π ( t ) Q , can be written as the set of differential equations: dπ 0 ( t ) = − λ 0 π 0 ( t ) + µ 1 π 1 ( t ) k = 0 (1) dt dπ k ( t ) = λ k − 1 π k − 1 ( t ) − ( λ k + µ k ) π k ( t ) + µ k +1 π k +1 ( t ) k ≥ 1 (2) dt The solution to these equations is not trivial and, for general sets of { λ k } and { µ k } , it is often the case that numerical methods are required to find a solution. However, we will consider an important Birth-Death process, the Poisson process , for which we can easily find an exact (analytic) solution. The Poisson process is used extensively to model the arrival times of packets (or calls) to a system. Dr Conor McArdle EE414 - Birth-Death Processes 5/17
Birth-Death Processes Birth-Death Processes: Transient Solution Poisson Process: State Distribution Poisson Process: Inter-arrival Times Dr Conor McArdle EE414 - Birth-Death Processes 6/17
The Poisson Process Consider a pure birth system where µ k = 0 for all k and λ k = λ for all k . Thus our transition rate matrix Q is: − λ λ 0 0 . . . 0 − λ λ 0 . . . 0 0 − λ λ . . . 0 0 0 − λ . . . . . . . ... . . . . . . . . and the system of equations ˙ π ( t ) = π ( t ) Q is: dπ 0 ( t ) = − λπ 0 ( t ) k = 0 (3) dt dπ k ( t ) = λπ k − 1 ( t ) − λπ k ( t ) k ≥ 1 (4) dt We assume the initial condition (initial state distribution) for the system is: � 1 k = 0 π k (0) = 0 k � = 0 Dr Conor McArdle EE414 - Birth-Death Processes 7/17
The Poisson Process Thus (from the usual differenetial equation solution methods) the solution for π 0 ( t ) is π 0 ( t ) = e − λt . Using this solution in equation (4) for k = 1 gives: dπ 1 ( t ) = λe − λt − λπ 1 ( t ) dt The solution to this differential equation is: π 1 ( t ) = λte − λt Continuing in this manner we have an expression for the transient solution of the pure birth process. π k ( t ) = ( λt ) k k ! e − λt k ≥ 0 , t ≥ 0 (5) This pure-birth process is called the Poisson Process and equation (5) is the pmf of the state probabilities at time t (often called the Poisson distribution ). Dr Conor McArdle EE414 - Birth-Death Processes 8/17
The Poisson Process At some fixed time τ , equation (5) gives the state distribution of the process at that time (a pmf). For some chosen state n , equation (5) gives the probability of being in that state as time progresses from 0 to ∞ (a pdf). ¼ 4 0 1 2 3 Figure: The Family of Curves π k ( t ) as a function of k and λt Dr Conor McArdle EE414 - Birth-Death Processes 9/17
The Poisson Process: Interpretation/Uses The Poisson process is widely used for modelling the arrival process of packets (or calls) to a system. If we assume arrivals of packets to a system are independent events and that each arrival occurs at the same average rate λ , then we have a Poisson process, where the state of the process corresponds to the number of arrivals since time 0 . Thus equation (5) gives a complete probabilistic description of the number of arrivals during a given time period and also a probabilistic description of how long the process stays in any one state, or alternatively, how long we expect between arrivals or until the next arrival. We can note that a Poisson process arises from combining an infinite number of independent stationary (renewal) processes, each generating arrivals (births) at some rate. In the limit, the overall arrival process has a constant arrival rate (birth rate) λ . When we have any large population of such independent processes (e.g. a large number of people making phone calls through a switch), the Poisson process provides a very useful approximation to the overall arrival process. We will now examine the previously mentioned probabilistic descriptions. Dr Conor McArdle EE414 - Birth-Death Processes 10/17
The Poisson Process: Moments Consider the random variable N ( t ) , associated with the Poisson process, describing the number of arrivals (births) in the interval [0 , t ) The pmf of N ( t ) is the state distribution of the Poisson process at time t , that is, the pmf of N ( t ) is p k ( t ) = π k ( t ) = ( λt ) k k ! e − λt k ≥ 0 , t ≥ 0 We would expect that the average number of arrivals in this interval would be λt , given that λ is the arrival rate. So the expected value of N ( t ) should be λt . We can check this: ∞ � E [ N ( t )] = kp k ( t ) k =0 ∞ ∞ ∞ k ( λt ) k ( λt ) k ( λt ) k = e − λt � e − λt � e − λt λt � = = k ! ( k − 1)! k ! k =0 k =1 k =0 Noting that the Taylor series expansion of e x is: e x = 1 + x + x 2 2! + . . . ⇒ E [ N ( t )] = λt Dr Conor McArdle EE414 - Birth-Death Processes 11/17
The Poisson Process: Moments We may also calculate the variance of the number of arrivals in [0 , t ) . We first calculate: ∞ � E [ N ( t ) · ( N ( t ) − 1)] = k ( k − 1) p k ( t ) k =0 ∞ k ( k − 1)( λt ) k � e − λt = k ! k =0 ∞ ( λt ) k − 2 e − λt ( λt ) 2 � = ( k − 2)! k =2 ∞ ( λt ) k � e − λt ( λt ) 2 = k ! k =0 ( λt ) 2 = Using this result and the expression for E [ N ( t )] we can calculate: Var ( N ( t )) = E [ N 2 ( t )] − E 2 [ N ( t )] = E [ N ( t ) · ( N ( t ) − 1)] + E [ N ( t )] − ( E [ N ( t )]) 2 = ( λt ) 2 + λt − ( λt ) 2 ⇒ Var ( N ( t )) = λt Dr Conor McArdle EE414 - Birth-Death Processes 12/17
Birth-Death Processes Birth-Death Processes: Transient Solution Poisson Process: State Distribution Poisson Process: Inter-arrival Times Dr Conor McArdle EE414 - Birth-Death Processes 13/17
Recommend
More recommend