Abstract
In this work we propose a model for open Markov chains that can be interpreted as a system of non-interacting particles evolving according to the rules of a Markov chain. The number of particles in the system is not constant, because we allow the particles to arrive or leave the state space according to prescribed protocols. We describe this system by looking at the population of particles on every state by establishing the rules of time-evolution of the distribution of particles. We show that it is possible to describe the distribution of particles over the state space through the corresponding moment generating function. This description is given through the dynamics ruling the behavior of such a moment generating function and we prove that the system is able to attain the stationarity under some conditions. We also show that it is possible to describe the dynamics of the two first cumulants of the distribution of particles, which in some way is a simpler technique to obtain useful information of the open Markov chain for practical purposes. Finally we also study the behavior of the time-dependent correlation functions of the number of particles present in the system. We give some simple examples of open chains that either, can be fully described through the moment generating function or partially described through the exact solution of the cumulant dynamics.
1. Introduction
Markov chains are discrete-time models for stochastic evolution, widely used to model systems in physics [1,2], chemistry [2], biology [3,4] as well as social sciences [5,6,7]. Roughly speaking, a Markov chain consists of a sequence of random variables taking values from a (finite or countable) set , called state space. The jump of the random variable from one state to another in one time step occurs with a prescribed probability, and the probabilities of all the possible jumps are collected in a matrix called Markov matrix which is a stochastic matrix. A natural way to interpret a Markov chain comes from physics; we can think of the random variable as the position at time t of given particle, and this particle moves on the discrete space . Thus, the stationary probability vector (provided it exists) is interpreted from a point of view of ensembles: if we have a collection of N non-interacting particles moving according to the rules of the Markov chain, then, the stationary distribution of particles on is if N is large enough. This point of view clearly shows that a Markov chain is a closed system, since there is no inflow of particles to nor outflow of particles from .
In this paper we shall be concerned with the case in which we allow the particles to arrive or leave the state space according to a prescribed protocol. To be precise let us consider a state . On one hand, at every time step we allow a certain number of particles already present in the state j to leave this state to the “outside”. On the other hand we also allow a certain number of particles (from the “outside”) to arrive at the state j. Both, the number of incoming particles and the number of outgoing particles, are modeled as random variables (or sequences of random variables) with a distribution given a priori. Our main goal in this paper is to describe the population of particles on the state space as well as its fluctuations. We are particularly interested in the behavior of both, the space correlations and time correlations for several possible scenarios for the incoming and outgoing protocols.
At this point it is convenient to mention some works related to our model. In the current literature one can found several models for open stochastic processes. Among the earlier results on models of open Markov populations we can found those due to Bartholomew [7] and Gani [8]. Since then, several authors have obtained results in different classes of models for the evolution of open Markov populations. For instance, Guerreiro and Mexia have studied a class of models called stochastic vortices model [9] as an alternative approach to estimate the so-called long run distribution for a bonus malus system [10,11]. Guerreiro and colleges have also studied a class of open of population models subjected to periodical re-classifications [12,13,14]. The case of open Markov chains with Poisson recruitment has been dealt in [15], and remarkable extensions of these models to continuous time has been studied in [16,17,18,19,20,21,22,23]. Open Markov chain schemes fed by a second order stationary and non-stationary processes have also been studied in [24] where the authors consider that the inflow of new population elements is modeled by a time series coming from a second order stationary process, i.e., a stationary process with a deterministic bias. Additionally, open Markov chains with not independent inflow processes has been considered in [25]. All these different models of stochastic open systems have been useful for several important applications. These models have been used to study consumption credit portfolios [26], open automobile portfolios [27,28], hospital planning [19], enrollments and degrees awarded in universities [8], manpower models [20,21,29] as well as traffic flow by means of random networks [30]. Open Markov processes have also been used to understand in general several properties of bonus-malus systems [9,10,11,27]. Particularly Floriani et al. [30] focus their study to the case where the Markov chain has some absorbing states (in which the mass accumulates) and the mass is supplied by either, a constant source or a periodic source. In contrast, in our model the number of incoming particles at every time step is not constant but a sequence of random variables not necessarily independent and identically distributed (i.i.d.). Moreover, instead of modeling the outflow by absorbing states, we define a protocol of outgoing particles, which allows every particle to leave the chain with a state-dependent probability. Another work which is worth mentioning here is the one of Pollard and co-workers [22,31,32]. They consider a class of open Markov process in which the state space is discrete and the time continuous. They assume that the incoming and outgoing fluxes are regulated by means of a set of special states of (which they call “boundary”). One of the main differences of our approach with respect to the one proposed by Pollard is that they suppose that the elements of the boundary has a distribution prescribed a priori (which may be even time-dependent). In contrast, our approach considers every state as a source or sink of particles. In this sense our model can be thought of as a Markov chain in contact with a reservoir of particles. Thus, according to a prescribed protocol the particles go from the reservoir to the chain and vice versa, the particles go from the chain to the reservoir with a prescribed protocol. This way of modeling the source of particle is, in some way, similar to the grand canonical ensemble in thermodynamics, in which a system is in contact with a reservoir allowing particles to be interchanged.
2. A Model for Open Markov Chains
The main idea behind our model for an “open” Markov chain is that we allow the particles to arrive and leave the state space . We have mentioned that the particle can enter the state space according to a protocol which is modeled as a sequence of random variables. Such a sequence of random variables determines the number of particles arriving at certain state every time step. On the other hand, the particle can leave the state space depending on which state they are. The most natural way to model this situation is by defining, for every state, a given probability with which the particle leaves such a state towards the reservoir. This probability must satisfy a compatibility condition, consisting in the fact that a particle in a given state has only two options (i) jump to any other state in or (ii) jump to the reservoir. The sum of all these probabilities should be one, in order for the “jump” to be well defined. Notice that due to the compatibility condition, we have that the protocol of outgoing particles is completely determined by means of a non-negative matrix with a spectral radius strictly less than one. This is because the “missing probability” in (necessary for to be a stochastic matrix) is interpreted as “jump probabilities” towards the outside.
Definition 1
(Open Markov chain). Let be a finite set, whose cardinality is denoted by , and let be an irreducible and aperiodic matrix with spectral radius strictly less than one. Let be a sequence of random vectors taking values in . We say that is an open Markov chain with state space , jump matrix and incoming protocol . Now let be a sequence of random vectors taking values in . Such a sequence is defined as follows. Given the initial random vector with a given distribution, we define recursively as
where is a random vector taking values in , whose components are given by,
The random variables are defined such that the -dimensional vector , with components
has multinomial distribution, i.e., . Additionally we assume that and are independent if and that and are independent if . Here is a set of probability vectors defined as
where is the th component of and is defined as,
We say that is the distribution over the state space at time t with initial condition .
Notice that Equation (1) establishes the evolution of the number of particles. This equation states that the number of particles at time is the number of particles having arrived as the state space (represented by ) plus the number of particles having remained in the state space (which is represented by ). Observe that the random vector can be seen as a sum of independent random vectors representing the quantity of particles departing from state i towards other states. Notice also that the random vector is the “enlarged” version of the vector , because the vector represents the quantity of particles departing from state i to other states and to the outside. It is clear that, due to conservation of particles during the process of redistribution, the vector should have multinomial distribution (its components actually sum up as we can see from the definition above). Hence we have that depends on through the random variable which is the responsible of the redistribution of particles among the internal states.
From the above definition we can appreciate that the quantity of foremost interest is , the distribution of particles on the state space at time t. Our goal is then to provide a way for determining the probability function of and to determine whether or not the process is able to reach a stationary distribution. We will see that is actually a Markov process and the main goal is to determine its properties. Before establishing a result on this direction let us give some examples of open Markov chains.
Example 1.
Let us consider the most simple case in which the system has only one state. In this case the matrix consists of a single number q (a matrix), which should be non-negative and strictly less than one, i.e., . The most simple case for the incoming protocol consists of a sequence of constant random variables all these taking the same value, which we call . This means that the number of particles arriving at every time-step is . Every particle arriving at the unique available state has only two options jump to the outside or remain in its state. The probability of remaining in the state is q and the probability of jumping to the outside is . This simple example for open Markov chain can be illustrated as a graph with only one vertex and three edges as shown in Figure 1. Notice that there are two special edges, one establishing the incoming protocol (labeled by ) and one defining the outgoing protocol (labeled by ).
Figure 1.
One-vertex open chain. The circle represents the unique state available for the particles. The arrows in the graph stand for the “jump” rules allowed for the particles. Notice that the arrows that do not connect two states represent the incoming and outgoing protocols.
Example 2.
A less trivial example is provided by giving a matrix larger than . Let us consider for example the matrix given by
Notice that the above matrix is not stochastic, because some rows does not add to one, but less than one. The latter means that not all the states allow the particles to leave to the outside. As we can see the first row adds to , which means that every particle on the state 1 has a probability to go out to the reservoir. The second row adds to , this means that a given particle on the state 2 has a probability to go out to the outside. Finally, the third row adds to one, meaning that a particle on the state 3 can only jump to the other states 1 or 2 or remains in its current state, but it cannot leave the state space to go to the outside.
Now assume that the incoming protocol is a set of i.i.d. random vectors, i.e., the protocol is time-independent. Then the number of incoming particles at every time-step can be considered as independent realizations of a single random vector, which we denote by . To be more precise, we can chose in particular this random vector as , with and two independent random variables with Bernoulli distribution with parameters and respectively. If, for instance, the parameters of every Bernoulli distribution were given by and , then this would mean that the average number of particles arriving at the vertex 1 is lower than the average number of particles arriving at the vertex 3. Figure 2 shows the graphical representation of this open Markov chain. Then, the number of particles evolves according to the rule
where is the redistribution random vector given in Equation (2). The above vectorial equation can be written coordinate-wise as follows,
We should keep in mind that the random vectors , for , are conditioned to the values of , i.e., the distribution depends on the specific realization of , which is a manifestation of the Markovian hypothesis.
Figure 2.
An example of a three-states open Markov chain.
At this point it is interesting to compare the characteristics of the proposed model for open Markov chains with the continuous-time Markov process introduced in Ref. [22]. At first sight we would expect that the model described here might match with a discrete-time version of the formalism proposed in [22]. However this is not the case in general, which can be seen from the very definitions of both models. The main difference between both approaches is that the model in Ref. [22] considers a state space V with special states members of a boundary B. The role of the boundary is to provide the system with inflow and outflow of particles. In the remaining of the states, elements of V\B, occurs the dynamics of the system. In the approach proposed here, the state space can, in principle, be identified with the latter, i.e., \B. However, we should recall that we admit the that every state of is open, i.e., particles from the outside might arrive at any state of and particles within the system might leave from any state. This means that we should also interpret the boundaryB as the whole state space , but this is impossible since we identified with V\B. This shows that both approaches does not math each other in general, although it would be interesting if they might coincide in particular cases.
3. The Evolution of the Particle Distribution
3.1. Evolution of the Moment Generating Function
In this section we will establish the evolution equation for the process , which, as we have anticipated, is a Markov process. This fact can actually be appreciated in Equation (1), where we have indicated that the number of particles at time is uniquely determined by the number of incoming particles and the redistribution of particles that were present at time t. Clearly the last condition states the Markov property for the process . In order to obtain the stochastic matrix governing the behavior of , let us define as the probability vector associated to , i.e.,
We will refer to as the distribution of particles over the state space or, to simplify, distribution over the state space Let us consider the probability vector at time . Notice that, due the fact that depends only on , which is a consequence of the relation (1), as we have mentioned above, it is clear that
Observe that the last expression is a consequence of the Markov property of the process which was assumed in Equation (1). Notice that Equation (9) establishes the evolution equation for , which can be written as
Now let us call the conditional probability appearing in the above equation, i.e.,
and observe that this quantity can be rewritten as follows
The dependence on in the above expression is implicit in the random vector , since the redistribution of particles depends on the number of particles on every state at time t, which is indeed given by . Thus, the function can be thought as the stochastic matrix corresponding to the process , since the evolution equation for the probability vector is given in terms of K as follows,
In order to solve Equation (13) for it is necessary to make some assumptions on the nature of the random vectors and for all t. First of all, it is natural to assume that and are independent. This assumption actually means that the number of particles incoming to the state space does not have any influence on the redistribution of particles already present in the chain. This implies that the joint probability for the random vectors and can be factorized as the product of its corresponding probability vectors, i.e.,
The above equality allows us to express the kernel as,
Next, we will solve for by using the well-known technique of the moment generating function (m.g.f.). To this end let us introduce some notation. Let be the m.g.f. of , which is defined as
At this point it is important to describe our convention for vectors in . First of all we should emphasize that we interpret the vectors , , , etc., as row vectors (i.e., matrices of size ). Thus, the superscript T means, as usual, matrix transposition implying that the vector is a column vector (a matrix of size ). Thus, within this convention, the product should be understood in the sense of the usual matrix product, which in this case results in a single number.
Analogously, we also define the moment generating functions for and as follows,
Notice that we omitted the superscript t in the m.g.f. for , since two random vectors, say for example and , are independent and have the same distribution, and consequently, share the same moment generating function.
Next, our objective is to provide a recurrence relation for using the evolution Equation (13). Thus, let us consider the m.g.f. for , and note that
where we have used the form of K given in Equation (14). We can appreciate that the summation over together with the summation over the restriction results in a double sum over the “indices” and without restrictions, i.e., we obtain two sums over independent indices. This observation allows us to write
In the above Equation (19) we can observe that the summation over and results in the m.g.f. for and respectively. This implies that
In Appendix A we show that can be written as
where the function is defined as follows. If denotes the ith component of we have that
Observe that Equation (21) shows explicitly the dependence on of the m.g.f. for . Then, if we substitute the relation (21) into (20), we obtain,
We can easily see that the summation over results in the m.g.f. for . Thus,
Equation (24) is a recurrence relation governing the time-dependence of the m.g.f. for . This equation can be formally solved to obtain
where stand for the m.g.f for (the initial distribution on the state space). We should emphasize that the superscript notation stands for the rth iteration of the function , i.e., , r times.
Now, let us assume that the process is a sequence of identically distributed random vectors (not necessarily independent). In this case, the m.g.f. for is the same for all t, consequently the formal solution for can be expressed as,
This result, together with the fact that as in an open neighborhood around (see Appendix A for a proof), implies that, for the case in which the random vectors are identically distributed for all t, the process admits an stationary solution. This is because the m.g.f. attains a limit when . Such a limit can be written as,
whenever the infinite product exist. If this is the case, the m.g.f. is additionally a solution for the evolution Equation (24). This means that corresponds to a m.g.f. of a distribution over the state space, which is invariant under the dynamics (13).
Example 3.
Let us consider the open chain consisting of only one vertex given in Example 1. In this case we will assume that the incoming protocol consists of a sequence of i.i.d. random variables having a Bernoulli distribution with parameter p. Since all have identical distribution, then we have only one m.g.f. characterizing them. This function is given by,
On the other hand, due to the fact that is a matrix, we have that is a real-valued function depending on one variable, α, given by,
where we denoted by q the unique element of . In this case, the rth iteration of H can be exactly calculated. A straightforward calculation shows that,
Notice that as , as we have anticipated above. Hence, in this case, the stationary m.g.f. is given by
The above result shows that the stationary distribution can be interpreted as the convolution of an infinite sequence of Bernoulli distributions with parameters . This particularly means that the random variable , when it has reached the stationarity can be written as a sum of Bernoulli random variables (with parameter ),
The above result allows us to compute, for example, the expected value and the variance,
We should observe that the fact that the expected value is finite implies that an equilibration is attained between the number of incoming particles and the number of outgoing particles. It is clear that the mean number of arriving particles per unit time is p, while, the number of leaving particles per unit time is . Once has reached the stationarity, we have an equality between these quantities, giving the result stated above. Although we have obtained the mean number of particles by using the argument of equilibration, the same line of reasoning cannot be applied to the variance. We have thus provided a way to compute the fluctuations in the number of particles that are present in the vertex.
Example 4.
Next, we will deal with another example that is closely related to the problem of the random walk on a ring, which well-known system in physics. A random walk on a ring consist of a particle moving randomly on for some . To open this system we allow the particles leave the state space from a given site . We will also allow the particles to arrive at the state space from a certain site . For simplicity we will consider the case for arbitrary . A schematic representation of the open chain with this state space is depicted in Figure 3. We will assume that once a particle is on a given state , it can jump to with probability q or it can jump to with probability for all . If the particle is at the state it can jump to the state 1 with probability a and it can jump to the state with probability b. Clearly we have to assume that and . Since we are assuming that the particles can only enter to the state space through the state 0, we can see that take the protocol of incoming particles can be written as
where is taken as a Bernoulli random variable with parameter .
Figure 3.
An example of a L-states open Markov chain.
Thus the system that we propose can be seen as a system of random walkers that arrive at the ring and leave the ring from the state 0. Now our goal is to obtain the time-dependent generating function of the distribution of particle over the sate space. As he have shown, the latter is given by
Assuming that at there are no particles on the ring, it is clear that . On the other hand, since we assumed that the protocol of incoming particles is , it is clear that the corresponding m.g.f is given by
where is the 0th component of α. Thus we have that the m.g.f. of the distribution of particles over the state space can then be written as
Using the definition of given in Equation (22),
it is easy to verify that can be written as,
for all . For the sake of simplicity let us adopt the following short-hand notation
for . Then notice that due to the fact that we have the following identity
The latter allows us to rewrite the first term of the right hand side of (36) (with ) as,
Then, from Equations (36)–(38), we arrive at the following identity,
Therefore it is clear that the time-dependent m.g.f. of the distribution of particles over the state space can be written as
where we denoted by the product , i.e.,
At this point it is important to stress that the quantity is such that for all and all . Next, we can observe from Equation (41) that
These properties of allows to interpret the function appearing in the product in Equation (40),
as the a m.g.f. of certain random vector that will be denoted by . This random vector has the following characteristics. First of all it is clear that and that it can take at most possible values. Specifically,
where is the unitary vector along the jth direction.
This interpretation of the function allows, in turn, interpret the m.g.f. of the distribution of particles over the state space as a convolution of the collection of independent random vectors ,
The latter means that the time-dependent distribution of particles over the state space can formally be written as a sum of independent random vectors
This last expression is useful for several purposes. For instance, the first cumulant can be straightforwardly computed from the last expression,
or equivalently, in terms of the stochastic matrix and the parameter of the protocol of incoming particles, we have that
This shows that the properties of the time-dependent evolution of the distribution of particles can be obtained by means of the technique of the moment generating function for this class of open systems.
3.2. Cumulant Dynamics
Up to now we have obtained two main results, a recurrence relation of the time-dependent m.g.f. of and a formal expression for the m.g.f. of when the system has attained the stationarity. Now we will focus in two quantities which are of special interest, namely, the two first cumulants for , and how do these quantities evolve in time. Let us start by obtaining the first cumulant of . Notice that the first cumulant (which coincides with the first moment) can be obtained by taking the first derivative of the m.g.f. . Let us denote by the first moment of , i.e.,
which we will refer to as the mean distribution of particles over the state space at time t, or simply, the mean distribution at time t. Now let us notice that,
where is the ith component of and is the ith component of . Observe that the ith component of the mean distribution at time can be obtained from Equation (24), giving
Notice that and any moment generating function evaluated at is one. Hence we have,
where stands for the expected value of , which can be obtained by means of the first derivative of , i.e.,
In Equation (51) we make use of the fact that
which is proved in Appendix A. Thus, it is clear that Equation (51) can be written as,
The above expression states the dynamics for the evolution of the mean distribution in time. This evolution has two components, one involving the internal dynamics (which is given by the term giving the internal redistribution of particles) and other one involving the external dynamics (which is given by the time-dependent mean number of incoming particles).
Now let us explore the behavior of the second cumulant of . The second cumulant corresponds to the variance matrix which we will denote by . Notice that this matrix has entries given by
Next we will use the dynamics of the m.g.f. of to obtain a recurrence for the expected value . It is clear that
The above expression together with the evolution Equation (24) leads to
At this point it is necessary to introduce some notations. First let us denote by the variance matrix of the incoming flux, i.e.,
The above quantity can be obtained through the second derivative of the m.g.f. as follows,
Thus, performing the evaluation of Equation (55) at we obtain,
where we used the fact that (see Appendix A),
Let us simplify Equation (58) by noticing that the summations can be written as matrix products,
where we defined the matrix as
Equation (60) allows us to obtain the variance matrix ,
Rearranging terms in the above expression and denoting by the matrix variance , we obtain
Finally, observing that , it is clear that the variance matrix satisfy the evolution equation,
Equations (52) and (64) govern the dynamics of the first and second cumulants and are valid even when the incoming flux has a time-dependent distribution. In the case where the protocol of incoming particles is a stationary process (for which the two first cumulants are time-independent) we have that the system can reach the stationarity. Particularly we have that the dynamics Equations (52) and (64) have stationary solutions (proved in Appendix A) given by,
where and are the mean vector and the variance matrix of the stationary process and and denote the mean distribution and the variance matrix when the process has reached the stationarity. We also defined as
Example 5.
Let us consider a three states open chain with jump matrix given by
with p a parameter restricted to take values in the interval . Let us also assume that the protocol of incoming particles is a stationary process whose joint probability distribution at time t can be written as
Particularly, we chose and as
Notice that each random variable can only take the values 0 or 1. Moreover, the above choice for the joint probability distribution for the random vector implies that the random variables and are dependent and that is independent. It is easy to see that all these random variable have, separately, a Bernoulli distribution with parameter , i.e., at every time-step one particle arrives at every node with probability and no particles arrive at every node with probability . In Figure 4 we show a graphical representation of the open chain.
Figure 4.
An example of a three-states open Markov chain.
A straightforward calculation shows that the first and second moments of are given by
Now we calculate the mean stationary distribution of particles, , and the stationary variance matrix, . The calculation of is straightforward. We only need to obtain the inverse of the matrix , which is given by
With the above result we can see that the mean stationary distribution is given by
The last result implies that the particles on the state space are uniformly distributed when the system has reached the stationarity. Moreover, we can also appreciate that the number of particles on every state diverges as the parameter p tends to . This divergence is actually a consequence of the fact that the system does not allow that the particles leave the state space when . Thus, for such a parameter value, the system is still receiving particles but it does not allow that the particles escape to the outside, thus increasing indefinitely the number of particles inside the system.
Now let us compute the stationary variance matrix . Recall that this quantity can be obtained by means of the formula,
First let us obtain the explicit form of . According to Equation (67) we have that
Thus, we have
Next we need to compute the nth power of the matrix . It is not hard to prove that
This result shows that for this particular case
because is itself a symmetric matrix.
It is also not hard to see that the term
is a matrix whose components are all exponential (or linear combinations of exponentials) in the variable k. This observation allows us to see that the infinite summation (73) can be exactly computed. Then, we can obtain a closed expression for by using symbolic calculations performed in the software Mathematica. Thus we obtain,
Now, let us define the space correlation functions. We will denote by the correlation function between the random variables and as follows,
for all . It is not hard to see that the correlation functions for this example are given by,
In order to test the results we obtained for this example we performed numerical simulations. We have simulated the dynamics of the open chain for several parameter values during a time of steps. Then, from the time series obtained we estimated the correlation functions , and and we compare them against the theoretical prediction given in Equations (76)–(78) (note that for our example ). In Figure 5a,b we show the correlation functions obtained by numerical simulations and computed from Equations (76) and (78). We take the parameter value and plotted (solid line, filled circles) and (dashed line, filled squares) as a function of p (Figure 5a). The same graph is done but using the parameter value (Figure 5b). As we can see, our the results obtained from numerical simulations are consistent with the formulas that we obtained theoretically.
Figure 5.
The correlation functions and . In panel (a) we plot the correlation functions for the parameter value fixed and varying the parameter p. The solid line corresponds to computed from Equation (76) and the filled circles corresponds to numerically obtained from the simulations of the stochastic dynamics during time steps. The dashed line corresponds to computed from Equation (77) and the filled squares corresponds to numerically obtained from the simulations. In panel (b) we do the same as in panel (a) but using the parameter value .
3.3. Distribution of Particles Leaving the State Space
Up to now we have given an expression for the m.g.f. for the number of particles in the state space. Since the system is open, at every time step there is a number of particles arriving to the system, which is determined by the random vector . The total number of particles per step arriving to the system is then
When the system reaches the stationarity the mean number of particles within the system attains a constant value, meaning that there is an equilibration between the number of incoming and outgoing particles. This is a consequence of the fact that we assumed that the jump matrix is irreducible and aperiodic.
To be precise, if we denote by the total number of particles leaving the state space, then, under stationarity we should have that
a fact that can be inferred by the “conservation” of the mean number of particles at stationarity. Our goal here is to go beyond the above expression, we would like to characterize how the random variable evolves in time and how much it is influenced by the incoming number of particles and the “jumping” rules of the Markov chain. To this end, let us define some quantities which will allow to describe the random variable explicitly.
Definition 2.
Let be an open Markov chain with state space , jump matrix (with components ) and incoming protocol . Let be defined as the escape probability from the state i, i.e., the probability with which a particle in the state i leaves the system to the outside,
Next, let be a random vector whose components have binomial distribution as follows,
where is time-dependent distribution over the state space. Then we say the is the number of particles leaving the state i to the outside at time t. The total number of particles leaving the system is then the random variable given by
Finally, we define the vector , with components , which will be referred to as the escape probability vector of the chain. Additionally let be a diagonal matrix with components defined as
which will be referred to as the escape probability matrix of the chain.
Our main goal is now to characterize the random vector giving the number of particles leaving the chain. We should notice that the distribution of depends on which is also a random vector. This implies that, given the value of , we can specify the conditional distribution for , i.e.,
which is given by
Once we know , we can write an expression for the probability distribution for the random vector ,
If we denote by the probability distribution of the random vector , i.e.,
then it is clear that Equation (84) can be rewritten as
The next step consists in obtaining the moment generating function of . This is because, as we saw above, the expression for the m.g.f. of can be written explicitly. Thus, let be the m.g.f. of ,
Thus we can see that, using Expression (85), can be written as follows
Since is a product of binomial distributions, it is clear that the sum over results in the product of moment generating functions of binomial random variables,
Moreover, if we define the function as follows,
it is clear that we can write
The above expression, together with Equation (87), gives us
The last relation states that the moment generating function of can be obtained by means of the moment generating function of , which is mediated by the transformation .
Observe that allows us to obtain the first and the second moment of number of leaving particles. Taking the first derivative (gradient) of and evaluating it in we obtain,
The above result allows us to calculate the mean number of leaving particles ,
Now, when the system reaches stationarity we have to replace by ,
Thus, from the definition of we obtain
and recalling that satisfy the equation
we can observe that
which is the relation we have anticipated by invoking the particle number conservation principle.
The variance matrix can also be obtained by means of the second derivative of . A calculation achieved in Appendix A shows that
where is a diagonal matrix with components
where is the well-known Krönecker delta. The variance matrix allows us in turn to obtain a closed formula for the variance of the total number of leaving particles,
where stands for the identity matrix. We observe that the variance matrix of the number of outgoing particles is not the same as the variance matrix of the incoming particles nor the variance matrix of the particles in the system. Thus we have that the fluctuations and correlations are modulated by the internal dynamics of the system. This is important because measuring the correlations and fluctuations of the outgoing flux gives information on the internal dynamics of the system.
Example 6.
Let us consider again the one-vertex model given in Example 1. We have seen that the m.g.f. of is given by
Notice that the probability escape “vector” consists of a single number, given by (recall that the jump matrix is also a single number). Thus we have that the transformation can be written as
Now we can obtain the m.g.f. of , the number of particles leaving the system,
Notice that can be written as , thus we have,
The last expression establishes that the distribution of (at stationarity) can be seen as an infinite convolution of Bernoulli distributions, with parameters for . Thus, the random variable can be written as an infinite sum of i.i.d. random variables (with the above-mentioned Bernoulli distribution),
whenever has reached stationarity. Particularly the mean number of leaving particles as well as its variance can be exactly determined,
We should emphasize that the above expressions can be obtained through the formulas for and , given in Equations (93) and (97). Since (because we have only one state) we have that
where we used the expressions for and given in Equations (29) and (30).
4. The Influence of Incoming Particles on Time-Correlations
Time Correlations for the Open Markov Chain
Up to now we have seen that it is possible to find an explicit expression for the time-dependent distribution on the state space. This evolution is fully characterized by the two first cumulants, the mean distribution over the state space and the variance matrix . It is important to emphasize that we made no assumptions on the time correlations of the sequence of random vectors . This is because to obtain the distribution over the state space, , for a given time t, it was enough to know the number of incoming particles at time t. On the other hand, if we would like to compute the two-times correlation function for certain observable we necessarily have to known the number of incoming particles a two different times. This information unavoidably will be related to the two-times covariance matrix of the process , i.e., the covariance matrix between the random vector and for . Our goal in this section is to obtain an expression for the covariance between the ith coordinate of and the jth coordinate of , i.e.,
where is the ith coordinate of the mean stationary distribution.
In order to compute the expected value it is necessary to have an expression for the stationary joint distribution . This quantity is defined as,
Our goal here is to establish a method to obtain the joint distribution . Actually, we will first determine an expression for a more general quantity. Let denote the joint probability function of the random vectors (Notice that, to be strict, the probability function P depends on , and we should denote this dependence explicitly by using subscripts, i.e., . However, we will not use such a notation by the sake of simplicity in further calculations. The same convention will be adopted for other “multiple-times” joint probability functions or its corresponding moment generating functions.),
First of all, let us introduce some notation that will be useful to perform further calculations. Let be the joint probability function of the random vectors , i.e.,
Let us also denote by the probability function of the random vector , which, as we saw in Section 3, depends on the value taken by the random vector (a value which we denote by in the probability function h).
With the above-introduced notation it is possible to write the joint probability function, given in Equation (104), in terms of the probability functions f and h,
Notice that the random vector depends on for , values which are given a priori. Thus, the random vectors are all independent (because the values taken by the random vectors for are all fixed), which allows us to write
In terms of the probability functions defined above we have,
The above expression states that the joint distribution can be written in terms of the stationary distribution and the probability functions of the random vector and the joint distribution of the random vectors , distributions that are given a priori. Once knowing the joint distribution , we can compute the two-times joint distribution ,
The above expression can be used to obtain the moment generating function of and then the corresponding two-times covariance matrix . Those calculations are performed in Appendix A, here we only write down the result,
We should emphasize that Equation (107) is valid even if the system has not necessarily reached stationarity. If we assume that the system has attained the stationarity (which means that no longer depend on time), we obtain
Due to stationarity, it is clear that the covariance matrix depends only on s, the difference between the times t and .
Example 7.
Let us consider the system introduced in Example 5. We should notice that we were able to obtain an exact expression for the stationary variance matrix . Thus, computing the covariance matrix involves only the product of two matrices. The resulting expression for the covariance matrix is too long to write down here. Thus, instead of giving explicitly the expression for the covariance matrix, we will show the theoretically computed time-dependent correlation functions defined as
In Figure 6 we show the behavior of the correlation functions and for the three-states open Markov chain studied in Example 5. For the parameter values we display the theoretically computed correlation function using Equations (108) and (109). The figure also shows the correlation functions obtained by means of numerical simulations of the system. The total time-steps performed to obtain the data from simulations was . We appreciate that the theoretical results agree with the simulations showing the consistency of our results.
Figure 6.
Time-dependent correlation functions for the three-states open chain defined in Example 5. We show the correlation functions and for the parameter values (which controls the correlation degree between the incoming fluxes) and (which rules the internal dynamics). The theoretically computed correlation function is represented by the solid line and the numerically obtained from simulations are represented by the open circles. Analogously, the theoretically computed correlation function is represented by the dashed line and the numerically obtained from simulations are represented by the open squares. The inset shows the same graph for small values of s.
5. Summary of Main Results
In this section we summarize the main results reported here. First of all, the proposed model for open Markov chain is described through the distribution of particles over the state space,
which is ruled by the evolution equation
where . We proved that the above evolution equation can be formally solved using the moment generating function formalism. The time-dependent m.g.f. of can be written explicitly as
where stand for the m.g.f for (the initial distribution over the state space) and stands for the rth iterate of , i.e., , r times, assuming stationarity. We also showed that, under some mild conditions, the system attains stationarity as t goes to infinity. In such a case the stationary m.g.f. is given by,
We showed through a couple of examples that the above expression was useful to describe the stationary state as an infinite convolution of certain random variables. This approach allow, for instance, to compute the first cumulants. However we also developed a couple of formulas for the dynamics of the two first cumulants in terms of the variables of the internal dynamics and the protocols of outgoing particles. These dynamic equations are
where and are the mean vector and the variance matrix of the process , i.e., and . Besides, and correspond to the mean and the variance matrix of the number of particles in the state space respectively. The stationary version of Equations (114) and (115) can be written as
whose formal solution is
Clearly, to guarantee the existence of the stationary state it is necessary to assume that the process be stationary, which implies that and no longer depends on time. Following this formalism of moment generating functions we were also able to compute the dynamics of the m.g.f. of the outgoing number of particles . Indeed we showed that
The above formula allowed us to prove that in the stationarity the number of outgoing particles equals the number of incoming particles, which can be interpreted as a kind of conservation law of the number of particles. Moreover, we were also able to obtain the behavior of the fluctuations of , i.e., we obtained the variance matrix of ,
Finally we also proved that the two-times covariance matrix defined as
evolves according to
We should emphasize that Equation (123) is valid even if the system has not necessarily reached stationarity. If we assume that the system has attained the stationarity we obtain,
6. Conclusions
We have introduced a simple model for open Markov chains by interpreting the state space of a usual Markov chain as physical “sites” where non-interacting particles can be placed and moving throughout it according to “jumping rules” given by a kind of stochastic matrix. The conditions for the chain to be open are given as a protocol of incoming particles, defined by a discrete-time stochastic process, and by a protocol of outgoing particles, which is implicitly defined by the condition that the “stochastic matrix” (called here a jump matrix) has a spectral radius strictly less than one. These conditions establish the rules by means of which the particles arrive and leave the state space to the outside. We have shown that this model can be treated by means of the moment generating function technique, allowing us to obtain, in a closed form, the moment generating function of the distribution of particles over the state space. We have also shown that the system can be partially described by the dynamics of the two first cumulants of the distribution of particles over the state space. Actually, we have given closed formulas for the two first cumulants when the system is able to reach the stationarity. We have also studied how the correlations in the incoming protocol of particles are processed by the open chain. We have obtained closed formulas allowing to compute the two-times covariance matrix for the random vector defined as the number of particles on the states. Our main result is that the stationary two-times covariance matrix does not depend on the correlations of the particles arriving at the state space. This means that the stationary correlation functions essentially behaves as a closed Markov chain, i.e., that the correlations vanishes exponentially in time. The non-stationary correlations might probably content some information on the correlations of the incoming particles, but it would be necessary a more exhaustive study in this direction for a better understanding of such a process.
Funding
This research was funded by CONACyT grant number FORDECYT-PRONACES/1327701/2020.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Data sharing not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
In this appendix we perform some calculations. Let us start by proving that the function defined as
can be written as
as it was stated in Equation (21). First recall that the jth component of the random vector is defined as,
where are components of independent random vectors with multinomial distribution. Specifically, the -dimensional vector , with components
has multinomial distribution, i.e., . Additionally we have that and are independent if and that and are independent if . Here is a set of probability vectors defined as
where is the th component of and is defined as,
Let us consider the random vector defined as the sum of the independent random vectors ,
whose m.g.f., , can be written as
where, in last step, we used the fact that are independent. Now, it is easy to see that is the m.g.f. of the random vector which is given by
In consequence, the last result allows us to write,
Next we should observe that the m.g.f. can be written in terms of as follows. First notice that
Next, if we define the -dimensional vector it is clear that
Then, if we compare the last result with Equation (A4) we have that
or equivalently
which immediately implies that (see Equation (A5)),
The above expression can be rewritten, by convenience, as
where is defined as
Thus, from Equation (A7), it is clear that the m.g.f. can be written as
where the (row) vector function is defined as
Next, we shall prove that the successive iterations of tend to . This can be shown by using the Contracting Principle in discrete dynamical systems and a lemma on nonlinear maps in higher dimensions [33]. The only we need to do is to prove that defines a contracting map in an open neighborhood around , which is the unique fixed point of the map .
First notice that is a continuously differentiable nonlinear map whose first derivative (gradient) is given by
If we evaluate at we have that
or, equivalently
Since the spectral radius of is strictly less than 1, then according to Lemma 3.3.6 in Ref. [33], we have that there is a closed neighborhood U of such that where is a eventually contracting map. Invoking the contracting principle for eventually contracting maps (cf. for example Corollary 2.6.13 in Ref. [33]) we have that, under iterates of , all points converge to . This proves that there is a neighborhood U around such that as for all .
Another relationship that it is important to prove here is
which was used to obtain the dynamics of the second cumulant of given in Equation (64). We have already computed the first derivative of with respect to in Equation (A9). Using this information we can compute the second derivative, obtaining
Now, using the fact that
we obtain
and evaluating Equation (A11) at it is clear that
which is the relationship anticipated in Equation (59).
Next, we shall prove that the stationary solution to the cumulant dynamics equations are given by
as it was stated in Equations (65) and (66).
Let us start by recalling the equations for the dynamics of two first cumulants, given by Expressions (52) and (64),
where is defined in Equation (61) as,
The above means that is actually a function of , i.e., , implying that the equations for the cumulant dynamic are not independent. Before going on the proof of the existence of the stationary cumulants let us first impose the assumption, on Equations (A15) and (A16), that the incoming protocol is a stationary process. Assuming stationarity of the process implies that the mean value of , as well as its variance, are independent on time. Thus, we can substitute and by and , respectively. Therefore, the dynamic equations for the cumulants can be rewritten as
It is easy to see that the above recurrence equations can be solved to obtain,
Finally, we should observe that the matrix (and its transpose) “vanishes” as . This is because the spectral radius of is strictly less than one, implying that successive powers of converge to the operator zero. This fact implies that the terms and tend to zero as t approaches infinity. Then, taking the limit of , we can see that Equations (A20) and (A21) result in,
A straightforward calculations shows that and are invariant under the dynamics given by Equations (18) and (19). We can see that the above expressions for and are the ones anticipated in Equations (65) and (66).
Now let us compute the variance matrix of the random vector . First we should recall that the m.g.f. of is given by
where is a transformation defined as
It is clear that the m.g.f. allows us to obtain the variance matrix as follows,
Using Expression (A24) and the fact that (see Equation (92)) we obtain for the variance matrix
At this point it is important recalling that
Additionally, some elementary calculations allow us to observe that the derivatives of result in
The above results, together with the fact that , imply that the variance matrix can be written as
where we used the fact that . Now recalling that that it is clear that
which is the expression anticipated in Equation (96).
Next, our goal consists in obtaining the two-times covariance matrix . To this end we need to obtain an expression for the m.g.f. of the joint distribution . We have seen that the latter can be expressed in terms of the multiple-times joint distribution as follows
Thus, the moment generating function of the random vectors can be written as
Using Expression (106) for the joint distribution we obtain,
Observe that, as in previous calculations, the summation over together with the restricted summation over results in a double summations over two independent (unrestricted) indices and for . This fact leads us to
We should notice that in the above expression, the summation over can be achieved because from the summand we can factorize a term that depends on . Such a term is indeed . We should recall that is the probability function of a sum of random vectors with binomial distribution. We have shown above that the corresponding m.g.f. is given by
The above implies that the summation over in Equation (A30) results in
We then obtain,
Next, in the above expression we can perform the summation over in a similar way as we did it for . Actually, all the terms containing are and . Using the same reasoning used above we see that
We then obtain,
Proceeding inductively it is clear that the above expression results in
which after rearranging the summands appropriately we get
The summation over results in the moment generating function of the random vectors , a function that will be denoted by . Notice also that the summation over results in the m.g.f. of , which, as in preceding sections, has been denoted by . Using these conventions it is easy to see that, the m.g.f. of is given by
Once we have computed the m.g.f. it is possible to obtain the covariance matrix by taking the second derivative of the above expression. We then obtain
Performing some calculations we have
Recalling that , , and observing that
it is relatively easy to see that
Now, using the dynamics for given by the equation
it is easy to see that we can write as
Using the above identity it is clear that Equation (A40) results in
which is the relationship anticipated in Equation (107).
References
- Lemons, D.S.; Langevin, P. An Introduction to Stochastic Processes in Physics; JHU Press: Baltimore, MD, USA, 2002. [Google Scholar]
- Van Kampen, N.G. Stochastic Processes in Physics and Chemistry; Elsevier: Amsterdam, The Netherlands, 1992; Volume 1. [Google Scholar]
- Allen, L.J. An Introduction to Stochastic Processes with Applications to Biology; CRC Press: Hoboken, NJ, USA, 2010. [Google Scholar]
- Goel, N.S.; Richter-Dyn, N. Stochastic Models in Biology; Academic Press Inc.: London, UK, 1974. [Google Scholar]
- Jackman, S. Bayesian Analysis for the Social Sciences; John Wiley & Sons, Ltd.: West Sussex, UK, 2009; Volume 846. [Google Scholar] [CrossRef] [Scilit]
- Chib, S.; Greenberg, E. Markov Chain Monte Carlo Simulation Methods in Econometrics. Econ. Theory 1996, 12, 409–431. [Google Scholar] [CrossRef] [Scilit]
- Bartholomew, D.J. Stochastic Models for Social Processes; John Wiley & Sons, Ltd.: New York, NY, USA, 1982. [Google Scholar]
- Gani, J. Formulae for projecting enrollments and degrees awarded in universities. J. R. Stat. Soc. Ser. A (Gen.) 1963, 126, 400–409. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.; Mexia, J. An alternative approach to bonus malus. Discuss. Math. Probab. Stat. 2004, 24, 197–213. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.R.; Mexia, J.T.; de Fátima Miguens, M. Statistical approach for open bonus malus. ASTIN Bull. J. IAA 2014, 44, 63–83. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.R.; Mexia, J.T.; Miguens, M.F. Preliminary Results on Confidence Intervals for Open Bonus Malus. In Advances in Regression, Survival Analysis, Extreme Values, Markov Processes and Other Statistical Applications; Springer: Berlin/Heidelberg, Germany, 2013; pp. 223–230. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.; Mexia, J. Stochastic vortices in periodically reclassified populations. Discuss. Math. Probab. Stat. 2008, 28, 209–227. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.; Mexia, J.; Miguens, M. A model for open populations subject to periodical re-classifications. J. Stat. Theory Pract. 2010, 4, 303–321. [Google Scholar] [CrossRef] [Scilit]
- Guerreiro, G.R.; Mexia, J.T.; de Fátima Miguens, M. Stable Distributions for Open Populations Subject to Periodical Reclassifications. J. Stat. Theory Pract. 2012, 6, 621–635. [Google Scholar] [CrossRef] [Scilit]
- Pollard, J. Hierarchical population models with Poisson recruitment. J. Appl. Probab. 1967, 4, 209–213. [Google Scholar] [CrossRef] [Scilit]
- McClean, S.I. Continuous-time stochastic models of a multigrade population. J. Appl. Probab. 1978, 15, 26–37. [Google Scholar] [CrossRef] [Scilit]
- McClean, S.I. A continuous-time population model with Poisson recruitment. J. Appl. Probab. 1976, 13, 348–354. [Google Scholar] [CrossRef] [Scilit]
- Taylor, G.J.; McClean, S.I.; Millard, P.H. Using a continuous-time Markov model with Poisson arrivals to describe the movements of geriatric patients. Appl. Stoch. Models Data Anal. 1998, 14, 165–174. [Google Scholar] [CrossRef]
- Staff, P.; Vagholkar, M. Stationary distributions of open Markov processes in discrete time with application to hospital planning. J. Appl. Probab. 1971, 8, 668–680. [Google Scholar] [CrossRef] [Scilit]
- Vassiliou, P.C. On the limiting behaviour of a non-homogeneous Markovian manpower model with independent Poisson input. J. Appl. Probab. 1982, 19, 433–438. [Google Scholar] [CrossRef] [Scilit]
- Vassiliou, P.C. The evolution of the theory of non-homogeneous Markov systems. Appl. Stoch. Model. Data Anal. 1997, 13, 159–176. [Google Scholar] [CrossRef]
- Pollard, B.S. Open Markov processes: A compositional perspective on non-equilibrium steady states in biology. Entropy 2016, 18, 140. [Google Scholar] [CrossRef] [Scilit]
- Yakasai, B. Stationary population flow of a semi-open Markov Chain. J. Niger. Assoc. Math. Phys. 2005, 9, 395–398. [Google Scholar] [CrossRef] [Scilit]
- Esquível, M.; Guerreiro, G.; Fernandes, J. Open Markov Chain Scheme Models fed by Second Order Stationary and non Stationary Processes. REVSTAT 2017, 15, 277. [Google Scholar]
- Stadje, W. Stationarity of a stochastic population flow model. J. Appl. Probab. 1999, 36, 291–294. [Google Scholar] [CrossRef]
- Esquível, M.L.; Fernandes, J.M.; Guerreiro, G.R. On the evolution and asymptotic analysis of open Markov populations: Application to consumption credit. Stoch. Model. 2014, 30, 365–389. [Google Scholar] [CrossRef] [Scilit]
- Afonso, L.B.; Cardoso, R.M.; Egídio dos Reis, A.D.; Guerreiro, G.R. Ruin Probabilities And Capital Requirement for Open Automobile Portfolios With a Bonus-Malus System Based on Claim Counts. J. Risk Insur. 2020, 87, 501–522. [Google Scholar] [CrossRef] [Scilit]
- de Lourdes Centeno, M.; Manuel Andrade e Silva, J. Bonus systems in an open portfolio. Insur. Math. Econ. 2001, 28, 341–350. [Google Scholar] [CrossRef] [Scilit]
- Mehlmann, A. A note on the limiting behaviour of discrete-time Markovian manpower models with inhomogeneous independent Poisson input. J. Appl. Probab. 1977, 14, 611–613. [Google Scholar] [CrossRef] [Scilit]
- Floriani, E.; Lima, R.; Ourrad, O.; Spinelli, L. Flux through a Markov chain. Chaos Solitons Fractals 2016, 93, 136–146. [Google Scholar] [CrossRef] [Scilit]
- Baez, J.C.; Fong, B.; Pollard, B.S. A compositional framework for Markov processes. J. Math. Phys. 2016, 57, 033301. [Google Scholar] [CrossRef] [Scilit]
- Pollard, B.S.S. Open Markov Processes and Reaction Networks. Ph.D. Thesis, University of California, Riverside, CA, USA, 2017. [Google Scholar]
- Katok, A.; Hasselblatt, B. Introduction to the Modern Theory of Dynamical Systems; Cambridge University Press: Cambridge, UK, 1997; Volume 54. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).





