time between transitions in continous time discrete state Markov process












1












$begingroup$


Problem Statement:



I want to compute the time between transitions in a birth-death model.
As a simple example, consider that individuals are born with rate $lambda$ and they die at rate $sigma n$. The master equation for the number $n$ of individuals is
$$ frac{d}{dt}P_n(t) = lambda P_{n-1}(t) + sigma (n+1) P_{n+1}(t) - (lambda + sigma n)P_n(t). $$



In steady state, the solution is a Poisson distribution:
$$ P_n = frac{(lambda/sigma)^n}{n!}e^{-lambda/sigma}.$$



My target is the time between successive births, deaths, or transitions of any kind. How can I compute this?



Attempt:



First I'll try to get the distribution of waiting times between successive births.
Consider that a birth has just occurred at $t=0$.
Then defining $F_n(t)$ as the probability that there are $n$ individuals and no birth has occurred since $t=0$, one can write the master equation



$$F_n(t+delta t) =sigma (n+1)delta t F_{n+1}(t) + [1-(lambda + sigma n)delta t]F_n(t)$$
The first term represents death occurring in $delta t$. The second term represents nothing occurring in $delta t$.
As $delta t rightarrow 0$,
$$frac{d}{dt}F_n(t) = sigma(n+1)F_{n+1}(t)-(lambda + sigma n)F_n(t)$$



This should be the master equation for the probability distribution I'm looking for.
Introducing a generating function $H(z,t) = sum_{n=0}^infty z^n F_n(t)$ leads to the differential equation
$$ frac{partial H}{partial t} + sigma (z-1)frac{partial H}{partial z} = -lambda H.$$
Using the method of characteristics implies the solution
$$ H(z,t) = [1-e^{sigma t}(1-z)]e^{-frac{lambda}{sigma}e^{sigma t}(1-z)-lambda t}.$$
Crucially, the initial condition is $H(z,0)=sum_{n=0}^{infty} z^n F_n(0) = kappa lambda sum z^n P_{n-1} = kappa lambda z e^{lambda(z-1)sigma}. $ $kappa$ is a normalization factor. This point I don't fully understand.
The initial condition is intended to indicate a birth transition just occurred at $t=0$.



Incorporating the normalization $H(1,0)=1$ sets $kappa = 1/lambda, $ so $H(z,0) = z e^{-lambda(z-1)/sigma}. $



The probability that no birth occurs from any state in time $t$ is then the sum over all possible states $n$: $sum_{n=0}^infty F_n$. The pdf is $f_T(t) = -frac{d}{dt} sum_{n=0}^infty F_n$. Summing every difference equation for $F_n$ gives this quantity as



$$f_T(t) = lambda sum_{n=0}^infty F_n(t).$$



Using the generating function $H(z,t)$, this can be written as
$$ f_T(t) = lambda sum_{n} z^n F_n(t) |_{z=1} = lambda H(1,t) = lambda e^{-lambda t}. $$



So there's the distribution of time between births. It's the same as the distribution of time for one birth, given there were initially no individuals at $t=0$.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:16








  • 1




    $begingroup$
    This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:18








  • 1




    $begingroup$
    Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:43








  • 1




    $begingroup$
    Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:52








  • 1




    $begingroup$
    I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
    $endgroup$
    – Michael
    Dec 30 '18 at 2:18
















1












$begingroup$


Problem Statement:



I want to compute the time between transitions in a birth-death model.
As a simple example, consider that individuals are born with rate $lambda$ and they die at rate $sigma n$. The master equation for the number $n$ of individuals is
$$ frac{d}{dt}P_n(t) = lambda P_{n-1}(t) + sigma (n+1) P_{n+1}(t) - (lambda + sigma n)P_n(t). $$



In steady state, the solution is a Poisson distribution:
$$ P_n = frac{(lambda/sigma)^n}{n!}e^{-lambda/sigma}.$$



My target is the time between successive births, deaths, or transitions of any kind. How can I compute this?



Attempt:



First I'll try to get the distribution of waiting times between successive births.
Consider that a birth has just occurred at $t=0$.
Then defining $F_n(t)$ as the probability that there are $n$ individuals and no birth has occurred since $t=0$, one can write the master equation



$$F_n(t+delta t) =sigma (n+1)delta t F_{n+1}(t) + [1-(lambda + sigma n)delta t]F_n(t)$$
The first term represents death occurring in $delta t$. The second term represents nothing occurring in $delta t$.
As $delta t rightarrow 0$,
$$frac{d}{dt}F_n(t) = sigma(n+1)F_{n+1}(t)-(lambda + sigma n)F_n(t)$$



This should be the master equation for the probability distribution I'm looking for.
Introducing a generating function $H(z,t) = sum_{n=0}^infty z^n F_n(t)$ leads to the differential equation
$$ frac{partial H}{partial t} + sigma (z-1)frac{partial H}{partial z} = -lambda H.$$
Using the method of characteristics implies the solution
$$ H(z,t) = [1-e^{sigma t}(1-z)]e^{-frac{lambda}{sigma}e^{sigma t}(1-z)-lambda t}.$$
Crucially, the initial condition is $H(z,0)=sum_{n=0}^{infty} z^n F_n(0) = kappa lambda sum z^n P_{n-1} = kappa lambda z e^{lambda(z-1)sigma}. $ $kappa$ is a normalization factor. This point I don't fully understand.
The initial condition is intended to indicate a birth transition just occurred at $t=0$.



Incorporating the normalization $H(1,0)=1$ sets $kappa = 1/lambda, $ so $H(z,0) = z e^{-lambda(z-1)/sigma}. $



The probability that no birth occurs from any state in time $t$ is then the sum over all possible states $n$: $sum_{n=0}^infty F_n$. The pdf is $f_T(t) = -frac{d}{dt} sum_{n=0}^infty F_n$. Summing every difference equation for $F_n$ gives this quantity as



$$f_T(t) = lambda sum_{n=0}^infty F_n(t).$$



Using the generating function $H(z,t)$, this can be written as
$$ f_T(t) = lambda sum_{n} z^n F_n(t) |_{z=1} = lambda H(1,t) = lambda e^{-lambda t}. $$



So there's the distribution of time between births. It's the same as the distribution of time for one birth, given there were initially no individuals at $t=0$.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:16








  • 1




    $begingroup$
    This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:18








  • 1




    $begingroup$
    Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:43








  • 1




    $begingroup$
    Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:52








  • 1




    $begingroup$
    I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
    $endgroup$
    – Michael
    Dec 30 '18 at 2:18














1












1








1





$begingroup$


Problem Statement:



I want to compute the time between transitions in a birth-death model.
As a simple example, consider that individuals are born with rate $lambda$ and they die at rate $sigma n$. The master equation for the number $n$ of individuals is
$$ frac{d}{dt}P_n(t) = lambda P_{n-1}(t) + sigma (n+1) P_{n+1}(t) - (lambda + sigma n)P_n(t). $$



In steady state, the solution is a Poisson distribution:
$$ P_n = frac{(lambda/sigma)^n}{n!}e^{-lambda/sigma}.$$



My target is the time between successive births, deaths, or transitions of any kind. How can I compute this?



Attempt:



First I'll try to get the distribution of waiting times between successive births.
Consider that a birth has just occurred at $t=0$.
Then defining $F_n(t)$ as the probability that there are $n$ individuals and no birth has occurred since $t=0$, one can write the master equation



$$F_n(t+delta t) =sigma (n+1)delta t F_{n+1}(t) + [1-(lambda + sigma n)delta t]F_n(t)$$
The first term represents death occurring in $delta t$. The second term represents nothing occurring in $delta t$.
As $delta t rightarrow 0$,
$$frac{d}{dt}F_n(t) = sigma(n+1)F_{n+1}(t)-(lambda + sigma n)F_n(t)$$



This should be the master equation for the probability distribution I'm looking for.
Introducing a generating function $H(z,t) = sum_{n=0}^infty z^n F_n(t)$ leads to the differential equation
$$ frac{partial H}{partial t} + sigma (z-1)frac{partial H}{partial z} = -lambda H.$$
Using the method of characteristics implies the solution
$$ H(z,t) = [1-e^{sigma t}(1-z)]e^{-frac{lambda}{sigma}e^{sigma t}(1-z)-lambda t}.$$
Crucially, the initial condition is $H(z,0)=sum_{n=0}^{infty} z^n F_n(0) = kappa lambda sum z^n P_{n-1} = kappa lambda z e^{lambda(z-1)sigma}. $ $kappa$ is a normalization factor. This point I don't fully understand.
The initial condition is intended to indicate a birth transition just occurred at $t=0$.



Incorporating the normalization $H(1,0)=1$ sets $kappa = 1/lambda, $ so $H(z,0) = z e^{-lambda(z-1)/sigma}. $



The probability that no birth occurs from any state in time $t$ is then the sum over all possible states $n$: $sum_{n=0}^infty F_n$. The pdf is $f_T(t) = -frac{d}{dt} sum_{n=0}^infty F_n$. Summing every difference equation for $F_n$ gives this quantity as



$$f_T(t) = lambda sum_{n=0}^infty F_n(t).$$



Using the generating function $H(z,t)$, this can be written as
$$ f_T(t) = lambda sum_{n} z^n F_n(t) |_{z=1} = lambda H(1,t) = lambda e^{-lambda t}. $$



So there's the distribution of time between births. It's the same as the distribution of time for one birth, given there were initially no individuals at $t=0$.










share|cite|improve this question











$endgroup$




Problem Statement:



I want to compute the time between transitions in a birth-death model.
As a simple example, consider that individuals are born with rate $lambda$ and they die at rate $sigma n$. The master equation for the number $n$ of individuals is
$$ frac{d}{dt}P_n(t) = lambda P_{n-1}(t) + sigma (n+1) P_{n+1}(t) - (lambda + sigma n)P_n(t). $$



In steady state, the solution is a Poisson distribution:
$$ P_n = frac{(lambda/sigma)^n}{n!}e^{-lambda/sigma}.$$



My target is the time between successive births, deaths, or transitions of any kind. How can I compute this?



Attempt:



First I'll try to get the distribution of waiting times between successive births.
Consider that a birth has just occurred at $t=0$.
Then defining $F_n(t)$ as the probability that there are $n$ individuals and no birth has occurred since $t=0$, one can write the master equation



$$F_n(t+delta t) =sigma (n+1)delta t F_{n+1}(t) + [1-(lambda + sigma n)delta t]F_n(t)$$
The first term represents death occurring in $delta t$. The second term represents nothing occurring in $delta t$.
As $delta t rightarrow 0$,
$$frac{d}{dt}F_n(t) = sigma(n+1)F_{n+1}(t)-(lambda + sigma n)F_n(t)$$



This should be the master equation for the probability distribution I'm looking for.
Introducing a generating function $H(z,t) = sum_{n=0}^infty z^n F_n(t)$ leads to the differential equation
$$ frac{partial H}{partial t} + sigma (z-1)frac{partial H}{partial z} = -lambda H.$$
Using the method of characteristics implies the solution
$$ H(z,t) = [1-e^{sigma t}(1-z)]e^{-frac{lambda}{sigma}e^{sigma t}(1-z)-lambda t}.$$
Crucially, the initial condition is $H(z,0)=sum_{n=0}^{infty} z^n F_n(0) = kappa lambda sum z^n P_{n-1} = kappa lambda z e^{lambda(z-1)sigma}. $ $kappa$ is a normalization factor. This point I don't fully understand.
The initial condition is intended to indicate a birth transition just occurred at $t=0$.



Incorporating the normalization $H(1,0)=1$ sets $kappa = 1/lambda, $ so $H(z,0) = z e^{-lambda(z-1)/sigma}. $



The probability that no birth occurs from any state in time $t$ is then the sum over all possible states $n$: $sum_{n=0}^infty F_n$. The pdf is $f_T(t) = -frac{d}{dt} sum_{n=0}^infty F_n$. Summing every difference equation for $F_n$ gives this quantity as



$$f_T(t) = lambda sum_{n=0}^infty F_n(t).$$



Using the generating function $H(z,t)$, this can be written as
$$ f_T(t) = lambda sum_{n} z^n F_n(t) |_{z=1} = lambda H(1,t) = lambda e^{-lambda t}. $$



So there's the distribution of time between births. It's the same as the distribution of time for one birth, given there were initially no individuals at $t=0$.







stochastic-processes markov-process random-walk random






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 30 '18 at 5:21







kevinkayaks

















asked Dec 30 '18 at 1:13









kevinkayakskevinkayaks

1558




1558








  • 1




    $begingroup$
    It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:16








  • 1




    $begingroup$
    This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:18








  • 1




    $begingroup$
    Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:43








  • 1




    $begingroup$
    Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:52








  • 1




    $begingroup$
    I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
    $endgroup$
    – Michael
    Dec 30 '18 at 2:18














  • 1




    $begingroup$
    It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:16








  • 1




    $begingroup$
    This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:18








  • 1




    $begingroup$
    Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:43








  • 1




    $begingroup$
    Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
    $endgroup$
    – Michael
    Dec 30 '18 at 1:52








  • 1




    $begingroup$
    I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
    $endgroup$
    – Michael
    Dec 30 '18 at 2:18








1




1




$begingroup$
It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
$endgroup$
– Michael
Dec 30 '18 at 1:16






$begingroup$
It sounds like if you are in state $nin {1, 2, 3, ...}$ you have an upgoing arrow of rate $lambda$ and downgoing arrow of rate $sigma n$. So the time to remain in that state is exponentially distributed with rate $lambda + sigma n$. The expected time in that state is $1/(lambda + sigma n)$.
$endgroup$
– Michael
Dec 30 '18 at 1:16






1




1




$begingroup$
This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
$endgroup$
– Michael
Dec 30 '18 at 1:18






$begingroup$
This is just the definition of that type of Continuous Time Markov Chain (CTMC). We go from one state to the next according to arrows labeled with transition rates. It is not clear what you want to derive.
$endgroup$
– Michael
Dec 30 '18 at 1:18






1




1




$begingroup$
Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
$endgroup$
– Michael
Dec 30 '18 at 1:43






$begingroup$
Are you asking about the time to get to state $n+1$, given we are in state $n$? Clearly the time to go from 0 to 1 is exponential with rate $lambda$ but the time to go from 1 to 2 is not obvious (since we might transition back to state 0 first). It is certainly not exponential with rate $lambda$.
$endgroup$
– Michael
Dec 30 '18 at 1:43






1




1




$begingroup$
Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
$endgroup$
– Michael
Dec 30 '18 at 1:52






$begingroup$
Let $E[T_i]$ be the average time to get to state 2 give we start in state $i$. Then $$ E[T_2]=0, E[T_0] = 1/lambda + E[T_1], E[T_1] = 1/(lambda + sigma) + frac{sigma}{lambda+sigma}E[T_0] $$ You can solve for $E[T_0]$ to find $E[T_0] neq 1/lambda$.
$endgroup$
– Michael
Dec 30 '18 at 1:52






1




1




$begingroup$
I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
$endgroup$
– Michael
Dec 30 '18 at 2:18




$begingroup$
I understand and agree with your derivation of F_n(t) (except for a minor typo where a term should be multiplied by dt). However I don’t know how it relates to the question of interest. I also think I disagree with your P_n(t) equation, depending on your def of P_n(t) it may need three terms on right hand side.
$endgroup$
– Michael
Dec 30 '18 at 2:18










1 Answer
1






active

oldest

votes


















1












$begingroup$

You are describing an M/M/$infty$ queue with arrival rate $lambda$ and server rate $sigma$.



The arrival process is Poisson with rate $lambda$, so inter-arrival times are iid exponential with rate $lambda$.



The system is reversible, so if we start out in the steady state distribution $P[N(0)=k] =frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma}$ for all nonnegative integers $k$ then the departure process is Poisson with rate $lambda$, so inter-departure times are iid exponential with rate $lambda$.





Edit: For any stable queue we must have the long term arrival rate equals the long term departure rate:



$$ lim_{trightarrowinfty}frac{arrive[0,t]}{t}=lim_{trightarrowinfty}frac{depart[0,t]}{t}$$



where $arrive[0,t]$ is the total number of arrivals during the interval $[0,t]$, and $depart[0,t]$ is the total number of departures during that time. Since the long term arrival rate is $lambda$, the long term departure rate is also $lambda$. Indeed, if not, then the queue would either be creating new jobs, or eating existing jobs.



The fact that inter-departure times are (in steady state) iid exponential is not obvious and comes from the detail equation reversible properties (which hold for every birth-death chain that is stable). It is not true if we do not start in steady state. Assuming initial steady state, your calculations could verify the marginal inter-departure time is exponential. However (assuming initial steady state) it further holds that each inter-departure time is independent of all prior ones.



The inter-event time is more complicated. In fact, even if we start in steady state, the first event is more likely to be an arrival, rather than a departure:



$$ sum_{k=0}^{infty} left(frac{lambda}{lambda + ksigma}right) frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma} > 1/2$$
The inter-event times are not identically distributed. An arrival sees the system in steady state (and then adds 1 to that) while a departure leaves the system in steady state. So the expected time to the next event, given we just had an arrival, is less than the expected time to the next event, given we just had a departure.



The fact that Poisson Arrivals See Time Averages is often called PASTA.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:24












  • $begingroup$
    And what would be expected for the distribution of intervals between any two transitions?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:26






  • 1




    $begingroup$
    I added some to my answer.
    $endgroup$
    – Michael
    Dec 30 '18 at 13:37










  • $begingroup$
    Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
    $endgroup$
    – kevinkayaks
    Dec 31 '18 at 23:46












  • $begingroup$
    Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
    $endgroup$
    – Michael
    Jan 1 at 14:58














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056422%2ftime-between-transitions-in-continous-time-discrete-state-markov-process%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

You are describing an M/M/$infty$ queue with arrival rate $lambda$ and server rate $sigma$.



The arrival process is Poisson with rate $lambda$, so inter-arrival times are iid exponential with rate $lambda$.



The system is reversible, so if we start out in the steady state distribution $P[N(0)=k] =frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma}$ for all nonnegative integers $k$ then the departure process is Poisson with rate $lambda$, so inter-departure times are iid exponential with rate $lambda$.





Edit: For any stable queue we must have the long term arrival rate equals the long term departure rate:



$$ lim_{trightarrowinfty}frac{arrive[0,t]}{t}=lim_{trightarrowinfty}frac{depart[0,t]}{t}$$



where $arrive[0,t]$ is the total number of arrivals during the interval $[0,t]$, and $depart[0,t]$ is the total number of departures during that time. Since the long term arrival rate is $lambda$, the long term departure rate is also $lambda$. Indeed, if not, then the queue would either be creating new jobs, or eating existing jobs.



The fact that inter-departure times are (in steady state) iid exponential is not obvious and comes from the detail equation reversible properties (which hold for every birth-death chain that is stable). It is not true if we do not start in steady state. Assuming initial steady state, your calculations could verify the marginal inter-departure time is exponential. However (assuming initial steady state) it further holds that each inter-departure time is independent of all prior ones.



The inter-event time is more complicated. In fact, even if we start in steady state, the first event is more likely to be an arrival, rather than a departure:



$$ sum_{k=0}^{infty} left(frac{lambda}{lambda + ksigma}right) frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma} > 1/2$$
The inter-event times are not identically distributed. An arrival sees the system in steady state (and then adds 1 to that) while a departure leaves the system in steady state. So the expected time to the next event, given we just had an arrival, is less than the expected time to the next event, given we just had a departure.



The fact that Poisson Arrivals See Time Averages is often called PASTA.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:24












  • $begingroup$
    And what would be expected for the distribution of intervals between any two transitions?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:26






  • 1




    $begingroup$
    I added some to my answer.
    $endgroup$
    – Michael
    Dec 30 '18 at 13:37










  • $begingroup$
    Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
    $endgroup$
    – kevinkayaks
    Dec 31 '18 at 23:46












  • $begingroup$
    Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
    $endgroup$
    – Michael
    Jan 1 at 14:58


















1












$begingroup$

You are describing an M/M/$infty$ queue with arrival rate $lambda$ and server rate $sigma$.



The arrival process is Poisson with rate $lambda$, so inter-arrival times are iid exponential with rate $lambda$.



The system is reversible, so if we start out in the steady state distribution $P[N(0)=k] =frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma}$ for all nonnegative integers $k$ then the departure process is Poisson with rate $lambda$, so inter-departure times are iid exponential with rate $lambda$.





Edit: For any stable queue we must have the long term arrival rate equals the long term departure rate:



$$ lim_{trightarrowinfty}frac{arrive[0,t]}{t}=lim_{trightarrowinfty}frac{depart[0,t]}{t}$$



where $arrive[0,t]$ is the total number of arrivals during the interval $[0,t]$, and $depart[0,t]$ is the total number of departures during that time. Since the long term arrival rate is $lambda$, the long term departure rate is also $lambda$. Indeed, if not, then the queue would either be creating new jobs, or eating existing jobs.



The fact that inter-departure times are (in steady state) iid exponential is not obvious and comes from the detail equation reversible properties (which hold for every birth-death chain that is stable). It is not true if we do not start in steady state. Assuming initial steady state, your calculations could verify the marginal inter-departure time is exponential. However (assuming initial steady state) it further holds that each inter-departure time is independent of all prior ones.



The inter-event time is more complicated. In fact, even if we start in steady state, the first event is more likely to be an arrival, rather than a departure:



$$ sum_{k=0}^{infty} left(frac{lambda}{lambda + ksigma}right) frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma} > 1/2$$
The inter-event times are not identically distributed. An arrival sees the system in steady state (and then adds 1 to that) while a departure leaves the system in steady state. So the expected time to the next event, given we just had an arrival, is less than the expected time to the next event, given we just had a departure.



The fact that Poisson Arrivals See Time Averages is often called PASTA.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:24












  • $begingroup$
    And what would be expected for the distribution of intervals between any two transitions?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:26






  • 1




    $begingroup$
    I added some to my answer.
    $endgroup$
    – Michael
    Dec 30 '18 at 13:37










  • $begingroup$
    Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
    $endgroup$
    – kevinkayaks
    Dec 31 '18 at 23:46












  • $begingroup$
    Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
    $endgroup$
    – Michael
    Jan 1 at 14:58
















1












1








1





$begingroup$

You are describing an M/M/$infty$ queue with arrival rate $lambda$ and server rate $sigma$.



The arrival process is Poisson with rate $lambda$, so inter-arrival times are iid exponential with rate $lambda$.



The system is reversible, so if we start out in the steady state distribution $P[N(0)=k] =frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma}$ for all nonnegative integers $k$ then the departure process is Poisson with rate $lambda$, so inter-departure times are iid exponential with rate $lambda$.





Edit: For any stable queue we must have the long term arrival rate equals the long term departure rate:



$$ lim_{trightarrowinfty}frac{arrive[0,t]}{t}=lim_{trightarrowinfty}frac{depart[0,t]}{t}$$



where $arrive[0,t]$ is the total number of arrivals during the interval $[0,t]$, and $depart[0,t]$ is the total number of departures during that time. Since the long term arrival rate is $lambda$, the long term departure rate is also $lambda$. Indeed, if not, then the queue would either be creating new jobs, or eating existing jobs.



The fact that inter-departure times are (in steady state) iid exponential is not obvious and comes from the detail equation reversible properties (which hold for every birth-death chain that is stable). It is not true if we do not start in steady state. Assuming initial steady state, your calculations could verify the marginal inter-departure time is exponential. However (assuming initial steady state) it further holds that each inter-departure time is independent of all prior ones.



The inter-event time is more complicated. In fact, even if we start in steady state, the first event is more likely to be an arrival, rather than a departure:



$$ sum_{k=0}^{infty} left(frac{lambda}{lambda + ksigma}right) frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma} > 1/2$$
The inter-event times are not identically distributed. An arrival sees the system in steady state (and then adds 1 to that) while a departure leaves the system in steady state. So the expected time to the next event, given we just had an arrival, is less than the expected time to the next event, given we just had a departure.



The fact that Poisson Arrivals See Time Averages is often called PASTA.






share|cite|improve this answer











$endgroup$



You are describing an M/M/$infty$ queue with arrival rate $lambda$ and server rate $sigma$.



The arrival process is Poisson with rate $lambda$, so inter-arrival times are iid exponential with rate $lambda$.



The system is reversible, so if we start out in the steady state distribution $P[N(0)=k] =frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma}$ for all nonnegative integers $k$ then the departure process is Poisson with rate $lambda$, so inter-departure times are iid exponential with rate $lambda$.





Edit: For any stable queue we must have the long term arrival rate equals the long term departure rate:



$$ lim_{trightarrowinfty}frac{arrive[0,t]}{t}=lim_{trightarrowinfty}frac{depart[0,t]}{t}$$



where $arrive[0,t]$ is the total number of arrivals during the interval $[0,t]$, and $depart[0,t]$ is the total number of departures during that time. Since the long term arrival rate is $lambda$, the long term departure rate is also $lambda$. Indeed, if not, then the queue would either be creating new jobs, or eating existing jobs.



The fact that inter-departure times are (in steady state) iid exponential is not obvious and comes from the detail equation reversible properties (which hold for every birth-death chain that is stable). It is not true if we do not start in steady state. Assuming initial steady state, your calculations could verify the marginal inter-departure time is exponential. However (assuming initial steady state) it further holds that each inter-departure time is independent of all prior ones.



The inter-event time is more complicated. In fact, even if we start in steady state, the first event is more likely to be an arrival, rather than a departure:



$$ sum_{k=0}^{infty} left(frac{lambda}{lambda + ksigma}right) frac{(lambda/sigma)^k}{k!}e^{-lambda/sigma} > 1/2$$
The inter-event times are not identically distributed. An arrival sees the system in steady state (and then adds 1 to that) while a departure leaves the system in steady state. So the expected time to the next event, given we just had an arrival, is less than the expected time to the next event, given we just had a departure.



The fact that Poisson Arrivals See Time Averages is often called PASTA.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 30 '18 at 14:59

























answered Dec 30 '18 at 4:17









MichaelMichael

13.4k11429




13.4k11429












  • $begingroup$
    Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:24












  • $begingroup$
    And what would be expected for the distribution of intervals between any two transitions?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:26






  • 1




    $begingroup$
    I added some to my answer.
    $endgroup$
    – Michael
    Dec 30 '18 at 13:37










  • $begingroup$
    Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
    $endgroup$
    – kevinkayaks
    Dec 31 '18 at 23:46












  • $begingroup$
    Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
    $endgroup$
    – Michael
    Jan 1 at 14:58




















  • $begingroup$
    Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:24












  • $begingroup$
    And what would be expected for the distribution of intervals between any two transitions?
    $endgroup$
    – kevinkayaks
    Dec 30 '18 at 5:26






  • 1




    $begingroup$
    I added some to my answer.
    $endgroup$
    – Michael
    Dec 30 '18 at 13:37










  • $begingroup$
    Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
    $endgroup$
    – kevinkayaks
    Dec 31 '18 at 23:46












  • $begingroup$
    Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
    $endgroup$
    – Michael
    Jan 1 at 14:58


















$begingroup$
Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
$endgroup$
– kevinkayaks
Dec 30 '18 at 5:24






$begingroup$
Thanks @Michael, I just replicated my earlier analysis for time between death events and found the interdeparture times, like the interarrival times, were exponential with rate $lambda$. This is confusing to me. Can you comment on the reversible attribute? I expected interdeparture times exponential with rate related to $sigma$. Why is it controlled by $lambda$?
$endgroup$
– kevinkayaks
Dec 30 '18 at 5:24














$begingroup$
And what would be expected for the distribution of intervals between any two transitions?
$endgroup$
– kevinkayaks
Dec 30 '18 at 5:26




$begingroup$
And what would be expected for the distribution of intervals between any two transitions?
$endgroup$
– kevinkayaks
Dec 30 '18 at 5:26




1




1




$begingroup$
I added some to my answer.
$endgroup$
– Michael
Dec 30 '18 at 13:37




$begingroup$
I added some to my answer.
$endgroup$
– Michael
Dec 30 '18 at 13:37












$begingroup$
Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
$endgroup$
– kevinkayaks
Dec 31 '18 at 23:46






$begingroup$
Thanks @Michael -- wish I could upvote twice. The reversible statement makes sense now. Your statement about inter-event times is very helpful. Previously, I derived a distribution and found it had inconsistent attributes. You made me see the problem is that I assumed independence. I think I should read more of a queueing theory perspective on birth-death processes. Do you have a favorite book?
$endgroup$
– kevinkayaks
Dec 31 '18 at 23:46














$begingroup$
Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
$endgroup$
– Michael
Jan 1 at 14:58






$begingroup$
Thanks. I had not thought about "inter-event" times before in this context, and I had an initial misconception before I thought about it more. A free book download is Bertsekas and Gallager, chapter 3 has queueing: web.mit.edu/dimitrib/www/datanets.html
$endgroup$
– Michael
Jan 1 at 14:58




















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056422%2ftime-between-transitions-in-continous-time-discrete-state-markov-process%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents